Chapter 13
Serial Interface 2
Operation XIII - 25
13.3.4 UART Serial Interface
Serial interface 2 is capable of duplex UART communication. Table: 13.3.8 shows UART serial interface func-
tions.
Table:13.3.8 UART Serial Interface Functions
■ Activation Factor for Communication
At transmission, if data is set in the transmission data buffer SC2TB, a start condition is generated to start transfer.
At reception, reception is started by receiving a start bit. In reception, when the data length of “L” for input data
is equal to or longer than 0.5 bit, that is recognized as a start bit.
■ Transmission
Data transmission is automatically started when data is set in the transmission data buffer SC2TB. When trans-
mission is completed, the serial 1 transmission interrupt SC2TIRQ is generated.
■ Reception
When a start bit is recognized, reception is started after the transfer bit counter that counts transfer bit is cleared.
The serial interface 2 interrupt SC2RIRQ is generated when the reception is completed.
■ Duplex Communication
In duplex communication, transmission and reception can be performed independently at the same time. In this
case, the frame mode and parity bit polarity of data on transmission/reception must be the same.
■ Transmission Data Buffer
Refer to: XIII-11
■ Reception Data Buffer
Refer to: XIII-12
Communication style UART (duplex)
Interrupt SC2TIRQ (transmission), SC2RIRQ (reception)
Pin
SBO2 (I/O)
SBI2 (input)
First transfer bit specification MSB/LSB first
Parity bit selection O
Parity bit control
0 parity
1 parity
Even parity
Odd parity
Frame selection
7 data bits +1STOP
7 data bits +2STOP
8 data bits +1STOP
8 data bits+2STOP
Continuous operation O
Maximum transfer rate
300 kbps
(standard 300 bps to 38.4 kbps)
(with baud rate timer)