Spark Logic

ATmega1284 / ATmega1284P / ATmega644 / ATmega32 connection guide

ATmega1284 / ATmega1284P / ATmega644 / ATmega32 (TQFP-44) connection guide. Power and reset. Program and read the signature over ISP.

PackageContactsDetails
TQFP-44 44 44 numbered contacts. See the individual package drawings for footprint dimensions.
PDIP-40 40 40 numbered contacts. See the individual package drawings for footprint dimensions.
QFN-44 45 44 numbered contacts. The underside pad appears below the contact map. See the individual package drawings for footprint dimensions.

Microchip Technology

Device variants · TQFP-44

DeviceFlashSRAMEEPROMSupplyMax clockTemperature
ATmega1284 128 KiB 16 KiB 4 KiB — — —
ATmega1284-AU 128 KiB 16 KiB 4 KiB 1.8–5.5 V 20 MHz -40 to +85 °C
ATmega1284-AUR 128 KiB 16 KiB 4 KiB 1.8–5.5 V 20 MHz -40 to +85 °C
ATmega1284P 128 KiB 16 KiB 4 KiB — — —
ATmega1284P-AU 128 KiB 16 KiB 4 KiB 1.8–5.5 V 20 MHz -40 to +85 °C
ATmega1284P-AUR 128 KiB 16 KiB 4 KiB 1.8–5.5 V 20 MHz -40 to +85 °C
ATmega644 64 KiB 4 KiB 2 KiB — — —
ATmega644V-10AU 64 KiB 4 KiB 2 KiB 1.8–5.5 V 10 MHz -40 to +85 °C
ATmega644-20AU 64 KiB 4 KiB 2 KiB 2.7–5.5 V 20 MHz -40 to +85 °C
ATmega32 32 KiB 2 KiB 1 KiB — — —
ATmega32L-8AU 32 KiB 2 KiB 1 KiB 2.7–5.5 V 8 MHz -40 to +85 °C
ATmega32L-8AUR 32 KiB 2 KiB 1 KiB 2.7–5.5 V 8 MHz -40 to +85 °C
ATmega32-16AU 32 KiB 2 KiB 1 KiB 4.5–5.5 V 16 MHz -40 to +85 °C
ATmega32-16AUR 32 KiB 2 KiB 1 KiB 4.5–5.5 V 16 MHz -40 to +85 °C

Power and reset

Required

Use a current-limited supply at a voltage permitted by the order code and system clock. Tie the listed supply pins to that rail. Fit one 100 nF ceramic capacitor close to each supply-and-ground pair. Use a 10 kΩ reset pull-up for this bench circuit.

  • Target rail
    • Bench supply positive
  • Ground
    • Bench supply return
  • Reset
    • →
100 nF per supply pair between Target rail and GroundTarget rail100 nF per supply pairGround
10 kΩ between Target rail and ResetTarget rail10 kΩReset

Bench checks

  • With power off, check for a short across the supply. Power on and measure voltage at every supply pin and at reset.
  • This bench circuit powers AVCC directly from VCC with the ADC idle. For ADC conversions, feed AVCC from VCC through a low-pass filter.
  • Check the clock source configured by CKSEL. If a used part expects an external clock, provide it before attempting serial programming.

AN2519 §§2–3 and 2593O · Pin descriptions and clock source

Connection scenarios

Program and read the signature over ISP

Start from the power and reset circuit. Attach a voltage-compatible AVR in-system programmer and use the target voltage as its reference. Connect reset, serial data in/out, and SCK as shown.

AVR programmer wired to target voltage reference, ground, reset, serial data in/out and clock.ProgrammerAVR targetVTGVCCGNDGNDRESETRESETMOSIPB5MISOPB6SCKPB7
  • Target voltage sense
    • Programmer VTG
  • Common ground
    • Programmer GND
  • Reset assertion
    • Programmer RESET
    • →
  • Serial data into target
    • Programmer MOSI
    • →
  • Serial data out of target
    • Programmer MISO
    • →
  • Programming clock
    • Programmer SCK
    • →

Bench checks

  • Read the device signature before writing flash or fuses. If it fails, verify target power, the clock source, programmer direction, and the selected device.
  • If the programmer offers an adjustable SCK, start below one quarter of the target clock and check the data sheet’s SCK high and low timing. Disconnect or isolate other peripherals that drive the programming lines.
  • Disable power output on the programmer if the target has its own bench supply. Confirm the programmer’s VTG behavior in its manual.

AN2519 §4.1 and 2593O · Serial Programming Pin Mapping

TQFP-44 wiring map

External wiring example · Program and read the signature over ISP

Highlighted contacts are used in the required step or selected circuit. Select a contact to highlight its wiring nets.

TQFP-44

3 · PB7 · Left side, contact 3 from the top

Marking side · Pin 1 at the upper left
Selected pin details

3 · PB7

Bidirectional · GPIO

General-purpose digital I/O. Alternate assignments: PCINT15 (EXINT), SCK (SPI).

Wiring requirements

  • SPI master with PB4/SS as input. Hold PB4/SS HIGH. A LOW clears MSTR in SPCR, switches the SPI to slave mode, and makes MOSI and SCK inputs.

    SPI master with PB4/SS as output. PB4 can drive a peripheral’s chip select. Its output level has no effect on MSTR.

After reset · GPIO driver is high impedance during reset. Clock, debug, and alternate-function use depend on fuse and peripheral configuration.

2593O · Pinout and peripheral signal descriptions

Connected nets

Electrical limits · Pin in the reference

Manufacturer documents

Each package lists the documented order codes and variants covered by this map. Select the marked model to see its peripheral assignments and memory. Check the exact order code and datasheet revision before laying out a PCB.