26.2. Data Format
UART1 has a number of available options for data formatting. Data transfers begin with a start bit (logic
low), followed by the data bits (sent LSB-first), a parity or extra bit (if selected), and end with one or two
stop bits (logic high). The data length is variable between 5 and 8 bits. A parity bit can be appended to the
data, and automatically generated and detected by hardware for even, odd, mark, or space parity. The stop
bit length is selectable between short (1 bit time) and long (1.5 or 2 bit times), and a multi-processor com-
munication mode is available for implementing networked UART buses. All of the data formatting options
can be configured using the SMOD1 register, shown in SFR Definition . Figure 26.2 shows the timing for a
UART1 transaction without parity or an extra bit enabled. Figure 26.3 shows the timing for a UART1 trans-
action with parity enabled (PE1 = 1). Figure 26.4 is an example of a UART1 transaction when the extra bit
is enabled (XBE1 = 1). Note that the extra bit feature is not available when parity is enabled, and the sec-
ond stop bit is only an option for data lengths of 6, 7, or 8 bits.
MARK
START
BIT
SPACE
BIT TIMES
Figure 26.2. UART1 Timing Without Parity or Extra Bit
MARK
START
BIT
SPACE
BIT TIMES
MARK
START
BIT
SPACE
BIT TIMES
C8051T620/1/6/7 & C8051T320/1/2/3
D
D
0
1
N bits; N = 5, 6, 7, or 8
D
D
0
1
N bits; N = 5, 6, 7, or 8
Figure 26.3. UART1 Timing With Parity
D
D
0
1
N bits; N = 5, 6, 7, or 8
Figure 26.4. UART1 Timing With Extra Bit
Rev. 1.2
STOP
D
D
N-2
N-1
BIT 1
D
D
PARITY
N-2
N-1
D
D
EXTRA
N-2
N-1
STOP
BIT 2
Optional
STOP
STOP
BIT 1
BIT 2
Optional
STOP
STOP
BIT 1
BIT 2
Optional
225
Need help?
Do you have a question about the C8051T620 and is the answer not in the manual?
Questions and answers