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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/11 09:39
Read: times


 
#182027 - So what do you do?
Responding to: ???'s previous message
You still didn't answer my question regarding "it works for me".

No need to repeat the information that your 8051 only have two timers.

That is not a problem since a single 10ms timer can both generate 10ms+ delays for the EEPROM and count seconds/minutes/hours.

Note that a freerunning 10ms timer requires you to wait for two interrupts (getting a delay in the [10..20) range) since you may have started the wait just before the next interrupt. More exact time can be had by not looking for the interrupts but instead reading out the timer value but that is probably not needed in your case.

And in some situations - depending on what baudrate you are using - it's possible to count the number of times the baudrate timer gets reloaded using a busy-loop.

List of 17 messages in thread
TopicAuthorDate
How to Delay            01/01/70 00:00      
   Counting cycles            01/01/70 00:00      
      But *not* in a HLL            01/01/70 00:00      
         the problem with cycle counting ...            01/01/70 00:00      
      ok            01/01/70 00:00      
         ???            01/01/70 00:00      
            OK            01/01/70 00:00      
               So what do you do?            01/01/70 00:00      
               sounds crazy            01/01/70 00:00      
               again            01/01/70 00:00      
   Why *no*t using timers?            01/01/70 00:00      
      Why no timers....            01/01/70 00:00      
         "Software" Timers            01/01/70 00:00      
      for another delay            01/01/70 00:00      
         Bad answer            01/01/70 00:00      
         Why ignore replies?            01/01/70 00:00      
            Output-only mode            01/01/70 00:00      

Back to Subject List