SP12 AVR Programmer.doc

Embed Size (px)

Citation preview

  • 8/12/2019 SP12 AVR Programmer.doc

    1/5

    AVR Programmer

    The final item on the list is a programmer, to upload the code to the uC. You will need this nomatter what language you use. A convenient, fully documented programmer wasn't availa le, so wewrote one ourselves. !ere you have the diagram for a little oard containing "ust a a #ip$soc%et forthe uC, a crystal and very few other parts, as used y our programmer&

    ote that the parallel ports of modern PC's usually provide a rather modest voltage, around (.)V.*uite enough for low voltage AVR uC's, ut some devices really do re+uire more, an e ample eing theAT-ega / .

    0ut the software is "ust as suita le for 1in circuit' programming. 2n that case, the target oardmust allow free access to -342, -243, 4C5 and Reset. 4C5 should e terminated on the target oardusing a 66pf capacitor and a 77 ohms resistor, unless your ca le includes the 1dongle' mentioned

    elow. Power$on reset can e improved using a 75 resistor and a 77 8 77 nano$farad9 capacitor.

    The latter com ination allows sp 6 sufficient access to Reset&

  • 8/12/2019 SP12 AVR Programmer.doc

    2/5

    :hen using the sp 6 1stand alone' programming hardware and a plain ca le, the 75; 77 time constanton reset isn't re+uired. The uC does its own start$up delay when Vcc goes high, and that wor%s fineif it is powered y the parallel port. 0ut 2've noticed that reset does fail occasionally if powerdoesn't switch on cleanly $ li%e when an adapter is plugged in to feed a target oard. The timeconstant on the reset pin solves that, and also guards against spurious resets 8which occurred when2 used the 677 in a charging ciruit, where relatively high currents were switched9.

    0rown$out reset

  • 8/12/2019 SP12 AVR Programmer.doc

    3/5

    5en's 1dongle'A short ca le connects the oard to the Centronics parallel port of a PC. 2n most cases a plainca le will do well enough, ut 5en !untington has designed a nice 1dongle' to improve the signal+uality and ma%e the programming lines high$= e cept when sp 6 is active. The dongle can e part ofthe ca le, and is perfectly transparent to the software. 2t has no power re+uirements, as itreceives its Vcc from the port 8and passes it on to a low power target oard if re+uired9. The 4c%termination 8 77 ohm in series with 66P9 ecomes superfluous when using it, ut the reset circuitshould at least consist of a 75 resistor etween Vcc and the uC's reset pin. !ere is the schematic&

    (

  • 8/12/2019 SP12 AVR Programmer.doc

    4/5

    >

  • 8/12/2019 SP12 AVR Programmer.doc

    5/5