Pages: [1] 2   Go Down
Author Topic: Pinout of 328 chip  (Read 1290 times)
0 Members and 1 Guest are viewing this topic.
uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
im learning to lay out a pcb and want to put the atmega328 chip into it, i really just want to be double sure on the pin out of the chip, as ive got it layed out on my board

pin8 +5
pin 9 crystal + cap
pin 10 crystal +cap
pin 20 +5
pin 22 Gnd

pin 21 is this pin i wasnt too sure about is it +5?, i see from some guides connect +5 to it - AREF, what does this pin do?

ok i see its the analog ref pin for max input range 5v.
thank you
« Last Edit: May 01, 2012, 11:10:27 am by jonisonvespa » Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you make a schematic? If you upload it, it will be a lot easier for us to see if it's okay.
Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11694
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nope, that pinout is definitely wrong, pin 8 is GND, pin 7 is +5V
Logged

[ I won't respond to messages, use the forum please ]

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3955
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I always make sure I've had a look at the datasheet before I commit anything to a PC board.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11694
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or use the Sparkfun library if using Eagle?
Logged

[ I won't respond to messages, use the forum please ]

Belgium
Offline Offline
Sr. Member
****
Karma: 1
Posts: 281
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When I use a bare ATmega328 on a breadboard I use this drawing to see the pins:
http://www.hobbytronics.co.uk/arduino-atmega328-pinout
Very handy because it has the Atmel and Arduino pin numbers on it.
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 524
Posts: 26438
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or copy an arduino schematic as a starting point, delete the parts you don't need.

http://arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks very much for the help
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or this:



That has the pins, the minimal configuration, and the Arduino pin numbers in brackets.
Logged

alabama
Offline Offline
Full Member
***
Karma: 1
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I really like Adafruit's stickers for breadboarded 328s, http://www.adafruit.com/products/554
When I am working on a prototyping board I will cut one in half lengthwise and reverse the sides to mirror the pins and stick them  on the bottom of the board.
Saves reversing everything in my head.
TomJ
Logged

Einstein once said you don't really understand anything until you can explain it to your Grandmother

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 524
Posts: 26438
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think a few corrections are needed:

CTS on the FTDI connector needs to be grounded as well for the FTDI breakout board/cable.
(CP2102 modules don't need the CTS pin.)
Pin6 is DTR.

What's the 10K on the Tx line? That will kill any transmit drive capability.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Krazatchu Design Systems
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've posted my eagle library here, which has a physical layout corresponding to the chip.
It might be useful: http://n0m1.com/2012/04/30/how-to-bread-board-arduino/
Logged

Michael
----------------------
http://www.krazatchu.ca

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Pin6 is DTR.

I don't know how those ideas got into my head, but I found this once:

http://www.sparkfun.com/datasheets/DevTools/FTDI%20Cable%205V.pdf

That has pin 6 labelled as RTS.
Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11694
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


What's the 10K on the Tx line? That will kill any transmit drive capability.


Why would it do that?  Its to protect the pins and allow Arduino pin 0 to be used as an output.
Logged

[ I won't respond to messages, use the forum please ]

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

here is my chip layed out whith what i think should be there could someone please verify it please.
thanks


* IMG_9526.JPG (95.97 KB, 399x545 - viewed 17 times.)
« Last Edit: May 02, 2012, 09:31:32 am by jonisonvespa » Logged

Pages: [1] 2   Go Up
Jump to: