T89C51RD2-3CBC-L ATMEL [ATMEL Corporation], T89C51RD2-3CBC-L Datasheet - Page 27

no-image

T89C51RD2-3CBC-L

Manufacturer Part Number
T89C51RD2-3CBC-L
Description
0 to 40MHz Flash Programmable 8-bit Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
T89C51RD2
6.5.1. PCA Capture Mode
To use one of the PCA modules in the capture mode either one or both of the CCAPM bits CAPN and CAPP for
that module must be set. The external CEX input for the module (on port 1) 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 (CCAPnL and CCAPnH). If the CCFn bit for the module in the CCON SFR and the
ECCFn bit in the CCAPMn SFR are set then an interrupt will be generated (Refer to Figure 9).
27
CCAPnH Address
CCAPnL Address
Address 0F9H
Address 0E9H
n = 0 - 4
n = 0 - 4
CH
CL
Table 11. CCAPnH: PCA Modules Capture/Compare Registers High
Table 12. CCAPnL: PCA Modules Capture/Compare Registers Low
CCAP0H=0FAH
CCAP1H=0FBH
CCAP2H=0FCH
CCAP3H=0FDH
CCAP0L=0EAH
CCAP3L=0EDH
CCAP4H=0FEH
CCAP1L=0EBH
CCAP2L=0ECH
CCAP4L=0EEH
Reset value
Reset value
Reset value
Reset value
Table 13. CH: PCA Counter High
Table 14. CL: PCA Counter Low
7
0
7
0
7
0
7
0
6
0
6
0
6
0
6
0
5
0
5
0
5
0
5
0
4
0
4
0
4
0
4
0
3
0
3
0
3
0
3
0
2
0
2
0
2
0
2
0
Rev. F - 15 February, 2001
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0

Related parts for T89C51RD2-3CBC-L