element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Arduino Forum ATtiny2313 pin mapping
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 2 answers
  • Subscribers 390 subscribers
  • Views 2846 views
  • Users 0 members are here
  • pin
  • ATtiny2313
  • programing
  • mapping
Related

ATtiny2313 pin mapping

dirtdiver
dirtdiver over 13 years ago

Hi everyone,

I need something like this http://arduino.cc/hu/Hacking/PinMapping

But for the attiny2313

The only thing i know is that it has a max I/O of 18 but which one is which image i have no idea

Thanks!

  • Sign in to reply
  • Cancel
  • YT2095
    0 YT2095 over 13 years ago

    Pinout:

    http://hobby-electrons.sourceforge.net/components/ATtiny2313/ATtiny2313.png

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • R_Phoenix
    0 R_Phoenix over 13 years ago

    Link to the spec sheet

    http://www.atmel.com/Images/doc2543.pdf

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to YT2095

    image what im trying to say is that i dont know what does PA 0 for example means or PB1.

    I even tried googling PB0 pin but i get stuck at a black berry forum image

    I need the red text from here couse i have no idea where to connect stuff

    Again thaks in advance couse i just cant find anything on that topic

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • YT2095
    0 YT2095 over 13 years ago in reply to dirtdiver

    It means Port, letter and position.

    so PB0 is Bit 0 on Port B.

    PD7 Bit 7 (the last bit in the 8 bit port) on Port D.

    INT is an Interupt pin (or just part of a Port depending how you config it).

    AN0 would be analog 0 (but can also be a digital Bit on a port as well).

     

    the PDF file from Atmel for this chip should explain the pin definitions normally.

    you`ll also have to transpose them manually.

     

    hope that helps image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to YT2095

    That was verry helpful, i will try to make a diagram and post it to make sure that im correct.

    Thnaks alot!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to YT2095

    So is that how the pins are numbered?    Oh and PB2,PB3,PB4 and PD5 are PWM pins , right?but they are the only ones

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • R_Phoenix
    0 R_Phoenix over 13 years ago in reply to dirtdiver

    That depends on how the Bootloader is configured. I'm sure there is one out there for the Tiny, but I dont know of one and I don't think the Arduino IDE supports the Tiny. You will probably need to load this with a programer using AVRDude.

     

    If you read over the data sheet, it will explain what each pin can be configured for.

    For example;

     

    XTAL1 Input to the inverting Oscillator amplifier and input to the internal clock operating circuit. XTAL1

    is an alternate function for PA0.

    XTAL2 Output from the inverting Oscillator amplifier. XTAL2 is an alternate function for PA1.

     

    So those pins can be used as either 3-bit Bi-Directional IO port, or you can connect a crystal.

     

    To translate these pins to a "Digital 0, 1, 2 ect" Arduino style layout depends on how the bootloader is set up.

     

    Here is a link I just found,

    http://provideyourown.com/2011/arduino-program-attiny/

     

    This might interest you,

    http://www.pjrc.com/teensy/

    You can program it like an Arduino useing the Teensyduino add on, link further down on that page.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to R_Phoenix

    OK i have a few questions

    1st- how is the attiny 45 able to have configured pins (digital pin 1 , digital 2 and so on) and the Attiny2313 needs additional work for that?

    2nd- i just saw that the teensy can act as a joystick, do you have any idea if it can controll a pc game , for example to have a potentiometer act as a steering wheel?

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • R_Phoenix
    0 R_Phoenix over 13 years ago in reply to dirtdiver

    1. Don't know of any Arduino boards that use the ATtiny 45, it only has 8 pins, so not sure what you mean.

     

    2. I'm Sure it could.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • YT2095
    0 YT2095 over 13 years ago in reply to R_Phoenix

    it`s easy, check this out: http://hlt.media.mit.edu/?p=1229

    you`de just need to write new definitions for the 2313 to make it work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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