TS87C51RC2 ATMEL Corporation, TS87C51RC2 Datasheet - Page 28
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
TS87C51RC2
Manufacturer Part Number
TS87C51RC2
Description
High Performance 8-bit Microcontroller 32 Kbytes Otp
Manufacturer
ATMEL Corporation
Datasheet
1.TS87C51RC2.pdf
(74 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
TS87C51RC2-LIB
Manufacturer:
TEMIC
Quantity:
12
Part Number:
TS87C51RC2-MCA
Manufacturer:
TI/德州仪器
Quantity:
20 000
Company:
Part Number:
TS87C51RC2-MIB
Manufacturer:
TEMIC
Quantity:
79
Company:
Part Number:
TS87C51RC24
Manufacturer:
Maxim
Quantity:
598
TS80C51RA2/RD2
TS83C51RB2/RC2/RD2
TS87C51RB2/RC2/RD2
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 12 & Table 13)
28
CCAPMn Address
n = 0 - 4
Table 10. CCAPMn: PCA Modules Compare/Capture Control Registers
a.
ECOMn CAPPn CAPNn
-
ECOMn
CAPPn
CAPNn
MATn
TOGn
PWMn
ECCFn
X
X
X
Symbol
0
1
1
1
1
User software should not write 1s to reserved bits. These bits may be used in future 8051 family
products to invoke new features. In that case, the reset or inactive value of the new bit will be 0, and its
active value will be 1. The value read from a reserved bit is indeterminate.
Table 11. PCA Module Modes (CCAPMn Registers)
CCAPM0=0DAH
CCAPM1=0DBH
CCAPM2=0DCH
CCAPM3=0DDH
CCAPM4=0DEH
Reset value
0
1
0
1
0
0
0
0
Function
Not implemented, reserved for future use.
Enable Comparator. ECOMn = 1 enables the comparator function.
Capture Positive, CAPPn = 1 enables positive edge capture.
Capture Negative, CAPNn = 1 enables negative edge capture.
Match. When MATn = 1, a match of the PCA counter with this module's compare/capture
register causes the CCFn bit in CCON to be set, flagging an interrupt.
Toggle. When TOGn = 1, a match of the PCA counter with this module's compare/capture
register causes the CEXn pin to toggle.
Pulse Width Modulation Mode. PWMn = 1 enables the CEXn pin to be used as a pulse width
modulated output.
Enable CCF interrupt. Enables compare/capture flag CCFn in the CCON register to generate
an interrupt.
0
0
1
1
0
0
0
0
MATn
X
-
0
0
0
0
1
1
0
1
ECOMn CAPPn CAPNn
TOGn
0
X
0
0
0
0
0
1
0
PWMm ECCFn
0
0
0
0
0
0
0
1
0
a
0
X
X
X
X
X
X
0
0
on CEXn
CEXn
MATn
16-bit capture by a positive-edge trigger
16-bit Software Timer / Compare mode.
No Operation
16-bit capture by a transition on CEXn
16-bit High Speed Output
8-bit PWM
Watchdog Timer (module 4 only)
16-bit capture by a negative trigger on
0
TOGn
Module Function
Rev. C - 06 March, 2001
0
PWMm ECCFn
0
0