So you wanna learn avr assembly?
What we will do here is make an avr flash leds, and understand the program that makes it happen.
The source we will be working with is
here, it flashes leds on port B of a atmega32.
Basic steps to avr software:
- Make code
- Compile code
- Upload code
- Test
- Repeat
Then we will break down the code
Make code
This step is easy cause I did it for ya.
download it
I also have a much better formed avr 'skel' that I use to write up my own avr programs,
you can
download that too.
Compile code
Linux:
G AVR ASM:
From command line, type:
gavrasm test1.asm
it should generate the files:
Windows:
jkkhkh