| Programming an Atmel AVR |
|
The following tutorial introduces programming of your AVR microcontroller using In System Programming (ISP). This programming technique allows you to program the eeprom and flash memories of your chip while in circuit. This removes the requirement of placing your chip in a dedicated programmer every time for programming. You will need an ISP compatible programmer. These come in both parallel and serial versions and can be bought from atmel and many other people. Here are some places were you can buy a ISP for Atmel microcontrollers:
In this tutorial, we're going to use an ATMega8 on a breadboard. Parts:
-- Require image of breadboard -- Cut 6 short lengths (approx 100mm) of coloured hookup wire. Each of these represents one of the following control signals necessary to program the mega8.
Simply strip about 5mm of insulation off each wire and connect the respective pins of the Mega8 and the programmer. You have now finished setting up the hardware reqired to run your ATmega8. It's as simple as that. Some links to the software you can use for programming: PongProg is starting to get a little old and does not support all the new microcontrollers that Atmel has brought out. For programming new microcontroller I suggest using AVRDUDE, it is a command line program which means it can be controlled from your make file. It comes installed with WinAVR, read our AvrDude Tutorial for more information.
|
