Spark Logic

Atmel AT89C52 connection guide

Atmel AT89C52 (PDIP-40) connection guide. Power and internal code selection. Drive XTAL1 with a bench clock.

PackageContactsDetails
PDIP-40 40 40P6, 15.24 mm (0.600 in) row spacing. Ordering suffix P.
PLCC-44 44 44J, J-shaped leads at 1.27 mm pitch. Ordering suffix J.
TQFP-44 44 44A, 0.80 mm lead pitch, 11.75–12.21 mm lead span and 1.20 mm maximum height. Ordering suffix A.
PQFP-44 44 44Q, 0.80 mm lead pitch, 12.95–13.45 mm lead span and 2.45 mm maximum height. Ordering suffix Q.

Atmel

Device variants · PDIP-40

DeviceDetails
AT89C52-12 Up to 12 MHz, 4.0–6.0 V. AT89C52-12PC: 0–70 °C. AT89C52-12PI: −40–85 °C. 8 KiB Flash and 256 B RAM.
AT89C52-16 Up to 16 MHz, 4.0–6.0 V. AT89C52-16PC: 0–70 °C. AT89C52-16PI: −40–85 °C. 8 KiB Flash and 256 B RAM.
AT89C52-20 Up to 20 MHz, 4.0–6.0 V. AT89C52-20PC: 0–70 °C. AT89C52-20PI: −40–85 °C. 8 KiB Flash and 256 B RAM.
AT89C52-24 Up to 24 MHz, 4.0–6.0 V. AT89C52-24PC: 0–70 °C. AT89C52-24PI: −40–85 °C. 8 KiB Flash and 256 B RAM.

Power and internal code selection

Required

Power VCC from a regulated 5 V supply (±5% for these examples). Place a 100 nF ceramic bypass between VCC and GND. The high strap on EA selects the installed Flash at reset address 0000h.

  • VCC rail
    • Regulated supply +
    • C1.1
  • Ground
    • Supply return
    • C1.2
100 nF between VCC rail and GroundVCC rail100 nFGround

Bench checks

  • Confirm the package pin 1 mark before applying power and measure VCC relative to ground at the IC.
  • Use a 100 nF X7R capacitor rated at least 16 V as the local high-frequency bypass. Keep its loop short.
  • Confirm the on-chip Flash contains the intended startup code before selecting internal execution.
  • With lock bit 1 programmed, a valid reset latches EA. Keep the pin at the latched level during operation.

Atmel AT89C52, 0313H–02/00, pp. 4, 13, 17, 22

Connection scenarios

PDIP-40 wiring map

External wiring example · Power and internal code selection

Highlighted contacts are used in this circuit. Select a contact to highlight its wiring nets.

PDIP-40 · Face the package marking. The notch is up, pin 1 is upper left and pin 40 is upper right.
Selected pin details

40 · VCC

Supply · Power

Connect to the regulated positive supply. Place the bypass capacitor close to VCC and ground.

Wiring requirements

  • Wake from Power-down. Restore VCC to its normal operating level before asserting hardware reset. Keep RST HIGH through oscillator stabilization and the reset interval. Hardware reset is the only exit from Power-down.

Atmel 0313H–02/00, pp. 1, 3–5

Connected nets

Electrical limits · Pin in the reference

Dashed lines show external connections in this wiring example.

  • VCC rail
    • Regulated supply +
    • C1.1
    • Via 100 nF to Ground · Supply return, GND (20), C1.2

Manufacturer documents

This reference resolves the abbreviated 89C52 name to Atmel’s AT89C52, document 0313H. It covers all four package drawings and the listed 12/16/20/24 MHz speed grades. Check the full marking on parts from other manufacturers. The AT89S52 uses its own programming interface and datasheet.

  • Datasheet for AT89C52· Atmel 0313H–02/00, February 2000. Pin configurations p. 1, pin descriptions pp. 3–4, SFR reset p. 5, Timer 2 pp. 6–10, oscillator and low-power modes p. 12, lock bits p. 13, DC p. 17, clock drive p. 20, ordering and package drawings pp. 22–23. SHA-256 f8d392b5cc25322766180e74d323b5c8abd647c98f9d4fbfc6f99a7d1f89e4bd.
  • Intel MCS-51 Family User’s Manual· Intel 272383-002, February 1994, chapter 3. Core operation, port latches and serial interface. The AT89C52 datasheet governs its own electrical limits and Timer 2 extensions.