C504
Serial Interface (USART)
The serial port is full duplex and can operate in four modes (one synchronous mode,
three asynchronous modes) as illustrated in Table 6. The possible baud rates can be
calculated using the formulas given in Table 6.
Table 6
USART Operating Modes
Mode
SCON Baud Rate
Description
SM0 SM1
0
0
0
fOSC/12
Serial data enters and exits through
R×D. T×D outputs the shift clock. 8-bit
are transmitted/received (LSB first)
1
0
1
Timer 1/2 overflow rate 8-bit UART
10 bits are transmitted (through T×D)
or received (R×D)
2
1
0
fOSC/32 or fOSC/64
9-bit UART
11 bits are transmitted (T×D) or
received (R×D)
3
1
1
Timer 1/2 overflow rate 9-bit UART
Like mode 2 except the variable baud
rate
Timer 2
Overflow
Timer 1
Overflow
Phase 2
CLK
(=f OSC /2)
SM0 / SM1
Mode 1, 3
Mode 2
PCON.7
(SMOD)
2
0
1
T2CON
(RCLK, TCLK)
Baud
0
Rate
Clock
1
MCB02414
Figure 13 Baud Rate Generation for the Serial Interface
Data Sheet
26
2000-05