element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog Atmega Pinout and Conflicts
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: vandia
  • Date Created: 24 May 2017 10:18 PM Date Created
  • Views 766 views
  • Likes 1 like
  • Comments 1 comment
  • gpio
  • gpio conflicts
  • edison gpio
  • atmega328
  • intel_edison
  • edison_gpio
  • gpio_conflicts
  • intel edison
Related
Recommended

Atmega Pinout and Conflicts

vandia
vandia
24 May 2017

I'm writing this as a "Blog Post", because I did not see a way to make it a document: Which I would have preferred.

 

I ran into a problem on the Intel Edison board, that stuck me for a while on coding, until I finally found the issue was with the Arduino Atmega328 chip on the Intel's Arduino breakout board. My personal problem was that I was unable to run I2C while using some of the Analog pins. While the detailed hardware information can be found linked below, I wanted to create an "easier" guide to know what pins you CAN NOT use, if you plan to use others, so you don't keep re-writing your code, and can plan your wiring in advance, to also be able to purchase any expansions you need in advance as well to compensate for the pins you'll be locked out of by using another pin.

 

From this point forward, I'll refer to these pins you cannot use as "Zombie Pins", because they're physically present, but pretty much dead for use, with their life being somewhere else.

 

I'm going to make a list of pins in a grid. To the left is the Atmega pin number, to the right is all pins/functions on that pin. You can only use one of those pins listed on the right at a time, or you'll have some odd/unwanted behavior.

 

Notes:

-This is NOT an all-encompassing guide to all functions, just conflicts for the most common used ones.
- I am going by the actual CHIP pin number listing.

- A = Analog Input, D = Digital I/O

- Some conflicts are labeled on the board (such as D pins having a function), but I'm including them anyhow, to allow people to plan their wiring in advance, and be able to know what they need to program before they even buy their board!

 

Atmega PinPin Functions
1*Reset
2**D1 / RXD
3**D2 / TXD
4D3
5D4 / PWM
6D5
7/20*VCC
8/22Ground
9/10Unknown
11D5 / PWM
12D6 / PWM
13D7
14D8 / CLK0
15D9 / PWM
16D10 / PWM
17*,***D11 / PWM / MOSI
18*,***D12 / MISO
19*D13 / SCK
21AREF
23A0
24A1
25A2
26A3
27A4 / SDA
28A5 / SCL

 

* = Also known to be used for some of the smaller holes you can solder into the board, near AREF and the "ON" LED (forget what they're called).

** = Also used for Atmega for USB programming. If you have trouble writing, try disconnecting device from these ports.

*** = There is a secondary of this function of this type in the ICSP circuit, near the Reset button
For these markers, please refer to the Reference link below for the breakout board for more information.

 

-I believe one of the Digital pins also controls the "L" LED, near 13.

 

Anyhow, I hope this helps others with the Arduino, including the Intel Edison when using the Arduino Breakout board!

 

Reference:

Intel Edison Breakout Board: http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edison-arduino-hardware-guide.pdf

  • Sign in to reply
  • vandia
    vandia over 8 years ago

    I was advised by staff that, while I had this in Essentials, this may do better here in Arduino.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube