st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 100

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
100/371
ART counter access register (ARTCAR)
Table 39.
Auto-reload register (ARTARR)
Table 40.
PWM control register (PWMCR)
ARTCAR
7:0 CA[7:0]
ARTARR
7:0 AR[7:0]
PWMCR
Bit Name
Bit Name
7
7
7
ARTCAR register description
ARTARR register description
Counter access data
Counter auto-reload data
These bits can be set and cleared either by hardware or by software. The ARTCAR
register is used to read or write the auto-reload counter ‘on the fly’ (while it is
counting).
These bits are set and cleared by software. They are used to hold the auto-reload
value which is automatically loaded in the counter when an overflow occurs. At the
same time, the PWM output levels are changed according to the corresponding OPx
bit in the PWMCR register.
This register has two PWM management functions:
See below for PWM frequency versus resolution:
f
f
f
f
f
PWM
PWM
PWM
PWM
PWM
6
6
6
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Adjusting the PWM frequency
Setting the PWM duty cycle resolution
OE[3:0]
min/max (~0.244 kHz/31.25 kHz) = resolution (8-bit): ARTARR value 0
min/max (~0.244 kHz/62.5 kHz) = resolution (> 7-bit): ARTARR value 0..127
min/max (~0.488 kHz/125 kHz) = resolution (> 6-bit): ARTARR value 128..191
min/max (~0.977 kHz/250 kHz) = resolution (> 5-bit): ARTARR value 192..223
min/max (~1.953 kHz/500 kHz) = resolution (> 4-bit): ARTARR value 224..239
R/W
5
5
5
4
4
4
CA[7:0]
AR[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)
OP[3:0]
R/W
1
1
1
0
0
0

Related parts for st7pmc2s6