512
Chapter 16
Asynchronous Serial Interface (UARTA)
Preliminary User’s Manual U17566EE1V2UM00
Note
For details of parity, see
“Parity types and operations“ on page 530
.
(2)
UAnCTL1 - UARTAn control register 1
The UAnCTL1 register is an 8-bit register used to select the input clock for the
UARTAn.
For details, see
“UAnCTL1 - UARTAn control register 1“ on page 534
.
(3)
UAnCTL2 - UARTAn control register 2
The UAnCTL2 register is an 8-bit register used to control the baud rate for the
UARTAn.
For details, see
“UAnCTL2 - UARTAn control register 2“ on page 535
.
3, 2
UAnPS[1:0]
Parity selection
UAnPS1
UAnPS0
Parity selection during
transmission
reception
0
0
No parity output
Reception with no parity
0
1
0 parity output
Reception with 0 parity
1
0
Odd parity output
Odd parity check
1
1
Even parity output Even parity check
•
This register is rewritten only when the UAnPWR bit = 0 or the UAnTXE bit =
the UAnRXE bit = 0.
•
If “Reception with 0 parity” is selected during reception, a parity check is not
performed.
Therefore, since the UAnSTR.UAnPE bit is not set, no error interrupt is
output.
•
When transmission and reception are performed in the LIN format, clear the
UAnPS1 and UAnPS0 bits to 00.
1
UAnCL
Specification of data character length of 1 frame of transmit/receive data
0: 7 bits
1: 8 bits
This register can be rewritten only when the UAnPWR bit = 0 or the UAnTXE bit =
the UAnRXE bit = 0.
0
UAnSL
Specification of length of stop bit for transmit data
0: 1 bit
1: 2 bits
This register can be rewritten only when the UAnPWR bit = 0 or the UAnTXE bit =
the UAnRXE bit = 0.
Table 16-3
UAnCTL0 register contents (2/2)
Bit position
Bit name
Function
electronic components distributor