Hello World! - Your First AVR-GCC C Program

This is a very simple project designed only to familiarize oneself with the use of a Makefile, the compiler, linker, and FLASH download tool (such as AVRDUDE) when working with the MAVRIC / MAVRIC-II board.

This program simply blinks the on-board LED on and off, once per second. It demonstrates setting up a periodic timer interrupt as a time keeping source, declaring and using an interrupt handler with AVR-GCC, and toggling a PORT output line on and off.


  • If using a MAVRIC: ensure that DIPSW 9 is "on".

  • If using a MAVRIC-II: ensure that jumper LEDEN is installed

Sample program is here.