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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/04/03 05:19
Read: times


 
#50044 - RE: Simple Digital Clock ---89C2051
Responding to: ???'s previous message
Is it possible that you have made a time extension in the timer interrupt so as to count seconds? In that case, I suggest you can check if the basic timer interrupt occurs precisely at the time interval you specify.

A technique I use to maintain the correct time is to re-initialize the timer registers like so
TL1 = -TICKTIME+TL1 & 0xff;
TH1 = -TICKTIME >> 8;
This compensates for the latency till the timer is reprogrammed.

I am not sure if this will help you

Jerson


List of 17 messages in thread
TopicAuthorDate
Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
      RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
      RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
      RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
         RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
      RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
   RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
      RE: Simple Digital Clock ---89C2051            01/01/70 00:00      
         Here comes the oscillator bible            01/01/70 00:00      
            RE: Here comes the oscillator bible            01/01/70 00:00      
               Thanks, Michael            01/01/70 00:00      
            RE: Here comes the oscillator bible            01/01/70 00:00      

Back to Subject List