Portb (Pb0 Pb5) Pb0 Portd (Pd0 Pd7) Pd0: Arduino and Atmega328 Pin Mapping

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.

jpg
Arduino and ATmega328 Pin Mapping
BJ Furman
01SEP2011

PORTB (PB0‐PB5) PORTD (PD0‐PD7)


Arduino
ATmega328 (see the data sheet) PB0
Arduino Symbolic Name ATmega Symbolic Name Some PD0
Pin No. (using me106.h) Header Pin No. PORT Pin Alt. Fun. Header J3 Header J1
2 D PD0 RXD
0 PIN_D0
1 PIN_D1 3 D PD1 TXD
2 PIN_D2 4 D PD2 INT0
3 PIN_D3 5 D PD3 INT1
4 PIN_D4 J1 6 D PD4 XCK
5 PIN_D5 11 D PD5 OC0B
6 PIN_D6 12 D PD6 OC0A/AIN0
7 PIN_D7 13 D PD7 AIN1
8 PIN_D8 14 B PB0 CLKO/ICP1
9 PIN_D9
15 B PB1 OC1A
10 PIN_D10
J3 16 B PB2 OC1B
11 PIN_D11
17 B PB3 MOSI
12 PIN_D12
13 PIN_D13 18 B PB4 MISO
14 PIN_D14 PIN_A0 19 B PB5 SCK
15 PIN_D15 PIN_A1 23 C PC0 ADC0
16 PIN_D16 PIN_A2 24 C PC1 ADC1
J2 25 C PC2 ADC2
17 PIN_D17 PIN_A3
18 PIN_D18 PIN_A4 26 C PC3 ADC3
19 PIN_D19 PIN_A5 27 C PC4 ADC4/SDA Header J2
28 C PC5 ADC5/SCL PC0
(Arduino analog pin 0 or PORTC (PC0‐PC5)
Arduino digital pin 14 )

ATmega328 data sheet, p. 2


http://www.atmel.com/dyn/resources/prod_documents/8
BJ Furman handout_Arduino_ATmega328_pin_mapping.xls 1 of 1

You might also like