P87C51FB-4N NXP Semiconductors, P87C51FB-4N Datasheet - Page 28
![MCU 8-Bit 87C 80C51 CISC 16KB EPROM 3.3V/5V 40-Pin PDIP Tube](/photos/19/0/190096/42268248_sml.jpg)
P87C51FB-4N
Manufacturer Part Number
P87C51FB-4N
Description
MCU 8-Bit 87C 80C51 CISC 16KB EPROM 3.3V/5V 40-Pin PDIP Tube
Manufacturer
NXP Semiconductors
Specifications of P87C51FB-4N
Program Memory Size
16 KB
Package
40PDIP
Device Core
80C51
Family Name
87C
Maximum Speed
16 MHz
Operating Supply Voltage
3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
32
Interface Type
UART
Number Of Timers
3
Ram Size
256 Byte
Program Memory Type
EPROM
Operating Temperature
0 to 70 °C
Controller Family/series
(8051) 8052
No. Of I/o's
32
Ram Memory Size
265Byte
Cpu Speed
16MHz
No. Of Timers
3
No. Of Pwm
RoHS Compliant
Core Size
8bit
Oscillator Type
External Only
Lead Free Status / RoHS Status
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
P87C51FB-4N
Manufacturer:
XILINX
Quantity:
101
Philips Semiconductors
(8XC51FX and 8XC51RX+ ONLY)
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 21.
16-bit Software Timer 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 registers 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 22).
2000 Aug 07
80C51 8-bit microcontroller family
8K–64K/256–1K OTP/ROM/ROMless, low voltage (2.7V–5.5V),
low power, high speed (33MHz)
NOTE:
*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.
CCAPMn Address
Symbol
–
ECOMn
CAPPn
CAPNn
MATn
TOGn
PWMn
ECCFn
X
X
X
X
X
X
X
X
–
ECOMn
X
X
X
0
1
1
1
1
Not Bit Addressable
Bit:
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.
CAPPn
0
1
0
1
0
0
0
0
–
7
CCAPM0
CCAPM1
CCAPM2
CCAPM3
CCAPM4
CAPNn
ECOMn
Figure 19. CCAPMn: PCA Modules Compare/Capture Registers
0
0
1
1
0
0
0
0
6
0DAH
0DBH
0DCH
0DDH
0DEH
Figure 20. PCA Module Modes (CCAPMn Register)
MATn
CAPPn
0
0
0
0
1
1
0
1
5
TOGn
CAPNn
X
0
0
0
0
0
1
0
4
PWMn
28
MATn
0
0
0
0
0
0
1
0
3
High Speed Output Mode
In this mode the CEX output (on port 1) associated with the PCA
module will toggle each time a match occurs between the PCA
counter and the module’s capture registers. To activate this mode
the TOG, MAT, and ECOM bits in the module’s CCAPMn SFR must
be set (see Figure 23).
Pulse Width Modulator Mode
All of the PCA modules can be used as PWM outputs. Figure 24
shows the PWM function. The frequency of the output depends on
the source for the PCA timer. All of the modules will have the same
frequency of output because they all share the PCA timer. The duty
cycle of each module is independently variable using the module’s
capture register CCAPLn. When the value of the PCA CL SFR is
less than the value in the module’s CCAPLn SFR the output will be
low, when it is equal to or greater than the output will be high. When
CL overflows from FF to 00, CCAPLn is reloaded with the value in
CCAPHn. the allows updating the PWM without glitches. The PWM
and ECOM bits in the module’s CCAPMn register must be set to
enable the PWM mode.
ECCFn
TOGn
X
X
X
X
X
X
0
0
2
No operation
16-bit capture by a positive-edge trigger on CEXn
16-bit capture by a negative trigger on CEXn
16-bit capture by a transition on CEXn
16-bit Software Timer
16-bit High Speed Output
8-bit PWM
Watchdog Timer
8XC51RA+/RB+/RC+/RD+/80C51RA+
PWMn
1
ECCFn
MODULE FUNCTION
8XC51FA/FB/FC/80C51FA
0
Reset Value = X000 0000B
Product specification
8XC54/58
SU00037