RL78/F13, F14 CHAPTER 17 LIN/UART MODULE (RLIN3)
R01UH0368EJ0210 Rev.2.10 1198
Dec 10, 2015
17.3.2 LIN Mode
LIN mode can operate in the following submodes: LIN master mode, LIN slave mode [auto baud rate], and LIN slave mode
[fixed baud rate].
In LIN master mode, the following operations can be performed: header transmission, response transmission, response
reception, wake-up transmission, wake-up reception, and error detection. In LIN reset mode, setting the LMD bits in the
LMDn register to 00b (LIN master mode) and the OM1 and OM0 bits in the LCUCn register to either 01b or 11b sets LIN
master mode, turning the OMM1 and OMM0 bits in the LMSTn register to either 01b to 11b.
In LIN slave mode [auto baud rate] and LIN slave mode [fixed baud rate], header reception, response transmission, response
reception, wake-up transmission, wake-up reception, and error detection can be performed.
The LIN slave mode [auto baud rate] allows automatic detection of the break field and the sync field, and sets a baud rate
based on the results of measurement of a sync field. Operation is possible with baud rates from 1 kbps to 20 kbps. Set the
LPRS[2:0] bits in the LWBRn register according to the target baud rate so that the frequency of the clock (prescaler clock)
obtained by dividing the LIN communication clock source frequency by the prescaler is the corresponding value from the
list.
[Target baud rate] [Frequency of prescaler clock]
1 kbps to 20 kbps: 4 MHz
Note
1 kbps to less than 2.4 kbps: 4 MHz
2.4 kbps to 20 kbps: 8 MHz to 12 MHz
Note Set the NSPB[3:0] bits in the LWBRn register to 0011b (4 sampling).
In LIN slave mode [fixed baud rate] allows automatic detection of the break field, the sync field, and the ID filed at a baud
rate that is set in advance by the baud rate generator.
In LIN reset mode, setting the LMD bits in the LMDn register to 10b (LIN slave mode [auto baud rate] and setting the OM1
and OM0 bit in the LCUCn register to 01b or 11b sets LIN slave mode [auto baud rate]; and setting the LMD bits in the LMDn
register to 11b (LIN slave mode [fixed baud rate]), and setting the OM1 and OM0 bits in the LCUCn register to 01b or 11b
sets LIN slave mode [fixed baud rate], turning the OMM1 and OMM0 bits in the LMSTn register to 01b or 11b.
When changing a submode to another submode within LIN mode, a transition to LIN reset mode should first be made and
change the LMD bits in the LMDn register.
The LIN mode provides the following two operation modes:
ï‚·ï€ LIN operation mode
ï‚·ï€ LIN wake-up mode