Nov 9, 2017 #1 J 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?
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?
Nov 9, 2017 #2 paulfjujo Advanced Member level 4 Joined Jun 9, 2008 Messages 1,464 Helped 298 Reputation 596 Reaction score 283 Trophy points 1,363 Location France 01800 Activity points 10,546 hello, impossible to answer to your question the main information is missing what is your sensor .. datasheet ? an encoder ?
hello, impossible to answer to your question the main information is missing what is your sensor .. datasheet ? an encoder ?
Nov 9, 2017 #3 J 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 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.
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.
Nov 9, 2017 #4 baileychic Advanced Member level 3 Joined Aug 2, 2017 Messages 728 Helped 56 Reputation 112 Reaction score 57 Trophy points 28 Activity points 7,033 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.
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.