Learning assembly programming
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
00_light
01_blinkenlight
02_momentary_button_light
README.md
USBASP-Atmega-Circuit.gif
atmega328w_pinout.png
avr.jpg
m328Pdef.inc

README.md

AVR Assembly tests

I'm trying to increase my understanding of computers in general by getting closer to the metal and writing some assembly. I've got an ATmega328P (the MCU from an Arduino) on a breadboard, and a USBASP for programming it over a serial connection.

Microcontroller on breadboard

Development

AVRA is the assembler I'm using, it's simple to run:

avra code.asm

This spits out a .hex file which can be written to the MCU using avrdude:

avrdude -c usbasp -p atmega328p -P /dev/ttyACM0 -U flash:w:code.hex

Wiring

MCU

ATmega328P pinout diagram

Programmer

USBASP pinout diagram