Pages: [1]   Go Down
Author Topic: Playground :: Timer1 ::  (Read 581 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 1
Posts: 140
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13471
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: