Burning the Sanguino Bootloader using DAPA

From RepRap
Revision as of 14:30, 22 September 2011 by Marnargulus (talk | contribs)
Jump to: navigation, search

Installing the bootloader on an ATMEGA644P via Direct AVR Parallel Access (DAPA)

This will be an instruction set for manually bit-banging the bootloader onto a blank 644P chip. This method DOES NOT require the purchase of an AVR Programmer or ISP (such as an additional arduino). Much of this is based of the Arduino.cc Parallel Programmer guide, found [1].

Materials Needed:

1. Computer with parallel port

2. USB Cable (for powering board)

3. Parallel Port male adapter (25 pin DB)

4. 5 ft Wire (or 1 ft of 5 strand wire)

5. Resistors (1/8 watt) (2)X 470 Ohm; (1)X 220 Ohm

6. Solder and Soldering Iron

7. Completed Sanguinololu Board

Parallel Adapter First assemble the parallel port adapter: 1. Clip the leads of the resistors to ~ 1 inch 2. Solder the 220 Ohm resistor to pin 11 of the adapter 3. Solder one wire strand to the other side of the resistor 4. Solder one of the 470 Ohm resistors to pin 1 of the adapter 5. Solder one wire strand to the other side of the resistor 6. Solder the other 470 Ohm resistor to pin 2 of the adapter 7. Solder one wire strand to the other side of the resistor At this point you should have 3 wires, connected to 3 resistors, which are in turn soldered to the parallel adapter. 8. Solder one wire strand to pin 16 of the adapter (no resistor on this line) 9. Solder one wire strand to pin 18 of the adapter (no resistor on this line either.)

At this point you have everything you physically need for bit-banging your chip. You have two options now: 1. Solder the wire ends to the board directly (not recommended if you want to use your board for an ISP for other boards) 2. Put a 2X3 connector on the ends (very clean, easy to connect and disconnect many times with different boards)

If you plan to directly solder these wires to the board this is the connection table: Pin Board ID 1 SCK 2 MOSI 11 MISO 16 RESET 18 GND

OR If you plan to add the 2x3 connector follow this layout: [None] [Pin 2] [Pin 18]

[Pin 11] [Pin 1] [Pin 16]