??? 11/05/04 19:33 Read: times |
#80511 - RE: interrupt 1 in 89s52 Responding to: ???'s previous message |
RCAP2H,RCAP2L Reload Value = 0FFh , 0C0h
Actual Baud Rate = 9600 Closest Standard Baud Rate = 9615.38 % Deviation = %0.16 but that's only in case i use Timer2 , my question is , can anybody here explain how should i use Timer2 to get the above results? 1) typical beginners mistake, you selected the crystal for the processor, not for the UART. 2) to use timer 2 it's bible time (see chapter 3) Erik here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/v...ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/v...WARE_1.pdf |