background image

AVR

®

 In System Programmer User Guide

3-1

Section 3

Hardware Description

3.1

General Board 
Description

A block diagram of the AVRISP is shown in Figure 3-1. The AVRISP can be divided in
three sections: The RS-232 interface, the Control section and the ISP cable. In this sec-
tion a brief overview of the different blocks will be given.

Figure 3-1.  Simplified AVRISP Block Schematics 

3.1.1

RS-232 Serial 
Interface

The AVRISP uses a standard female DSUB, RS-232 port for communication with the
front-end software (AVR Studio). It supports communication of 115200 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 fails, the LED will turn red to indicate that programming (or verification)

CTRL

MCU

RxD

TxD

GND

VTG

RESET

SCK

MOSI

MISO

RS-232

Level

VTG

VTG

GND

RxD

TxD

RS-232 Interface

Control Section

ISP Cable

Table 3-1.  Status Led

Led Color

Description

Red-Yellow-Green-Off-Green Cycle

Power on Sequence

Yellow

Busy – Programming

Red

Programming Failed

Green

Ready – OK

Содержание AVR ISP

Страница 1: ...ISP User Guide ...

Страница 2: ......

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 8: ...Getting Started 2 2 AVR In System Programmer User Guide ...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Отзывы: