You need to have a USBASP from here
You also need a SOIC chip from here
Wire the correct pins from the USBASP to the SOIC clip
Then install USB drivers for the USBASP and AVRDude
https://www.dropbox.com/sh/5nsfkghk5so38bv/ikrOuVTTKh
Create a directory on the root partition (I choose c:\avrusb)
Copy the .bat file and the.hex file into that directory
right click on .bat file, select edit, and make sure the EXACT name of the.hex file is in the *.bat file
Open a command prompt (start orb, type cmd, then change directory to the directory with the .bat file and.hex file)
cd c:\avrusb
Run the *.bat file, if you have all the pins wired correctly, the driver and AVRDude loaded and the SOIC clip on the chip, you should see the commands flash by pretty quick and erase and reprogram your ATtiny13A with new custom firmware
Typical output would look something like this
C:\cd avrusb
C:\avrusb>ls
STAR.V1.1.hex avrusb.bat
C:\avrusb>avrusb
C:\avrusb>avrdude -p t13 -c usbasp -u -e
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0×1e9007
avrdude: current erase-rewrite cycle count is 269554199 (if being tracked)
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude done. Thank you.
C:\avrusb>avrdude -p t13 -c usbasp -u -Uflash:w:STAR.V1.1.hex:a -Ulfuse:w:0×75:m -Uhfuse:w:0xff:m
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0×1e9007
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option. avrdude: erasing chip avrdude: warning: cannot set sck period. please check for usbasp firmware update . avrdude: reading input file “STAR.V1.1.hex” avrdude: input file STAR.V1.1.hex auto detected as Intel Hex avrdude: writing flash (996 bytes):
Writing | ################################################## | 100% 0.72s
avrdude: 996 bytes of flash written
avrdude: verifying flash memory against STAR.V1.1.hex:
avrdude: load data flash data from input file STAR.V1.1.hex:
avrdude: input file STAR.V1.1.hex auto detected as Intel Hex
avrdude: input file STAR.V1.1.hex contains 996 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.56s
avrdude: verifying …
avrdude: 996 bytes of flash verified
avrdude: reading input file “0×75”
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0×75:
avrdude: load data lfuse data from input file 0×75:
avrdude: input file 0×75 contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.02s
avrdude: verifying …
avrdude: 1 bytes of lfuse verified
avrdude: reading input file “0xff”
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xff:
avrdude: load data hfuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.03s
avrdude: verifying …
avrdude: 1 bytes of hfuse verified
avrdude done. Thank you.
C:\avrusb>
*.bat file courtesy of comfychair