Chapter 13
Serial Interface
Full-duplex UART Communication XIII - 47
Setup of Data Frame and Parity Bit
Figure:13.4.1 shows data format of UART communication.
Figure:13.4.1 Data Format in UART Communication
Data frame consists of following types of bit that are shown in Table:13.4.1.
Set character and stop bits with SCnMD2.SCnFM1-0.
Table:13.4.1 Data Types of Full-duplex UART Communication
Table:13.4.2 shows the types of parity bit.
Set the parity bit with SCnMD2.SCnNPE and SCnMD2.SCnPM1-0.
Table:13.4.2 Parity Bit of UART Serial Interface
Start bit 1 bit
Character bit 7 to 8 bits
Parity bit fixed to 0, fixed to 1, odd, even, none
Stop bit 1to 2 bits
SCnMD2
Transmission Reception
SCnNPE SCnPM1 SCnPM0
0 0 0 Fixed to "0" Confirm parity bit is "0".
0 0 1 Fixed to "1" Confirm parity bit is "1".
010
For the total number of "1" of
character bit; odd: "0", even: "1"
Confirm the total number of "1" of
character and parity bits is odd.
011
For the total number of "1" of
character bit; odd: "1", even: "0"
Confirm the total number of "1" of
character and parity bits is even.
1 - - Parity bit is not added Parity bit is not checked.
Parity
bit
Stop
bit
Start
bit
Character bit
Frame