RL78/F13, F14 CHAPTER 17 LIN/UART MODULE (RLIN3)
R01UH0368EJ0210 Rev.2.10 1206
Dec 10, 2015
(b) Response Transmission
Figure 17-11 shows the operation of the LIN/UART module (in LIN slave mode) in response transmission. Table
17-11 provides processing in response transmission.
Figure 17-11. Operation in Response Transmission
Table 17-11. Processing in Response Transmission
Step Software processing LIN/UART module processing
(1)
ï‚·ï€ Sets the LDFCn register.
ï‚·ï€ Sets the LDBnm register.
ï‚·ï€ Sets the RTS bit in the LTRCn register to
1 (response transmission/reception
started).
ï‚· Waits for the setting by software of the RTS bit or the LNRR bit in the LTRCn
register.
ï‚· Sends a response space after the RTS bit in the LTRCn register is set to 1.
(2) Waits for an interrupt request. Transmits the data 1.
(3) Transmits the inter-byte space.
(4)
ï‚·ï€ Transmits the data 2.
ï‚·ï€ Transmits an inter-byte space
ï‚·ï€ Transmits the data 3.
ï‚·ï€ Transmits an inter-byte space
(Repeats the transmission of inter-byte spaces as many times as the data
length specified in bits RFDL[3:0] in the LDFCn register, and stops the
transmission when the BER bit in the LESTn register is 1 (bit error
detected). If an error occurs, the checksum transmission in item (5) is not
performed).
:
(5) Transmits the checksum.
(6)
ï‚·ï€ Sets a successful frame/wake-up transmission flag or an error flag.
ï‚·ï€ Sets the RTS bit in the LTRCn register to 0 (response
transmission/reception stopped)
(7)
ï‚·ï€ Processing after communication
Checks the LSTn register and clears
flags.
ï‚·ï€ Completes the response transmission process.
ï‚·ï€ Waits for a new break.
The LIN/UART module can receive a break field during the transmission or reception of a frame. Here, a reception status
interrupt might be generated on the detection of a framing error, bit error, etc, at the position of the stop bit of the frame
preceding break field reception.
For information about error detection, refer to 17.4.6 Error Status.
Interrupt
Header
ID +
parity
Response
Data 1
Data field
Data 2
Data field
Inter-byte space
Checksum
Checksum
(1) (3)
(4)
(2) (6) (7)(5)
Inter-frame space
Response space