657
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Figure 23-18 IrDASIRENDEC-Block diagram
Figure 23-19 IrDA data Modulation (3/16)-normal mode
23.4.13
LIN mode
USART supports the ability of a LIN(Local interconnection Network) master to send a synchronization break and
the ability of a LIN slave to detect a break. LIN mode can be enabled by configuring the USART_CTRL2.LINMEN
bit.
Note: When using LIN mode, USART_CTRL2.STPB[1:0], USART_CTRL2.CLKEN, USART_CTRL3.SCMEN,
USART_CTRL3.HDMEN, USART_CTRL3. IRDAMEN, these bits should be kept clear.
LIN transmitting
When LIN is sent, the length of the data bits sent can only be 8 bits. By setting USART_CTRL1.SDBRK, a 13-bit '0'
will be sent as the break symbol, and insert a stop bit.
LIN receiving
Whether the bus is idle or during the transmission of a data frame, as long as the break frame appears, it can be
Transmit
Encoder
Receive
Decoder
NORMAL
USART
MODE
IRDAMEN
= 0 or 1
RX
TX
TX pin
RX pin
0
1
1
0
1
0
Start
bit
Stop
bit
TX pin
frame
TX normal
frame
RX normal
frame
RX pin
frame
0
0
0
1
1
0
1
0
Start
bit
Stop
bit
0
0
0
1
1
0
3/16