Programmers For AVR Serial & Parallel

July 31, 2009 by admin
Filed under: Uncategorized 

Programming Hardware for AVR’s

As hobbyist we always search for some good & cost effective programmer hardware for our specific microcontroller. Here i am trying to describe how to make some serial & parallel port based programmer that supports standered development tools like WinAVR, PonyProg etc.

  • Simple serial programmer (PonyProg compatible)
  • Serial Programmer (WinAVR compatible)
  • Parallel Port BSD Prog

Parallel Port Programmer

First let us discuss Parallel Port BSD Programmer. Originally from http://www.bsdhome.com/avrdude/. This programmer is very easy to make and as easy to use. This is a SPI based programmer, Serial peripheral Interface facility present in AVR series is very useful for programming the controller. Pins used on AVR is MOSI, MISO, SCK, RESET. Few resisters and thats it. Be careful with resisters do not skip any of them. Here is the circuit diagram.

Parallel Port PinOut

pinout-25-female-D-type-connector

prog_pins_DB25

This programmer is compatible to WinAVR. In Makefile mention programmer as “bsd” and port as lpt1.

Note- To use this programmer in WinAVR you have to install drivers because Windows XP do not allow direct access to LPT port. Goto WinAVR install directory in your Windows Drive (Usually C:/), goto bin directory there you will find a batch file named as install_giveio.bat run that file. This will install LPT driver. Now you are done to use this bsd programmer with WinAVR.


Serial PORT Programmer Compatible to PONYPROG

serial prog electroons

Pony Prog Interface Setup for Programmer

ponyprog

pinout.O300.console.port


Another Serial Port Programmer (PonySer)

ponyserPonyProg Interface  setup for This Programmer

ponyser

NOTE

This programmer is directly compatible to both PonyProg as well as WinAVR. In WinAVR you can use this programmer by specifying programmer as “ponyser” while cofiguring MAKEFILE.

devesh@electroons.com

Comments

14 Comments on Programmers For AVR Serial & Parallel

  1. deveshsamaiya on Wed, 5th Aug 2009 7:43 am
  2. What changes should be made to the MakeFile if we are using bsd programmer in WinAVR.

  3. ggvw on Tue, 15th Sep 2009 2:46 pm
  4. I tried the “Serial PORT Programmer Compatible to PONYPROG”… and it works!

    It’s the easiest programmer I’ve found so far, one that requires just 3 resistors, a connector and some wires.

    I’m building hex files with winavr and loading them with ponyprog using this programmer. Looks like it works with my attiny13 and atmega16 microcontrollers.

  5. ajay on Mon, 12th Oct 2009 8:46 am
  6. Is this both circuit can work on atmega32 processor or not??also can i use usb to parallel printer port for programing with my laptaop??

  7. admin on Wed, 4th Nov 2009 12:58 pm
  8. @ajay…
    Yes all these circuit work on Mega32….I didnt tested USB to parallel converter but usb to serial definitely works.

  9. Marian Neagu on Tue, 10th Nov 2009 3:14 pm
  10. Please tell me what settings do I have to do on my COM1 to get the “Serial PORT Programmer Compatible to PONYPROG” working with an usb to serial converter?
    I mentioned that on other computer with serial port work just fine.
    Thank you

  11. admin on Tue, 10th Nov 2009 3:43 pm
  12. ok Marian you just need to find out what number is the virtual com port made by USB-Serial has?? Usually it is com3 or com7 etc.

    If you are using windows
    Go to My Computer(Right Click) –> Properties –> Hardware –> device manager…
    there you will find what is the number of virtual com port….choose the same number on Ponyprog setup..

  13. Marian Neagu on Tue, 10th Nov 2009 3:47 pm
  14. I did this, this settings are ok, but still not working with adapter. I figure might be some settings on “advanced” tab on com port. Thank you for rapid answer

  15. Marian Neagu on Tue, 10th Nov 2009 3:50 pm
  16. and something more: when I setup ponyprog to SI PROG I/O, all ports are disabled, only in SI PROG API it let me choose the port. Could this be the reason?

  17. admin on Tue, 10th Nov 2009 4:05 pm
  18. no i think this is not the problem…. Check the Invert RESET box..and choose SI PROG IO…. On my side it let me choose the port. Although the Probe button will result in Test Failed but will program the device. Well i didnt check it with USB to serial…Let me know the bug if you rectify it…

  19. Marian Neagu on Wed, 11th Nov 2009 2:13 am
  20. I try to fix it all night long, but no success. Maybe my adapter will be the problem. I will try to find a new adapter and see wat’s happend

  21. SAM on Wed, 11th Nov 2009 2:23 am
  22. PL2303 compatible adapter will work..others may not work…

  23. Royael on Wed, 25th Nov 2009 6:28 am
  24. PonyProg is based on Bitbanging. USB to Serial Adapter are generally not supported. If supported then it will take much time to function.

    chaeck the discussio of this Link.
    http://extremeelectronics.co.in/avr-tutorials/part-iii-making-programmer-and-target/

  25. Priyanka tiwari on Thu, 1st Apr 2010 1:56 am
  26. Plz. Give d code 4 hw 2 implememt pid in line followin robot?

  27. admin on Fri, 2nd Apr 2010 2:15 am

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





Anti-Spam Protection by WP-SpamFree