English
Language : 

W78IRD2 Datasheet, PDF (49/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78IRD2
11.4 Pulse Width Modulator Mode
The PWM and ECOM (CCAPM) bits must be set to enable the PWM mode.
CCAPnH
CCAPnL
Enable
8-BIT
COMPARATOR
0
CL < CCAPnL
CL >= CCAPnL
1
CEXn
Overflow CL
PCA Timer/Counter
-
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn
CCAPMn, n=0~4
(DAH~DEH)
0
0
0
0
0
Figure 11-5 PAC PWM Mode
All of the modules have the same frequency because they share the same PCA timer. The duty cycle
of each module, however, is independently controlled by the module’s capture register CCAPLn. When
the value of the PCA CL SFR is less than the value in CCAPLn, the output is low; when it is equal to or
greater than the value in CCAPLn, the output is high. When CL overflows from FF to 00, CCAPLn is
reloaded with the value in CCAPHn.
- 49 -
Publication Release Date: October 2, 2006
Revision A7