Table 32. Baud Rate Selection Table UART
TCLK
(T2CON)
RCLK
(T2CON)
TBCK
(BDRCON)
RBCK
(BDRCON)
0
0
0
0
1
0
0
0
0
1
0
0
1
1
0
0
X
0
1
0
X
1
1
0
0
X
0
1
1
X
0
1
X
X
1
1
Clock Source Clock Source
UART Tx
UART Rx
Timer 1
Timer 1
Timer 2
Timer 1
Timer 1
Timer 2
Timer 2
Timer 2
INT_BRG
Timer 1
INT_BRG
Timer 2
Timer 1
INT_BRG
Timer 2
INT_BRG
INT_BRG
INT_BRG
Internal Baud Rate Generator
(BRG)
When the internal Baud Rate Generator is used, the Baud Rates are determined by the
BRG overflow depending on the BRL reload value, the value of SPD bit (Speed Mode)
in BDRCON register and the value of the SMOD1 bit in PCON register.
Figure 20. Internal Baud Rate
CLK PERIPH
BRR
Auto Reload Counter
/2
/6
0
1
Overflow
BRG
0
INT_BRG
1
SPD
BRL
SMOD1
• The baud rate for UART is token by formula:
Baud_Rate =
(BRL) = 256 -
2SMOD1 x FCLK PERIPH
2 x 2 x 6(1-SPD) x 16 x [256 - (BRL)]
2SMOD1 x FCLK PERIPH
2 x 2 x 6(1-SPD) x 16 x Baud_Rate
46 AT89C51RB2/RC2
4180B–8051–04/03