RL78/G1A CHAPTER 12 SERIAL ARRAY UNIT
R01UH0305EJ0200 Rev.2.00 537
Jul 04, 2013
Figure 12-98. Flowchart for LIN Transmission
Starting LIN
communication
Transmitting wakeup signal frame
(
80H → TxD2
)
UART2 stop
(1 → ST10 bit)
End of LIN
communication
Transmitting
s
y
nc field
Operation of the hardware (reference)
Ye s
TSF10 = 0?
No
Transmitting wakeup
signal frame
Note
Waiting for completion
of transmission
8 bits TxD2
Wakeup signal frame generation
Transmit data
Changing UART2 baud rate
(
zz → SDR[15:9]
)
Changing baud rate
for BF
UART2 restart
(1 → SS10 bit)
BF transmission
00 → TxD2
Ye s
TSF10 = 0?
No
Waiting for
completion of BF
transmission
13-bit length TxD2
BF generation
Transm it data
UART2 stop
(
1 → ST10 bit
)
Changing UART2 baud rate
(xx → SDR[15:9])
Return the baud rate
UART2 restart
(1 → SS10 bit)
55H
TxD2
Sync field data generation
Waiting for completion of transmission (transmission
completed to the LIN bus)
Transmitting ID to
checksum
Transmitting sync field
55H → TxD2
Ye s
TSF10 = 0?
No
Data → TxD2
Ye s
BFF10 = 0?
No
Ye s
BFF10 = 0?
No
Ye s
Completing all data
transmission?
No
Waiting for buffer
em
p
t
y
Waiting for buffer empty
Waiting for transmission ID to checksum
Note When LIN-bus start from sleep status only
Remark Default setting of the UART is complete, and the flow from the transmission enable status.