st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 259

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
10.6.11
10.6.12
PWM generator initialization and start-up
The three-phase generator counter stays in reset state (that is, stopped and equal to 0), as
long as MTC peripheral clock is disabled (CKE = 0).
Setting the CKE bit has two actions on the PWM generator:
Low power modes
Before executing a HALT or WFI instruction, software must stop the motor, and may choose
to put the outputs in high impedance.
Table 114. Effect of low power modes on MTC
Interrupts
Table 115. MTC interrupt control/wake-up capability
The MTC interrupt events are connected to the three interrupt vectors (see
Interrupts).
They generate an interrupt if the corresponding enable control bit is set and the interrupt
mask in the CC register is reset (RIM instruction).
Ratio increment
Ratio decrement
Speed error
Emergency stop
Current limitation
BEMF zero-crossing
End of demagnetization
Commutation or capture
PWM update
Sampling out
It starts the PWM counter
It forces the update of all registers with preload registers transferred on U update event,
that is, MREP, MPCR, MCMP0, MCMPU, MCMPV, MCMPW (in 12-bit mode, both
MCMPxL and MCMPxH must have been written, following the mandatory LSB/MSB
sequence, before setting CKE bit). It consequently generates a U interrupt.
Interrupt event
Mode
Wait
Halt
No effect on MTC interface.
MTC interrupts exit from Wait mode.
MTC registers are frozen.
In Halt mode, the MTC interface is inactive. The MTC interface becomes
operational again when the MCU is woken up by an interrupt with ‘exit from Halt
mode’ capability.
Event flag
RMI
RPI
PUI
SOI
SEI
CLI
EI
DI
CI
ZI
Enable control bit
CLIM
SOM
SEM
PUM
RIM
DIM
CIM
EIM
ZIM
Description
Exit from WAIT
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
On-chip peripherals
Section 7:
Exit from HALT
No
No
No
No
No
No
No
No
No
No
259/371

Related parts for st7pmc2s6