Fujitsu FR81S User Manual

Page of 2342
CHAPTER 40: MULTI-FUNCTION SERIAL INTERFACE 
 
 
7. Operation of LIN Interface (v2.1) 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : MULTI-FUNCTION SERIAL INTERFACE 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
313 
7.6.1. Manual mode 
The example of the flow chart of the master side and the slave side in the manual mode is shown. 
 Flowchart Example 
 Master operation 
Figure 7-71 Example of a Flowchart in LIN Communication Master Mode (without 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 Breaklength and Break Delimiter length 
TXE=1,TIE=0,RXE=1,RIE=1 
Message? 
Yes 
No 
Wake up ? 
Yes 
No 
LIN Break field transmission:LBR=1 
LIN Sync Field transmission:TDR=0x55 
 
RDRF=1 
Reception interrupt 
LIN Sync Field reception*1 
ID Field transmission:TDR=ID 
RDRF=1 
receptioninterrupt 
ID Filed reception*1 
Data Filed reception ? 
Data 1 reception*1:RDR 
Yes(reception) 
RDRF=1 
Reception interrupt 
RDRF=1 
Reception interrupt 
Data N reception*1:RDR 
No(transmission) 
Transmission Data 1 set:TDR=Data1 
TIE=1 
TDRE=1 
Transmission interrupt 
Transmission Data 2 set:TDR=Data2 
RDRF=1 
Reception interrupt 
Data 1 reception*1:RDR 
Transmission Data N set:TDR=Data N 
TIE=0 
TDRE=1 
Transmission interrupt 
Data(N-1)reception*1:RDR 
RDRF=1 
Reception interrupt 
RDRF=1 
Reception interrupt 
Data N reception*1:RDR 
Error? 
Error handling*2 
No 
Yes 
*1:If an error occurs, handle the eror. 
*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. 
 
 
 
 
MB91520 Series
MN705-00010-1v0-E
1626