Control Registers - NEC V850E/RS1 User Manual

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

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:
Symbol
UAnCTL0 UAnPWR UAnTXE UAnRXE UAnDIR UAnPS1 UAnPS0 UAnCL UAnSL
Remark:
UAnPWR
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
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
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.
Downloaded from
Elcodis.com
electronic components distributor
Chapter 12 Asynchronous Serial Interface A (UARTA)
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)
Address: UA0CTL0: FFFFFA00H, UA1CTL0: FFFFFA10H
7
6
5
n = 0 to 1
0
Disable clock operation (asynchronously reset UARTAn).
1
Enable clock operation.
0
Stop transmission operation.
1
Enable transmission operation.
0
Stop reception operation.
1
Enable reception operation.
User's Manual U16702EE3V2UD00
4
3
2
1
Control of operation of UARTAn
Transmission operation enable
Reception operation enable
0
Address
R/W After Reset
R/W
10H
407

Advertisement

Table of Contents
loading

Table of Contents