st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 277

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
Repetition counter register (MREP)
Table 145. MREP register description
Compare phase W preload register high (MCPWH)
Table 146. MCPWH register description
Compare phase W preload register low (MCPWL)
MREP
7:0 REP[7:0]
MCPWH
7:0 CPWH[7:0] Most significant byte of phase W preload value
MCPWL
Bit
Bit
7
7
7
Name
Name
Repetition counter value (N)
This register allows the user to set up the update rate of the PWM counter compare
register (that is, periodic transfers from preload to active registers), as well as the
PWM Update interrupt generation rate, if these interrupts are enabled.
Each time the MREP related down-counter reaches zero, the compare registers
are updated, a U interrupt is generated and it re-starts counting from the MREP
value.
After a microcontroller reset, setting the CKE bit in the MCRA register (that is,
enabling the clock for the MTC peripheral) forces the transfer from the MREP
preload register to its active register and generates a U interrupt. During run-time
(while CKE bit = 1) a new value entered in the MREP preload register is taken into
account after a U event.
As shown in
6
6
6
The number of PWM periods in edge-aligned mode
The number of half PWM periods in center- aligned mode
CPWL[7:3]
R/W
5
Figure
5
5
123, (N+1) value corresponds to:
4
4
4
CPWH[7:0
REP[7:0]
R/W
R/W
Function
Function
3
3
3
2
2
2
Reset value: 0000 0000 (00h)
Reset value: 0000 0000 (00h)
Reset value: 0000 0000 (00h)
Reserved
On-chip peripherals
1
1
1
-
277/371
0
0
0

Related parts for st7pmc2s6