Data Format; Figure 19.2. Uart1 Timing Without Parity Or Extra Bit; Figure 19.3. Uart1 Timing With Parity; Figure 19.4. Uart1 Timing With Extra Bit - Silicon Laboratories C8051F341 Product Manual

Full speed usb flash mcu family
Table of Contents

Advertisement

19.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 19.2. Figure 19.2 shows the timing
for a UART1 transaction without parity or an extra bit enabled. Figure 19.3 shows the timing for a UART1
transaction with parity enabled (PE1 = 1). Figure 19.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 second stop bit is only an option for data lengths of 6, 7, or 8 bits.
MARK
START
BIT
SPACE
BIT TIMES

Figure 19.2. UART1 Timing Without Parity or Extra Bit

MARK
START
BIT
SPACE
BIT TIMES
MARK
START
BIT
SPACE
BIT TIMES
C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
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 19.3. UART1 Timing With Parity

D
D
0
1
N bits; N = 5, 6, 7, or 8

Figure 19.4. UART1 Timing With Extra Bit

Rev. 1.3
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
215

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C8051F341 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents