CHAPTER 16 ASYNCHRONOUS SERIAL INTERFACE/3-WIRE SERIAL I/O
User’s Manual U12697EJ3V0UM
268
16.3 Operation
The asynchronous serial interface has the following two operation modes.
• Operation stop mode
• Asynchronous serial interface (UART) mode
16.3.1 Operation stop mode
Serial transfer cannot be performed in the operation stop mode, resulting in reduced power consumption.
Moreover, in the operation stop mode, pins can be used as regular ports.
(1) Register setting
Setting of the operation stop mode is done with asynchronous serial interface mode registers 1 and 2 (ASIM1,
ASIM2).
ASIM1 and ASIM2 are set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets ASIM1 and ASIM2 to 00H.
Address: 0FF70H, 0FF71H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
ASIMn
TXEn
RXEn
PSn1
PSn0
CLn
SLn
ISRMn
0
Note
TXEn
RXEn
Operation mode
RxD1/P20, RxD2/P70
TxD1/P21, TxD2/P71
pin function
pin function
0
0
Operation stop
Port function
Port function
0
1
UART mode
Serial function
Port function
(Receive only)
1
0
UART mode
Port function
Serial function
(Transmit only)
1
1
UART mode
Serial function
Serial function
(Transmit/Receive)
Note
Be sure to write “0” to bit 0.
Caution
Switch across to the operational mode after stopping serial sending and receiving opera-
tions.
Remark
n = 1, 2