English
Language : 

UPSD3422_06 Datasheet, PDF (180/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
Programmable counter array (PCA) with PWM
Figure 61. PWM mode - (x8) programmable frequency
PWM FREQ COMPARE
PWMFm
8
PWMFm = PCACLm
CAPCOMHn
8
uPSD34xx
PCACHm
CAPCOMLn
ENABLE
8-bit COMPARATORm
ENABLE
MATCH SET
8-bit COMPARATORn
S
Q
8
PCACLm
CLR
R
Q
CLR
CEXn
TCMMODEn EINTF E_COMP CAP_PE CAP_NE MATCH TOGGLE PWM1
0
0
0
0
0
PWM0
Note:
m = 0: n = 0, 1, or 2
m = 1: n = 3, 4, or 5
AI07860
27.9
PWM mode - fixed frequency, 16-bit
The operation of the 16-bit PWM is the same as the 8-bit PWM with fixed frequency. In this
mode, one or all the TCM can be configured to have a fixed frequency PWM output on the
port pins. The PWM frequency is depending on the clock input frequency to the 16-bit
Counter. The duty cycle of each TCM module can be specified in the CAPCOMHn and
CAPCOMLn Registers. When the 16-bit PCA_Counter is equal or greater than the values in
registers CAPCOMHn and CAPCOMLn, the PWM output is switched to a high state. When
the PCA_Counter overflows, CEXn is asserted low.
180/293