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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/22/05 13:25
Modified:
  08/22/05 14:09

Read: times


 
#99818 - bible time
Responding to: ???'s previous message
Well, the problem is, as usually, in not reading the "bible".

Disabling interrupts does not mean it won't set the appropriate flags if the interrupt-triggering event occurs (e.g. if the timer rolls over). If you don't like the idea that the interrupt occurs immediately after reenabling it, you can:
- clear the appropriate flag indicating the the triggering event occured (here, clr tf0) (but then if the event occurs immediately after clearing the flag, the interrupt will be invoked anyway - note that you never set th0:tl0 so this might very well happen)
- prevent the triggering event to occur (here, stop the timer when disabling interrupt)
[Edit]: whoops sorry I somehow got the idea your problem is with the timer interrupt. Then only the first method works - see Erik's post.

Jan Waclawek

PS. Next time, please enclose your program within <pre> and </pre> tags to keep its formatting.


List of 9 messages in thread
TopicAuthorDate
interrupt recoginsation            01/01/70 00:00      
   Bible time            01/01/70 00:00      
      from where to get bible            01/01/70 00:00      
         see forum rules            01/01/70 00:00      
            or, how about checking "links"            01/01/70 00:00      
               see original subj.            01/01/70 00:00      
      little more explanation            01/01/70 00:00      
         RTFM            01/01/70 00:00      
   bible time            01/01/70 00:00      

Back to Subject List