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 AVR ISP compatible programmer. These are generally USB 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.
- 7805 Voltage Regulator
- 2 x 10uF Electrolytic Capacitors
- 4.7k ohm or similar resistor
-- 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.