Go Down

Topic: Playground :: Timer1 :: (Read 624 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

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview