AVR Programmer
I use uisp under linux to program my AVR’s. The parallel port on my workbench PC has proven less than reliable so the STK200 style programmer I built was not performing well. I now use the serial port with a dasa style cable. The pinout is shown below. I use a toggle switch to toggle the RESET line as the software control proved unreliable on my setup. This toggled must be thrown each time you want to access the device. It is a bit of a hassle, but very reliable programming is possible.
DB9 | AVR |
---|---|
|
|
3 | MOSI |
8 | MISO |
4 | SCK |
5 | GND |
6-pin ISP Header | 10-pin ISP Header | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Some common uisp commands I use
Identify the AVR connected, basic check to see if you are communicating
uisp -dprog=dasa -dserial=/dev/ttyS1
Read the fuse bytes
uisp -dprog=dasa -dserial=/dev/ttyS1 --rd_fuses
Upload the file main.hex to flash and verify
uisp -dprog=dasa -dserial=/dev/ttyS1 --upload --verify if=main.hex