KANDA STK200ICE Quick Start Manual Download Page 5

Loading a sample file into AVR Studio

  Create a New Project in AVR Studio, and give it a name. Note the path to the project.

  Uncheck “Create Initial File”

  On next screen, select Debug Program as JTAG AVR and Device as ATmega162

(STK300ICE – Atmega128)

 and click finish

  Go to 

Project menu > Add Existing File

 and open bincount200.asm from CD

(Samples > STK200 > Bincount) 

or STK300 -bincount300.asm for STK300ICE

  Press F7 or Go to 

Project menu > Build

 to assemble the file. The output file is a .hex

file for the programmer – this will be stored in the same folder as the Project.

Programming file into AVR

In AVR Studio, go to 

Tools Menu > AVRISP

 (or run AVRISP yourself from programs or

desktop icon)
In AVRISP, change the Device to Atmega162 

(or ATmega128 for STK300ICE)

Now select 

File > Load > Flash

 and open bincount200.hex 

(or bincount300.hex)

 from

the AVR Studio Project folder.

Now select 

Device > Program > Flash

. Press F9 to Run or disconnect the ISP cable and

the file should run on the STK200 board

Using JTAGAVR ICE Tool

The next tool to look at is the In Circuit Emulator. We selected the JTAG AVR as the
debug tool when we created the project, so the AVR Studio is ready to accept it. No
software needs to be installed but there is a lot of documentation about using the
emulator on the CD in  

Documentation > ICE

 folder.

Summary of Contents for STK200ICE

Page 1: ...atform that lets you write code and assemble it for the microcontroller It includes a Simulator that allows you to step through your code to find basic errors Once your code is written the next step i...

Page 2: ...e concepts before starting to load software The second half of the book is about worked examples so before starting on these we need to load some software The steps outlined here cover a range of acti...

Page 3: ...ects writing code and other basics There is another folder here called App Builder Application Builder is a tool that creates initialisation code for AVR peripherals and can be a very useful aid in qu...

Page 4: ...only to the PC adapter or dongle and plug the dongle into your printer port Connect the other end of the lead to the ISP header on the STK200 board Power the STK200 board 9 15VDC Run AVRISP from the...

Page 5: ...the Project Programming file into AVR In AVR Studio go to Tools Menu AVRISP or run AVRISP yourself from programs or desktop icon In AVRISP change the Device to Atmega162 or ATmega128 for STK300ICE Now...

Page 6: ...it to the JTAGAVR using 10 way lead not lead marked ISP only Plug the adapter into the 10 way header labeled Port C on STK200 and AVR TRAIN or Port F Analog Port on STK300 with the connectors facing i...

Page 7: ...ry and in AVR Studio documentation and help Next Steps We have covered how to use the tools in this guide The next step is to return to the book and begin to work through the examples Good Luck FURTHE...

Reviews: