Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
10/02/12 12:46
Read: 1453 times

Msg Score: -1
 -1 Looks like homework
#188542 - Maximum possible delay using a Timer
A timer keeps incrementing itself after every 12 oscillator cycles. So for a 12 MHz crystal it would have incremented 1 million times in a second.

Here's my question. Suppose I'm using Timer 0 as a 16 bit timer, the maximum value it can take attain is 65536 (2^16). And it takes 65. 536 ms (65/1M) to attain this value.

So what if was want to generate a delay that's greater than 65 ms? Do I have to wait for it to overflow and then start it all over again?

List of 4 messages in thread
Maximum possible delay using a Timer      Rosh Infy      10/02/12 12:46      
   are you sure?      Erik Malund      10/02/12 12:59      
      Timer ISR Counter      Michael Karas      10/02/12 14:20      
   The answer is chip dependant      Jim Granville      10/02/12 14:50      

Back to Subject List