Skip navigation

SERIAL PORT PROGRAMMER FOR ATMEGA MCU’S  (Very Simple-Make one for Urself )

This is the easiest programmer circuit to make. You just have to get Serial Port connector and three 1K resistors and you are done ! Circuit Diagram is attached.

Now open the datasheet of Atmega you are using (I am using Atmega-32).

Go to the pin configuration and find the following pins and connect the programmer. Programming is done through SPI (Serial Peripheral Interface) which involves MISO, MOSI and SCK pins. RESET is used to reset the chip. 0 volt on this pin will reset the chip and for normal running it should be pulled up to +5V.

avr atmega16 pin configuartion

  • MOSI (Master Out Slave In)
  • MISO (Master In Slave Out)
  • SCK (Serial Clock)
  • RESET
  • GND (Ground)

Now connect the power supplies that is Vcc and GND to the micro controller.

Vcc = +5V and GND = 0V

Do not forget to connect Reset to Vcc with a 1K/10K resistor for pulling up.

Thats it ! We are ready with the hardware 🙂

Pony Prog

One of the most commonly used programmers on Windows. Download it from the website and install it. Now lets set it up for our hardware.

First select AVR micro and AVR-Auto (you can also specify device name, Atmega16) in the chip options (last two drop down tabs)

Go to the Setup—->Interface-Setup. Then do the settings as shown in the picture below. Then connect the circuit to the microcontroller, turn on the power supply. Now click on Probe. You should get Test OK message. If not, check your connections again.

avr pony prog

Now lets read the Microcontroller. Go to Command—->Read All. It should start reading the signature and the flash memory. You should get Read Successful message after that.

avr pony prog

avr pony prog

So we are done with the settings and testings. Everything is working fine 🙂 Now just open the hex file from File—->Open-Device-File

Go to Command—->Write-Program(Flash). It will start writing and then veryfying the code. Congratulations 🙂 you did it !

avr pony prog

Advertisements

2 Comments

  1. Hi Pavan:-)
    it was great having a look at ur website..

    I also want to make an ATMEGA SERIAL PROGRAMMER n also learn about ATMEGA architecture and programming.

    The programmer circuit you have provided is not getting uploaded properly so can you please mail it to me at cksfnds@gmail.com
    please make it soon so i can download it safely n try it out.

    And i’ve very good experience in 8051 micro controller wrt Line follower Robots and other few Embedded systems.

    waiting for your response….

  2. Good work, You just did not say about the fuse bits, e.g. for Atmega32


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: