Skip navigation

Monthly Archives: January 2010

working on it… 80% COMPLETED..

coming soon..

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)
  • 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