Chapter 12
Serial interface 0 and 1
Operation XII - 19
■ Clock Setup
Transfer clock is not necessary for UART communication itself but necessary for setup of data transmission/
reception timing in the serial interface. Select the timer to be used as a baud rate timer by the SISFCLK register.
■ Break Status Transmission Control Setup
The SCAnBRE flag of the SCnCTR register generates the break status. If SCAnBRE is set to “1” to select the
break transmission, all bits from start bits to stop bits transfer “0”.
■ Frame Setup
Figure: 12.3.6 shows the data format at UART communication.
Figure:12.3.6 UART Serial Interface Transmission/Reception Data Format
Transmission/reception data consists of start bit, character bit, parity bit and stop bit. Table: 12.3.5 shows its kinds
to be set.
Table:12.3.5 UART Serial Interface Transmission/Reception Data
The SCAnLN flag of the SCnCTR register is used to set character bit to 7 or 8 bits.
The SCAnS1-0 flags of the SCnCTR register are used to set stop bit to 1 or 2 bits.
1 bit judgement is set at reception regardless of setting.
Parity bit is used to detect wrong bits of transmission/reception data. Table: 12.3.6 shows kinds of parity bit. The
SCAnPTY2-0 flags of the SCnCTR register set parity bit.
Table:12.3.6 UART Serial Interface Parity Bit
Start bit 1 bit
Character bit 7,8 bits
Parity bit Fixed to 0, fixed to 1, odd, even, none
stop bit 1,2 bits
SCnCTR
Parity bit Description
SCAnPTY2 SCAnPTY1 SCAnPTY0
0 0 0 None Do not add parity bit
001
Setting prohibited010
011
1 0 0 Fixed at 0 Set parity bit to “0”
1 0 1 Fixed at 1 Set parity bit to “1”
1 1 0 Even parity
Control that the total of “1” of parity bit and character
bit should be even
1 1 1 Odd parity
Control that the total of “1” of parity bit and character
bit should be odd
Parity
bit
Stop
bit
Start
bit
Character bit
Frame