0% found this document useful (0 votes)
86 views

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

This document provides a mapping of the pin connections between an Arduino board and the ATmega328 microcontroller chip. It shows the corresponding pin numbers and alternate functions for each of the pins on the ATmega328 that are broken out to headers on the Arduino. The ATmega328 pins are assigned to specific PORTs and have alternate functions like analog input or serial communication.

Uploaded by

Rajani Upadhyay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

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

This document provides a mapping of the pin connections between an Arduino board and the ATmega328 microcontroller chip. It shows the corresponding pin numbers and alternate functions for each of the pins on the ATmega328 that are broken out to headers on the Arduino. The ATmega328 pins are assigned to specific PORTs and have alternate functions like analog input or serial communication.

Uploaded by

Rajani Upadhyay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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