deckle studio
Open the editor
Microcontroller with real firmwareATTINY85-20PUattiny85

ATtiny85 (AVR, Firmware)

ATtiny85: 8-pin AVR with 8 KB flash, internal oscillator (8 MHz or 1 MHz), no crystal needed. Runs Arduino sketches (ATTinyCore) or AVR firmware (HEX / ELF): digitalWrite/Read on PB0–PB4, analogWrite on PB0, PB1, PB4 (Timer0 / Timer1), analogRead on A1–A3, internal 1.1 V / 2.56 V references, Wire (I²C master on PB0 SDA / PB2 SCL through the USI), SPI, pin-change interrupts, watchdog and sleep.

VCCGNDPB0 ~ SDA MOSIPB1 ~ MISOPB2 SCL SCK A1PB3 A3PB4 ~ A2RESETATTINY85-20PU
Schematic symbol

Key data

Category
ICs
Simulation model
Microcontroller with real firmware
Manufacturer part number
ATTINY85-20PU
Reference prefix
U
Pins
8
Land pattern
DIP-8_W7.62mm

Notes

The firmware runs on an emulated CPU core, instruction by instruction. Peripherals that the model implements (GPIO, timers, UART, SPI, I²C, ADC and others, see the description) act on the pins of the circuit, so the analog parts around the chip see the same voltages and timing as on a real board.

  • The bare chip needs VCC, GND and 100 nF next to VCC; it runs from its internal oscillator.
  • It has no serial port: show results on pins (LEDs, a display) or in the EEPROM.
  • Right-click the part and choose "Open in code editor" to write and compile its code; "Serial monitor" shows its UART output.
  • In the inspector you can load a demo firmware or your own ELF / Intel HEX / BIN file instead.
  • GPIO pins are real circuit pins: an LED on an output needs a series resistor, an input needs a defined level (pull-up or pull-down).
  • The debugger in the code view stops at breakpoints and shows registers, variables and the call stack.

Simulation model

An emulated CPU core runs the firmware binary instruction by instruction. The GPIO pins are pins of the analog circuit: outputs drive through a driver resistance, inputs read the voltage with thresholds.

Device
attiny85
CPU core
AVR 8-bit
Emulator
AVR emulator
Firmware
Arduino sketch compiled in the code view (arduino-cli, ATTinyCore), or your own ELF / Intel HEX / BIN file
Flash / RAM for firmware
8 KB / 512 B
Supply pins
VCC / GND
Mapped GPIO pins
6

Pins 8

simulatedreal chip onlyPin functions from the emulator and the datasheet.

PinNameFunctionsUse
VCCVCCSupply pinSupply 1.8–5.5 V: 100 nF next to VCC
GNDGNDGround pinGround
PB0PB0 ~ SDA MOSII/O pinUSI_SDAUSI_DIOC0A!OC1AAIN0PCINT0AREFI²C data: pull-up (about 4.7 kΩ) to the supply
PB1PB1 ~ MISOI/O pinUSI_DOOC0BOC1AAIN1PCINT1Analog input: potentiometer, sensor voltage (0 V … supply)
PB2PB2 SCL SCK A1I/O pinUSI_SCLUSI_SCKADC1INT0PCINT2T0SPI clock: displays, flash, SD cards
PB3PB3 A3I/O pinADC3!OC1BPCINT3XTAL1Analog input: potentiometer, sensor voltage (0 V … supply)
PB4PB4 ~ A2I/O pinADC2OC1BPCINT4XTAL2Analog input: potentiometer, sensor voltage (0 V … supply)
RESETRESETInput pin · pulled up on the boardRESETADC0Reset, active low: 10 kΩ pull-up, 100 nF to GND, optional button to GND

Parameters 2

Packagepackage
DefaultDIP8
DIP8SOIC8
Clockclock
Default8MHz
8MHz1MHz

8 MHz or 1 MHz internal oscillator (fuse CKDIV8); the sketch is compiled for the same clock

PCB

Verified land patternDIP-8_W7.62mm
PackageLand patternStatusSource
DIP8 · ATTINY85-20PUDIP-8_W7.62mmVerified land patternKiCad 10.0.7: symbol ATtiny85-20P, footprint Package_DIP:DIP-8_W7.62mm
  • VCC 100 nF from VCC to GND, close to the pins
  • RESET 10 kΩ pull-up to VCC (or leave the internal pull-up; keep it high to run)
SOIC8 · ATTINY85-20SUSOIC-8_5.3x5.3mm_P1.27mmVerified land patternKiCad 10.0.7: symbol ATtiny85-20S, footprint Package_SO:SOIC-8_5.3x5.3mm_P1.27mm
  • VCC 100 nF from VCC to GND, close to the pins
  • RESET 10 kΩ pull-up to VCC (or leave the internal pull-up; keep it high to run)