ST7FMC1K2B3 STMICROELECTRONICS [STMicroelectronics], ST7FMC1K2B3 Datasheet - Page 136

no-image

ST7FMC1K2B3

Manufacturer Part Number
ST7FMC1K2B3
Description
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
ST7MC1xx/ST7MC2xx
LINSCI™ SERIAL COMMUNICATION INTERFACE (LIN Mode) (cont’d)
LIN HEADER LENGTH REGISTER (LHLR)
Read Only
Reset Value: 0000 0000 (00h).
Note: In LIN Slave mode when LASE = 1 or LHDM
= 1, the LHLR register is accessible at the address
of the SCIERPR register.
Otherwise this register is always read as 00h.
Bits 7:0 = LHL[7:0] LIN Header Length.
This is a read-only register, which is updated by
hardware if one of the following conditions occurs:
- After each break detection, it is loaded with
“FFh”.
- If a timeout occurs on T
00h.
- After every successful LIN Header reception (at
the same time than the setting of LHDF bit), it is
loaded with a value (LHL) which gives access to
the number of bit times of the LIN header length
(T
below:
LHL Coding:
T
LHL(7:2) represents the mantissa of (57 - T
ER
LHL(1:0) represents the fraction (57 - T
136/309
1
LHL7
HEADER_MAX
LHL[7:2]
HEADER
7
)
3Ah
3Bh
3Eh
3Fh
39h
0h
1h
...
...
LHL6
). The coding of this value is explained
LHL5
(57 -
= 57
Mantissa
T
HEADER
LHL4
56
57
58
62
63
...
...
0
1
HEADER
LHL3
)
LHL2
, it is loaded with
Never Occurs
Never Occurs
(
Initial value
T
Mantissa
HEADER
LHL1
57
56
HEADER
...
...
1
0
HEAD-
)
LHL0
0
)
Example of LHL coding:
Example 1: LHL = 33h = 001100 11b
LHL(7:3) = 1100b = 12d
LHL(1:0) = 11b = 3d
This leads to:
Mantissa (57 - T
Fraction (57 - T
Therefore:
(57 - T
and T
Example 2:
57 - T
LHL(1:0) = rounded(4*0.21d) = 1d
LHL(7:2) = Mantissa (36.21d) = 36d = 24h
Therefore LHL(7:0) = 10010001 = 91h
Example 3:
57 - T
LHL(1:0) = rounded(4*0.90d) = 4d
The carry must be propagated to the matissa:
LHL(7:2) = Mantissa (36.90d) + 1 = 37d =
Therefore LHL(7:0) = 10110000 = A0h
LHL[1:0]
HEADER
HEADER
HEADER
0h
1h
2h
3h
HEADER
= 44.25d
= 36.21d
= 36.90d
) = 12.75d
HEADER
HEADER
Fraction (57 -
) = 3/4 = 0.75
) = 12d
1/4
1/2
3/4
0
T
HEADER
)

Related parts for ST7FMC1K2B3