English
Language : 

W78IRD2A25DL Datasheet, PDF (48/76 Pages) List of Unclassifed Manufacturers – 8-BIT MICROCONTROLLER
W78IRD2
11.2 16-bit Software Timer Comparator Mode
The PCA modules can be used as software timers by setting both the ECOM and MAT bits in the
CCAPMn register.
Write To
CCAPnL
0
CF
CR
-
CCF4 CCF3 CCF2 CCF1 CCF0
CCON(D8H)
Write To
CCAPnH
CCAPnH CCAPnL
16-bit Comparator
1
Enable
Match
CH
CL
PCA Timer/Counter
To CCFn
-
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn
0
0
0
0
PCA INTERRUPT
CCAPMn, n=0~4
(DAH~DEH)
Figure 11-3 PCA 16-bit Timer Comparator Mode
In this mode, the PCA timer is compared to the module’s capture registers. When a match occurs, an
interrupt is generated if the CCFn (CCON) and ECCFn (CCAPMn) bits are set.
11.3 High Speed Output Mode
To activate this mode, the TOG, MAT, and ECOM (CCAPMn) bits must be set.
Write To
CCAPnL
0
CF
CR
-
CCF4 CCF3 CCF2 CCF1 CCF0 CCON(D8H)
CCAPnH CCAPnL
Write To
CCAPnH
16-bit Comparator
1
Enable
Match
CH
CL
PCA Timer/Counter
To CCFn
-
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn
0
0
1
0
PCA INTERRUPT
CEXn
CCAPMn, n=0~4
(DAH~DEH)
Figure 11-4 PCA High Speed Output Mode
In this mode, the CEXn output toggles each time a match occurs between the PCA counter and the
module’s capture registers.
- 48 -