Transcription of AVR ISP User Guide - Atmel Community
1 GuideTable of ContentsiTable of ContentsSection 1 Introduction .. Support ..1-2 Section 2 Getting the System .. 3 Hardware Description .. Board Serial Interface .. Section .. Interface Power Requirements and Considerations .. AVRISP to Target the ISP Lines .. and GND .. 4 Software Front-end .. AVR Studio .. AVR Studio .. the Windows Software .. AVRISP Interface .. AVRISP and STK500 user Interface .. Program Settings ..4-3 Table of .. "Fuses" Settings .. Lock Bits Advanced Settings .. Calibration Oscillator Calibration Byte.
2 Oscillator Calibration Board .. "Auto" up the System for Auto the Auto Programming to a 5 Command Line Software .. : .. Usage ..5-3 Section 6 Special Considerations .. Programming .. Used as General IO Devices with no ISP Option .. without RC Oscillator Calibration ..6-1 Section 7 Troubleshooting Guide .. 7-1 Section 8 Technical Specifications .. 8-1 Section 9 Technical 9-1 AVR In System Programmer user Guide1-1 Section 1 IntroductionFigure 1-1. AVRISP In-System ProgrammerThe AVR In-System Programmer (AVRISP) from Atmel is a professional low-cost In-System Programmer covering all avr 8 -bit RISC Microcontrollers.
3 The programmerconnects to a PC through a standard RS-232 serial interface and draws the necessarypower from the target board eliminating the need for an additional power Studio is used as front-end software, giving you a highly-integrated 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 to Adjustable Speed Supports all Target Boards Running at a Speed Higher than 8 kHz RS-232 Interface Powered from Target No need for Additional Power SupplyIntroduction1-2 AVR In System Programmer user GuideThe AVRISP is fully supported by AVR Studio version or higher.
4 For up to date infor-mation on this and other AVR tool products please read the document .LAtest version of AVR Studio ( ) and this user Guide can be found in theAVR section of the Atmel web SupportAVRISP supports all avr 8 -bit RISC Microcontrollers with ISP programming for new devices will be added through new versions of AVR Studio will automatically prompt the user if it is detects that the firmware in the pro-grammer is following devices are currently supported: AT t i n y 1 2 AT t i n y 1 5 AT t i n y 2 2 AT90S1200 AT90S2313 AT90S/LS2323 AT90S/LS2343 AT90S/LS2333 AT90S4414 AT90S/LS4433 AT90S/LS4434 AT90S8515 AT90S/LS8535 ATmega161(L) ATmega16(L) ATmega163(L) ATmega32(L) ATmega323(L) ATmega103(L) ATmega128(L)Information about supported devices in latest versions of the firmware can be found inthe AVR Studio Online Help :For special programming considerations please see Section In System Programmer user Guide2-1 Section 2 Getting the SystemThe AVRISP contains the following items.
5 AVRISP Programmer AVRISP user Guide 10-pin ISP Cable (Connected to AVRISP) 6-pin ISP Cable 9-pin RS-232 RequirementsThe 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 115200 Baud RS-232 Port (COM Port)Getting Started2-2 AVR In System Programmer user GuideAVR In System Programmer user Guide3-1 Section 3 Hardware Board DescriptionA block diagram of the AVRISP is shown in Figure 3-1. The AVRISP can be divided inthree sections: The RS-232 interface, the Control section and the ISP cable.
6 In this sec-tion a brief overview of the different blocks will be 3-1. Simplified AVRISP Block Schematics Serial InterfaceThe AVRISP uses a standard female DSUB, RS-232 port for communication with thefront-end software (AVR Studio). It supports communication of 115200 SectionThe control MCU handles all communication between the target AVR and the front-endsoftware. The AVRISP is completely software controlled from AVR Studio. No manualconfiguration of the ISP is needed. A 3-color LED indicates the status of the AVRISP. During programming the LED is yel-low.
7 When the target AVR is successfully programmed, the LED will turn green. Ifprogramming fails, the LED will turn red to indicate that programming (or verification)CTRLMCURxDTxDGNDVTGRESETSCK MOSIMISORS-232 LevelVTGVTGGNDRxDTxDRS-232 InterfaceControl SectionISP CableTable 3-1. Status LedLed ColorDescriptionRed-Yellow-Green-Off-Gre en CyclePower on SequenceYe l l o wB u s y ProgrammingRedProgramming FailedGreenReady OKHardware Description3-2 AVR In System Programmer user Guidefailed. 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 themaster MCU is Interface CablesAVRISP supports both the 6-pin header connector pinout, used by the Atmel AT90 ISPcable, and the 10-pin header connector used by the STK200 and STK300 developmentboards.
8 Figure 3-2 shows the pinouts for the 6-pin and 10-pin ISP is delivered with one 6-wire and one 10-wire ISP cable. Use the one that matchthe 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 3-2. AVRISP Connectors (Top View) Power Requirements and ConsiderationsSince the AVRISP draws power from the target, it is important that the target board isable to provide enough power to ensure correct operation. The AVRISP will draw maxi-mum 50 mA @ The current is drawn through the VTG line.
9 The target should thusbe able to supply at least this amount of power in addition to the requirements of the tar-get board Technical Spesification section on page 8-1 for information on AVRISP is not equipped with a power switch. Power is turned on when AVRISP isconnected to the target application and turned off when AVRISP to Target BoardThe AVRISP connects to the target board through a 3 x 2 or 5 x 2 male header connec-tor with mm ( ) spacing (Figure 3-3). If there is a 6-pin or 10-pin ISP connectoron the target board, the cable on the AVRISP has to be changed accordingly.
10 The power of the target board should be turned off when connecting or disconnectingthe header connector. Hot-swapping is not supported and might damage 3-2. VRISP Connector pinoutSignal6-Pin10-PinI/ODescriptionVTG 22 Power is delivered from the target boardGND63,4,6, 8,10 GroundMOSI41 OutputCommands and data from AVRISP to target AVRMISO19 InputData from target AVR to AVRISPSCK37 OutputSerial Clock, Controlled by AVRISPRESET55 OutputReset. Controlled by AVRISPMISOSCK RSTVTGMOSIGNDISP6 PINMOSIMISO RSTVTGGNDISP10 PINGNDGNDGNDSCKGNDH ardware DescriptionAVR In System Programmer user Guide3-3To change the cable the AVRISP box must be opened and the correct cable must beconnected.