You are on page 1of 17

AVR USB ISP mkII

ver 2

Trademarks & Copyright


PC is a trademark of International Business Machines Corporation.
Windows is a registered trademark of Microsoft Corporation.
AVR is registered trademark of Atmel Corporation.
AVR Studio is copyright by Atmel Corporation.
CodeVisionAVR is copyright by Pavel Haiduc, HP InfoTech s.r.l.
AVRDUDE is copyright by Jörg Wunsch and Brian S Dean.
WinAVR is a trademark of SourceForge, Inc.
BASCOM-AVR is copyright by MCS Electronics.

1
Table of Contents
1. Introduction............................................................................................... 3
1.1 Specifications...................................................................................................... 3
1.2 Supplements........................................................................................................ 3
1.3 Suggested System.............................................................................................. 3

2. ISP Pin Connector Configuration............................................................... 4

3. LED Indicator............................................................................................. 4

4. AVR Studio Installation............................................................................. 5

5. Configcuration Example........................................................................... 14
5.1 AVR Studio........................................................................................................... 14
5.2 CodeVisionAVR................................................................................................... 14
5.3 AVRDUDE............................................................................................................. 15
5.4 BASCOM-AVR..................................................................................................... 16

6. Troubleshooting Guide............................................................................. 17

2
1. INTRODUCTION
Congratulations! You have a DT-HiQ AVR USB ISP mkII now!
DT-HiQ AVR USB ISP mkII is an In-System Programmer (ISP) for 8-bit RISC
AVR® microcontroller. This programmer can be connected to the PC via USB
interface and draws power from target board. DT-HiQ AVR USB ISP mkII can
be used along with AVR Studio©, CodeVisionAVR©, AVRDUDE© (WinAVR™),
BASCOM-AVR©, and other softwares that supports ATMEL AVRISP MKII (USB)
protocol.

1.1. SPECIFICATIONS
The DT-HiQ AVR USB ISP mkII specifications are as follows:
● Uses ATMEL AVRISP MKII (USB) protocol.
● Can be used on all types of AVR which has an ISP feature.
● Operates at target voltage of 2.7V – 5.5V.
● USB to PC Interface.
● Draws power from target board. Does not require a separate power
source and is safe for the PC if there is a short circuit on the target board.

The full list of supported AVR depends on the software used. Always update your
softwares (AVR Studio, CodeVisionAVR, BASCOM-AVR, AVRDUDE, etc.) to
make sure it supports the latest AVR.

1.2. SUPPLEMENTS
Each DT-HiQ AVR USB ISP mkII package contains:
● DT-HiQ AVR USB ISP mkII.
● USB cable.
● CD/DVD-ROM media.

1.3. SUGGESTED SYSTEM


The suggested system to use with DT-HiQ AVR USB ISP mkII is:
Hardware:
● PC™ with USB port.
● DVD-ROM Drive and Hard disk.

Software:
®
● Windows XP or Vista operating system.
© © © ©
● AVR Studio , BASCOM-AVR , AVRDUDE , atau CodeVisionAVR .
● The files included in the CD/DVD:
AVRDUDE©, WinAVR™, AVR Studio©, libusb installer, part description
update for AVR Studio (AT90USB1286.xml, AT90USB1287.xml,
ATmega1280.xml, ATmega8515.xml, & ATmega8535.xml), TARGET
BOARD DESIGN GUIDE for AVR.PDF, dan DT-HiQ AVR USB ISP MKII
MANUAL.

Notes:
Part description update files (AT90USB1286.xml, AT90USB1287.xml,
ATmega1280.xml, ATmega8515.xml, & ATmega8535.xml) in CD/DVD can be
copied to folder Program Files\Atmel\AVR Tools\Partdescriptionfiles\ (default
installation location, change it if the installation location is changed).

3
2. ISP PIN CONNECTOR CONFIGURATION
The pin configuration uses Atmel's standard 10-pin ISP header.
1 2
MOSI VTG
LED GND
RESET GND
SCK GND
MISO GND

Name No. Pin I/O Description


Power supply from target board (2.7V – 5.5
VTG 2 -
V)
GND 4, 6, 8, 10 - Ground reference
Control signal for LED or multiplexer
LED 3 Output
(optional)
Command and data from AVR USB ISP mkII
MOSI 1 Output
to target
MISO 9 Input Data from target to AVR USB ISP mkII
SCK 7 Output Serial Clock, controlled by AVR USB ISP mkII
RESET 5 Output Reset, controlled by AVR USB ISP mkII

Number 1 pin is marked with a different colored cable.

Because the DT-HiQ AVR USB ISP draws power from target board, make sure
the target board can supply enough power to DT-HiQ AVR USB ISP mkII. The
DT-HiQ AVR USB ISP mkII requires a maximum current of 50mA @ 5.5V.

3. LED INDICATOR
There are 2 LED indicators on the DT-HiQ AVR USB ISP mkII which are POWER
LED and STATUS LED. The POWER LED indicator is used to indicate whether the
power source has been connected to the VTG and GND pin or not. If DT-HiQ
AVR USB ISP mkII has received power from the target board, then the POWER
LED will light up.
The STATUS LED indicator is used as indicator of DT-HiQ AVR USB ISP mkII's
current status. If DT-HiQ AVR USB ISP mkII is in idle status and ready to receive
orders from the PC, then the STATUS LED will light up.

4
4. AVR STUDIO INSTALLATION
Before using the DT-HiQ AVR USB ISP mkII, the USB driver (included in AVR
Studio) must be installed first. The steps for AVR Studio installation are as
follows:
● Disconnect DT-HiQ AVR USB ISP mkII from computer.
● Run AvrStudio4Setup.exe and then click Next.

● Select “I accept the terms of the license agreement” and then click Next.

5
● Change destination location in needed and the click Next.

● Click Install.

6
● Wait until installation is finished.

● Click Next.

7
● Select “I accept the terms of the license agreement” and then click Next.

● Change destination location in needed and the click Next.

8
● Click Install.

● Wait until installation is finished.

9
● Click Finish to end AVR Jungo USB installation.

● Wait until installation is finished.

10
● Click Finish to end the installation.

● After the driver installation process succeeded, then every time DT-HiQ
AVR USB ISP mkII is turned on and connected to PC via USB port, a device
called the “AVRISP mkII” will appear.

● Install libusb driver so that DT-HiQ AVR USB ISP mkII can be accessed by
AVRDUDE or other softwares using libusb protocol to access AVRISP MKII
type programmer.
● Make sure AVRISP MKII driver has been installed successfully before
installing libusb driver.
● To install libusb driver, open folder “libusb-win32-bin-1.2.4.0\bin\” and
select the correct architecture (choose x86 folder for 32 bit OS). Rename
“libusb0_x86.dll” to “libusb0.dll” then copy it to System32 directory
11
(Windows\System32). Copy “libusb0.sys” to drivers directory
(Windows\System32\drivers). And then run "install-filter-win.exe".
● Select "Install a device filter", then click “Next”.

● If DT-HiQ AVR USB ISP mkII is turned on and in idle condition, then AVRISP
MKII option will appear. Select that line/device and then click “Install”.

12
● If libusb driver installation process succeeded, then the following window
will appear:

● Click Cancel to end the installation.

● After this installation, DT-HiQ AVR USB ISP mkII will be able to be accessed
by softwares based on Jungo AVRISPMKII driver or libusb driver (such as
AVRDUDE).

13
5. CONFIGURATION EXAMPLE

5.1. AVR Studio


To start the configuration, select menu Tools → Program AVR → Connect.
Select AVR Programmer Platform type: AVRISP mkII, port: USB.

5.2. CodeVisionAVR
To start the configuration, select menu Setting → Programmer.

14
Select AVR Programmer type: Atmel AVRISP MKII (USB).

5.3. AVRDUDE
AVRDUDE is an open source software that can be run using command line.
AVRDUDE is usually included in WinAVR installation package. To access DT-
HiQ AVR USB ISP mkII from AVRDUDE, select programmer type (parameter -c )
avrispmkii or avrisp2, and select port (parameter -P) usb. Other parameters
can be set according to chip type and desired process.

We've recompiled AVRDUDE (included in CD/DVD) for compatibility with DT-


HiQ AVR USB ISP mkII. It's recommended to use recompiled version of
AVRDUDE for use with WinAVR or Arduino.

Arduino (for verson 1.0.1 and older):


• copy avrdude.exe to folder …\arduino-x.x.x\hardware\tools\avr\bin\
• copy avrdude.conf to folder …\arduino-x.x.x\hardware\tools\avr\etc\

WinAVR:
• copy avrdude.exe to folder …\WinAVR-xxxxxxxx\bin\
• copy avrdude.conf to folder …\WinAVR-xxxxxxxx\bin\

15
5.4. BASCOM-AVR
To start the configuration, select Options → Programmer. Select programmer
type: “External Programmer”.

BASCOM-AVR can use AVRDUDE as its programmer. Thus, arrange the location
of AVRDUDE. In the previous figure, the location is at “C:\WinAVR-
20100110\bin\avrdude.exe“.

Fill the parameter needed by AVRDUDE. As an example, if the application uses


ATmega128 and the desired process is to write the flash memory, then the
parameter is " -c avrisp2 -P usb -p m128 -e -U flash:w:{FILE}:a ".

Parameter -c indicates programmer type (avrispmkii or avrisp2). Parameter


-P indicates the selected port (usb). Parameter -p indicates chip type (m128
for ATmega128). Parameter -e indicates that erase process is executed before
writing. Parameter -U indicates the selected memory (flash or eeprom). And
parameter {FILE} indicates the name of file after compiling which will be written
automatically by BASCOM-AVR.

16
6. TROUBLESHOOTING GUIDE

Problem Cause Solution


LED Power is off. Power supply is not Check the connections from
connected correctly power supply to the target
board connector and its polarity
Power supply is not Check and make sure the target
adequate board power supply produces
enough voltage and current
Software cannot Driver installation is Uninstall the driver and reinstall
detect the DT- failed it
HiQ AVR USB ISP Cable is not Connect USB cable to PC,
mkII. connected or DT-HiQ connect ISP connector to the
AVR USB ISP mkII is target board, and check the
not powered on power supply connection

♦ Thank you for your confidence in using our products, if there are difficulties, questions,
or suggestions regarding this product please contact our technical support :
support@innovativeelectronics.com
17

You might also like