DOC PREVIEW
CORNELL ECE 4760 - AVR Program User Guide

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Development Tools User Guide 3-1Section 3AVRProg User Guide3.1 IntroductionThis manual describes the usage of the AVR programming SW package called Avr-Prog. AvrProg covers all of Atmel’s AVR tools with programming capabilities. AvrProg can program all devices in the AT90S baseline series of microcontrollers. Asan additional feature it can also program several of Atmel’s AT89S series of microcon-trollers. The AVR programming SW package consist of the following programs:■ AVRPROG.EXE - Windows 95/NT version.■ PROGF.EXE - DOS program for Flash memory programming.■ PROGE.EXE - DOS program for EEPROM memory programming.■ READF.EXE - DOS program for Flash memory readout.■ READE.EXE - DOS program for EEPROM memory readout.■ PROGFUSE.EXE - DOS program for fuse bits programming.■ PROGLOCK.EXE - DOS program for lock bits programming.AvrProg runs under Microsoft Windows95 and Microsoft Windows NT. In addition, thereis a set of MS-DOS programs that together have almost the same functionality as thewindows program version. AvrProg can currently be used with the following AVR tools:■ AT90DEVBOARD - Second generation development board.■ AT90PROG1200 - AT90S1200 programming board.■ AT90ISP - AVR In-System Programmer.AvrProg will also work with the following future AVR tools:■ AT90BASEPROG - AVR baseline series programmer.The Windows version of AvrProg is included in AVR Studio and can be found in thetools menu. Rev. 1021A-A–01/98AVRProg User Guide3-2 Development Tools User Guide3.2 InstallationIn order to install the AvrProg SW under Windows95 and Windows NT 4.0:1. Insert the diskette labeled AvrProg in drive A:2. Press the Start button on the Taskbar and select Run3. Enter “A:SETUP” in the Open field and press the OK button4. Follow the instructions in the Setup programIn order to install the AvrProg SW under Windows NT 3.51:1. Insert the diskette labeled AvrProg in drive A:2. Select Run from the File menu3. Enter “A:SETUP” in the Command Line field and press the OK button4. Follow the instructions in the Setup programIn order to install the AvrProg SW under MS-DOS:1. Insert the diskette labeled AvrProg in drive A:2. Create a directory for the programs on your harddisk3. Copy all program files from A:\MSDOS\ into the directory4. Include the directory in the PATH statement in the AUTOEXEC.BAT file5. Reboot the PC to make the new PATH setting valid3.3 Running the Windows version of AvrProg AvrProg is started by double clicking the AvrProg icon.Prior to starting AvrProg, one of the AVR tools with programming capabilities needs tobe connected to an available serial port and turned on. If no valid tools are found on anyof the serial ports, the following message will appear on the screen:Note that there may be several reasons why AvrProg can't find any supported boards.These are described in the trouble shooting section at the end of this manual.AVRProg User GuideDevelopment Tools User Guide 3-3If a supported AVR tool is connected and turned on, the following window should appearon your screen:The window is divided into four sections. The upper section is called Hex file, and isused to load an Intel hex file into AvrProg’s file buffer. The two middle sections arecalled Flash (upper middle section) and EEPROM (lower middle section). They are usedto program, verify, or read either the Flash memory or the EEPROM memory of theselected device. The last section is the Device section at the bottom of the window. Thisis the device selection menu, which is used to select the device to be programmed.Between the Hex file and the Flash section, there is a progress bar and just above thatthere is a status line which is not visible in the figure shot above.At the lower right of the window there is a button marked Advanced that will bring up anew window with the advanced features of AvrProg. These are features like fuse-bitprogramming, lock-bit programming, and a chip erase button. This window will alsoshow some status information about the connected AVR tool.AVRProg User Guide3-4 Development Tools User Guide3.3.1 Selecting a device The first step to program a device is to select it from the device menu. The contents ofthe device menu will change according to the programming capabilities of the connectedAVR tool. AvrProg will automatically detect which AVR tool that is connected to theserial port and the contents of the device menu will be adjusted to fit its programmingcapabilities.If the AT90DEVBOARD is connected, the device menu should look like this:The AT90DEVBOARD can only use serial programming, so only devices with serial pro-gramming capabilities can be selected.AVRProg User GuideDevelopment Tools User Guide 3-5If the AT90PROG1200 is connected, the device menu should look like this:The AT90PROG1200 board uses only parallel programming and can only program 20pin devices.Select the device you want to program by clicking it with the left mouse button. 3.3.2 Loading a Intel Hex fileThe next step is to load an Intel Hex file to be programmed into the Flash memory or theEEPROM memory of the selected device. Click on the Browse button to bring up thebrowse window. Your screen should look something like this:AVRProg User Guide3-6 Development Tools User GuideUse the browse menu at the top to locate the directory where your hex files resides, andselect one by either double clicking it or just select it and use the Open button. If your filehas an extension other than .HEX, use the Files of type menu at the bottom of the win-dow to change the extension. After a file has been loaded, the AvrProg window will looksomething like this:Note that the Reload button has been activated. It is used to reload the currentlyselected file if it is updated (e.g. by the AVR assembler). This will save you for the trou-ble to use the Browse button to load the file again. Just click on the Reload button, andthe updated hex file will be loaded.Note that the Browse menu will remember the last directory you loaded a file from. Ifanother file from the same directory should be loaded, it will be available when theBrowse button is pushed.3.3.3 Programming a deviceThe last step in the programming process is to program the loaded hex file into theselected device. If the Program button in the Flash section is clicked, the loaded file willbe programmed into the Flash memory of the selected device. The AvrProg windowshould look something like this after a successful programming:AVRProg User GuideDevelopment


View Full Document
Download AVR Program User Guide
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view AVR Program User Guide and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view AVR Program User Guide 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?