Fujitsu FR81S Manual Do Utilizador
CHAPTER 40: MULTI-FUNCTION SERIAL INTERFACE
7. Operation of LIN Interface (v2.1)
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : MULTI-FUNCTION SERIAL INTERFACE
FUJITSU SEMICONDUCTOR CONFIDENTIAL
314
Figure 7-72 Example of a Flowchart in LIN Communication Master Mode (Using FIFO)
start
Initial setting:
Sets the operating mode to 3 and sets it to master operation.
Enables serial data output and sets baud rate.
Sets LIN Break length and Break Delimiter length
TXE=1,TIE=0,RXE=1,RIE=1
FSEL=0, FE1=1,FE2=0, FTIE=0
Message?
Yes
No
Wake up ?
Yes
No
LIN Break field transmission :LBR=1
N byte writing to TDR
RDRF=1
Reception interrupt
Data 1 reception *1
Error ?
Error handling *2
No
Yes
*1:If an error occurs, handle the error.
*2:when the FRE and ORE bits are “1”, write “1” to the
SSR:REC bit and clear the error flag.
(Note)
Detect and properly handle errors in each process.
Data M reception *1
Data Field reception ?
Yes(reception)
FBYTE2 setting,FE2=1
LIN Sync Field reception *1
RDRF=1
Reception interrupt
ID Field reception *1
RDRF=1
Reception interrupt
M byte reception *1
RDRF=1
Reception interrupt
RDRF=1
Reception interrupt
RDRF=1
Reception interrupt
No(transmission)
MB91520 Series
MN705-00010-1v0-E
1627