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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/04/10 08:06
Read: times


 
#176376 - TL0 and TH0
Responding to: ???'s previous message
I write :

TL0 = 115;
TH0 = 0;

but it don't work.

I've tested :

TL0 = 0x01;
TH0 = 0xFD;

it works.

I can't understand how to determine TL0 and TH0 to have a freqency of 8kHz
My micro runs at 11059200. It means that I've an impuls 921600 every second.

what value have I to set in TL0 and TH0 ? or who to compute this values ?

Thanks

List of 16 messages in thread
TopicAuthorDate
80C52 Timer0            01/01/70 00:00      
   where is the EA initialize?            01/01/70 00:00      
      EA initialize            01/01/70 00:00      
         no reason in what you show            01/01/70 00:00      
            TL0 and TH0            01/01/70 00:00      
               Calculations for Timer T0 at 8KHz: have you tried 0xFF8D ???            01/01/70 00:00      
                  correction            01/01/70 00:00      
                     Yeah - 0x8D            01/01/70 00:00      
                        Thanks for that typo, More for 8KHz with 50% duty cycle            01/01/70 00:00      
                           Put the compiler to work...            01/01/70 00:00      
                              fine, but            01/01/70 00:00      
                              T0 overflows at 65535+1, don't overlook this            01/01/70 00:00      
                                 right answer, wrong premise            01/01/70 00:00      
                                    Exact calculations require semantics            01/01/70 00:00      
                                       you are welcome to find out            01/01/70 00:00      
                                 Thanks for the correction...            01/01/70 00:00      

Back to Subject List