514
Chapter 16
Asynchronous Serial Interface (UARTA)
Preliminary User’s Manual U17566EE1V2UM00
Table 16-4
UAnOPT0 register contents
Bit position
Bit name
Function
7
UAnSRF
SBF reception flag:
0: When the UAnCTL0.UAnPWR bit = UAnCTL0.UAnRXE bit = 0 are set.
Also upon normal end of SBF reception.
1: During SBF reception
•
SBF (Sync Brake Field) reception is judged during LIN communication.
•
The UAnSRF bit is held at 1 when an SBF reception error occurs, and then
SBF reception is started again.
6
UAnSRT
SBF reception trigger:
0: –
1: SBF reception trigger
•
This is the SBF reception trigger bit during LIN communication, and when
read, “0” is always read. For SBF reception, set the UAnSRT bit (to 1) to
enable SBF reception.
•
Set the UAnSRT bit after setting the UAnPWR bit = UAnRXE bit = 1.
5
UAnSTT
SBF transmission trigger:
0: –
1: SBF transmission trigger
a
•
This is the SBF transmission trigger bit during LIN communication, and when
read, “0” is always read.
•
Set the UAnSTT bit after setting the UAnPWR bit = UAnTXE bit = 1.
a)
Before starting the SBF transmission by UAnOPT0.UAnSTT = 1 make sure that no data transfer is ongoing,
that means check that UAnSTR.UAnTSF = 0.
4 to 2
UAnSBL[2:0]
SBF transmission length selection:
UAnSBL2
UAnSBL1
UAnSBL0 SBF transmission length
1
0
1
13-bit output (default value)
1
1
0
14-bit output
1
1
1
15-bit output
0
0
0
16-bit output
0
0
1
17-bit output
0
1
0
18-bit output
0
1
1
19-bit output
1
0
0
20-bit output
This register can be set when the UAnPWR bit = 0 or when the UAnTXE bit = 0.
1
UAnTDL
Transmit data level bit
0: Normal output of transfer data
1: Inverted output of transfer data
•
The output level of the TXDAn pin can be inverted using the UAnTDL bit.
•
This register can be set when the UAnPWR bit = 0 or when the UAnTXE bit =
0.
0
UAnRDL
Receive data level bit
0: Normal input of transfer data
1: Inverted input of transfer data
•
The output level of the RXDAn pin can be inverted using the UAnRDL bit.
•
This register can be set when the UAnPWR bit = 0 or the UAnRXE bit = 0.
electronic components distributor