# programming atmega chip

I have built a Ponyprog programmer to find out Windows 7 cannot recognize the drivers.

I was wondering if I could use this "Pocket AVR Programmer" to program an atmega 8535?

If so, how do I connect the atmega to this board?

Or can you recommend something for me?

From Sparkfun

This programmer works really well for ATmega168 and ATmega328 and should work with all the AVR micros supported by AVRDUDE. We've played a bit with the ATtinys but we cannot guarantee that this board will be compatible with anything but ATmega168/328.

And there is a pinout for the standard ISP connectors and an example schematic on how to hook it up at http://my.opera.com/CrazyTerabyte/blog/2008/02/02/first-contact-with-atmega8-microcontroller-part-4

Page 2 of your data sheet shows you the pin out of the chip. You will need to hook up all of these pins: reset, sck, miso, mosi, vcc(power), and ground

• how do I connect the 8535 to this board? do i just plug in the first 6 pins or is the something I need to make up? – Dale Nov 22 '10 at 4:55
• @Dale I added some more explanation. – Kellenjb Nov 22 '10 at 5:04

I am sure that on this list you will be able to find simple and easy to build USB programmer for AVR.

Yes your programmer will do the job for all common atmega and attiny.

for atmel micro you have to connect this way :

programmer           target
GND         <->      GND
SCK         <->      SCK
MISO        <->      MISO
MOSI        <->      MOSI
RESET       <->      RESET


easy !

you can add VCC, if you want to power the target from the programmer (pay attention to the maximum of current it can provide)

they are two standart header (2x3 and 2x5), but I'm not using them in my personal design as they doesn't follow the common pinout of the atmega. I use a 1x5 header in the order i listed the connection because it is so much easier to route with less via and bigger trace ! I found it with this programmer

Also dont forget to put a pull up resistor on the reset line (~ 4k). You will also need one on MISO if you are using another SPI IC.

• Doesn't reset have an internal pull-up? – avakar Nov 22 '10 at 22:42
• I didn't see anything like this on the datasheet. As the reset pin can be use as general I/O, it has the generic pull up, but it's useless as you have to turn on the micro to activate it, and you need to activate it to turn on the micro... – jojo l'abricot Dec 24 '10 at 13:15