avrprog.pdf

(968 KB) Pobierz
Section 3
AVRProg User Guide
3.1
Introduction
This 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. As
an 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:
n AVRPROG.EXE - Windows 95/NT version.
n PROGF.EXE - DOS program for Flash memory programming.
n PROGE.EXE - DOS program for EEPROM memory programming.
n READF.EXE - DOS program for Flash memory readout.
n READE.EXE - DOS program for EEPROM memory readout.
n PROGFUSE.EXE - DOS program for fuse bits programming.
n PROGLOCK.EXE - DOS program for lock bits programming.
AvrProg runs under Microsoft Windows95 and Microsoft Windows NT. In addition, there
is a set of MS-DOS programs that together have almost the same functionality as the
windows program version.
AvrProg can currently be used with the following AVR tools:
n AT90DEVBOARD - Second generation development board.
n AT90PROG1200 - AT90S1200 programming board.
n AT90ISP - AVR In-System Programmer.
AvrProg will also work with the following future AVR tools:
n
AT90BASEPROG - AVR baseline series programmer.
The Windows version of AvrProg is included in AVR Studio and can be found in the
tools menu.
Development Tools User Guide
3-1
Rev. 1021A-A–01/98
819688553.018.png 819688553.019.png 819688553.020.png 819688553.021.png
AVRProg User Guide
3.2
Installation
In 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 Run
3.
Enter “A:SETUP” in the Open field and press the OK button
4.
Follow the instructions in the Setup program
In 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 menu
3.
Enter “A:SETUP” in the Command Line field and press the OK button
4.
Follow the instructions in the Setup program
In 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 harddisk
3.
Copy all program files from A:\MSDOS\ into the directory
4.
Include the directory in the PATH statement in the AUTOEXEC.BAT file
5.
Reboot the PC to make the new PATH setting valid
3.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 to
be connected to an available serial port and turned on. If no valid tools are found on any
of 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.
3-2
Development Tools User Guide
819688553.001.png 819688553.002.png 819688553.003.png 819688553.004.png 819688553.005.png 819688553.006.png 819688553.007.png
 
AVRProg User Guide
If a supported AVR tool is connected and turned on, the following window should appear
on your screen:
The window is divided into four sections. The upper section is called Hex file, and is
used to load an Intel hex file into AvrProg ’s file buffer. The two middle sections are
called Flash (upper middle section) and EEPROM (lower middle section). They are used
to program, verify, or read either the Flash memory or the EEPROM memory of the
selected device. The last section is the Device section at the bottom of the window. This
is 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 that
there 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 a
new window with the advanced features of AvrProg . These are features like fuse-bit
programming, lock-bit programming, and a chip erase button. This window will also
show some status information about the connected AVR tool.
Development Tools User Guide
3-3
819688553.008.png 819688553.009.png 819688553.010.png
AVRProg User Guide
3.3.1
Selecting a device
The first step to program a device is to select it from the device menu. The contents of
the device menu will change according to the programming capabilities of the connected
AVR tool. AvrProg will automatically detect which AVR tool that is connected to the
serial port and the contents of the device menu will be adjusted to fit its programming
capabilities.
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.
3-4
Development Tools User Guide
819688553.011.png 819688553.012.png 819688553.013.png
AVRProg User Guide
If the AT90PROG1200 is connected, the device menu should look like this:
The AT90PROG1200 board uses only parallel programming and can only program 20
pin devices.
Select the device you want to program by clicking it with the left mouse button.
3.3.2
Loading a Intel
Hex file
The next step is to load an Intel Hex file to be programmed into the Flash memory or the
EEPROM memory of the selected device. Click on the Browse button to bring up the
browse window. Your screen should look something like this:
Development Tools User Guide
3-5
819688553.014.png 819688553.015.png 819688553.016.png 819688553.017.png
Zgłoś jeśli naruszono regulamin