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

Back to Subject List

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


 
#75855 - RE: 8052 - Timer2
Responding to: ???'s previous message
Yeah, something like this maybe:


PUSH PSW
CLR TR0 ;Stop timer
XCH A,TL0 ;Read overflow
ADD A,#LOW -TID0 ;Add new with comp for
XCH A,TL0 ;stopped cycles
XCH A,TH0 ;Also reload HI
ADDC A,#HIGH -TID0
XCH A,TH0
SETB TR0 ;Restart
POP PSW

Anders


List of 19 messages in thread
TopicAuthorDate
8052 - Timer2            01/01/70 00:00      
   RE: 8052 - Timer2            01/01/70 00:00      
      RE: 8052 - Timer2            01/01/70 00:00      
   RE: 8052 - Timer2            01/01/70 00:00      
      RE: 8052 - Timer2            01/01/70 00:00      
         RE: 8052 - Timer2            01/01/70 00:00      
         RE: 8052 - Timer2            01/01/70 00:00      
      RE: 8052 - Timer2            01/01/70 00:00      
         RE: 8052 - Timer2            01/01/70 00:00      
   RE: 8052 - Timer2            01/01/70 00:00      
      RE: 8052 - Timer2            01/01/70 00:00      
         RE: 8052 - Timer2            01/01/70 00:00      
            RE: 8052 - Timer2            01/01/70 00:00      
               RE: 8052 - Timer2            01/01/70 00:00      
                  RE: 8052 - Timer2            01/01/70 00:00      
                     RE: 8052 - Timer2            01/01/70 00:00      
                        RE: 8052 - Timer2            01/01/70 00:00      
                           RE: 8052 - Timer2            01/01/70 00:00      
                  RE: 8052 - Timer2            01/01/70 00:00      

Back to Subject List