URL: <http://savannah.nongnu.org/patch/?7244>
Summary: TPI bitbang implementation Project: AVR Downloader/UploaDEr Submitted by: geekman Submitted on: Thu 15 Jul 2010 04:30:05 PM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: I have implemented the TPI protocol for serial bitbang programmers. The code requires some work, so I'm posting what I have here. Please do let me know what changes need to be made so I can clean it up. The first logical step was to implement pgm->cmd_tpi() for the serialbb programmer. Code added in avr.c should somehow use the OPCODE structs, but I'm not sure what's the best way to change it since the read & write opcode do not contain the address but rely on a separate set-address opcode. Another opcode that's out of place is the SKEY instruction, which requires an operand of 8 bytes. This definitely cannot fit into the 32-bit "instruction format" defined. The serialbb also does not implement a paged_load function, but TPI is faster when reading in blocks, therefore the code was inserted in avr_read & avr_write. Constants in tpi.h (there is no tpi.c) should be somehow moved into the AVRPART struct, but TPI has so far been in a single product line, the ATtiny4/5/9/10 which share the same I/O addresses. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 15 Jul 2010 04:30:05 PM GMT Name: avrdude-tpi-bb.patch Size: 18kB By: geekman Initial patch <http://savannah.nongnu.org/patch/download.php?file_id=20985> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7244> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avrdude-dev