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 
262 
 LIN checksum error detection interrupt and flag setting timing on the setting 
for calculating extended checksum 
When the extended checksum arithmetic operation is set (LAMCR:LCSTYP=1), on the side who sends the 
response (data and checksum), the checksum of the ID Field and transmitted data for set LIN data length 
(LAMCR:LDL) is calculated and transmitted automatically after final data is transmitted. 
On another side where the response (data and checksum) is received, the checksum of the received data for 
set LIN data length (LAMCR:LDL) is calculated. If the received checksum and the calculated value are 
different from each other, the LIN checksum error is detected and the flag is set (LAMESR;LCSER=1). 
At that time, the reception interrupt occurs if the reception interrupt is set to be enabled 
(LAMIER:LCSCIE=1). 
Figure 7-13 Setting timing of LIN checksum error detection flag (LAMESR:LCSER) 
1
st
 Byte
ST
SP
2
nd
 Byte
ST
SP
・・・
8
th
 Byte
ST
SP
Check Sum
ST
SP
ID Field
ST
SP
ID Field
Data Field
Check Sum Field
Range of standard checksum operation
Range of enhancing checksum operation
LIN bus
LAMESR:LCSER
The LIN checksum error is detected when differing from the value of Check 
Sum Field that the checksum operation result to receive data actually received. 
 
 
Note: 
When the error (LIN bus error, LIN ID error, LIN Sync Data error, and framing error) is detected in the data 
of the header and the response part, processing in the assist mode stops and the checksum operation is not 
executed, regardless of standard/extended checksum arithmetic operation. 
 
 
 
 
 
MB91520 Series
MN705-00010-1v0-E
1575