Go Down

Topic: Playground :: Timer1 :: (Read 642 times) previous topic - next topic

soulid

Hi,
I am not sure if this is the right part of the forum.

Anyhow I am struggeling with the calculation of the max period time of Timer1.

The calculation below the timing table says:

Quote
In general:
•Max Period = (Prescale)*(1/Frequency)*(2^17)
•Time per Tick = (Prescale)*(1/Frequency)


As this timer is a 16 bit (65535 counts) I am struggeling with the idea of 2^17 ...this would be 17 bit (131070 counts), wouldn't it? Therefore the max period would be wrong as well...

I am right? If not pls have a short explanation.

robtillaart


Please check - http://www.gammon.com.au/forum/?id=11504 - for a very good explanation
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up