Table 70. Lhl Fraction Coding - STMicroelectronics ST72361 Auto Series Manual

8-bit mcu for automotive with flash or rom, 10-bit adc, 5 timers, spi, linsci
Table of Contents

Advertisement

ST72361xx-Auto
Table 70.
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
HEADER
and T
HEADER
Example 2:
57 - T
HEADER
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
HEADER
LHL(1:0) = rounded(4*0.90d) = 4d
The carry must be propagated to the mantissa:
LHL(7:2) = Mantissa (36.90d) + 1 = 37d =
Therefore LHL(7:0) = 10110000 = A0h
LINSCI serial communication interface (LIN master/slave)
LHL fraction coding
LHL[1:0]
0h
1h
2h
3h
) = 12d
HEADER
) = 3/4 = 0.75
HEADER
) = 12.75d
= 44.25d
= 36.21d
= 36.90d
Doc ID 12468 Rev 3
Fraction (57 - T
HEADER
0
1/4
1/2
3/4
)
191/279

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST72361 Auto Series and is the answer not in the manual?

Table of Contents