IN87C51N CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER WITH 4K BYTES OF EPROM MEMORY The 87C51 is the EPROM version of the 80C51. Microcontroller fabricated with highdensity CMOS technology. It contains 4K bytes of on chip Program memory that can be electrically programmed The 80C51 contains a 4k x 8 ROM , a 128 x 8 RAM , 32 I/O lines, two 16-bit counter/timers, a five-source, two-priority level nested interrupt structure, a serial I/O port for either multi-processor communications, I/O expansion or full duplex UART, and on-chip oscillator and clock circuits. The device has two software selectable modes of power reduction idle mode and power-down mode. The idle mode freezes the CPU while allowing the RAM, timers, serial port, and interrupt system to continue functioning. The power-down mode saves the RAM contents but freezes the oscillator, causing all other chip functions to be inoperative. PIN CONFIGURATIONS FEATURES 8031/8051 compatible (MCS-51 family) P 1 .0 1 40 V cc P 1 .1 2 39 P 0 .0 /A D 0 P 1 .2 3 38 P 0 .1 /A D 1 128 x 8 RAM P 1 .3 4 37 P 0 .2 /A D 2 Two 16-bit counter/timers P 1 .4 5 36 P 0 .3 /A D 3 P 1 .5 6 35 P 0 .4 /A D 4 P 1 .6 7 34 P 0 .5 /A D 5 P 1 .7 8 33 P 0 .6 /A D 6 R ST 9 32 P 0 .7 /A D 6 31 E A /V p r 30 A L E /P P O G 4K EPROM Full duplex serial channel Boolean processor Memory addressing capability 64k ROM and 64k RAM Power control modes: Idle mode Power-down mode CMOS and TTL compatible Two speed ranges at VCC=5V 12 MHz 16 MHz 1 P L A S T IC DUAL IN - L IN E PAC KAGE R x D /P 3 .0 10 T x D /P 3 .2 11 I N T 0 /P 3 .2 12 29 PSE N I N T 1 /P 3 .3 13 28 P 2 .7 /A 1 5 T 0 /P 3 .4 14 27 P 2 .6 /A 1 4 T 1 /P 3 .5 15 26 P 2 .5 /A 1 3 W R /P 3 6 16 25 P 2 .4 /A 1 2 R D /P 3 .7 17 24 P 2 .3 /A 1 1 XTAL2 18 23 P 2 .2 /A 1 0 XTAL1 19 22 P 2 .1 /A 9 V ss 20 21 P 2 .0 /A 8 IN87C51N CMOS single-chip 8-bit microcontroller 87C51 DC ELECTRICAL CHARACTERISTICS FOR INTEGRAL DEVICES T=-10 oC to + 70oC; Vcc= 5V ± 10% Parameter Symbol Test conditions Vcc Icc Supply current operating, mA Icc1 Idle mode current, mA Ipd Pover-down current, mkA Vcc = 5,5 V Fclc = 12MHz Vcc = 5,5 V Fclc = 12MHz 2V≤Vpd≤Vcc max INPUTS: Vil LOW level input voltage, V (exept EA) LOW level input voltage, V (for EA) HIGH level input voltage, V (exept XTAL1, RST) HIGH level input voltage, V (for XTAL1, RST) Input current logic 1, mkA (Ports 1, 2 and 3) Input current logic 1 to 0, mkA (Ports 1, 2 and 3) Input leacage current, mkA (Port 0, EA) Vili Vih Vih1 -Iil ±Itl ±Ili Vol Vol1 Voh LOW level output voltage, V (Ports 1, 2 and 3) LOW level output voltage, V (Ports 0, ALE, PSEN) HIGH level output voltage, V (Ports 1, 2 and 3) Voh1 HIGH level output voltage, V (Ports 0, ALE, PSEN) Rrst Ci/0 RST pull-down resistor, kOm I/O pin capasitance, pF Min 4,5 - Limits Max 5,5 25 - 4,0 - 50 -0,5 0.2Vcc-0,1 0 0.2Vcc-0,3 0,2Vcc +0,9 Vcc+0,5 0,7Vcc Vcc+0,5 Vi=0,45 V - -50 Vi=2 V - -650 0,45V≤Vi≤Vcc - 10 OUTPUTS: Iol = 1,6 mA - 0,45 Iol = 3,2 mA - 0,45 -Ioh=60 mkA -Ioh=25 mkA -Ioh=10 mkA -Ioh=800 mkA -Ioh=300 mkA -Ioh=80 mkA 2,4 0,75Vcc 0,9Vcc 2,4 0,75Vcc 0,9Vcc 50 - - test frecuency=1MHz - 300 10 AC ELECTRICAL CHARACTERISTICS FOR INTEGRAL DEVICES T=-10 oC to + 70oC; Vcc= 5V ± 10% Symbol Fclc Parameter IN87C51N - 12 IN87C51N - 16 Variable Oscillator Min Max Oscillator Frequency: 3,5 12 3,5 16 2 Unit MHz MHz