RL78/F13, F14 CHAPTER 15 SERIAL ARRAY UNIT
R01UH0368EJ0210 Rev.2.10 987
Dec 10, 2015
Figure 15-141. Flowchart for LIN Reception
Note Required in the sleep status only.
Caution For the UART reception, set the RXEmn bit of SCRmn register to 1, and then be sure to set SSmn
to 1 after 4 or more f
MCK clocks have elapsed.
Status of LIN bus signal and
operation
of the hardware
Sync field
INTTM07
RxD0 pin
Channel 7
of TAU0
Pulse interval
measurement
Cumulative four
times
Starting LIN
communication
Generate INTP0?
No
Yes
Edge detection
INTP0
RxD0 pin
Wakeup signal frame
Starting in low-level width
measurement mode for TM07
Wait for wakeup frame
signal
Note
The low-level width
of RxD0 is
measured using
TM07 and BF is
detected.
Generate INTTM07?
No
If the detected pulse
width is 11 bits or
more, it is judged as
BF.
INTTM07
RxD0pin
Break field
Channel 7
of TAU0
Pulse width
measurement
11 bit lengths or more?
No
Capture value cumulative
Calculate the baud rate
Measure the intervals
between five falling
edges of SF, and
accumulate the four
captured values.
UART0 default setting
Changing TM07 to low
level
width measurement
Divide the accumulated value by 8 to obtain the bit
width. Use this value to determine the setting values
of SPS1, SDR10, and SDR11.
L
Set up the initial setting of UART0according to
the LIN communication conditions.
Starting UART0 reception
(1
→
SS01)
Data reception
No
Ye s
Yes
End of LIN
communication
Stop UART0 reception
(1
→
ST01)
Completed 4 times?
No
Yes
Completing all data
transmission?
Ye s
Changing TM07 to pulse width
measurement
Receive the ID, data, and checksum fields (if the
ID matches).
Generate INTTM07?
No
Ye s
Change TM07 to low-level width measurement
to detect a Sync break field.
Ignore the first INTTM07
because the first capture
value is incorrect.
Generate INTTM07?
No
Yes
Set up TM07 to measure the
interval between the falling edges.
Channel 7