Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: rahul on April 06, 2008, 02:07:15 PM

Title: AVR Programmer
Post by: rahul on April 06, 2008, 02:07:15 PM
Hello everyone,
  I am a beginner in robotics and currently trying to do my first project. I have started with AVRs and I need to make a parallel port in circuit programmer for the AT mega8 microcontroller. I did tried googling and came up with different schematics for the programmer  :o :o :o :o

Now I dont know which one to go with ..

Can there be different schematics to program an AVR via the same printer/parallel port ? ??? ??? ??? ???

here is what I found:

http://www.opend.co.za/tutorials/avrtut2/avricp.png

http://gopchandani.files.wordpress.com/2007/02/avr-isp.gif

http://www.avr-asm-tutorial.net/avr_gra/avr_isp.gif

I understand, that these schematics maybe for different AVRs like At mega32 or At mega16, but we can use the programmer to program Any AVR provided we connect the MISO/SCK/MOSI etc, of microcontroller with respective wires of the programmer, only pin number would change if we shift from ATmega8 To ATmega32, and the desired pins of the microcontroller can be identified using the Datasheet. Am I correct?

Do correct me if I am wrong ..

Can anyone provide the schematics of a working Parallel Port Programmer for ATmega8/16 and 32?

Many thanks!

Title: Re: AVR Programmer
Post by: superchiku on April 06, 2008, 03:26:12 PM
u see the differences in the circuits are only minor, it actually came out like that due to some features which the designer wanted to add to protect the micro nothing special all do the same job just that ppl write the Letter 'a' a little differently from others same is here with the programmer schematics

If u want a parallel port programmer , u can make one within the cost of 1$ i assure u , just go to any computer shop and ask for a 36 pin centronics printer cable.thats all u need for a programmer but it has its disadvantages , the 1st and foremost that everything u can only be done manually and also that u can use only winavr and avrdude to program the device. These are some minor problems but do look at what u spent for a programmer just $1

The connections should be like this:

CENTRONICS CONNECTOR(36 HOLE SIDE)                                                     MICROCONTROLLER PINS
              PIN 7                                                 --------------------------------------                   RESET
              PIN 8                                                  ---------------------------------------                 SCK
              PIN 9                                                ------------------------------------------                MOSI
              PIN 10                                                ---------------------------------------                 MISO
              PIN 19                                               -----------------------------------------                GROUND



THATS BASICALLY ALL U HAVE TO DO , TRY IT IF U GOT ANY PROBLEMS THEN POST IN THIS FORUM
Title: Re: AVR Programmer
Post by: rahul on April 06, 2008, 09:44:40 PM
Thanks a lot for your quick reply but if you noticed, there is a notable difference in all those programmers, and I guess I am still confused with that.



The first one has ( http://www.opend.co.za/tutorials/avrtut2/avricp.png (http://www.opend.co.za/tutorials/avrtut2/avricp.png) )

Pin 2------------------------------------SCK
Pin 3------------------------------------RST
Pin 9------------------------------------MOSI
Pin 11----------------------------------MISO
Pin 25-----------------------------------GND



while the other one says,
( http://gopchandani.files.wordpress.com/2007/02/avr-isp.gif )

Pin2--Pin11
pin3--Pin12
Pin6-----------------------SCK
Pin7-----------------------MOSI
Pin9-----------------------RST
Pin10----------------------MISO
Pin25---------------------GND


while this one says :
( http://www.avr-asm-tutorial.net/avr_gra/avr_isp.gif )

Pin18-pin25-- all GND


And you said:
 PIN 7 -------------------------------------- RESET
PIN 8 --------------------------------------- SCK
PIN 9 ------------------------------------------ MOSI
PIN 10 --------------------------------------- MISO
PIN 19 ----------------------------------------- GROUND


there is a whole lot difference in pin configurations ! Isn't it?

I did read somewhere that the wrong Parallel Port Programmer can BLOW up my printer port as well as some part of motherboard!  :o ??? ???


I am using a DB25 cable .. with the 25 pin male header.

Thanks once again!
Title: Re: AVR Programmer
Post by: superchiku on April 07, 2008, 01:18:31 AM
i already answered this look in RI forum
Title: Re: AVR Programmer
Post by: Admin on April 14, 2008, 06:54:16 PM
hey! 2nd hit on google!
http://www.societyofrobots.com/robotforum/index.php?topic=3598.msg27487
Title: Re: AVR Programmer
Post by: pomprocker on April 15, 2008, 06:21:05 PM
instructables.com has an easy tutorial for an AVR parallel programmer. you could modify it to make it in circuit if you wanted.