MCU packages

ATmega2561 · TQFP-64 pinout

TQFP-64 · bare MCU · up to 16 MHz

Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe

64-pin TQFP/QFN ATmega2561: 54 GPIOs and 8 ADC inputs. Distinct from 100-pin ATmega2560; PDI and PDO SPI programming lines are on PE0 and PE1. PF4–PF7 share JTAG.

At a glance

Platform / manufacturer
Microchip AVR
Type
MCU packages
MCU
ATmega2561
Package / connector
TQFP-64
Physical contacts
64
GPIO
54
I/O voltage
4.5–5.5 V (16 MHz grade)
Interfaces (pin count)
I²C (2) · SPI (6) · UART (6) · ADC (8) · PWM (8) · ANALOG (2) · CLOCK (3) · IRQ (17) · JTAG (4) · SMI (19) · TIMER (5)
First production / release date
Unverified for this exact model/revision [a]
MCU / processor core
8-bit AVR [a]
Clock speed / maximum
16 MHz [a]
Internal RAM / system RAM
8 KB SRAM [a]
Program Flash / storage
256 KB Flash [a]
EEPROM / persistent data
4 KB EEPROM [a]
Power and logic level
Connect VCC, AVCC and every GND pin; oscillator/fuse and RESET conditions are independent of Arduino boards. [a]
Pin sources checked
2026-11-05
Technical details reviewed
2026-11-14

All pins (64)

ATmega2561 · TQFP-64: every pin in physical order with its type, functions and warnings
PhysicalPin nameTypeFunctionsNotes and warningsSource
01PG5General-purpose I/OOC0B—[1]
02PE0General-purpose I/OPDIRXD0PCINT8—[1]
03PE1General-purpose I/OPDOTXD0—[1]
04PE2General-purpose I/OAIN0XCK0—[1]
05PE3General-purpose I/OAIN1OC3A—[1]
06PE4General-purpose I/OINT4OC3B—[1]
07PE5General-purpose I/OINT5OC3C—[1]
08PE6General-purpose I/OINT6T3—[1]
09PE7General-purpose I/OINT7ICP3CLKO—[1]
10PB0General-purpose I/OSSPCINT0—[1]
11PB1General-purpose I/OSCKPCINT1—[1]
12PB2General-purpose I/OMOSIPCINT2—[1]
13PB3General-purpose I/OMISOPCINT3—[1]
14PB4General-purpose I/OOC2APCINT4—[1]
15PB5General-purpose I/OOC1APCINT5—[1]
16PB6General-purpose I/OOC1BPCINT6—[1]
17PB7General-purpose I/OOC0AOC1CPCINT7—[1]
18PG3General-purpose I/OTOSC2

Shared with clock/oscillator functions. GPIO use depends on clock fuses and asynchronous-timer configuration; do not use an active oscillator signal as GPIO.

[1]
19PG4General-purpose I/OTOSC1

Shared with clock/oscillator functions. GPIO use depends on clock fuses and asynchronous-timer configuration; do not use an active oscillator signal as GPIO.

[1]
20RESETSystem—

Active-low reset/programming signal, not a normal GPIO.

[1]
21VCCPower——[1]
22GNDGround——[1]
23XTAL2System——[1]
24XTAL1System——[1]
25PD0General-purpose I/OINT0SCL—[1]
26PD1General-purpose I/OINT1SDA—[1]
27PD2General-purpose I/OINT2RXD1—[1]
28PD3General-purpose I/OINT3TXD1—[1]
29PD4General-purpose I/OICP1—[1]
30PD5General-purpose I/OXCK1—[1]
31PD6General-purpose I/OT1—[1]
32PD7General-purpose I/OT0—[1]
33PG0General-purpose I/OWR—[1]
34PG1General-purpose I/ORD—[1]
35PC0General-purpose I/OA8—[1]
36PC1General-purpose I/OA9—[1]
37PC2General-purpose I/OA10—[1]
38PC3General-purpose I/OA11—[1]
39PC4General-purpose I/OA12—[1]
40PC5General-purpose I/OA13—[1]
41PC6General-purpose I/OA14—[1]
42PC7General-purpose I/OA15—[1]
43PG2General-purpose I/OALE—[1]
44PA7General-purpose I/OAD7—[1]
45PA6General-purpose I/OAD6—[1]
46PA5General-purpose I/OAD5—[1]
47PA4General-purpose I/OAD4—[1]
48PA3General-purpose I/OAD3—[1]
49PA2General-purpose I/OAD2—[1]
50PA1General-purpose I/OAD1—[1]
51PA0General-purpose I/OAD0—[1]
52VCCPower——[1]
53GNDGround——[1]
54PF7General-purpose I/OADC7TDI

JTAG shares this pin with ADC/GPIO. Release JTAG through the appropriate register/fuse settings before ADC or GPIO use.

[1]
55PF6General-purpose I/OADC6TDO

JTAG shares this pin with ADC/GPIO. Release JTAG through the appropriate register/fuse settings before ADC or GPIO use.

[1]
56PF5General-purpose I/OADC5TMS

JTAG shares this pin with ADC/GPIO. Release JTAG through the appropriate register/fuse settings before ADC or GPIO use.

[1]
57PF4General-purpose I/OADC4TCK

JTAG shares this pin with ADC/GPIO. Release JTAG through the appropriate register/fuse settings before ADC or GPIO use.

[1]
58PF3General-purpose I/OADC3—[1]
59PF2General-purpose I/OADC2—[1]
60PF1General-purpose I/OADC1—[1]
61PF0General-purpose I/OADC0—[1]
62AREFSystem—

ADC reference connection, not a supply output. Coordinate external-reference wiring with the internal-reference selection.

[1]
63GNDGround——[1]
64AVCCPower——[1]

General usage notes

Bare-MCU port bit. Configure I/O mode, peripheral and any required fuses; check voltage, current and clock limits in the MCU datasheet.

Sources

Pin and warning references

  1. ATmega640/1280/1281/2560/2561 complete datasheet · PDF p. 4Figure 1-3 · TQFP64/QFN64 top view · 64 package pins; ATmega1281/2561

Technical sources (1)

  1. ATmega640/1280/1281/2560/2561 complete datasheetMicrochip · Locked pin-source document; see sources/manifest.json for revision and SHA-256

Locked source documents

Pin reference · Datasheet