st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 253

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
Figure 118. PWM generator block diagram
Functional description
The three PWM signals are generated using a free-running 12-bit PWM counter and three 13-bit
compare registers for phase U, V and W: MCMPU, MCMPV and MCMPW registers respectively.
A fourth 12-bit register is needed to set-up the PWM carrier frequency: MCMP0 register.
Each of these compare registers is buffered with a preload register. Transfer from preload to active
registers is done synchronously with PWM counter underflow or overflow depending on configuration.
This allows compare values to be written without risks of spurious PWM transitions.
The block diagram of the PWM generator is shown in
Prescaler
The 12-bit PWM counter clock is supplied through a 3-bit prescaler to allow the generation of lower PWM
carrier frequencies. It divides F
This prescaler is accessed through three bits PCP[2:0] in MPCR register; this register is buffered: the
new value is taken into account after a PWM update event.
up to 16MHz
Reg
Notes
F
U
mtc
Preload registers transferred to
active registers on U event
Update of compare registers PWM
event
interrupt generation
MPCR register
PCP[2:0] bits
Prescaler
U
U
U
U
mtc
by 1, 2, 3, ..., 8 to get F
13-bit compare W register
13-bit compare U register
13-bit compare V register
12-bit compare 0 register
12-bit PWM counter
Figure
Clear up/down
mtc-pwm
118.
.
MPCR register
CMS bit
MREP register
Repetition
counter
On-chip peripherals
U
253/371

Related parts for st7pmc2s6