
352
CHAPTER 16
SERIAL INTERFACE UART0 (
PD178076, 178078, AND 178F098 ONLY)
User’s Manual U12790EJ2V0UD
Figure 16-3. Format of Asynchronous Serial Interface Mode Register 0 (ASIM0)
TXE0
RXE0
Operating mode
Function of RXD0/P74 pin
Function of TXD0/P75 pin
0
Operation stop
Port function (P74)
Port function (P75)
0
1
UART mode (reception only)
Serial function (RXD0)
1
0
UART mode (transmission only)
Port function (P74)
Serial function (TXD0)
1
UART mode
Serial function (RXD0)
(transmission/reception)
PS01
PS00
Specification of parity bit
0
No parity
0
1
0 parity always appended during transmission.
Parity not checked during reception (parity error does not occur).
1
0
Odd parity
1
Even parity
CL0
Specification of character length
0
7 bits
1
8 bits
SL0
Specification of stop bit length of transmit data
0
1 bit
1
2 bits
ISRM0
Control of reception completion interrupt in case of error
0
Reception completion interrupt request generated in case of error
1
Reception completion interrupt request not generated in case of error
Note
Be sure to reset bit 0 of ASIM0 to 0.
Cautions 1. Before changing the operation mode, stop the serial transmission/reception operation.
2. Set port mode register 7 (PM7) and the output latch of port 7 (P7) as follows in the UART
mode.
Reset the output latch to 0.
During reception
Set the P74/RXD0 pin to the input mode (PM74 = 1).
During transmission
Set the P75/TXD0 pin to the output mode (PM75 = 0, P75 = 0).
During transmission/reception
Set P74 to the input mode and P75 to the output mode.
R/W
Address
FF5AH
After reset
00H
Symbol
ASIM0
<7>
TXE0
<6>
RXE0
5
PS01
4
PS00
3
CL0
2
SL0
1
ISRM0
0
Note