
M0A21/M0A23 Series
May 06, 2022
Page
435
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
SOUT
( from UART TX )
IR_ SOUT
( encoder output )
IR_SIN
( decorder input )
SIN
( to UART RX )
0
0
1
0
1
1
1
0
0
1
1
1
Bit cycle width
3/ 16 bit width
STOP BIT
START BIT
IrDA
TX Timing
IrDA
RX Timing
0
1
0
0
1
0
1
0
0
START BIT
STOP BIT
3/ 16 bit width
1
Figure 6.11-16 IrDA TX/RX Timing Diagram
6.11.5.10 LIN Function Mode (Local Interconnection Network)
The UART Controller supports LIN function. Setting FUNCSEL (UART_FUNCSEL[2:0]) to
‘001’ to select
LIN mode operation. The UART Controller supports LIN break/delimiter generation and break/delimiter
detection in LIN master mode, and supports header detection and automatic resynchronization in LIN
Slave mode.
Structure of LIN Frame
According to the LIN protocol, all information transmitted is packed as frames; a frame consists of a
header (provided by the master task) and a response (provided by a slave task). The header (provided
by the master task) consists of a break field and a sync field followed by a frame identifier (frame ID).
The frame identifier uniquely defines the purpose of the frame. The slave task is appointed for providing
the response associated with the frame ID. The response consists of a data field and a checksum field.
Figure 6.11-17 is the structure of LIN Frame.
Data 1
Data 2
Data N
Check
Sum
Protected
Identifier
field
Header
Response
space
Response
Inter-
frame
space
Frame
Frame slot
Synch
field
Break
Field
Figure 6.11-17 Structure of LIN Frame
Structure of LIN Byte
In LIN mode, each byte field is initiated by a START bit with value 0 (dominant), followed by 8 data bits
and no parity bit, LSB is first and ended by 1 stop bit with value 1 (recessive) in accordance with the LIN
standard. The structure of Byte is shown in Figure 6.11-18.