Several people asked me how you connect an ISP programmer to an ATMega8. It never occured to me that this could be a problem for anyone. But anyway, here is a schematic.
Over time, I will write a tutorial on how to program AVR controllers.
Please note that the header shows Atmel's standard pinout for the 10-pin ISP header. Most programmers use that same pinout. But to be safe you should check your ISP programmer's manual.
I hope this is useful for someone!
Subscribe to:
Post Comments (Atom)
Thank you for the ISP hook up info great
ReplyDeleteHi!
ReplyDeleteNumber 3 in connector ISP does GND? =)
Ilya, yes pin 3 is GND. Normally, all GND pins should be connected to each other on the programmer's side. So you really only need to connect one single GND pin.
DeleteBut if you want to make sure, feel free to connect pin 3 to GND.
Looking forward to the AVR tutorial. Can you please cover 8-pin ATtiny and what can/can't be done without high voltage programming please?
ReplyDeletePaul
Paul, good idea, I will mention this.
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteHere no clock input is given. will it work without crystal oscillator connections? ignore this if its a stupid question.
ReplyDeleteMehta, no stupid question at all. It will work, assuming that the chip is in default state.
DeleteWhen the chip is new, it is configured to use the internal oscillator. If you plan to use an external crystal, you can use the controllers fuses to select that. But once that is done, you will need to attach a crystal if you want to program it.
oh.. thanks for your reply..
Deleteis there a way to check in which configuration the fuses are set? Any tests to identify the fuse configuration?
Mehta, you can. Either by reading the fuses via ISP - but that means that you have got to have the controller running with a valid clock source (in which case you know anyway....).
DeleteOr you can use a "High Voltage" programmer. But these are far more expensive than ISP programmers.
Also keep in mind that there are other fuses which can lock up the controller. Especially RSTDSBL and ISPEN.
Hi.I am making someting like this.Tell me how to connect isp to pc.Thanks
ReplyDeleteHi i have a stc chip and the on board ISP say GRT what does that stand for and how do i read from that chip.
ReplyDeleteHi i have a stc chip and the on board ISP say GRT what does that stand for and how do i read from that chip. I have a universal programmer but the Tl unit which has isp connectors.but there is no stc chip info on it can i use another similar chip. The stc is 28 pin stc15f204ea.
ReplyDeletei still cant detect atmega 8
ReplyDelete