Download Print this page
KANDA STK300 Manual

KANDA STK300 Manual

Avr starter kit
Hide thumbs Also See for STK300:

Advertisement

Quick Links

Kit Contents
STK300 Board
Atmega128L device mounted on a KANMEGDEV board
AVRISP-U USB Port In System Programmer (ISP)
Software CD and AVR Datasheets CD
JTAGAVR
The only extra item required is a power supply – see Power Supply section for details
about suitable power supplies.
Installing Software and documentation
The CD contains an executable file – Kanda AVR.exe. Run this installer and it will copy
all the documentation, sample code and software to your PC.
The default install folder for Kanda software and documentation is
C:\Program Files\Kanda AVR
You also have the option in this installer to install WinAVR C Compiler and AVR Studio
development environment. We recommend that you do install these unless you already
have them on your PC.
There are three main pieces of software:
AVRISP – This is the programmer software, used for transferring code from the PC
into the AVR device on the board. To install the software Double Click the EXE file
and follow the on-screen install instructions.
AVRISP has a Documents folder that contains PDF files with useful information about
AVRISP.
AVR Studio
AVR Studio is a complete development system for AVR devices,
-
supplied by Atmel. It is probably the best available for any microcontroller. This
environment is where you write new programs, and assemble them for the AVR chip.
It also includes a Simulator for stepping through your code to debug it. The
documentation folder includes instructions on using AVR Studio.
The installer allows you to install AVR Studio. The default install path is
C:\Program Files\Atmel\AVR Tools\AVR Studio
©
Kanda 2013
Copyright
STK300 AVR Starter Kit Manual
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the STK300 and is the answer not in the manual?

Questions and answers

Summary of Contents for KANDA STK300

  • Page 1 Installing Software and documentation The CD contains an executable file – Kanda AVR.exe. Run this installer and it will copy all the documentation, sample code and software to your PC. The default install folder for Kanda software and documentation is...
  • Page 2: Getting Started

    AVRISP, before tackling writing code in AVRStudio. However, it is up to you. There is also a book in Kanda AVR folder called Get Going with… AVR, another good place to start.
  • Page 3: Power Supply

    Switch Connector Port Headers Make sure you use the correct header on the STK300 board – it is the box header next to the 9-way D-Type connector and power input. Power Supply 4) Connect a power supply to the board. The connector type required is 2.1mm barrel, centre negative or centre positive.
  • Page 4 There are two buffers, one for code – Flash and one for data – EEPROM Go to File Menu and choose Load > Flash, and select a file such as Samples > STK300 > LED Flash > LEDflash.hex To load EEPROM data, follow the same procedure or type data directly into the buffer, in Hex numbers or ASCII characters.
  • Page 5 Atmega128 that can be altered to affect the way the device runs and interacts with the circuit. The default fuses will work happily on the STK300 board, but you may want to alter them to make the clock run from the 8MHz crystal on the board. Leave JTAGEN checked to use emulator.
  • Page 6 3) The Atmega128L supplied as standard can operate from 2.7-5.5V Brownout Circuit The STK300 has a brownout detector to reset the AVR if the voltage drops too low. The brownout level is set using JP2 and should match the voltage selected by JP1 i.e. JP1 and JP2 both off or both on.
  • Page 7 Port G only has 5 pins. Of these, PG3 and PG4 are used by Real Time Clock (RTC) circuit so are NOT brought out to header. In addition to PG0/WR, PG1/RF and PG2/ALE, this header has Reset and a VCC and GND Pin. © Kanda 2013 Copyright...
  • Page 8 It has the recommended Atmel JTAG Interface pin-out and can be used with JTAG ICE tools, such as the Kanda JTAGAVR, which will plug straight in, without adapters. Kanda AVRUSB programmers, with JTAG adapter fitted, can also use this connector.
  • Page 9 The LCD can be driven in Memory Mapped or I/O Mode - see data sheet. If the crystal has been changed to a faster crystal frequency, memory mapped operations will not work. A suitable LCD is available on the Kanda site ( http://www.kanda.com/go/570910-PM A sample file is included on the CD in Samples directory.
  • Page 10 Device > Run command or disconnect the ISP lead from the board • The other 8 LEDs (0-7) are for user code. They are active low (0 switches them On), and they are connected to a 10-way header marked LED’S. A short 10-way lead © Kanda 2013 Copyright...
  • Page 11 2) Choose Atmel AVR Assembler as Project Type (see end of section for C Projects) 3) Give the Project a name 4) Uncheck Create Initial File box 5) Set location of where to save Project files © Kanda 2013 Copyright...
  • Page 12 1) Set Debug platform to AVR Simulator, unless you have an In Circuit Emulator such as our JTAGAVR. In this case, choose JTAG ICE. 2) Set Device to Atmega128 3) Click Finish Button Now the project is created, we need to add a sample file. © Kanda 2013 Copyright...
  • Page 13 STK200 board. C Projects Winavr (on CD) is a C Compiler for AVR, which will be installed by Kanda AVR installer by default.. When you run Studio you can select project type as AVR GCC – use this for WinAVR.
  • Page 14 There are example C Projects in Sample Code folder in Kanda AVR folder. Create a project without creating an initial file and then add a C file as source file, just like assembler. Alternatively, you can open a C project file (*.aps) from C Sample code folder.
  • Page 15 1) Connect the JTAGAVR Tool to the PC USB port (or use a USB to Serial cable). 2) Connect the 10-way ribbon cable to the JTAGAVR 3) Plug the 10-way cable into the JTAG header on the STK300 board ©...
  • Page 16 Documentation > ICE folder for details on changing COM Port setting. Conclusion This guide has briefly described the main features of the STK300 package. There is more information about AVR Studio on the CD, in its Help file and online at www.atmel.com...
  • Page 17: Further Information

    Books are available at Amazon. Kanda supply a basic book at www.kanda.com/go/KB0010 Other tools and accessories We supply add-ons for the STK300, including LCD modules, keypads, Flash RAM, 24C EEPROMs, extra mounted Atmega128 devices, ICE and a universal power supply. •...
  • Page 18 Website: Phone: +44 (0) 8707 446 807 www.kanda.com Fax: +44 (0) 8707 446 807 Email: Address sales@kanda.com Canolafan Tech support: Llanafan support@kanda.com Aberystwyth Support Pages: SY23 4AY www.kanda.com/support © Kanda 2013 Copyright...