TS87C51RC2 ATMEL Corporation, TS87C51RC2 Datasheet - Page 27

no-image

TS87C51RC2

Manufacturer Part Number
TS87C51RC2
Description
High Performance 8-bit Microcontroller 32 Kbytes Otp
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
TS87C51RC2-LCA
Quantity:
1 171
Part Number:
TS87C51RC2-LCB
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
TS87C51RC2-LCE
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
TS87C51RC2-LIB
Manufacturer:
TEMIC
Quantity:
12
Part Number:
TS87C51RC2-LIB
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
TS87C51RC2-LIE
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
TS87C51RC2-MCA
Quantity:
6 234
Part Number:
TS87C51RC2-MCA
Manufacturer:
TI
Quantity:
1 000
Part Number:
TS87C51RC2-MCA
Manufacturer:
TI/德州仪器
Quantity:
20 000
Company:
Part Number:
TS87C51RC2-MCB
Quantity:
618
Part Number:
TS87C51RC2-MIB
Manufacturer:
TEMIC
Quantity:
79
Part Number:
TS87C51RC24
Manufacturer:
Maxim
Quantity:
598
PCA Modules: each one of the five compare/capture modules has six possible functions. It can perform:
In addition, module 4 can be used as a Watchdog Timer.
Each module in the PCA has a special function register associated with it. These registers are: CCAPM0 for
module 0, CCAPM1 for module 1, etc. (See Table 10). The registers contain the bits that control the mode
that each module will operate in.
Table 11 shows the CCAPMn settings for the various PCA functions.
.
Rev. C - 06 March, 2001
• 16-bit Capture, positive-edge triggered,
• 16-bit Capture, negative-edge triggered,
• 16-bit Capture, both positive and negative-edge triggered,
• 16-bit Software Timer,
• 16-bit High Speed Output,
• 8-bit Pulse Width Modulator.
The ECCF bit (CCAPMn.0 where n=0, 1, 2, 3, or 4 depending on the module) enables the CCF flag in the
CCON SFR to generate an interrupt when a match or compare occurs in the associated module.
PWM (CCAPMn.1) enables the pulse width modulation mode.
The TOG bit (CCAPMn.2) when set causes the CEX output associated with the module to toggle when there
is a match between the PCA counter and the module's capture/compare register.
The match bit MAT (CCAPMn.3) when set will cause the CCFn bit in the CCON register to be set when there
is a match between the PCA counter and the module's capture/compare register.
The next two bits CAPN (CCAPMn.4) and CAPP (CCAPMn.5) determine the edge that a capture input will
be active on. The CAPN bit enables the negative edge, and the CAPP bit enables the positive edge. If both
bits are set both edges will be enabled and a capture will occur for either transition.
The last bit in the register ECOM (CCAPMn.6) when set enables the comparator function.
PCA Timer/Counter
Module 0
Module 1
Module 2
Module 3
Module 4
CMOD.0
ECF
CF
Figure 8. PCA Interrupt System
ECCFn CCAPMn.0
CR
CCF4 CCF3
IE.6
EC
CCF2
TS83C51RB2/RC2/RD2
TS87C51RB2/RC2/RD2
IE.7
EA
CCF1
TS80C51RA2/RD2
CCF0
priority decoder
CCON
0xD8
To Interrupt
27

Related parts for TS87C51RC2