0% found this document useful (0 votes)
535 views2 pages

Handout Arduino ATmega328 Pin Mapping and Schematic

This document provides a mapping of the pins between the Arduino board and the ATmega328 microcontroller. It lists the Arduino pin names and numbers and shows how they correspond to the ATmega328 port and pin names. Additional information is given on the port locations of analog inputs and alternate functions of certain pins. External references are also provided for more details on the microcontroller and Arduino boards.

Uploaded by

Swarna Rekha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
535 views2 pages

Handout Arduino ATmega328 Pin Mapping and Schematic

This document provides a mapping of the pins between the Arduino board and the ATmega328 microcontroller. It lists the Arduino pin names and numbers and shows how they correspond to the ATmega328 port and pin names. Additional information is given on the port locations of analog inputs and alternate functions of certain pins. External references are also provided for more details on the microcontroller and Arduino boards.

Uploaded by

Swarna Rekha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Arduino and ATmega328 Pin Mapping BJ Furman 01SEP2011

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

PORTD(PD0PD7) PD0 HeaderJ1 http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.jpg

PB0 HeaderJ3

Header

J1

J3

PIN_A0 PIN_A1 PIN_A2 PIN_A3 PIN_A4 PIN_A5

J2

HeaderJ2 PC0 (Arduinoanalog pin0or Arduinodigitalpin14) PORTC(PC0PC5)

ATmega328datasheet,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