AVR Programmer ISP: STK200 using Old PC Hard Disk PATA port

We found this awesome cheap technique to convert you PC Hard Disk port into Parallel Port and then use it as STK200 for programming AVR. This is made possible in Linux – well the hacker’s friend.

Courtesy: Hackaday.com

This implementation uses a few NOR gates, Transparent Latch and a Tristate Buffer. Here is picture of the Implementation circuit.

Courtesy: ircjunk
The configuration of the programmer is such that you can have it as a Slave or a Master and configure it depending on that. All it needs is a simple remapping of the PC parallel port kernel driver in linux.
Here are the ATA port address:
0x1F0 – Primary Master ( Not preferred since you might have your HDD attached here)
0x3F6 – Primary Slave
0x170 – Secondary Master
0x378 – Secondary Slave
Then in linux its just a sequence of commands:
rmmod partport_pc
modprobe parport_pc io=0x170 irq=none,none,none
(For location of the programmer on the Secondary Master port 0x170)
Linux doesn’t like this might throw up some error messages.
Thats all your port is now remapped and the simple AVRdude command works:
avrdude -p m32 -U lfuse:w:0xe2:m -U hfuse:w:0xd8:m
To find more read the following links:
Here is a picture of the Finished build real close:
Courtesy: ircjunk
We congratulate Rue on this innovative creation.

About boseji

Bharteya Anusandhankarta ( Indian Researcher)
This entry was posted in Atmel, AVR, innovation, LINUX, open Source, programmer, tools, utilities. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s