Fujitsu FR81S User Manual
CHAPTER 40: MULTI-FUNCTION SERIAL INTERFACE
4. Registers
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : MULTI-FUNCTION SERIAL INTERFACE
FUJITSU SEMICONDUCTOR CONFIDENTIAL
103
4.4.12.
LIN Assist Mode Control Register: LAMCR
LIN assist mode control register (LAMCR) enables LIN automatic header processing, enables LIN ID
register use, selects LIN checksum type, and clears TDR and sets LIN data length in LIN assist mode.
LAMCRn(n=0 to 11) : Address Base addr + 11
H
(Access: Byte, Half-word,
Word)
7
6
5
4
3
2
1
0
bit
LDL3
LDL2
LDL1
LDL0 LTDRCL LCSTYP LIDEN LAMEN
0
0
0
0
0
0
0
0
Initial value
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Attribute
[bit7 to bit4] LDL3, LDL2, LDL1, LDL0: LIN data length setting bit
These bits set 0 to 8 bytes in the LIN response data length.
In transmission operation, after the data of this data length is transmitted, a checksum is generated and
transmitted.
In reception operation, the checksum of the data, received after the previously received data with this data
length, is checked.
LDL3
LDL2
LDL1
LDL0
LIN data length setting bits
0
0
0
0
0 byte length
0
0
0
1
1 byte length
0
0
1
0
2 bytes length
0
0
1
1
3 bytes length
0
1
0
0
4 bytes length
0
1
0
1
5 bytes length
0
1
1
0
6 bytes length
0
1
1
1
7 bytes length
1
0
0
0
8 bytes length
Notes:
⋅
Function of this register is effective only in the LIN assist mode (LAMCR:LAMEN="1").
⋅
Be sure to set these settings before transmitting/receiving the response part of the data.
⋅
Be sure not to set "1001" to "1111" to the LDL3-0 bits.
⋅
In a response transmission node, when the LIN data length is set to 0 byte length (LDL3-0="0000"),
write the dummy value (the value written is "don't care") to the TDR register in order to transmit a
checksum. At this time, the TDR setting value does not influence the checksum arithmetic operation.
⋅
When the LIN data length is set to 0 bytes length (LDL3-0="0000"), value of the checksum is as follows.
⋅
When the standard checksum is set (LCSTYP=0), the value of the checksum is 0xFF.
⋅
When the extended checksum is set (LCSTYP=1), the value of the checksum is a reversing value of
the ID Field.
MB91520 Series
MN705-00010-1v0-E
1416