Figure 6-6. PCA Capture Mode
CF CR
CCF4
CCF3
CCF2
CCF1
CCF0
CCON
0xD8
PCA IT
Cex.n
Capture
PCA Counter/Timer
CH
CL
CCAPnH
CCAPnL
ECOMn CAPPn CAPNn MATn
TOGn
PWMn
ECCFn
CCAPMn, n= 0
0xDA to 0xDE
to
4
6.3.2
16-bit Software Timer/ Compare Mode
The PCA modules can be used as software timers by setting both the ECOM and MAT bits in
the modules CCAPMn register. The PCA timer will be compared to the module's capture regis-
ters and when a match occurs an interrupt will occur if the CCFn (CCON SFR) and the ECCFn
(CCAPMn SFR) bits for the module are both set (See Figure 6-7).
30 AT/TS8xC51Rx2
4188F–8051–01/08