
CHAPTER 15 SERIAL INTERFACE UART2
272
User
’
s Manual U14260EJ3V1UD
15.3 Registers to Control Serial Interface UART2
Serial interface UART2 uses the following eight registers for control functions.
Asynchronous serial interface mode register 2 (ASIM2)
Asynchronous serial interface status register 2 (ASIS2)
Asynchronous serial interface transmit status register 2 (ASIF2)
Baud rate generator control register 2 (BRGC2)
Clock select register 2 (CKSEL2)
Transfer mode specification register 2 (TRMC2)
Port mode register 3 (PM3)
Port register 3 (P3)
(1) Asynchronous serial interface mode register 2 (ASIM2)
This is an 8-bit register that controls serial interface UART2
’
s serial transfer operations.
ASIM2 is set by a 1-bit or 8-bit memory manipulation instruction.
RESET input clears ASIM2 to 00H.
Figure 15-3. Format of Asynchronous Serial Interface Mode Register 2 (ASIM2) (1/2)
Address: FF90H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
ASIM2
POWER2
TXE2
RXE2
PS21
PS20
CL2
SL2
ISEM2
POWER2
Clock operation enable/stop
0
Stop clock operation. Power consumption decreases and latch in UART2 is
asynchronously reset (T
X
D2 pin is low).
1
Enable clock operation (T
X
D2 pin is high).
Note 1
TXE2
Note 2
Transmission enable/stop
0
Stop transmission (transmission circuit is synchronously reset).
1
Enable transmission.
RXE2
Note 3
Reception enable/stop
0
Stop reception (reception circuit is synchronously reset).
1
Enable reception.
Notes 1.
In the infrared data transfer (IrDA) mode, the TxD2 pin is at the low level.
2.
To transmit data with UART2, first specify the clock operation (set POWER2 to 1 and then TXE2 to
1), wait for the duration of 2 clocks
Note 4
, and then write the transmit data to transmit buffer register
2 (TXB2). To stop transmission by UART2, specify stopping transmission (TXE2 = 0), wait for the
duration of 2 clocks
Note 4
, and then stop the clock operation (POWER2 = 0).
3.
To receive data with UART2, first specify the clock operation (set POWER2 to 1 and then RXE2 to
1), wait for the duration of 2 clocks
Note 4
, and then start reception. To stop reception by UART2, specify
stopping reception (RXE2 = 0), wait for the duration of 2 clocks
Note 4
, and then stop the clock operation
(POWER2 = 0).
4.
The clock is the output clock of the 8-bit counter or the output clock of the baud rate generator.