background image

Hardware Description

3-2

AVR

®

 In System Programmer User Guide

failed. If programming fails, check the “Troubleshooting Guide” on page Table 7-1. Dur-
ing start-up the status LED cycles through red, yellow to green to indicate that the
master MCU is ready.

3.1.3

ISP Interface Cables

AVRISP supports both the 6-pin header connector pinout, used by the Atmel AT90ISP
cable, and the 10-pin header connector used by the STK200 and STK300 development
boards. Figure 3-2 shows the pinouts for the 6-pin and 10-pin ISP connectors.

AVRISP is delivered with one 6-wire and one 10-wire ISP cable. Use the one that match
the pinout of the target ISP connector. However, note that only one cable should be con-
nected, and used, at any given time. By default the 10-pin header connector is mounted.

Figure 3-2.  AVRISP Connectors (Top View)

3.2

AVRISP Power 
Requirements 
and 
Considerations

Since the AVRISP draws power from the target, it is important that the target board is
able to provide enough power to ensure correct operation. The AVRISP will draw maxi-
mum 50 mA @ 5.5V. The current is drawn through the VTG line. The target should thus
be able to supply at least this amount of power in addition to the requirements of the tar-
get board itself.

See  “Technical Spesification” section on page 8-1 for information on power
consumption.

The AVRISP is not equipped with a power switch. Power is turned on when AVRISP is
connected to the target application and turned off when disconnected.

3.3

Connecting 
AVRISP to Target 
Board

The AVRISP connects to the target board through a 3 x 2 or 5 x 2 male header connec-
tor with 2.54 mm (0.1”) spacing (Figure 3-3). If there is a 6-pin or 10-pin ISP connector
on the target board, the cable on the AVRISP has to be changed accordingly. 

The power of the target board should be turned off when connecting or disconnecting
the header connector. Hot-swapping is not supported and might damage the
programmer.

Table 3-2.  VRISP Connector pinout

Signal

6-Pin

10-Pin

I/O

Description

VTG

2

2

Power is delivered from the target board

GND

6

3,4,6, 8,10

Ground

MOSI

4

1

Output

Commands and data from AVRISP to target AVR

MISO

1

9

Input

Data from target AVR to AVRISP

SCK

3

7

Output

Serial Clock, Controlled by AVRISP

RESET

5

5

Output

Reset. Controlled by AVRISP

MISO

SCK

 RST

VTG

MOSI

GND

ISP6PIN

MOSI

MISO

 RST

VTG

GND

ISP10PIN

GND

GND

GND

SCK

GND

Summary of Contents for AVR ISP

Page 1: ...ISP User Guide ...

Page 2: ......

Page 3: ...les 3 2 3 2 AVRISP Power Requirements and Considerations 3 2 3 3 Connecting AVRISP to Target Board 3 2 3 4 Handling the ISP Lines 3 3 3 4 1 VCC and GND 3 3 3 4 2 SCK 3 3 3 4 3 MOSI MISO SCK 3 3 3 4 4 RESET 3 4 Section 4 Software Front end 4 1 4 1 Installing AVR Studio 4 1 4 2 Using AVR Studio 4 1 4 2 1 Starting the Windows Software 4 1 4 2 2 Starting AVRISP Interface 4 1 4 2 3 Using AVRISP and STK...

Page 4: ... Revision 4 7 4 3 6 Auto Settings 4 7 4 3 6 1 Setting up the System for Auto Programming 4 8 4 3 6 2 Logging the Auto Programming to a File 4 8 4 3 7 History Window 4 8 Section 5 Command Line Software 5 1 5 1 Parameters 5 1 5 1 1 Sample Usage 5 3 Section 6 Special Considerations 6 1 6 1 Fuse Programming 6 1 6 2 RESET Used as General IO Port 6 1 6 3 AVR Devices with no ISP Option 6 1 6 4 Devices wi...

Page 5: ... board eliminating the need for an additional power supply AVR Studio is used as front end software giving you a highly integrated development solution 1 1 Features AVR Studio Interface ISP Programming of all AVR Devices Programs both Flash and EEPROM Supports Fuses and Lock Bit Programming Supports RC Oscillator Calibration Upgradeable to Support Future Devices Operates at Target Voltages from 2 ...

Page 6: ...port for new devices will be added through new versions of AVR Studio AVR Studio will automatically prompt the user if it is detects that the firmware in the pro grammer is outdated The following devices are currently supported ATtiny12 ATtiny15 ATtiny22 AT90S1200 AT90S2313 AT90S LS2323 AT90S LS2343 AT90S LS2333 AT90S4414 AT90S LS4433 AT90S LS4434 AT90S8515 AT90S LS8535 ATmega161 L ATmega16 L ATme...

Page 7: ...AVRISP Programmer AVRISP User Guide 10 pin ISP Cable Connected to AVRISP 6 pin ISP Cable 9 pin RS 232 Cable 2 2 System Requirements The minimum hardware and software requirements are 486 Processor Pentium is recommended 16 MB of RAM 15 MB of Free Hard Disk Space Windows 95 98 2000 and Windows NT 4 0 115200 Baud RS 232 Port COM Port ...

Page 8: ...Getting Started 2 2 AVR In System Programmer User Guide ...

Page 9: ...0 baud 3 1 2 Control Section The control MCU handles all communication between the target AVR and the front end software The AVRISP is completely software controlled from AVR Studio No manual configuration of the ISP is needed A 3 color LED indicates the status of the AVRISP During programming the LED is yel low When the target AVR is successfully programmed the LED will turn green If programming ...

Page 10: ...through the VTG line The target should thus be able to supply at least this amount of power in addition to the requirements of the tar get board itself See Technical Spesification section on page 8 1 for information on power consumption The AVRISP is not equipped with a power switch Power is turned on when AVRISP is connected to the target application and turned off when disconnected 3 3 Connectin...

Page 11: ...6 or 10 pin connector on the target board Make sure the target voltage is within specified range of the programmer 2 7V 5 5V Make sure that the target power supply can deliver the additional power required to power the AVRISP at the given voltage See Section 8 3 4 2 SCK The target AVR samples the clock signal generated from the AVRISP To make the sampling robust a target main clock four times high...

Page 12: ...T To enter programming mode AVRISP needs to pull RESET low It is important that the external pull up resistor on RESET pin is not so strong that it forces holds the pin high To avoid this problem it is recommended that the RESET pull up resistor should be no less than 10 kΩ ISP Header AVR VCC GND MOSI MISO SCK LOAD R ...

Page 13: ... 5 or higher is required for AVRISP support AVR Studio is continuously updated to support new devices and to add functionality The latest version of AVR Studio can be downloaded from www atmel com 4 2 Using AVR Studio It is assumed that the reader has general knowledge of how to use AVR Studio For more information on general use of the program please look in the interactive help sys tem supplied w...

Page 14: ...the COM port It is not possible to control both a STK500 and an AVRISP from AVR Studio simultaneously To do this two instances of AVR Studio must be executed simulta neously The title bar on the Programming interface will indicate whether it controls the AVRISP or the STK500 4 3 AVRISP User Interface The AVRISP User Interface includes a lot of powerful features for the AVRISP In Sys tem Programmer...

Page 15: ...ce code is stored in a separate HEX file select the Input HEX File option Browse to the correct file by pressing the button or write the complete path and filename in the text field The selected file must be in Intel hex for mat or extended Intel hex format 4 3 1 4 EEPROM If the AVRISP User Interface is opened without a project loaded in AVR Studio the Use Current Simulator Emulator EEPROM Memory ...

Page 16: ...tion will be automatically preformed after each programming Please see the Special Considerations in Section 6 if you plan to change the RST DISBL or SPIEN fuse Figure 4 3 Fuses Settings Table 4 1 Check Box Description Icon Description Unprogrammed fuse or lockbit Programmed fuse or lockbit Readback of current state is impossible but fuse or lock can be programmed Set to be programmed Readback of ...

Page 17: ...lected Lock mode Once a Lock mode protection level is enabled it is not possible to lower the protection level by selecting a lower degree of protection or by setting a different Lock mode The only way of removing a programmed lock bit is to do a complete chip erase erasing both Program and EEPROM memories One exception exists If the target device has a programmed EESAVE fuse the contents of the E...

Page 18: ...ing the Read Cal Byte button the calibration value is read from the device and shown in the Value text box If this option is grayed out the selected device does not have a tunable internal RC Oscillator On selected devices the RC oscillator is self calibrating On these devices there is no need to handle the Calibration byte manually for more information see appropriate device datasheet 4 3 4 4 Wri...

Page 19: ...ion In the revision box the current revision AVRISP revision number is shown If AVR Studio discovers that the AVRISP contains an older version than the one distributed with AVR Studio it will automatically ask for permission to upgrade the Programmer 4 3 6 Auto Settings When programming multiple devices with the same code the Auto tab offers a powerful method of automatically going through a user ...

Page 20: ...oth work and possibilities for errors due to operational errors 4 3 6 2 Logging the Auto Programming to a File By clicking on the Log to File check box all output from the commands are written to a text file The file is selected created by pressing the Browse button Navigate to the location where the file is placed or should be created The output is directed to this file and can be viewed and edit...

Reviews: