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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/05/05 13:06
Read: times


 
#100614 - The timer counts UP
Responding to: ???'s previous message

In the 8051, the timer counts up and when it overflows it clocks the uart or fires the interrupt.

so, you have timer = 0-time. 0 being the value when it overflows.

say you want the timer to interrupt every 16 clocks.

the timer gets loaded with 0-16 = 240 (assuming a 8 bit timer).
So the timer counts 240,241,242....255,0 (interrupt!).

This is explained in the bible. So do a bit of reading on the timers and all shall be revealed.

List of 32 messages in thread
TopicAuthorDate
why -ve sign is used in cal of baudrate            01/01/70 00:00      
   The timer counts UP            01/01/70 00:00      
   I have seen much Stupid Monkey Shit, but            01/01/70 00:00      
      Well established            01/01/70 00:00      
         4 i=1 2 3            01/01/70 00:00      
            Not taught            01/01/70 00:00      
               XTAL...            01/01/70 00:00      
                  -ve, +ve, xtal            01/01/70 00:00      
                     If all involved totally and without any            01/01/70 00:00      
                        Abbreviations            01/01/70 00:00      
                           a bit tedious, I would say that every no            01/01/70 00:00      
                              Yes, but            01/01/70 00:00      
                                 ASCII            01/01/70 00:00      
                              abreviations            01/01/70 00:00      
                                 Let me try to fly this baloon:            01/01/70 00:00      
                                    lol            01/01/70 00:00      
                                 What can be abbreviated?            01/01/70 00:00      
                                    addendum            01/01/70 00:00      
                                 Not another glossary!!            01/01/70 00:00      
                                    [OT]: DDCMP            01/01/70 00:00      
                                       [OT] Re: DDCMP            01/01/70 00:00      
                                    no glossary            01/01/70 00:00      
                     history            01/01/70 00:00      
   Need logical answer            01/01/70 00:00      
      Did not understand            01/01/70 00:00      
         HI            01/01/70 00:00      
      nobody is "making fun" just stressing th            01/01/70 00:00      
      Explanation            01/01/70 00:00      
      You are calling the kettle black            01/01/70 00:00      
   Need logical answer            01/01/70 00:00      
      Logical Answer            01/01/70 00:00      
   Thanks and Regards            01/01/70 00:00      

Back to Subject List