t89c51rd2-slscl ATMEL Corporation, t89c51rd2-slscl Datasheet - Page 28

no-image

t89c51rd2-slscl

Manufacturer Part Number
t89c51rd2-slscl
Description
0 To 40 Mhz Flash Programmable 8-bit Microcontroller
Manufacturer
ATMEL Corporation
Datasheet
28
T89C51RD2
There are two additional registers associated with each of the PCA modules. They are
CCAPnH and CCAPnL and these are the registers that store the 16-bit count when a
capture occurs or a compare should occur. When a module is used in the PWM mode
these registers are used to control the duty cycle of the output (See Table 14 &
Table 15)
Table 14. CCAPnH: PCA Modules Capture/Compare Registers High
Table 15. CCAPnL: PCA Modules Capture/Compare Registers Low
Table 16. CH: PCA Counter High
Table 17. CL: PCA Counter Low
ECOMn CAPPn CAPNn
Address 0F9H
Address 0E9H
1
CCAPnL
Address
n = 0 - 4
CCAPnH
Address
n = 0 - 4
CH
CL
0
CCAP0H=0FAH
CCAP1H=0FBH
CCAP2H=0FCH
CCAP3H=0FDH
CCAP4H=0FEH
CCAP2L=0ECH
CCAP3L=0EDH
CCAP0L=0EAH
CCAP1L=0EBH
CCAP4L=0EEH
Reset value
Reset value
Reset value
Reset value
0
MATn
1
7
0
7
0
7
0
7
0
TOGn
X
6
0
6
0
6
0
6
0
PWMm
0
5
0
5
5
5
0
0
0
ECCFn
X
4
0
4
0
4
0
4
0
Watchdog Timer (module 4 only)
3
0
3
0
3
0
3
0
Module Function
2
0
2
0
2
0
2
0
4243G–8051–05/03
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0

Related parts for t89c51rd2-slscl