
R01UH0336EJ0102 Rev.1.02
Page 1214 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 22 Synchronous/Asynchronous Serial Interface H (UARTH)
(1)
URTHnCTL0 – UARTHn Control Register 0
This register controls the basic serial-transfer operations of the UARTHn.
Access
This register can be read/written in 8- or 1-bit units.
Address
<URTHn_base1> + 00
H
Initial value
00
H
This register is initialized by a reset from any source.
7
6
5
4
3
2
1
0
URTHn
PW
URTHn
TXE
URTHn
RXE
0
0
0
0
URTHn
SLDC
R/W
R/W
R/W
R
R
R
R
R/W
Table 22-8
URTHnCTL0 Register Contents
Bit Position
Bit Name
Function
7
URTHnPW
UARTHn enable
0: Disable UARTHn operation
1: Enable UARTHn operation
Changing this bit initializes all transmission and reception units.
6
URTHnTXE
Transmission operation enable
0: Disable transmission operation
1: Enable transmission operation
•
To start transmission, set URTHnPW to 1 and then set URTHnTXE to 1.
To stop transmission, clear URTHnTXE to 0 and then URTHnPW to 0.
Alternatively, clear URTHnPW and URTHnTXE simultaneously.
•
To initialize the transmission unit, clear URTHnTXE to 0, wait for 2 cycles of
the PRSCLK clock, and then set URTHnTXE to 1 again.
5
URTHnRXE
Reception operation enable
0: Disable reception operation
1: Enable reception operation
•
To enable reception, set URTHnPW to 1 and then set URTHnRXE to 1.
To disable reception, clear URTHnRXE to 0, or clear URTHnPW and
URTHnRXE simultaneously.
•
To initialize the reception unit, clear URTHnRXE to 0, wait for 2 cycles of the
PRSCLK clock, and then set URTHnRXE to 1 again.
Setting URTHnRXE to 1 enables reception after 2 cycles of the PRSCLK
clock have elapsed. 4 cycles of the base clock elapse from setting of
URTHnRXE to 1 until the detection of edges on the URTHnRXD pin is
enabled.
0
URTHnSLDC
Data consistency check enable/disable
0: Disable data consistency check
1: Enable data consistency check
This bit selects the handling of checking for data consistency errors in data for
transmission.
When this bit is set to 1, the transmitted and received data are compared. If the
two do not match, the URTHnSTR1.URTHnDCE flag is set to 1 and a status
interrupt request (URTHnTIS) is issued.
This bit is for access only when transmission is to be started. Consequently, if the
value of this bit is changed during processing for transmission, the processing for
transmission will continue with the same value as was set at the start of
processing.