Google

Jul 10, 2008

trouble with my isp for ATmega16L

i built my own stk 200 isp dongle and tried to program the ATmega16 using pony prog.i'm getting a device not recognized error. i have checked all the connections and nothing seems to be wrong.i have supplied power to the device and used a 8Mhz crystal. could anyone tell me what is wrong.

troubleshooting steps

  • check your connections properly and the connections to printer port
  • select the correct printer port, LPT1, LPT2 or LPT3
  • You may use chipblaster AVR from HP infotech and select programmer as kanda systems/stk200 available in the programmer select menu.
  • provide 5 v power supply and check the voltages.

also the 8Mhz crystal you used won't work because the chip is initially set at 1Mhz factory settings.so even if you connect 8Mhz crystal it will work at its default 1Mhz.To use the 8Mhz crystal you have to program the fuse bits properly. you can find about crystal select options and fuse bits in the datasheet of the relevant chip.also be careful with fuse bits . if you program them incorrectly it will get locked and you will not be able to read or write your chip.

These are few reasons why homemade ISP can fail :

- Length of wire greater than 50 cm (some times it works on as much as 1m length and more, but it HAS TO WORK with 50 cm wire length)

- forgetting to connect ckt GND to parallel/serial port GND

- forgettin to short certain pins of parallel port/serial port

You might be also interested in:


:: Assembly Language Programs on strings
:: Assembly Language Programs to compute an expression
:: Interfacing Analog-to-Digital converter to 8086 using 8255

No comments: