Fujitsu FR81S User Manual
CHAPTER 40: MULTI-FUNCTION SERIAL INTERFACE
7. Operation of LIN Interface (v2.1)
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : MULTI-FUNCTION SERIAL INTERFACE
FUJITSU SEMICONDUCTOR CONFIDENTIAL
316
Figure 7-74 Example of a Flowchart in LIN Communication Slave Mode
(Automatic baud rate can be adjusted (SACSR:AUTE=1), Using FIFO)
start
Initial setting:
Sets the operating mode to 3 and sets it
to slave operation
TXE=1,TIE=0,RXE=0,RIE=1
FE1=1,FE2=0,FSEL=0
AUTE=1,LBTE=1,SFDE
RXE=0
LBD=1
(LIN Break field reception)
LBD=0
SFD=1
(Synch Break reception)
RXE=1
SFD=0
RDRF=1
Reception interrupt
ID Field reception *1
Data Field
reception ?
FBYTE2 setting, FE2=1
RDRF=1
Reception Interrupt
N byte reception*1
N byte write to TDR
RDRF=1
Reception interrupt
Data 1 reception *1
RDRF=1
Reception interrupt
Data N reception *1
Error ?
Error handling*2
No(transmission)
Yes(reception)
Yes
Sleep mode ?
No
No
Yes
No
Wake –Up
reception ?
Wake-Up
transmission ?
Wake-Up code
transmission
Yes
No
*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.
Yes
MB91520 Series
MN705-00010-1v0-E
1629