Examples Of Lin-Uart Lin Communication Flow Chart (Operating Mode 3) - Fujitsu MB95630H Series Hardware Manual

8-bit microcontroller new 8fx
Hide thumbs Also See for MB95630H Series:
Table of Contents

Advertisement

MB95630H Series
14.6.8
Examples of LIN-UART LIN Communication Flow
Chart (Operating Mode 3)
This section shows examples of LIN-UART LIN communication flow charts.
■ LIN Master Device
Start
Initial setting:
Set to operating mode 3
Enable serial data output, set baud rate
Set synch break length
TXE = 1, TIE = 0, RXE = 1, RIE = 1
NO
Message?
YES
Wake up?
(0x80 reception)
RXE = 0
Enable synch break interrupts
Transmit synch break:
ECCR:LBR = 1
Transmit Synch field:
TDR = 0x55
LBD = 1
Synch break interrupts
Enable reception
LBD = 0
Disable synch break
interrupts
RDRF = 1
Receive interrupt
*1
Receive synch field
Set Identify field: TDR = ID
RDRF = 1
Receive interrupt
*1
Receive ID field
* 1: If an error occurs, proceed to process the error.
* 2: - If the FRE or ORE flag is set to "1", write "1" to the SCR:CRE bit to clear the error flag.
- If the ESCR:LBD bit is set to "1", execute the LIN-UART reset.
Note: Deal properly with any error detected in a process.
MN702-00009-1v0-E
Figure 14.6-18 LIN Master Flow Chart
(Reception)
NO
Receive data 1
YES
Receive data N
FUJITSU SEMICONDUCTOR LIMITED
14.6 Operations of LIN-UART and LIN-UART
Setting Procedure Example
(Transmission)
Data field
NO
YES
received?
RDRF = 1
Receive interrupt
*1
Set transmit data 1
TDR = Data 1
Enable transmit
RDRF = 1
interrupts
Receive interrupt
*1
Set transmit data N
TDR = Data N
Disable transmit
interrupts
Receive data 1
Read data 1
Receive data N
Read data N
NO
No error?
YES
CHAPTER 14 LIN-UART
TDRE = 1
Transmit interrupt
RDRF = 1
Receive interrupt
*1
RDRF = 1
Receive interrupt
*1
*2
Handle an error
241

Advertisement

Table of Contents
loading

Table of Contents