Datasheet

RL78/L12 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0330EJ0200 Rev.2.00 512
Dec 13, 2013
Figure 12-99. Flowchart for LIN Reception
Status of LIN bus signal and operatio
n
of the hardware
Sync field
INTTM05
RxD0 pin
Channel 5
of TAU0
Pulse interval
measurement
Cumulative four
times
Starting LIN
communication
Generate INTP0?
No
Ye s
Edge detection
INTP0
RxD0 pin
Wakeup signal frame
Starting in low-level width
measurement mode for TM05
Wait for wakeup frame
signal
Note
The low-level width
of RxD0 is
measured using
TM05 and BF is
detected.
Generate INTTM05?
No
If the detected pulse
width is 11 bits or
more, it is judged as
BF.
INTTM05
RxD0 pin
Break field
Channel 5
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 TM05 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 SPS0, SDR00, and SDR01.
Set up the initial setting of UART0 according to
the LIN communication conditions.
Starting UART0 reception
(1
SS01)
Data reception
No
Yes
Yes
End of LIN
communication
Stop UART0 reception
(1
ST01)
Completed 4 times?
No
Yes
Completing all data
transmission?
Yes
Changing TM05 to pulse width
measurement
Receive the ID, data, and checksum fields (if the
ID matches).
Generate INTTM05?
No
Ye s
Change TM05 to low-level width measurement
to detect a break field.
Ignore the first INTTM05
because the first capture
value is incorrect.
Generate INTTM05?
No
Yes
Set up TM05 to measure the
interval between the falling edges.
Channel 5
Note Required in the sleep status only.