
PWM auto-reload timer (ART) ST72321xx-Auto
94/243 Doc ID 13829 Rev 1
12.3.2 Counter access register (ARTCAR)
12.3.3 Auto-reload register (ARTARR)
This register has two PWM management functions:
– Adjusting the PWM frequency
– Setting the PWM duty cycle resolution
f
INPUT
/ 8 1 MHz 0 1 1
f
INPUT
/ 16 500 kHz 1 0 0
f
INPUT
/ 32 250 kHz 1 0 1
f
INPUT
/ 64 125 kHz 1 1 0
f
INPUT
/ 128 62.5 kHz 1 1 1
Table 46. Prescaler selection for ART (continued)
f
COUNTER
With f
INPUT
= 8 MHz CC2 CC1 CC0
ARTCAR Reset value: 0000 0000 (00h)
76543210
CA[7:0]
RW
Table 47. ARTCAR register description
Bit Name Function
7:0 CA[7:0]
Counter Access 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).
ARTARR Reset value: 0000 0000 (00h)
76543210
AR[7:0]
RW
Table 48. ARTAAR register description
Bit Name Function
7:0 AR[7:0]
Counter Auto-Reload Data
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.
Komentáře k této Příručce