This project includes some easy to use libraries. They can be found in the library directory. They are designed for the ATTiny 0/1/2 series for fast initializing system clock
/twi
/uart
/spi
/analog
hardware parts of the ATTiny controllers. Every library has a main.c
where a description how to use the library can be found.
For Programming the device with serialupdi
a USB/UART
bridge is necessary and a simple adapter pcb.
USB/UART Bridge from RS-Components
Top | Bottom |
---|---|
Download Avr Dude avrdude-v?.?-windows-x64.zip
and Microchip Studio 7
Copy avr-dude to a preferred path (e.g. C:\Tools\avrdude
) and setup external tools in Microchip Studio 7.
# Title
AVR Dude t1606 FLASH
# Command
C:\Tools\avrdude\avrdude.exe
# Arguments !PORT!
-c serialupdi -p t1606 -b 57600 -P COM? -U flash:w:"$(TargetDir)$(TargetName).hex":a -v
# Arguments
# Title
AVR Dude t1606 FLASH + EEPROM
# Command
C:\Tools\avrdude\avrdude.exe
# Arguments !PORT!
-c serialupdi -p t1606 -b 57600 -P COM? -U flash:w:"$(TargetDir)$(TargetName).hex":a -U eeprom:w:"$(TargetDir)$(TargetName).eep":a -v
# Arguments
Important: It is necessary to setup the right COM-Port!
Now projects can be programmed with avr-dude
and serialupdi
after the project was built.
Additional software that needs to be installed:
R. GAECHTER