Professional Documents
Culture Documents
Semester 2 2013
1 Introduction
In this lab, you will compile and install a bootloader, onto the Atmel AVR ATmega32 microcontroller.
The bootloader is a small piece of software that resides in the flash memory of the microcontroller
that allows the remainder of the flash memory to be programmed via the serial interface. Once the
bootloader is installed, there should be no further need to use a hardware programming tool.
You will be provided with the items listed in this section. The breadboard and the three breakout
boards must be returned at the end of the semester. The remaining components may be transferred
to your PCB once it has been manufactured.
Prototype the the basic microcontroller circuit and serial communication interface from the given AVR
circuit reference design (see atmega2010_v1.2.pdf on Blackboard). There are extra features on the
reference design that are not required for this lab, such as the additional breakout pins, 3.3V regulator
and IMU interface. Some component values in the reference design may differ from those provided,
seek clarification from your tutor if you are unsure.
We will be using Atmel AVR Studio 4 and WinAVR as our development environment. These should
already be installed on the computers in ES313, however there are some known issues. If you are on
campus, or otherwise have access to the University intranet, the latest installation and troubleshooting
instructions can be found at
http://mtronics.newcastle.edu.au/wiki/index.php/WinAVR_and_AVR_Studio_installation_and_
troubleshooting.
If you would like to setup these tools on you own PC to bring to the lab, do the following:
1) Connect the programmer to the 10 pin ISP breakout board, and the computers USB port.
2) Using device manager (Win+Pause), find the COM port number the programmer is using.
3) Within AVR Studio, click ToolsProgram AVRConnect. . . and select STK500 on the
left pane, and the appropriate COM port in the right pane. Click Connect. . . .
4) From the Main tab, click Read Signature to confirm the ATmega32 is correctly identified.
5) From the Fuses tab, set the fuse bits as shown in Figure 1.
Recommendations