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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/11/04 23:20
Read: times


 
#64547 - RE: Timer 2 in auto reload mode
Responding to: ???'s previous message
TH2 = (65535-1000)>>8;
TL2= (65535-1000);

RCAP2H = TH2;
RCAP2L = TL2;

TH2 and TL2 are 8bit register --> TH2+TL2=16 bit
I want start timer at 65535-1000=64535=FC17

_ _ FFFF
| _| | _|
| _| | _|
| _| | _|
|_| |_| FC17
|
|____________________
________ ___
| |_________| --> this is the signal that
I want generate

RCAP2H and RCAP2L are 8 bit register. In this register I load the start value (FC17).
but I saw in a sample program that write this
TH2 = (65535-1000)>>8; ?????
TL2= (65535-1000);



List of 33 messages in thread
TopicAuthorDate
Timer 2 in auto reload mode            01/01/70 00:00      
   RE: Timer 2 in auto reload mode            01/01/70 00:00      
      RE: Timer 2 in auto reload mode            01/01/70 00:00      
         RE: Timer 2 in auto reload mode            01/01/70 00:00      
            RE: Timer 2 in auto reload mode            01/01/70 00:00      
               RE: Timer 2 in auto reload mode            01/01/70 00:00      
               RE: Timer 2 in auto reload mode            01/01/70 00:00      
                  RE: Timer 2 in auto reload mode            01/01/70 00:00      
                     RE: Timer 2 in auto reload mode            01/01/70 00:00      
                        RE: Timer 2 in auto reload mode            01/01/70 00:00      
                           RE: Timer 2 in auto reload mode            01/01/70 00:00      
   RE: Timer 2 in auto reload mode            01/01/70 00:00      
      RE: Timer 2 in auto reload mode            01/01/70 00:00      
         RE: Timer 2 in auto reload mode            01/01/70 00:00      
            RE: Timer 2 in auto reload mode            01/01/70 00:00      
               RE: Timer 2 in auto reload mode            01/01/70 00:00      
                  RE: Timer 2 in auto reload mode            01/01/70 00:00      
                     RE: Timer 2 in auto reload mode            01/01/70 00:00      
                        RE: Timer 2 in auto reload mode            01/01/70 00:00      
                        RE: Timer 2 in auto reload mode            01/01/70 00:00      
                           RE: Timer 2 in auto reload mode            01/01/70 00:00      
                              RE: Timer 2 in auto reload mode            01/01/70 00:00      
                           RE: Timer 2 in auto reload mode            01/01/70 00:00      
                  RE: Timer 2 in auto reload mode            01/01/70 00:00      
                     RE: Timer 2 in auto reload mode            01/01/70 00:00      
               RE: Timer 2 in auto reload mode            01/01/70 00:00      
                  RE: Timer 2 in auto reload mode            01/01/70 00:00      
                     RE: Timer 2 in auto reload mode            01/01/70 00:00      
                        RE: Timer 2 in auto reload mode            01/01/70 00:00      
                           RE: Timer 2 in auto reload mode            01/01/70 00:00      
                              RE: Timer 2 in auto reload mode            01/01/70 00:00      
                                 RE: Timer 2 in auto reload mode            01/01/70 00:00      
                                    RE: Timer 2 in auto reload mode            01/01/70 00:00      

Back to Subject List