ATtiny45 / ATtiny85 connection guide
ATtiny45 / ATtiny85 (PDIP-8) connection guide. Power and reset. Program and read the signature over ISP.
| Package | Contacts | Details |
|---|---|---|
| PDIP-8 | 8 | 8 numbered contacts. See the individual package drawings for footprint dimensions. |
| SOIC-8 | 8 | 8 numbered contacts. See the individual package drawings for footprint dimensions. |
| TSSOP-8 | 8 | 8 numbered contacts. See the individual package drawings for footprint dimensions. |
| QFN/MLF-20 | 21 | 20 numbered contacts. The underside pad appears below the contact map. See the individual package drawings for footprint dimensions. |
Device variants · PDIP-8
| Device | Flash | SRAM | EEPROM | Supply | Max clock | Temperature |
|---|---|---|---|---|---|---|
| ATtiny45 | 4 KiB | 256 B | 256 B | — | — | — |
| ATtiny45V-10PU | 4 KiB | 256 B | 256 B | 1.8–5.5 V | 10 MHz | -40 to +85 °C |
| ATtiny45-20PU | 4 KiB | 256 B | 256 B | 2.7–5.5 V | 20 MHz | -40 to +85 °C |
| ATtiny85 | 8 KiB | 512 B | 512 B | — | — | — |
| ATtiny85V-10PU | 8 KiB | 512 B | 512 B | 1.8–5.5 V | 10 MHz | -40 to +85 °C |
| ATtiny85-20PU | 8 KiB | 512 B | 512 B | 2.7–5.5 V | 20 MHz | -40 to +85 °C |
Power and reset
RequiredUse 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
Bench checks
- RESET is active by default. GPIO use requires disabling RESET via RSTDISBL and keeping debugWIRE inactive. For ADC0, check the reset threshold and internal pull-up while RESET is enabled. Active debugWIRE also uses this pad.
- Give unused GPIO inputs a defined level. Enable the internal pull-up or use an external pull-up or pull-down if a defined level is needed during reset. Avoid a direct rail connection that could short an accidental output.
- With power off, check for a short across the supply. Power on and measure voltage at every supply pin and at reset.
- 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 2586Q · 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.
- 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
- Hold RESET (PB5) low during programming. The programmer drives MOSI into PB0 and SCK into PB2. PB1 drives MISO back to the programmer.
- Provide the clock selected by CKSEL. Each SCK high and low interval must exceed two CPU cycles below 12 MHz and last at least three cycles at 12 MHz or above.
- RESET is active by default. GPIO use requires disabling RESET via RSTDISBL and keeping debugWIRE inactive. For ADC0, check the reset threshold and internal pull-up while RESET is enabled. Active debugWIRE also uses this pad.
- Read the device signature before writing flash or fuses. If it fails, verify target power, the clock source, programmer direction, and the selected device.
- 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 2586Q · Serial Programming Pin Mapping
PDIP-8 wiring map
1 · PB5
Active-low reset input by default. Use as GPIO only where the reset-disable fuse is supported and configured. Alternate assignments: ADC0 (ADC), PCINT5 (EXINT).
Wiring requirements
Serial programming (ISP). Hold RESET (PB5) low during programming. The programmer drives MOSI into PB0 and SCK into PB2. PB1 drives MISO back to the programmer.
RESET, GPIO or ADC0 on PB5. RESET is active by default. GPIO use requires disabling RESET via RSTDISBL and keeping debugWIRE inactive. For ADC0, check the reset threshold and internal pull-up while RESET is enabled. Active debugWIRE also uses this pad.
Unused GPIO. Give unused GPIO inputs a defined level. Enable the internal pull-up or use an external pull-up or pull-down if a defined level is needed during reset. Avoid a direct rail connection that could short an accidental output.
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.
- ATtiny45/ATtiny85 data sheet· 2586Q · Pin configuration, electrical characteristics, ordering table and serial programming.
- ATtiny_DFP Device Family Pack· Machine-readable device definition: package contacts, peripheral routes, and memory sizes.
- AVR Microcontroller Hardware Design Considerations· Power supply, reset network, and programmer connection guidance.
- ATtiny45 documentation and errata· Check current manufacturer documentation, ordering status and silicon revision applicability.
- ATtiny85 documentation and errata· Check current manufacturer documentation, ordering status and silicon revision applicability.
- AVR source register· Source identifiers, applicability, retrieval dates, and SHA-256 digests.
