
407
Chapter 12
Asynchronous Serial Interface A (UARTA)
User’s Manual U16702EE3V2UD00
12.3 Control
Registers
(1)
UARTAn control register 0 (UAnCTL0)
The UAnCTL0 register is an 8-bit register that controls the serial transfer operation of UARTAn.
This register can be read or written in 8-bit or 1-bit units.
Reset input sets this register to 10H.
Caution:
Set the UAnPWR bit to 1 and UAnRXE bit to 1 while a high level is being input to the
RXDAn pin (when the UAnRDL bit of the UAnOP0 register is 0). If the UAnPWR and
UAnRXE bits are set to 1 while a low level is being input to the RXDAn pin, reception
is started.
Figure 12-2:
UARTAn Control Register 0 (UAnCTL0) Format (1/2)
Remark:
n = 0 to 1
Address: UA0CTL0: FFFFFA00H, UA1CTL0: FFFFFA10H
Symbol
7
6
5
4
3
2
1
0
Address
R/W After Reset
UAnCTL0 UAnPWR UAnTXE UAnRXE UAnDIR UAnPS1 UAnPS0 UAnCL UAnSL
R/W
10H
UAnPWR
Control of operation of UARTAn
0
Disable clock operation (asynchronously reset UARTAn).
1
Enable clock operation.
The UAnPWR bit controls the operating clock and asynchronously resets UARTAn. When this bit is cleared to 0,
the output of the TXDAn pin is fixed to the high level for UAnTDL=0 or low level for UAnTDL=1.
UAnTXE
Transmission operation enable
0
Stop transmission operation.
1
Enable transmission operation.
When the UAnTXE bit is cleared to 0, the output of the TXDAn pin is fixed to the high level for UAnTDL=0 or low
level for UAnTDL=1.
This bit is synchronized with the operating clock. When the transmission unit is initialized, therefore, set the
UAnTXE bit from 0 to 1. The transmission operation will be enabled two clocks later.
A value written to the UAnTXE bit is ignored when the UAnPWR bit = 0.
UAnRXE
Reception operation enable
0
Stop reception operation.
1
Enable reception operation.
When the UAnRXE bit is cleared to 0, the reception operation is stopped. Consequently, even if specified data is
transferred, the reception complete interrupt is not output, and the UAnRX register is not updated.
The UAnRXE bit is synchronized with the operating clock. When the reception unit is initialized, therefore, set the
UAnRXE bit from 0 to 1. The reception operation will be enabled two clocks later.
A value written to the UAnRXE bit is ignored when the UAnPWR bit = 0.
electronic components distributor