Working with ATtiny5/10 using USBASP programmer with RSTDISB

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I finally got the whole toolchain going, from studio 6 programming in GCC and programming the tiny10 using a £2 USBASP thing off ebay.
I built a small interface board to do it. I can put design notes & gerbers on here for the community if desired. The board essentially combines MISO and MOSI using resistors to get the TPI DATA signal (+ a pullup) and includes a 5 - 12V boost converter to optionally put 12V on the RESET pin.
Notes -
1) you need to buy 2 of the USBASP sticks & use each to program the other with the latest code
2) you need ver 5.11.1 of AVRDUDE. A windows port of 5.11 is available (but doesn't work) & I overwrote the bin files with some 5.11.1 exe's sourced from srmeister (thanks)
3) it's not always straightforward to get pins 1/2 right way round on the ribbon cables...... ;^)

top board is the programming adapter, bottom board is the target project board (an ebike controller)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

this is the circuit

typical command line to use it....
avrdude -cusbasp -pt10 -B20 -Uflash:w:euebike.hex
1) avrdude
2) it's plugged in the usb slot
3) it's an ATtiny10
4) has to be slowed down a bit to work
5) write file euebike.hex into the flash

Last Edited: Sat. Jul 20, 2013 - 11:04 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Design data archive - single sided SMD PCB, needs 2 wire links

Attachment(s):