ATtiny13 – Hello World! :)

Finally managed to get into AVR programming. Using OSX, which I found as the worst platform for doing any kind of embed programming :( Sad. Anyway, there’s my first ATtiny schematics and code. I’m using AVR Dragon to flash code into the MCU.


The circuit is quite simple. I just confirm SPI flashing works and I’m able to turn the LED on. So here’s some code (using avr-gcc to compile and avrdure to upload). Create new project using avr-project and add this to main.c file:

Now we can compile the firmware and upload to our MCU.

No errors. Great. Connect AVR Dragon and upload our new firmware:


For those, interested in .hex file – this is how it looks like:

and I made some commented assembler output (base is taken from avr-objdump -S main.elf).


Posted in MCU

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 21 = 25