Created
October 18, 2024 02:22
-
-
Save nickyonge/332a2ea390a63600abb8a11d4da27226 to your computer and use it in GitHub Desktop.
ATtinyX4 / ATtinyX5 pinout description and graphic diagram, with links and resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* PINOUT DIAGRAMS FOR ATTINYX4 / ATTINYX5 | |
ATtinyX4 | |
.--------. | |
VCC [2.7-5.5V] - 1 =| O |= 14 - GND | |
10(0),X1,PCI8,PB0 - 2 =| |= 13 - 0(10),A0,PCI0,PA0 | |
9(1),X2,PCI9,PB1 - 3 =| |= 12 - 1(9),A1,TXD,PCI1,PA1 | |
RESET,11(11),PCI11,PB3 - 4 =| |= 11 - 2(8),A2,RXD,PCI2,PA2 | |
8(2),INT0,PCI10,PB2 - 5 <| |= 10 - 3(7),A3,PCI3,PA3 | |
7(3),A7,PCI7,PA7 - 6 <| |= 9 - 4(6),A4,SCK/SCL,PCI4,PA4 | |
6(4),A6,SDA/DI,PCI6,PA6 - 7 <| |> 8 - 5(5),A5,DO,PCI5,PA5 | |
'--------' | |
ATtinyX5 | |
.--------. | |
RESET,5,A0,PCI5,PB5 - 1 =| O |= 8 - VCC [2.7-5.5V] | |
3,A3,X1,PCI3,PB3 - 2 =| |= 7 - 2,INT0,A1,SCK/SCL,PCI2,PB2 | |
4,A2,X2,PCI4,PB4 - 3 <| |> 6 - 1,DO,RXD,PCI1,PB1 | |
GND - 4 =| |> 5 - 0,DI,TXD,SDA,PCI0,PB0 | |
'--------' | |
= - Pin | |
> - PWM Pin | |
4(6) - Arduino Pins, with CW(CCW) pinout (CCW on ATtinyX4 only) | |
PCI - Pin Change Interrupt (PCINT) pins | |
INT - External Interrupt pins | |
RESET - Reset Pin (fuses must be set to use) | |
DI/DO - Data In/Data Out (aka MOSI/MISO) | |
PA/PB - Port pins, Port A and Port B (PA on ATtinyX4 only) | |
Sourced from ATTinyCore by SpenceKonde | |
GitHub: https://github.com/SpenceKonde/ATTinyCore | |
ATtinyX4 Pinout: https://raw.githubusercontent.com/SpenceKonde/ATTinyCore/refs/heads/v2.0.0-devThis-is-the-head-submit-PRs-against-this/avr/extras/Pinout_x4.jpg | |
ATtinyX5 Pinout: https://raw.githubusercontent.com/SpenceKonde/ATTinyCore/refs/heads/v2.0.0-devThis-is-the-head-submit-PRs-against-this/avr/extras/Pinout_x5.jpg | |
Datasheets: | |
ATtinyX4: https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7701_Automotive-Microcontrollers-ATtiny24-44-84_Datasheet.pdf | |
ATtniyX5: https://ww1.microchip.com/downloads/en/devicedoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf | |
AVR Fuse Calculator (for using RESET pin as I/O): | |
https://www.engbedded.com/fusecalc/ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment