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 18:46
Read: 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
TopicAuthorDate
Maximum possible delay using a Timer            01/01/70 00:00      
   are you sure?            01/01/70 00:00      
      Timer ISR Counter            01/01/70 00:00      
   The answer is chip dependant            01/01/70 00:00      

Back to Subject List