Welcome!
I am RJH - a computer science student at the University of Texas at Dallas. Here you will find a collection of tutorials I have put together using AVR microcontrollers in both C and Assembly language. In addition, I have a showcase and source code for many of the projects I have built using AVR microcontrollers.
Highlight Javascript
For all of my code examples on this website, I use Highlight Javascript (hljs). If the code examples below do not have highlighted syntax, please enable javascript!
AVR Assembly
.include "m328pdef.inc"
.cseg
.org 0x00
main: sbi DDRB,PINB0 ; set PINB0 to output
sbi PORTB,PINB0 ; set PINB0 output high
loop: rjmp loop
AVR C
#include<avr/io.h>
int main(void)
{
DDRB |= (1 << PINB0) // set PINB0 to output
PORTB |= (1 << PINB0) // set PINB0 output high
while(1)
{
}
}
Helpful Links
- AVR Freaks Forum - Your go to source for any AVR related questions
- AVR Libc Home Page - GNU software toolchain for AVR Microcontrollers
- AVRA - Open Source assembler for AVR Microcontrollers
- Atmel Studio 7 - AVR IDE from Atmel
- USBtinyISP - Reference for the USBtinyISP AVR programmer