handout arduino atmega328 pin mapping and schematic

2
Arduino and ATmega328 Pin Mapping BJ Furman 01SEP2011 Arduino Symbolic Name ATmega Symbolic Name Some Pin No. (using me106.h) Pin No. PORT Pin Alt. Fun. 0 PIN_D0 2 D PD0 RXD 1 PIN_D1 3 D PD1 TXD 2 PIN_D2 4 D PD2 INT0 3 PIN_D3 5 D PD3 INT1 4 PIN_D4 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 16 B PB2 OC1B 11 PIN_D11 17 B PB3 MOSI 12 PIN_D12 18 B PB4 MISO 13 PIN_D13 19 B PB5 SCK 14 PIN_D14 PIN_A0 23 C PC0 ADC0 15 PIN_D15 PIN_A1 24 C PC1 ADC1 16 PIN_D16 PIN_A2 25 C PC2 ADC2 17 PIN_D17 PIN_A3 26 C PC3 ADC3 18 PIN_D18 PIN_A4 27 C PC4 ADC4/SDA 19 PIN_D19 PIN_A5 28 C PC5 ADC5/SCL J2 ATmega328 (see the data sheet) J1 J3 Arduino Header ATmega328 data sheet, p. 2 http://www.atmel.com/dyn/resources/prod_documents/8 http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.jpg PORTD (PD0PD7) Header J1 Header J3 Header J2 PORTB (PB0PB5) PORTC (PC0PC5) PD0 PC0 PB0 (Arduino analog pin 0 or Arduino digital pin 14 ) BJ Furman handout_Arduino_ATmega328_pin_mapping.xls 1 of 1

Upload: swarna-rekha

Post on 30-Sep-2014

348 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Handout Arduino ATmega328 Pin Mapping and Schematic

Arduino and ATmega328 Pin MappingBJ Furman01SEP2011

Arduino Symbolic Name ATmega Symbolic Name SomePin No. (using me106.h) Pin No. PORT Pin Alt. Fun.

0 PIN_D0 2 D PD0 RXD1 PIN_D1 3 D PD1 TXD2 PIN_D2 4 D PD2 INT03 PIN_D3 5 D PD3 INT14 PIN_D4 6 D PD4 XCK5 PIN_D5 11 D PD5 OC0B6 PIN_D6 12 D PD6 OC0A/AIN07 PIN_D7 13 D PD7 AIN18 PIN_D8 14 B PB0 CLKO/ICP19 PIN_D9 15 B PB1 OC1A

10 PIN_D10 16 B PB2 OC1B11 PIN_D11 17 B PB3 MOSI12 PIN_D12 18 B PB4 MISO13 PIN_D13 19 B PB5 SCK14 PIN_D14 PIN_A0 23 C PC0 ADC015 PIN_D15 PIN_A1 24 C PC1 ADC116 PIN_D16 PIN_A2 25 C PC2 ADC217 PIN_D17 PIN_A3 26 C PC3 ADC318 PIN_D18 PIN_A4 27 C PC4 ADC4/SDA19 PIN_D19 PIN_A5 28 C PC5 ADC5/SCL

J2

ATmega328 (see the data sheet)

J1

J3

Arduino

Header

ATmega328 data sheet, p. 2

http://www.atmel.com/dyn/resources/prod_documents/8

http://arduino

.cc/en

/uploa

ds/M

ain/Ardu

inoD

uemilano

ve.jp

g

PORTD (PD0‐PD7)

Header J1Header J3

Header J2

PORTB (PB0‐PB5)

PORTC (PC0‐PC5)

PD0

PC0

PB0

(Arduino analog pin 0  or Arduino digital pin 14 )

BJ Furman handout_Arduino_ATmega328_pin_mapping.xls 1 of 1

Page 2: Handout Arduino ATmega328 Pin Mapping and Schematic