o

A guide to panStamp pin numbers


Atmega
328P
pin
Atmega
328P
name
Pin Desc Arduino
Uno
R3 physical pin
Arduino
pin
mapping
panStamp
AVR v1
physical pin
Arduino
pin
mapping
panStamp
AVR v2
physical pin
Arduino
pin
mapping
1 PD3 PCINT19, OC2B, INT1 5 D3, PWM 18 D3, PWM 27 D18, PWM
2 PD4 PCINT20, XCK, T0 - - - - - - 19 D4 26 D19, PWM
3 GND GND - - - - - - - - - - - - - - - - - -
4 VCC VCC - - - - - - - - - - - - - - - - - -
5 GND GND - - - - - - - - - - - - - - - - - -
6 VCC VCC - - - - - - - - - - - - - - - - - -
7 PB6 PCINT6, XTAL1, TOSC1 - - - - - - - - - - - - - - - - - -
8 PB7 PCINT7, XTAL2, TOSC2 - - - - - - - - - - - - - - - - - -
9 PD5 PCINT21, OCB0, T1 11 D5, PWM 20 D5, PWM 25 D20
10 PD6 PCINT22, OC0A, AINO 12 D6, PWM 21 D6, PWM 24 D21
11 PD7 PCINT23, AIN1 13 D7 22 D7 23 D22
12 PB0 PCINT0, CLK0, ICP1 14 D8, PWM 2 D8 4 D14
13 PB1 PCINT1, OC1A 15 D9, PWM 3 D9, PWM 3 D15, LED
14 PB2 PCINT2, SS, OC1B 16 D10, PWM - - - - - - - - - - - -
15 PB3 PCINT3, OC2A, MOSI 17 D11, SPI MOSI, PWM BR61 MOSI 22 D0, SPI MOSI
16 PB4 PCINT4, SPI MISO 18 D12, SPI MISO BR51 MISO 21 D1, SPI MISO, PWM
17 PB5 PCINT5, SPI SCK 19 D13, LED, SPI SCK BR41 SCK 20 D2, SPI SCK, PWM
18 AVCC - - - - - - - - - - - - - - - - - - - - -
19 ADC6 - - - - - - - - - 11 A6 6 A6
20 AREF - - - 21 AREF - - - - - - 11 AREF
21 GND - - - - - - - - - - - - - - - - - - - - -
22 ADC7 - - - - - - - - - 12 A7 5 A7
23 PC0 PCINT8, ADC0 23 A0 4 D14, A0 10 D8, A0
24 PC1 PCINT9, ADC1 24 A1 5 D15, A1 9 D9, A1
25 PC2 PCINT10, ADC2 25 A2 6 D16, A2 8 D10, A2
26 PC3 PCINT11, ADC3 26 A3 8 D17, A3 7 D11, A3
27 PC4 PCINT12, I2C SDA, ADC4 27 A4, I2C SDA 9 D18, A4, I2C SDA 19 D3, A4, I2C SDA, PWM
28 PC5 PCINT13, I2C SCL, ADC5 28 A5, I2C SCL 10 D19, A5, I2C SCL 18 D4, A5, I2C SCL, PWM
29 PC6 PCINT14, RESET 1 RESET 13 RST 12 RESET
30 PD0 PCINT16, RXD 2 D0, RX 16 D0, UART_RX 17 D5, RXD
31 PD1 PCINT17, TXD 3 D1, TX 17 D1, UART_TX 16 D6, TXD
32 PD2 PCINT18, INT0 4 D2 - - - - - - - - - - - -
1 Bottom row pins, not numbered.
PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 & 7) map to the crystal pins and are not usable
  • DDRB - The Port B Data Direction Register - read/write
  • PORTB - The Port B Data Register - read/write
  • PINB - The Port B Input Pins Register - read only
PORTC maps to Arduino analog pins 0 to 5. Pins 6 & 7 are only accessible on the Arduino Mini
  • DDRC - The Port C Data Direction Register - read/write
  • PORTC - The Port C Data Register - read/write
  • PINC - The Port C Input Pins Register - read only
PORTD maps to Arduino digital pins 0 to 7
  • DDRD - The Port D Data Direction Register - read/write
  • PORTD - The Port D Data Register - read/write
  • PIND - The Port D Input Pins Register - read only

Last updated 30-01-2016


All trademarks referred to in this web site are the properties of their respective owners. Trademarked names appear throughout the content of this site. Trademarks, and their respective owners, are not systematically listed or marked in the text, but nevertheless all trademarks are acknowledged. Any trademarks or names being used are for editorial purposes only, and to the benefit of the trademark owner, with no intention of infringing upon that trademark.

© 2009-2016 fruit
Page design by fruit.

No js mail weblink

Valid HTML 4.0!
Document made with Nvu
Home My work My computers Links page Genealogy pages Bits & pieces