10 April 2013

Connecting an ISP Programmer to an ATMega8

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!

13 comments:

  1. Thank you for the ISP hook up info great

    ReplyDelete
  2. Hi!
    Number 3 in connector ISP does GND? =)

    ReplyDelete
    Replies
    1. 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.

      But if you want to make sure, feel free to connect pin 3 to GND.

      Delete
  3. 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?

    Paul

    ReplyDelete
    Replies
    1. Paul, good idea, I will mention this.

      Delete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. Here no clock input is given. will it work without crystal oscillator connections? ignore this if its a stupid question.

    ReplyDelete
    Replies
    1. Mehta, no stupid question at all. It will work, assuming that the chip is in default state.

      When 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.

      Delete
    2. oh.. thanks for your reply..
      is there a way to check in which configuration the fuses are set? Any tests to identify the fuse configuration?

      Delete
    3. 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....).
      Or 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.

      Delete
  6. Hi.I am making someting like this.Tell me how to connect isp to pc.Thanks

    ReplyDelete
  7. Hi 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.

    ReplyDelete
  8. Hi 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.

    ReplyDelete