SPARK V ATMEGA16 Hardware Manual
4. Programming Spark V ATMEGA16 Robot
There are lots of IDEs (Integrated Development Environment) available for the AVR
microcontrollers. There are free IDEs which are based on AVR GCC like AVR Studio from
ATMEL and WIN AVR and proprietary IDEs like ICC AVR, Code vision AVR, IAR and KEIL
etc. IDEs like ICC AVR and code vision AVR are very simple to use because of their GUI based
code generator which gives you generated code. Almost all the proprietary IDEs works as full
version for first 45 days and then there code size is restricted to some size. We have used free
IDE like AVR Studio from ATMEL and proprietary IDE like ICC AVR for the robot. In this
manual we are going to focus on the AVR studio from the ATMEL. It uses WIN AVR open
source C compiler at the back end. It has many attractive features like built-in In-Circuit
Emulator and AVR instruction set simulator. After writing and compiling the program it gives
".hex" file. This ".hex" file needs to be loaded on the robot using In System Programmer (ISP).
IDE Installation
Since AVR studio uses WIN AVR compiler at the back end we need to install WIN AVR first
(Please note that WIN AVR must be installed before AVR Studio so that AVR Studio can easily
detect the AVRGCC plug-in).
4.1 Installing WIN AVR
Insert the Spark V documentation CD and from the "Software and Drivers" folder copy "WIN
AVR 2009-03-13" on the PC and click on WinAVRxxxx.exe file.
Figure 4.1
WIN AVR installation package will open. Choose language as "English".
© NEX Robotics Pvt. Ltd. and ERTS Lab IIT Bombay, INDIA
43
Need help?
Do you have a question about the SPARK V ATMEGA16 and is the answer not in the manual?