Go Down

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


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:

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.


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131