Home

AVRflash User Manual

image

Contents

1. AVRflas h User manual AVRprog programmer is a high performance tool used for programming AVR microcontroller families from ATMEL The AVRflash program communicates to the microcontroller through a USB cable which is also used for powering the AVRprog programmer 3 MikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD making L sim ele TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and having confidence in MikroElektronika It is our intention to provide you with the best quality products Furthermore we will continue to improve our performance to better suit your needs w ea i General Manager AVRflash Program TABLEOF CONTENTS 1 0 Introduction to AVRprog Programmer a aarrsssssssssssassa 4 2 0 Dumping Code into the Microcontroller 5 3 0 AVRilash Program s Operallonu u LLL LLL asa aws aka aaa a aaa akaa aa 6 40 5 ON ANS VS es ON Vere uU u u l u E E a 7 5 0 Practical Example of Using AVRflash Program 9 6 0 Keyboard Shortcuts and Command Line Parameters 10 MikroElektronika page W 4 Q 3 AVRflash Program 1 0 Introduction to AVRprog Programmer
2. The AVRprog programmer is a great tool used for programming AVR microcontrollers from Atmel Given that it is a low power consumption device it is ideal for working with portable PCs It is very popular tool among beginners and professional users alike for its unique design and simplicity In order to use this programmer it is necessary to have the AVAflash program and appropriate driver provided on the product CD installed on your PC The AVAflash program communicates to the microcontroller through a USB cable which is also used for powering the AVARprog programmer The AVAprog programmer is built into all AVR development systems designed by MikroElektronika There is also a stand alone AVAprog programmer used for programming AVR mikrokontrollers built into soldered on the target device The AVAprogprogrammeris built into all MikroElektronika s The AVAprog programmer is also available as a stand development systems designed for working with AVR alone device used for programming AVR microcontrollers microcontrollers built into soldered on the taget device Ty ii u m ls Figure 1 2 Stand alone AVRprog programmer mikroElektronika AVRFLASH v2 11a The AVAflash program contains an option for selecting the File Device Buffer Windows USB About History microcontroller to be programmed The latest version of Device EER TESSI i this ai Hee o u of Pa Aa ee can e ownloade ree Of
3. Erase microcontroller s memory Alt B Program memory blank check Alt W Write HEX code into AVR microcontroller Alt V Verify loaded HEX code Alt R Read program memory Alt D Change microcontroller type Ctrl S Save HEX code Ctrl O Open Load file with HEX code Ctrl R Reload HEX code The AVAflash program may also be activated from the command line thus enabling you to use it from some other software compiler etc Here is a list of the command line parameters W Write to AVR microcontroller V Verify Erase program from AVR microcontroller f Read program from AVR microcontroller p Microcontroller type for example ATmega16 AT90S2323 etc fc Name of HEX file FLASH lt name must be enclosed in quotation marks gt fd Name of data file EEPROM lt name must be enclosed in quotation marks gt LOCK 0x Specify values of LOCK bits FUSE 0x Specify valus of FUSE bits q Close the AVRflash program after programming AVRFlash exe w pATMEGA16 v f C somefile hex This command is used for loading C somefile hex into the ATmega16 microcontroller This file is verified immediately after being loaded AVRFlash exe r pATMEGA16 This command is used for reading the ATmega16 microcontroller s program memory AVRFlash exe e pATMEGA16 This command is used for erasing program from the ATmega16 microcontroller DISCLAIMER All the products owned by MikroElektronika are protected by c
4. a HEX file into the programmer s buffer Load CODE HEX File Look in Led gt e FA Click the Load button to open the Open window as shown in figure on the BET right Select the relevant file with the hex extension and click the Open ene 7 button The file will be automatically loaded into the programmer s buffer Documents 2 Desktop A My Documents My Computer My Network File name Led gt pen Places Files of tupe HEX Files 7 Cancel Step 3 Load the HEX code into the microcontroller Es mikreflektrenika AVRFLASH v 11a Click the Write button in the upper right corner of the main window to start pro SAR gramming the microcontroller The programming progress will be shown in the E s bottom right corner of the same window Mo restrictions For SPH er LPM accening the ppkcstisn section Bets Disabled Staup Gime 6 Ce gt C eesave s L oootest Boot block 1024 Wonk Erana Chock KOD fee 16 Typs ATmagal DATA Sie B12 Bytes Dee Stator Programming DATA M a i L FOLE PE File Par FILESTMIKRQOELEK TR CONIKAVMIKRCNS PRO FOR AYRWAMWPLESIDEYELOPHEMI STSTE i Press FSI gt ta Abort Qperotion HW AT FLASH prog AV vq 7 10 01 MikroElektronika page 10 AVRflash Program Q 3 6 0 Keyboard Shortcuts and Command Line Parameters Keyboard Shortcuts Command Line Example 1 Example 2 Example 3 MikroElektronika Alt E
5. a Char txt2 EasyaVRo Char txt3 Led4bit Char txt4 example char i fo void Move Delay Delay ms 5000 void maini x 55 Led Init ee ML A d Cu T r w re 1 Write a program in some AVR compiler and generate a HEX code 2 Use the AVRflash program to select the microcontroller to be programmed and load the HEX code 3 Click the Write button to dump code into the microcontroller Compiling program p 1110001001 Bin 0110100011 0111 2FC23AA7 1011 F43E0021A Hex DA67F0541 Loading HEX code Be mikrobloktronika AVRFLASH v 2 11a Fle Dee Buffer Wider USS Abot Hisbory E Wio iel even Hode 1 z B Startup datb F LI DGQTEST boot biodk 14 Word r KOD me E Type Unknown CATA Sire 512 Bptes Devoe Ssu di ODE HEX Fie C DOCUMENTS AND SET TIMGSYRADE DES TOP SERIAL LCD COG Cee SERIAL LCD COG z DATA HEX File Diron ALT mena 6 On the right side of the AVAflash program s main window there are a number of options which will make the programming process easier Positioned in the right bottom corner the Progress bar is used for monitoring the programming process MikroElektronika 6 AVRflash Program Q 4 3 0 AVRflash Program s Operation The AVRflash program is easy to use as all the options necessary for its operation are provided in a simple window which will appear either by c
6. all Click Next to continue Select components to install AYRFLASH PeserIpuOn Position your mouse over a component to see its description Space required 2 8MB AYREL amp SH Programmer MikroElektronika page I page OO Step 4 Choose Installation Location Next you should specify the folder to install the AVRflash program in If you wish to install it in a folder different from default click Browse and select another folder on your hard disc Then click Next If you choose the default folder the program will be installed on the following location C Program Files Mikroelektronika AVRFLASH Step 5 Installation Details The AVAflash programmer installation starts immediately The instal lation progress will be shown on the screen If you are interested in details about the installation click the Show details button Step 6 Completing Installation Windows will inform you as shown in figure on the right that the AVRilash programmer has been successfully installed Click Finish to complete the installation MikroElektronika AVRflash Program AVRFLASH Programmer v2 11a Setup Choose Install Location Choose the Folder in which to install AVRFLASH Programmer v2 1la Setup will install AYRFLASH Programmer v2 11a in the Following Folder To install in a different Folder click Browse and select another Folder Click Install to start the installation Destination Fo
7. clock signal source enabling the operation of built in JTAG interface selecting reset vector etc Only experienced users are advised to change these bits By selecting the microcontroller from the Device drop down menu Figure 3 1 no 1 all relevant settings of FUSE bits will be automatically performed MikroElektronika AVRflash Program 4 0 Software Installation Before using the AVRflash program it is necessary to install the appropriate driver For more information on installing USB drivers consult the relevant manual Step 1 Start installation AVRFLASH Programmer v2 11a Setup Insert the product CD into your PC drive After a few seconds a list with Welcome to the AVRFLASH all MikroElektronika s products will appear on the screen To start the Ki negara eee ee installation process of the AVAflash software click on the setup icon DE This wizard will guide you through the installation of provided in the AVRflash section on the product CD E aa It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your CD Drive zip AVRFlash_setup exe A computer Click Next to continue You can also download the AVAflash programmer free of charge from our website In this case the installation starts from your hard drive A welcome window appears Click Next to proceed j AVRFLASH Progr v2 11a Set Step 2 Licence Agreemen
8. cnarge trom our webpsite a Mode 1 gt BlB0mode1 v BLB1Mode1 gt co Qi aro g 4 0 Y No restrictions For SPM or LPM accessing the Application section FUSE Bits CODE DATA OCDEN BOD Disabled toad JTAGEN ocean 9 Reload Rel sun i 5tartup 65ms 6 CK i LI C BOOTRST Boot block 1024 Words External Clock co J pan CODE Size 16 K Type ATmegal6 Progress DATA Size 512 Bytes Device Status Idle CODE HEX File C PROGRAM FILES MIKROELEKTRONIKA MIKROC PRO FOR AVR EXAMPLES DEVELOPMENT SYSTE Ge aalkaa oo Figure 1 3 AVAflash program is used for programming AVR Device ATmegal6 HW AT FLASH prog AVR 02 07 10 01 microcontrollers from Atmel MikroElektronika AVRflash Program 2 0 Dumping Code into the Microcontroller page W The programming process starts by writing a program in some AVR compiler such as mikroC PRO for AVR mikroBASIC PRO for AVR mikroPASCAL PRO for AVR etc Once the program has been written it is necessary to compile it into appropriate format which can be loaded into the microcontroller The program to be loaded into the microcontroller has the hex extension The last step is to write the generated HEX file into the microcontroller using the AVAflash program mikroC PRO for AVR C Documents and Settings Rade File Edit View Project Bun Tools Help TERE SATEEN m 25 S eae ee J Be e S ab _ Led c Char txti mikroElektronik
9. lder Browse C Program Files MikroelektronikalA RFELASH Space required 2 8MB Space available 7 6GB uRFLASH Programmer AVRFLASH Programmer v2 11 Setup Installing Please wait while AVRFLASH Programmer v2 11a is being installed Extract AVRFlash exe Show details AYRELASH Programmer Cancel AVRFLASH Programmer v2 11 Setup Completing the AVRFLASH Programmer 2 11a Setup Wizard AVRFLASH Programmer v2 11a has been installed on your computer Click Finish to close this wizard lt Back Finish _ Cancel AVRflash Program 5 0 Practical Example of Using AVRflash Program After the software installation is complete connect the programmer to your PC using a USB cable The USB connection will be automatically established which is indicated by the USB LINK LED diode s illumination Step 1 Start up the AVAflash program EE mikroFloktronilen AVRFLASH 2 140 File Deke Bulfer Widows USE Abut Hetory Start up the AVAflash program installed on your PC Click the Device option in order to select the microcontroller to be programmed The AVAflash program M ws fammo will automatically set default parameters for working with the respective microcontroller _ Ne restrictions for SPM or LEM accessing the Appcation section startup Gone Ce gt Bos tsak cc Winds gt Step 2 Load
10. licking on the AVRFLASH icon or automatically by starting the compiling process in the AVR compiler Build And Program option The options used for setting configuration bits are provided on the left side of the window whereas the options for loading HEX file into the programmer and the microcontroller are provided on the right side of the window The layout of the left side of the window varies depending on the microcontroller s type and configuration bits To load the program into the microcontroller mikroElektronika AVRFLASH v2 11a follow these steps 7 LOCK Bits Mode 1 d BLBO Mode 1 BLB1 Mode 1 l Device ATmegal6 Select the microcontroller to be programmed and the AVRflash will automatically set default parameters for working with the respective microcontroller Device frequency MHz Click the Load CODE option to open the window to select the HEX code to be loaded into the No restrictions for SPM or LPM accessing the Application section microcontroller FLISE Bits C OCDEN BoD Disabled v C JTAGEN V Startup 65ms 6 CK _ EESAVE C BOOTRST Boot block 1024 Words v External Clock N LLIN Click the Write option to start programming the microcontroller Settings for configuration bits
11. opyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein may be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary All the product and corporate names appearing in this manual may or ma
12. t rogrammer v2 11a Setup License Agreement Please review the license terms before installing AVRFLASH i i P 2 11a Before you start the installation procedure please review the licence agreement terms To accept them select the option accept the terms in Press Page Down to see the rest of the agreement the Licence Agr eement and click Next mikroElektronika Associates License Statement and Limited Warranty IMPORTANT READ CAREFULLY This license statement and limited warranty constitute a legal agreement License Agreement between you either as an individual or a single entity and mikroElektronika mikroElektronika Associates For software product Software identified above including any software media and accompanying on line or printed documentation If you accept the terms of the agreement select the First option below You must accept the agreement to install AYRFLASH Programmer v2 11a Click Next to continue I accept the terms in the License Agreement I do not accept the terms in the License Agreement uRFLASH Programmer Step 3 Choose Components AVRFLASH Programmer v2 11a Setup Choose Components o Choose which features of AVRFLASH Programmer v2 11a you To make your choice uncomplicated this installation step offers you only ae kidlaraa one com po nent to choose Cl ick N ext Check the components you want to install and uncheck the components you don t want to inst
13. varies depending on the type of the microcontroller LA N N N N N N N N N M CODE Size 16 K Type ATmegal6 Progress DATA Size 512 Bytes Device Status Programming DATA The Progress bar shows the programming progress expressed in percentages amp Device 4Tmegal6 Press lt ESC gt to Abort Operation Hi AT FLASH prog AYR v02 07 10 01 Figure 3 1 AVAflash program s main window The AVAflash program enables a HEX code generated in some of the AVR compilers to be loaded into the microcontroller The HEX code should be first loaded into the programmer s buffer by clicking the Load option then into the microcontroller by clicking the Write option within the programmer s main window The programming progress will be shown in the Progress bar in the bottom right corner of the same window In order to prevent a loaded code from being accidentally changed LOCK bits are to be used Depending on the protection level one of the three available modes may be employed Mode 1 protection disabled Mode 2 reprogramming disabled code reading enabled Mode 3 full protection both reprogramming and code reading disabled FUSE bits are primarily used for selecting the microcontroller s operating mode when it is turned on These bits also have other functions such as selecting
14. y not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities Copyright 2003 2009 by MikroElektronika All rights reserved UUO0 0lJILIQ 0IlJI0 ye SN JDe UOD o le is u JOU op siesodoid ss ulsnQ 40 S UswWWOd suolls nb Aue aney noA J woddiis ue woo SOJ4ILU MMM le Jey UNOA Ljd se jd UOIeWOJUI euolippe p u IsNI JO sjonpoid Jno 1o Aue YM Sw9 qo1d Sulos Buiou ii dx ase nod J woof ooy MMM IE 8 1ISQ A INO 1ISIA Bseald sjonpoid mo irioqe 9JOW Wed 0 JULM NOK J Cd 1dOM Q4GdqdglAd YO4 SNOILNTOS JYVMCYVH ANY JYYMLJOS H E r J 1

Download Pdf Manuals

image

Related Search

Related Contents

MANUEL D`UTILISATION DU TRACKER LOCALISATEUR GPS/GPRS  ME9100 取扱説明書  Linea GigE Series Camera  TUBE ULTRAGAIN MIC200  Samsung SGH-E950 Lietotāja rokasgrāmata  User Manual - Zijtveld Grijpers BV  MANUAL TRASNPORTADOR DE TAMBOR - MGH-300T  Flume User Manual  

Copyright © All rights reserved.
Failed to retrieve file