222
CHAPTER 13 SERIAL INTERFACE (UART0)
Preliminary User’s Manual U16035EJ1V0UM
Address: FFA0H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
ASIM0
TXE0
RXE0
PS01
PS00
CL0
SL0
ISRM0
IRDAM0
TXE0
RXE0
Operation mode
RxD0/P23 pin function
TxD0/P24 pin function
0
0
Operation stop
Port function (P23)
Port function (P24)
0
1
UART mode
Serial function (RxD0)
(receive only)
1
0
UART mode
Port function (P23)
Serial function (TxD0)
(transmit only)
1
1
UART mode
Serial function (RxD0)
(transmit and receive)
PS01
PS00
Parity bit specification
0
0
No parity
0
1
Zero parity always added during transmission
No parity detection during reception (parity errors do not occur)
1
0
Odd parity
1
1
Even parity
CL0
Character length specification
0
7 bits
1
8 bits
SL0
Stop bit length specification for transmit data
0
1 bit
1
2 bits
ISRM0
Receive completion interrupt control when error occurs
0
Receive completion interrupt request is issued when an error occurs
1
Receive completion interrupt request is not issued when an error occurs
IRDAM0
Operation specified for infrared data transfer mode
Note 1
0
UART (transmit/receive) mode
1
Infrared data transfer (transmit/receive) mode
Note 2
Notes 1.
The UART/infrared data transfer mode specification is controlled by TXE0 and RXE0.
2.
When using infrared data transfer mode, be sure to set the baud rate generator control register
0 (BRGC0) to 10H.
Caution
Do not switch the operation mode until the current serial transmit/receive operation has
stopped.