Manufacturer Part NumberAT89C4051-24PI
DescriptionIC MICRO CTRL 24MHZ 20DIP
AT89C4051-24PI datasheet

Specifications of AT89C4051-24PI

Core Processor8051Core Size8-Bit
PeripheralsBrown-out Detect/Reset, LED, PORNumber Of I /o15
Program Memory Size4KB (4K x 8)Program Memory TypeFLASH
Ram Size128 x 8Voltage - Supply (vcc/vdd)4 V ~ 6 V
Oscillator TypeInternalOperating Temperature-40°C ~ 85°C
Package / Case20-DIP (0.300", 7.62mm)Lead Free Status / RoHS StatusContains lead / RoHS non-compliant
Eeprom Size-Data Converters-
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 1/19

Download datasheet (389Kb)Embed
Compatible with MCS
51 Products
4K Bytes of Reprogrammable Flash Memory
– Endurance: 10,000 Write/Erase Cycles
2.7V to 6V Operating Range
Fully Static Operation: 0 Hz to 24 MHz
Two-level Program Memory Lock
128 x 8-bit Internal RAM
15 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial UART Channel
Direct LED Drive Outputs
On-chip Analog Comparator
Low-power Idle and Power-down Modes
Brown-out Detection
Power-On Reset (POR)
Green (Pb/Halide-free/RoHS Compliant) Packaging
1. Description
The AT89C4051 is a low-voltage, high-performance CMOS 8-bit microcontroller with
4K bytes of Flash programmable and erasable read-only memory. The device is man-
ufactured using Atmel’s high-density nonvolatile memory technology and is
compatible with the industry-standard MCS-51 instruction set. By combining a versa-
tile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C4051 is a powerful
microcontroller which provides a highly-flexible and cost-effective solution to many
embedded control applications.
The AT89C4051 provides the following standard features: 4K bytes of Flash,
128 bytes of RAM, 15 I/O lines, two 16-bit timer/counters, a five-vector, two-level inter-
rupt architecture, a full duplex serial port, a precision analog comparator, on-chip
oscillator and clock circuitry. In addition, the AT89C4051 is designed with static logic
for operation down to zero frequency and supports two software-selectable power
saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters,
serial port and interrupt system to continue functioning. The power-down mode saves
the RAM contents but freezes the oscillator disabling all other chip functions until the
next hardware reset.
with 4K Bytes

AT89C4051-24PI Summary of contents

  • Page 1

    ... Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set. By combining a versa- tile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C4051 is a powerful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications. ...

  • Page 2

    ... Pin Configuration 2.1 PDIP/SOIC 3. Block Diagram AT89C4051 2 RST/VPP 1 20 VCC (RXD) P3 P1.7 (TXD) P3 P1.6 XTAL2 4 17 P1.5 XTAL1 5 16 P1.4 (INT0) P3 P1.3 (INT1) P3 P1.2 (TO) P3 P1.1 (AIN1) (T1) P3 P1.0 (AIN0) GND 10 11 P3.7 1001F–MICRO–6/08 ...

  • Page 3

    ... I/O pin. The Port 3 output buffers can sink 20 mA. When 1s are written to Port 3 pins they are pulled high by the internal pullups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (I Port 3 also serves the functions of various special features of the AT89C4051 as listed below: Port Pin P3.0 P3 ...

  • Page 4

    ... Figure 5-1. Note: Figure 5-2. AT89C4051 4 Oscillator Connections C1 ± for Crystals = 40 pF ± for Ceramic Resonators External Clock Drive Configuration Figure 5-1 ...

  • Page 5

    ... User software should not write 1s to these unlisted locations, since they may be used in future products to invoke new features. In that case, the reset or inactive values of the new bits will always be 0. Table 6-1. AT89C4051 SFR Map and Reset Values 0F8H B 0F0H 00000000 ...

  • Page 6

    ... MOVX-related Instructions, Data Memory The AT89C4051 contains 128 bytes of internal data memory. Thus, in the AT89C4051 the stack depth is limited to 128 bytes, the amount of available RAM. External DATA memory access is not supported in this device, nor is external Program memory execution. Therefore, no MOVX [ ...

  • Page 7

    ... CC drops below the detection threshold, all port pins (except P1.0 and P1.1) are weakly CC goes back up again, an internal Reset is automatically generated after 2.1V PORT PIN INTERNAL RESET AT89C4051 2.1V 15 msec. 7 ...

  • Page 8

    ... RST to “L” Turn V Data Polling: The AT89C4051 features Data Polling to indicate the end of a write cycle. During a write cycle, an attempted read of the last byte written will result in the complement of the writ- ten data on P1.7. Once the write cycle has been completed, true data is valid on all outputs, and the next cycle may begin ...

  • Page 9

    ... P3.5 and P3.7 must be pulled to a logic low. The values returned are as follows. (000H) = 1EH indicates manufactured by Atmel (001H) = 41H indicates AT89C4051 13. Programming Interface Every code byte in the Flash array can be written and the entire array can be erased by using the appropriate combination of control signals ...

  • Page 10

    ... Figure 13-1. Programming the Flash Memory Figure 13-2. Verifying the Flash Memory AT89C4051 10 AT89C4051 P3.1 RDY/BSY PP AT89C4051 1001F–MICRO–6/08 ...

  • Page 11

    ... Byte Write Cycle Time WC t RDY/BSY\ to Increment Clock Delay BHIH t Increment Clock High IHIL Note: 1. Only used in 12-volt programming mode. 15. Flash Programming and Verification Waveforms 1001F–MICRO–6/08 PP AT89C4051 Min Max Units 11.5 12.5 V 250 µA 1.0 µs 1.0 µs 1.0 µ ...

  • Page 12

    ... Power-down Mode Notes: 1. Under steady state (non-transient) conditions, I Maximum I per port pin Maximum total I for all output pins exceeds the test condition than the listed test conditions. 2. Minimum V for Power-down is 2V. CC AT89C4051 12 *NOTICE: Condition (Except XTAL1, RST) (XTAL1, RST ± 10 -80 µ ...

  • Page 13

    ... External Clock Drive Waveforms 19. External Clock Drive Symbol Parameter 1/t Oscillator Frequency CLCL t Clock Period CLCL t High Time CHCX t Low Time CLCX t Rise Time CLCH t Fall Time CHCL 1001F–MICRO–6/ 2.7V to 6.0V CC Min Max AT89C4051 V = 4.0V to 6.0V CC Min Max Units 0 24 MHz 41 ...

  • Page 14

    ... IL (1) 23. Float Waveforms Note: 1. For timing purposes, a port pin is no longer floating when a 100 mV change from load voltage occurs. A port pin begins to float when 100 mV change from the loaded V AT89C4051 14 12 MHz Osc Min Max 1.0 700 ...

  • Page 15

    ... FREQUENCY (MHz) TYPICAL ICC - IDLE (85˚ FREQUENCY (MHz) TYPICAL ICC vs. VOLTAGE- POWER DOWN (85˚ µ 3.0V 4.0V Vcc VOLTAGE 1. XTAL1 tied to GND 2. P.1.0 and P1 GND CC 3. Lock bits programmed AT89C4051 AT89C4051 Vcc=6.0V Vcc=5.0V Vcc=3. AT89C4051 Vcc=6.0V Vcc=5.0V Vcc=3. AT89C4051 5.0V 6.0V 15 ...

  • Page 16

    ... AT89C4051-12SU AT89C4051-24PU 24 4.0V to 6.0V AT89C4051-24SU 20P3 20-lead, 0.300” Wide, Plastic Dual In-line Package (PDIP) 20S 20-lead, 0.300” Wide, Plastic Gull Wing Small Outline (SOIC) AT89C4051 16 Package 20P3 20S 20P3 20S Package Type Operation Range Industrial (-40° 85° C) Industrial (-40° ...

  • Page 17

    ... Mold Flash or Protrusion shall not exceed 0.25 mm (0.010"). 2325 Orchard Parkway San Jose, CA 95131 R 1001F–MICRO–6/08 D PIN TITLE 20P3, 20-lead (0.300"/7.62 mm Wide) Plastic Dual Inline Package (PDIP) AT89C4051 E1 A1 COMMON DIMENSIONS (Unit of Measure = mm) SYMBOL MIN NOM A – – A1 0.381 – D 24.892 – ...

  • Page 18

    ... SOIC AT89C4051 18 1001F–MICRO–6/08 ...

  • Page 19

    ... Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ...