Renesas rl78 사용자 설명서
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 s ignal frame
(80H
→ TxD2)
UART2 stop
(1
→ ST10 bit)
End of LIN
communication
Transmitting
s ync field
s ync field
Operation of the hardware (referenc e)
Yes
TSF10 = 0?
No
Transmitting wakeup
signal frame
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
for BF
UART2 restart
(1
→ SS10 bit)
BF transmission
00
→ TxD2
Yes
TSF10 = 0?
No
Waiting for
c ompletion of BF
transmission
transmission
13-bit length
TxD2
BF generation
Transmit 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)
completed to the LIN bus)
Trans mitting ID to
checksum
checksum
Transmitting sync field
55H
→ TxD2
Yes
TSF10 = 0?
No
Data
→ TxD2
Yes
BFF10 = 0?
No
Yes
BFF10 = 0?
No
Yes
Completing all data
transmission?
No
Waiting for buffer
empty
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.