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 12:51
Read: times


 
#100610 - why -ve sign is used in cal of baudrate
Hi all,
Iam working on c8051f005,iam performing serial commmunication.Iam using timer1 autoreload mode 2,during calculation of baudrate here using -ve sign,what is the significance of -ve sign.please suggest me

please go through the code.

void UART0_Init (void)
{
SCON = 0x50; // SCON0: mode 1, 8-bit UART, enable RX
TMOD = 0x20; // TMOD: timer 1, mode 2, 8-bit reload
TH1 = -(SYSCLK/BAUDRATE/16);// set Timer1 reload value for baudrate
TR1 = 1; // start Timer1
CKCON |= 0x10; // Timer1 uses SYSCLK as time base
PCON |= 0x80; // SMOD00 = 1 (disable baud rate
// divide-by-two)
TI = 1; // Indicate TX0 ready
}


Thanks in advance
raghav

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