English
Language : 

W78ERD2_07 Datasheet, PDF (47/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78ERD2/W78ERD2A
flags for the modules and are set by hardware when either a match or a capture occurs. These flags
can only be cleared by software.
The next five sections provide more information about each of the five modes (four modes for all
registers and the watchdog timer in module 4).
11.1 PCA Capture Mode
To use one of the PCA modules in capture mode, either one or both of the CCAPM bits CAPN and
CAPP for that module must be set.
CEXn
CF
CR
-
CCF4 CCF3 CCF2 CCF1 CCF0 CCON(D8H)
To CCFn
PCA INTERRUPT
PCA Timer/Counter
CH
CL
Capture
CCAPnH CCAPnL
-
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn
CCAPMn, n=0~4
(DAH~DEH)
0
0
0
0
Figure 11-2 PCA Capture Mode
In capture mode, the external CEXn input is sampled for a transition. When a valid transition occurs,
the PCA hardware loads the value of the PCA counter registers CH and CL into the module’s capture
registers (CCAPnH and CCAPnL). If the CCFn (CCON) and ECCFn (CCAPMn) bits are set, then an
interrupt is generated.
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.
- 47 -
Publication Release Date: February 14, 2007
Revision A10