Getting started with the Atmel AVR 8

Posted by Matthew Fri, 14 Apr 2006 20:58:00 GMT

There are two major microcontrollers in the hobby domain, the popular PIC and Atmel’s AVR line. PICs are tried and true in both commercial and hobby implementations, but the Atmel AVR offers affordable programming solutions, a free development environment, a free assembler and a stable gcc toolkit that work across the entire AVR line.

Various AVR microcontrollers

Affordable Programmers

The AVR is well known for how simple it is to program. To start, you only need a few resistors and a parallel port. This will burn your code onto the microchip, but if you plan on pursuing larger projects you will need a more complex programmer with ISP support. This will enable the extra features and debugging support.

  1. The ultra low-cost AVR programmer uses an LPT port and a few resistors, but requires special software.
  2. A simple serial programmer for Linux uses several resistors and two LEDs. Programming is done with uisp.
  3. More complex schematics for ISP programmers that can be programmed via AVR Studio or AVR-Dude.
  4. A usb programmer that supports ISP.

A simple serial programmer

A free development environment

AVR Studio is available directly from Atmel at no cost. It has an integrated simulator and programming software. However, there is only an assembler available. You will have to purchase more software for high level languages.

The gcc-toolkit

If you want to use C/C++, then the gcc-toolkit is available for the AVR, free. WinAVR comes loaded with a gcc, binutils, the avrdude programmer, simulavr, and more. On Linux, you will need to download the packages for your specific distribution or compile your own cross-compiler.

A great community

AVR Freaks is a site dedicated to the AVR line of microcontrollers. There is a large archive of tutorials and a very helpful forum.

Comments

Leave a response

  1. Avatar
    Lucas Mon, 17 Apr 2006 13:48:18 GMT

    It’s ATMEL, not AMTEL ;)

  2. Avatar
    Matthew Mon, 17 Apr 2006 14:32:09 GMT

    That’s what I get for pushing things out the door! Honestly, calling the company Amtel is a serial habit of mine. It started years ago and I have never been able to shake it.

  3. Avatar
    rodbotic Mon, 17 Apr 2006 17:29:07 GMT

    winAVR is a free C compiler for the avr atmels.

    AVRLIB is a great free example C. to do just about everything on the atmel.

  4. Avatar
    rodbotic Mon, 17 Apr 2006 17:30:40 GMT

    also check out avrfreaks.net

    for more free help and code

  5. Avatar
    Lucas Mon, 17 Apr 2006 18:23:36 GMT

    I forgot to mention: I love superpositioned and really appreciate your work! no reason to throw the towel ;)

  6. Avatar
    Matthew Mon, 17 Apr 2006 21:30:06 GMT

    No harsh feelings. I have been walking around all day saying, “Atmel, Atmel.” People are going to think I’m nuts.

  7. Avatar
    learner404 Fri, 28 Apr 2006 21:51:16 GMT

    Atmel microcontrollers are great :) Here’s an open source project using an atmega8: http://www.liberlab.net

  8. Avatar
    Pavan Fri, 16 Jun 2006 17:34:23 GMT

    how can i program the internal timer 1 of ATmega 8535

Comments