English
Language : 

MG82FX532AE Datasheet, PDF (85/151 Pages) Megawin Technology Co., Ltd – Dual data pointer
Figure 14-5. PCA Software Timer Mode
Write to
CCAPnH
Write to
CCAPnL Reset
1
0
Enable
CF
CR
CCF5 CCF4 CCF3 CCF2 CCF1 CCF0 CCON
CCAPnH CCAPnL
16-Bit Comparator
(To CCFn)
Match
PCA Interrupt
CH
CL
PCA Timer/Counter
--
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPMn, n= 0 to 5
0
0
1
0
0
14.4.3. High Speed Output Mode
In this mode the CEX output associated with the PCA module will toggle each time a match occurs between the
PCA counter and the module‘s capture registers. To activate this mode, the TOG, MAT and ECOM bits in the
module‘s CCAPMn register must be set.
Figure 14-6. PCA High Speed Output Mode
Write to
CCAPnH
Write to
CCAPnL Reset
1
0
Enable
CF
CR
CCF5 CCF4 CCF3 CCF2 CCF1 CCF0 CCON
CCAPnH CCAPnL
16-Bit Comparator
(To CCFn)
Match
PCA Interrupt
CH
CL
PCA Timer/Counter
Toggle
CEXn
--
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPMn, n= 0 to 5
0
0
1
1
0
14.4.4. PWM Mode
All of the PCA modules can be used as PWM outputs. The frequency of the output depends on the clock source
for the PCA timer. All of the modules will have the same frequency of output because they all share the PCA
timer.
The duty cycle of each module is determined by the module‘s capture register CCAPnL and the extended 9th bit,
ECAPnL. When the 9-bit value of { 0, [CL] } is less than the 9-bit value of { ECAPnL, [CCAPnL] } the output will
be low, and if equal to or greater than the output will be high.
MEGAWIN
MG82FE/L532 Data Sheet
85