st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 179

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Examples of LHL coding:
SCI register map and reset values
Table 79.
Addr. (Hex.)
0018h
0019h
001Ah
001Bh
001Ch
001Dh
001Eh
001Fh
Example 1: LHL = 33h = 001100 11b
Example 2:
Example 3:
LHL(7:3) = 1100b = 12d
LHL(1:0) = 11b = 3d
This leads to:
Mantissa (57 - T
Fraction (57 - T
Therefore:
(57 - T
57 - T
LHL(1:0) = rounded(4*0.21d) = 1d
LHL(7:2) = Mantissa (36.21d) = 36d = 24h
Therefore LHL(7:0) = 10010001 = 91h
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
SCI register map and reset values
SCI1SR
Reset value
SCI1DR
Reset value
SCI1BRR
LPR (LIN slave mode)
Reset value
SCI1CR1
Reset value
SCI1CR2
Reset value
SCI1CR3
Reset Value
SCI1ERPR
LHLR (LIN slave mode)
Reset value
SCI1TPR
LPRF (LIN slave mode)
Reset value
HEADER
HEADER
HEADER
Register name
= 36.21d
= 36.90d
) = 12.75d and T
HEADER
HEADER
) = 3/4 = 0.75
) = 12d
ETPR7
LDUM
ERPR
TDRE
SCP1
LPR7
LHL7
DR7
TIE
R8
7
1
0
0
0
0
0
0
x
-
HEADER
ETPR6
ERPR
SCP0
LPR6
LHL6
TCIE
LINE
DR6
TC
T8
6
1
0
0
0
0
0
0
0
-
= 44.25d
ETPR5
RDRF
ERPR
SCT2
LPR5
SCID
LHL5
LSLV
DR5
RIE
5
0
0
0
0
0
0
0
0
-
ETPR4
ERPR
SCT1
LASE
LPR4
LHL4
IDLE
DR4
ILIE
M
4
0
0
0
0
0
0
0
0
-
OR/LHE
ERPR3
ETPR3
LPRF3
WAKE
LHDM
SCT0
LPR3
LHL3
DR3
TE
3
0
0
0
0
0
0
0
-
ETPR2
LPRF2
SCR2
ERPR
LPR2
LHL2
LHIE
DR2
PCE
RE
NF
2
0
0
0
0
0
0
0
-
On-chip peripherals
ETPR1
LPRF1
SCR1
ERPR
LHDF
LPR1
RWU
LHL1
DR1
FE
PS
1
0
0
0
0
0
0
0
-
ETPR0
LPRF0
179/371
ERPR
SCR0
LPR0
LHL0
DR0
SBK
LSF
PIE
PE
0
0
0
0
0
0
0
0
-

Related parts for st7pmc2s6