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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/09 17:06
Read: times


 
#162059 - Solved? Check closely
Responding to: ???'s previous message
I usually use this construction to keep the timer running pretty accurately especially in software timing routines.


  
  TH1 += TICKTIME >> 8;
  TL1 += TICKTIME & 0xff;      // timer tweaked

 

TICKTIME would be the value that you are pre-loading into the timer registers; in your case 0x3CAF

List of 8 messages in thread
TopicAuthorDate
Software Clock is 3 Sec Slow per minute            01/01/70 00:00      
   How long does your ISR take?            01/01/70 00:00      
      Software clock is 3 sec slow            01/01/70 00:00      
         Don't assume - calculate!            01/01/70 00:00      
   You should use an auto-reload timer            01/01/70 00:00      
      Incorrect ISR - 21 ticks/second            01/01/70 00:00      
         Thank you ! Problem Solved            01/01/70 00:00      
            Solved? Check closely            01/01/70 00:00      

Back to Subject List