Where are the power pins on an atmega 328?

Hello everyone! I've tried to find out this question everywhere, but cannot find it. Does anyone know how to hook up power to an atmega 328?

thanks,
qtechknow XD

On the chip.
Pins 7 & 20 to +5
Pins 8 & 22 to ground.

I've tried to find out this question everywhere, but cannot find it.

The data sheet? It is hardly hidden.

They┬┤re at 7 for VCC and 8+22 for GND. AREF is at 21 and AVCC at 20, I think.
See some datasheet.

Also, how much power does the atmega328p and atmega328 run on?

Thanks for the past replies Grumpy Mike and nevar91!

how much power does the atmega328p and atmega328 run on?

I think your words show you don't understand electricity.
The run off 5V, but this is not power.
They take a current depending on the clock speed.
See section 28.2.4 ATmega328P DC Characteristics of the data sheet.

Power is the product of voltage and current.

Thanks grumpy mike. I'm using a 16mh crystal with 22pf caps. Also do I need a crystal and a cap for my own pcb?

Yes, that or a resonator.

I'm using a 16mh crystal with 22pf caps.

That's pretty slow (or lazy).

Well it is one cycle every 62.5 seconds, so it is a bit slower than normal.

Thanks for the replies everyone. Grumpy Mike, how do I use a resonator with the atmega?

how do I use a resonator with the atmega?

Well technically when referring to a crystal, they are actually meaning a quartz crystal resonator, but around here crystal is just lazy shorthand for that. When referring to resonator they are actually meaning a three terminal ceramic resonator, but around here resonator is shorthand for that.

Wiring a 3 terminal ceramic resonator is pretty simple, the middle terminal of the resonator wires to ground and the two outer terminals wire to the two clock pins of the 328 chip. There is no requirement for external padding capacitors with these kinds of ceramic resonators as they are built into the device.

Here is what one looks like: Ceramic Resonator 16MHz - COM-09420 - SparkFun Electronics

Lefty

And a crystal looks like this

http://www.dipmicro.com/store/XC7-16000
Use with these caps

http://www.dipmicro.com/store/C1K22-1000

(whoa - little biggerthan I thought that would be!)

Build up on a kit like this to have some fun

or this
http://store.nkcelectronics.com/arduino-runtime-board-rev-b.html

Well it is one cycle every 62.5 seconds, so it is a bit slower than normal.

Mike, I think PaulS was referring to the fact that the OP appears to be planning on using a 16 milliHertz crystal :wink:

The reciprocal of the frequency is the period. So
1 / 16E-3 = 62.5 seconds is it not?

Mike, I think PaulS was referring to the fact that the OP appears to be planning on using a 16 milliHertz crystal :wink:

Actually he is planning on using a 16 millihenry crystal....

Don