Chapter 13
Serial Interface 2
Operation XIII - 27
■ Setting Frame Mode and Parity Check
Figure: 13.3.17 shows the data format at UART communication.
Figure:13.3.17 UART Serial Interface Transmission/Reception Data Format
Transmission/reception data contain start bit, character bit, parity bit, and stop bit. Table: 13.3.9 shows the types
to be set.
Table:13.3.9 Types of UART Serial Interface Transmission/Reception Data
The SC2FM1-0 flags of the SC2CTR2 register is used to specify a frame mode. Table: 13.3.10 shows available
frame mode types. When the SC2CMD flag of the SC2CTR1 register is set to “1” and UART communication is
selected. the transfer bit count in the SC2LMG2-0 flags of the SC2CTR0 register becomes invalid.
Table:13.3.10 Types of UART Serial Interface Transmission/Reception Data
Parity bit is used to detect bit errors in transmission/reception data. Table: 13.3.11 shows parity bit types. The
SC2NPE and the SC2PM1-0 flags of the SC2CTR2 register are used to specify parity bit.
Table:13.3.11 Parity Bit Types of UART Serial Interface
Start bit 1 bit
Character bit 7,8 bits
Parity bit Fixed to 0, fixed to 1, even, odd, none
Stop bit 1,2 bits
SC2CTR2 register
Frame mode type
SC2FM1 SC2FM0
0 0 7 character bits + 1 stop bit
0 1 7 character bits + 2 stop bit
1 0 8 character bits + 1 stop bit
1 1 8 character bits + 2 stop bit
SC2CTR2
Parity bit type Description
SC2NPE SC2PM1 SC2PM0
0 0 0 Fixed to 0 Parity bit is set to “0”.
0 0 1 Fixed to 1 Parity bit is set to “1”.
0 1 0 Odd parity
Control that the total of “1” of character bit and
parity bit should be odd
011Even parity
Control that the total of “1” of character bit and
parity bit should be even
1 - - None No parity bit is added.
Parity
bit
Stop
bit
Start
bit
Character bit
Frame