English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (157/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
UPSD33xx
Figure 48. PWM mode - (x8), fixed frequency
CAPCOMHn
8
Programmable counter array (PCA) with PWM
CAPCOMLn
ENABLE 8-bit COMPARATORn MATCH
S SET Q
CEXn
OVERFLOW
8
PCACLm
R CLR Q
TCMMODEn EINTF E_COMP CAP_PE CAP_NE MATCH TOGGLE PWM1
) 0
0
0
0
0
PWM0
roduct(s 1. m = 0: n = 0, 1, or 2
P 2. m = 1: n = 3, 4, or 5
AI07859
olete 26.8
Obsolete Product(s) - Obs Note:
PWM mode - (x8), programmable frequency
In this mode, the PWM frequency is not determined by the overflow of the low byte of the
Counter. Instead, the frequency is determined by the PWMFm register. The user can load a
value in the PWMFm register, which is then compared to the low byte of the Counter. If there
is a match, the Counter is cleared and the Load registers (PWMFm, CAPCOMHn) are re-
loaded for the next PWM pulse. There is only one PWMFm register which serves all 3 TCM
in a PCA block.
If one of the TCM modules is operating in this mode, the other modules in the PCA must be
configured to the same mode or left not to be used. The duty cycle of the PWM can be
specified in the CAPCOMHn register as in the PWM with fixed frequency mode. Different
TCM modules can have their own duty cycle.
The value in the Frequency register (PWMFm) must be larger than the duty cycle register
(CAPCOM).
Doc ID 9685 Rev 7
157/272