st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 258

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
On-chip peripherals
Note:
258/371
Figure 123. Update rate examples depending on mode and MREP register setting
Timer resynchronization
The 12-bit timer can be resynchronized by a simple write access with FFh value in the MISR
register. Resynchronization means that the 12-bit counter is reset and all the compare
preload registers MCP0, MCPU, MCPV, MCPW are transferred to the active registers.
To resynchronize the 12-bit timer properly, the following procedure must be applied:
1.
2.
3.
Loading FFh value in the MISR register has no effect on any flag other than the PUI flag and
generates a PWM update interrupt if the PUM bit is set.
resynchronization
12-bit PWM counter
Load the new values in the preload compare registers
Load FFh value in the MISR register (this resets the counter and transfers the compare
preload registers in the active registers: U event)
Reset the PUI flag by loading 7Fh in the MISR register. Refer to
MREP = 1
MREP = 2
MREP = 3
MREP = 0
Warning:
MREP = 3
U
and
U event if transition from MREP = 0 to MREP = 1 occurs when 12-bit counter is equal to MCPO.
U event: preload registers transferred to active registers and PWM interrupt generated.
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
U
U
U
U
In switched mode (SWA bit is reset), the procedure is the
same and loading FFh in the MISR register has no effect on
any flags except those on the PUI flag. As a consequence, it
is recommended to avoid setting RMI and RPI flags at the
same time in switched mode because none of them are taken
into account.
U
(by SW)
Center-aligned mode
(by SW)
Edge-aligned mode
note 2 on page 291.

Related parts for st7pmc2s6