Download Print this page
Atmel AT89C2051 Manual

Atmel AT89C2051 Manual

8-bit microcontroller with 2k bytes flash

Advertisement

Quick Links

Features
®
Compatible with MCS
-51Products
2K Bytes of Reprogrammable Flash Memory
– Endurance: 1,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
Green (Pb/Halide-free) Packaging Option
1. Description
The AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcomputer with
2K bytes of Flash programmable and erasable read-only memory (PEROM). The
device is manufactured using Atmel's high-density nonvolatile memory technology
and is compatible with the industry-standard MCS-51 instruction set. By combining a
versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C2051 is a power-
ful microcomputer which provides a highly-flexible and cost-effective solution to many
embedded control applications.
The AT89C2051 provides the following standard features: 2K bytes of Flash, 128
bytes of RAM, 15 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt
architecture, a full duplex serial port, a precision analog comparator, on-chip oscillator
and clock circuitry. In addition, the AT89C2051 is designed with static logic for opera-
tion 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.
8-bit
Microcontroller
with 2K Bytes
Flash
AT89C2051
0368G–MICRO–6/05

Advertisement

loading

Summary of Contents for Atmel AT89C2051

  • Page 1 Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C2051 is a power- ful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications.
  • Page 2 2. Pin Configuration 20-lead PDIP/SOIC RST/VPP (RXD) P3.0 P1.7 (TXD) P3.1 P1.6 XTAL2 P1.5 XTAL1 P1.4 (INT0) P3.2 P1.3 (INT1) P3.3 P1.2 (TO) P3.4 P1.1 (AIN1) (T1) P3.5 P1.0 (AIN0) P3.7 3. Block Diagram AT89C2051 0368G–MICRO–6/05...
  • Page 3 As inputs, Port 3 pins that are externally being pulled low will source current (I ) because of the pull-ups. Port 3 also serves the functions of various special features of the AT89C2051 as listed below: Port Pin Alternate Functions P3.0...
  • Page 4 Figure 5-1. Oscillator Connections C1, C2 = 30 pF ± 10 pF for Crystals Note: = 40 pF ± 10 pF for Ceramic Resonators Figure 5-2. External Clock Drive Configuration AT89C2051 0368G–MICRO–6/05...
  • 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. AT89C2051 SFR Map and Reset Values 0F8H 0FFH 0F0H...
  • Page 6 2K for the AT89C2051. This should be the responsibility of the software programmer. For example, LJMP 7E0H would be a valid instruction for the AT89C2051 (with 2K of memory), whereas LJMP 900H would not.
  • Page 7 11. Programming The Flash The AT89C2051 is shipped with the 2K bytes of on-chip PEROM code memory array in the erased state (i.e., contents = FFH) and ready to be programmed. The code memory array is pro- grammed one byte at a time.
  • Page 8 Turn V power off Data Polling: The AT89C2051 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 The write operation cycle is self-timed and once initiated, will automatically time itself to completion. Most major worldwide programming vendors offer support for the Atmel AT89 microcontroller series. Please contact your local programming vendor for the appropriate software revision.
  • Page 10 Figure 13-1. Programming the Flash Memory Figure 13-2. Verifying the Flash Memory AT89C2051 0368G–MICRO–6/05...
  • Page 11 AT89C2051 14. Flash Programming and Verification Characteristics = 5.0 ± 10% = 0°C to 70°C, V Symbol Parameter Units Programming Enable Voltage 11.5 12.5 Programming Enable Current µA Data Setup to PROG Low µs DVGL Data Hold after PROG µs GHDX P3.4 (ENABLE) High to V...
  • Page 12 80 mA If I exceeds the test condition, V may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions. 2. Minimum V for Power-down is 2V. AT89C2051 0368G–MICRO–6/05...
  • Page 13 AT89C2051 18. External Clock Drive Waveforms 19. External Clock Drive = 2.7V to 6.0V = 4.0V to 6.0V Symbol Parameter Units Oscillator Frequency CLCL Clock Period 83.3 41.6 CLCL High Time CHCX Low Time CLCX Rise Time CLCH Fall Time CHCL 20.
  • Page 14 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 level occurs. AT89C2051 0368G–MICRO–6/05...
  • Page 15 AT89C2051 24. I (Active Mode) Measurements AT89C2051 TYPICAL ICC - ACTIVE (85°C) Vcc=6.0V Vcc=5.0V Vcc=3.0V FREQUENCY (MHz) 25. I (Idle Mode) Measurements AT89C2051 TYPICAL ICC - IDLE (85°C) Vcc=6.0V Vcc=5.0V Vcc=3.0V FREQUENCY (MHz) 26. I (Power Down Mode) Measurements AT89C2051 TYPICAL ICC vs.
  • Page 16 27. Ordering Information 27.1 Standard Package Speed Power (MHz) Supply Ordering Code Package Operation Range AT89C2051-12PC 20P3 Commercial AT89C2051-12SC (0°C to 70°C) 2.7V to 6.0V AT89C2051-12PI 20P3 Industrial AT89C2051-12SI (-40°C to 85°C) AT89C2051-24PC 20P3 Commercial AT89C2051-24SC (0°C to 70°C) 4.0V to 6.0V...
  • Page 17 AT89C2051 28. Package Information 28.1 20P3 – PDIP SEATING PLANE COMMON DIMENSIONS (Unit of Measure = mm) SYMBOL NOTE – – 5.334 0.381 – – 24.892 – 26.924 Note 2 7.620 – 8.255 6.096 – 7.112 Note 2 0.356 –...
  • Page 18 2.35 (0.0926) 0.30(0.0118) 0.10 (0.0040) 0.32 (0.0125) 0º ~ 8º 0.23 (0.0091) 1.27 (0.050) 0.40 (0.016) 10/23/03 TITLE DRAWING NO. REV. 2325 Orchard Parkway 20S, 20-lead, 0.300" Body, Plastic Gull Wing Small Outline (SOIC) San Jose, CA 95131 AT89C2051 0368G–MICRO–6/05...
  • Page 19 AT89C2051 0368G–MICRO–6/05...
  • Page 20 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...