Spark Logic

ATtiny88 pinout

Package pin assignments for ATtiny88, with peripheral signals, clock grades and a serial programming guide.

PackageContactsDetails
QFN-28 29 28 numbered contacts. The underside pad appears below the contact map. See the individual package drawings for footprint dimensions.
PDIP-28 28 28 numbered contacts. See the individual package drawings for footprint dimensions.
TQFP-32 32 32 numbered contacts. See the individual package drawings for footprint dimensions.
UFBGA-32 32 32 numbered contacts. See the individual package drawings for footprint dimensions.
QFN-32 33 32 numbered contacts. The underside pad appears below the contact map. See the individual package drawings for footprint dimensions.

Microchip Technology

Device variants · PDIP-28

DeviceFlashSRAMEEPROMSupplyMax clockTemperature
ATtiny88 8 KiB 512 B 64 B — — —
ATtiny88-PU 8 KiB 512 B 64 B 1.8–5.5 V 12 MHz -40 to +85 °C

PDIP-28 pinout

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

1 · PC6

Input / I/O · Reset / preset

Active-low reset input by default. Use as GPIO only where the reset-disable fuse is supported and configured. Alternate assignments: PCINT14 (EXINT).

Wiring requirements

  • External clock selected (CKSEL = 00). Drive PB6/CLKI from an external clock source with a shared ground. ATtiny88 has no crystal oscillator mode.

    Changing the source frequency. Hold the MCU in reset during any change of more than 2% in external clock frequency from one cycle to the next.

    Reusing an ATmega board. Check the board against the selected package before substituting ATtiny88. In PDIP-28, pin 21 is PC7 on ATtiny88 and AREF on ATmega168 and ATmega8. On the 32-pin TQFP and QFN pinouts, ATtiny88 uses pin 20 for PC7 where ATmega168 and ATmega8 use AREF.

8008H · Pinout and peripheral signal descriptions

Electrical limits · Link to this pin

Power and reset

  • 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

Connection guide

All 28 pins

PinSignalDirectionFunction
1PC6 Input / I/OInput / I/O Active-low reset input by default. Use as GPIO only where the reset-disable fuse is supported and configured. Alternate assignments: PCINT14 (EXINT).
2PD0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT16 (EXINT).
3PD1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT17 (EXINT).
4PD2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT18 (EXINT), INT0 (EXINT).
5PD3 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT19 (EXINT), INT1 (EXINT).
6PD4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT20 (EXINT), T (TC0).
7VCC SupplySupply Digital supply. Connect every VCC pin and place a local 100 nF ceramic bypass close to each VCC-to-ground pair.
8GND ReturnReturn Supply return. Connect every ground pin.
9PB6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT6 (EXINT), CLKI (CPU).
10PB7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT7 (EXINT).
11PD5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: T (TC1), PCINT21 (EXINT).
12PD6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: AIN0 (AC), PCINT22 (EXINT).
13PD7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: AIN1 (AC), PCINT23 (EXINT).
14PB0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ICP (TC1), PCINT0 (EXINT).
15PB1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCA (TC1), PCINT1 (EXINT).
16PB2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCB (TC1), SS (SPI), PCINT2 (EXINT).
17PB3 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: MOSI (SPI), PCINT3 (EXINT).
18PB4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: MISO (SPI), PCINT4 (EXINT).
19PB5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: SCK (SPI), PCINT5 (EXINT).
20AVCC SupplySupply Analog supply. Connect it to the supply even if analog conversion is unused. Follow the data sheet’s filtering guidance for precision conversion.
21PC7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT15 (EXINT).
22GND ReturnReturn Supply return. Connect every ground pin.
23PC0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC0 (ADC), PCINT8 (EXINT).
24PC1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC1 (ADC), PCINT9 (EXINT).
25PC2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC2 (ADC), PCINT10 (EXINT).
26PC3 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC3 (ADC), PCINT11 (EXINT).
27PC4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: SDA (TWI), ADC4 (ADC), PCINT12 (EXINT).
28PC5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: SCL (TWI), ADC5 (ADC), PCINT13 (EXINT).

Signal assignments

Timer/Counter 1

Review each signal assignment and the peripheral enable conditions in the data sheet. T → PD5 · ICP → PB0 · OCA → PB1 · OCB → PB2

Analog comparator

Review each signal assignment and the peripheral enable conditions in the data sheet. AIN0 → PD6 · AIN1 → PD7

SPI peripheral

Use SCK, MOSI, MISO and a chip-select line. Firmware selects direction and clock phase. Check the separate ISP mapping when programming. SCK → PB5 · MISO → PB4 · MOSI → PB3 · SS → PB2

TWI / I²C

Connect SDA and SCL to the bus with pull-ups to a voltage supported by all devices. Verify the pull-up value for the bus capacitance and rate. SCL → PC5 · SDA → PC4

Analog-to-digital converter

Select the analog channel and reference in firmware. The reference choice and supply constrain the input range. ADC0 → PC0 · ADC1 → PC1 · ADC2 → PC2 · ADC3 → PC3 · ADC4 → PC4 · ADC5 → PC5

External interrupts

Review each signal assignment and the peripheral enable conditions in the data sheet. PCINT0 → PB0 · PCINT1 → PB1 · PCINT2 → PB2 · PCINT3 → PB3 · PCINT4 → PB4 · PCINT5 → PB5 · PCINT6 → PB6 · PCINT7 → PB7 · PCINT8 → PC0 · PCINT9 → PC1 · PCINT10 → PC2 · PCINT11 → PC3 · PCINT12 → PC4 · PCINT13 → PC5 · PCINT14 → PC6 · PCINT15 → PC7 · PCINT16 → PD0 · PCINT17 → PD1 · PCINT18 → PD2 · PCINT19 → PD3 · PCINT20 → PD4 · PCINT21 → PD5 · PCINT22 → PD6 · PCINT23 → PD7 · INT0 → PD2 · INT1 → PD3

Timer/Counter 0

Review each signal assignment and the peripheral enable conditions in the data sheet. T → PD4

System clock

Review each signal assignment and the peripheral enable conditions in the data sheet. CLKI → PB6

Electrical limits

ParameterLimitConditions and source
Program flash8 KiB8 KiB Nonvolatile program memory. 8008H · Memory
SRAM512 B512 B Volatile data and stack storage. 8008H · Memory
EEPROM64 B64 B Nonvolatile data storage. 8008H · Memory
Clock and supplyOrder-code dependentOrder-code dependent Use the grade table and the device’s speed-versus-voltage curve. 8008H · Electrical Characteristics

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.