English
Language : 

C8051F02X Datasheet, PDF (218/272 Pages) Silicon Laboratories – 8K ISP FLASH MCU Family
C8051F020/1/2/3
21.1.3. Mode 2: 9-Bit UART, Fixed Baud Rate
Mode 2 provides asynchronous, full-duplex communication using a total of eleven bits per data byte: a start bit, 8 data
bits (LSB first), a programmable ninth data bit, and a stop bit. Mode 2 supports multiprocessor communications and
hardware address recognition (see Section “21.2. Multiprocessor Communications” on page 220). On transmit,
the ninth data bit is determined by the value in TB81 (SCON1.3). It can be assigned the value of the parity flag P in
the PSW or used in multiprocessor communications. On receive, the ninth data bit goes into RB81 (SCON1.2) and
the stop bit is ignored.
Data transmission begins when an instruction writes a data byte to the SBUF1 register. The TI1 Transmit Interrupt
Flag (SCON1.1) is set at the end of the transmission (the beginning of the stop-bit time). Data reception can begin
any time after the REN1 Receive Enable bit (SCON1.4) is set to logic 1. After the stop bit is received, the data byte
will be loaded into the SBUF1 receive register if RI1 is logic 0 and one of the following requirements are met:
1. SM21 is logic 0
2. SM21 is logic 1, the received 9th bit is logic 1, and the received address matches the UART1 address as
described in Section 21.2.
If the above conditions are satisfied, the eight bits of data are stored in SBUF1, the ninth bit is stored in RB81 and the
RI1 flag is set. If these conditions are not met, SBUF1 and RB81 will not be loaded and the RI1 flag will not be set.
An interrupt will occur if enabled when either TI1 or RI1 is set.
The baud rate in Mode 2 is either SYSCLK / 32 or SYSCLK / 64, depending on the value of the SMOD1 bit in regis-
ter PCON.
Equation 21.3. Mode 2 Baud Rate
BaudRate
=
2SMOD1
×


S----Y----S-6--C-4---L----K--
MARK
SPACE
BIT TIMES
START
BIT
BIT SAMPLING
Figure 21.5. UART Modes 2 and 3 Timing Diagram
D0
D1
D2
D3
D4
D5
D6
D7
D8
STOP
BIT
218
Rev. 1.4