Incircuit Programmer
Incircuit Programmer
Component List
Description
The Atmega328 microcontroller supports in-circuit
in programming. In-circuit
circuit programming, also know as in
in-
system programming, is a feature which allows the microcontroller to be programmed while being
installed in the production system. The advantage of the feature
feature is the microcontroller need not be
plugged out of the final product for firmware upgrades. However, a hardware component called InIn-circuit
programmer is required to program the microcontroller.
The USBASP has a USB connector which plugs into the USB port of the development PC and the 10 pin
header is used to connect it to the development board. Out of the 10 pins, only 6 pins are used. While
programming the microcontroller,, the power is supplied by the programmer. The USBASP has a jumper
setting to choose between 3.3V and 5 V power supply as shown in the following figure.. We are using 5V
power supply for our board, so the jumper must be set accordingly.
Bare metal embedded programming with Atmega328 uC
Circuit Diagram
Now, wire the in-circuit programmer to the development board built in the previous lesson as shown in
above circuit diagram.