Getting Started with AVR Microcontrollers

This tutorial on Starting AVR 8-bit Development shows what hardware and software is needed to start programming 8-bit AVR microcontrollers in C. The tutorial shows step-by-step how to set up hardware and install software to get your first AVR C program compiled and loaded to a breadboard circuit.




The free Atmel Studio software is used to create the program and the AVRISP mkII programmer is used to load the program to the AVR microcontroller. The tutorial uses the ATtiny2313 microcontroller.

4 thoughts on “Getting Started with AVR Microcontrollers

  1. could you add some comments to the c program? I don’t understand what the variables in CAPS mean. Seem like every 2313 program I look at has strange unexplained variables like OCR1A in it.

    • The items in capitals are not actually variables. Some are internal registers of the AVR and others are bit positions in those registers. If you want to find out what they are, get the datasheet for the ATtiny2313 and search for those names.

      You are also in luck because I have just started a tutorial series on the ATtiny2313 where all will be explained. Follow this series which will be updated each week (at this time, only the first part of the tutorial has been posted): http://startingelectronics.org/tutorials/AVR-8-microcontrollers/ATtiny2313-tutorial/

Leave a Reply

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