Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Conversion of timer count to angle

Status
Not open for further replies.

jignesh doshi

Full Member level 2
Joined
Aug 11, 2011
Messages
131
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,112
Dear All,

Greetings for the day...!!!

i have to convert timer count in to angle, so what i have to do?

My clock frequency for Timer is 4.092 MHz.

Suppose i have received count is 34560 then what will be the angle in degree?
 

hello,


impossible to answer to your question

the main information is missing
what is your sensor .. datasheet ?
an encoder ?
 

I have a pulse on interrupt pin at that time i start counter and on second interrupt i stop that counter and those counting value i have to convert.
 

What is the timer reload value ?

If timer reload value is say 5000 and timer is 16 bit timer then 65536 - 5000 = 60536.

So, for 60536 is is 360 degrees.

For 34560 it is 34560 * 360 / 60536 = 205.52 degrees.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top