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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/19/07 08:49
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#148499 - Any MCU can do this with ease
Responding to: ???'s previous message
Any MCU that can setup a timer interrupt of some finite length can count intervals of that event out to 2, 3 or even 4 bytes count length. You could be counting for years or centuries if you wanted.

As far as the code you posted:

You seem to not yet have the concept of the timer interrupt worked out. Restructure your so code so the timer ISR increments a sequence of bytes from RAM instead of trying to keep the count value in local registers.

Michael Karas


List of 11 messages in thread
TopicAuthorDate
Long duration timer            01/01/70 00:00      
   Any MCU can do this with ease            01/01/70 00:00      
      Long duration timer            01/01/70 00:00      
   I would not trust MCU for this but an RTC            01/01/70 00:00      
      Wrong end of stick            01/01/70 00:00      
         Wrong end of right stick            01/01/70 00:00      
            It's all relative            01/01/70 00:00      
               It\'s all relative , ya            01/01/70 00:00      
                  I see            01/01/70 00:00      
                     ya            01/01/70 00:00      
         Ap is right            01/01/70 00:00      

Back to Subject List