Welcome

This blog has permanently moved to
https://boseji.com

Contact Form | Email Address

© 2018 All rights reserved by Boseji

Thank you for all your support.

Friday, February 4, 2011

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.

No comments:

Post a Comment