Ponyprog Tutorial PDF
Ponyprog Tutorial PDF
Public ITEE
ITEE Home CSSE1000 - Introduction To Computer Systems Pracs Atmel AVR Resources PonyProg Tutorial
Web version
PonyProg Tutorial
( for Version 2.06a Beta Apr 4 2003 )
Updated - 3 September, 2004 Author: Len Payne, modified by Peter Sutton
Contents
q q
Starting PonyProg
q
Once the program has started, you will be looking at a screen like this:
PonyProg Tutorial
Tick the "Disable sound" checkbox if it isn't already. It's fun, but only for the first couple of times.
Calibration
http://www.itee.uq.edu.au/~csse1000/pracs/Atmel_AVR_Resources/PonyProg_Tutorial/?print=1 (2 of 10)1/09/2005 5:51:30 PM
PonyProg Tutorial
The following window will only appear the first time PonyProg is run after it has been installed on the computer. Skip this section if this window did not appear.
Open the help documentation by selecting "Help" from the "?" menu. Follow the instructions provided in section 2.6.2 (Setup->Calibration).
Interface Setup
We will be using an STK200 download cable connected to the computer's printer port (LPT1) to program the AVR8515 Project Board. Open the "Interface board Setup" window by selecting "Interface Setup..." from the "Setup" menu.
http://www.itee.uq.edu.au/~csse1000/pracs/Atmel_AVR_Resources/PonyProg_Tutorial/?print=1 (3 of 10)1/09/2005 5:51:30 PM
PonyProg Tutorial
"I/O port setup" should be set to "Parallel". The drop-down should be set to "Avr ISP I/O" and "LPT1" selected. Leave all "Polarity of the Control lines" checkboxes unticked.
Do not close this window just yet. We need to check that the interface will work correctly.
q
Connect the YELLOW plug of the power lead for the AVR8515 Project Board to the +12V terminal on the power supply and the BLACK plug to the 0V terminal. Plug the power lead into the power connector at the top-right corner of the project board. Connect the parallel port cable (DB25-Female) from the computer to the DB25-Male connector on the STK200 download cable. If not already done so, connect the 10-pin IDC connector of the STK200 download cable to the STK200 connector (10-pin socket) on the project board.
PonyProg Tutorial
q
Check that the jumper, J1 near the power connector, is set on pins 1 and 2. Pin 1 is the rightmost pin. Switch on the power supply. The RED LED on the project board should light.
Now, press the "Probe" button on the "Interface board Setup" window. If all goes well, you should see the following message appear. Press "OK" and "OK" again on the "Interface board Setup" window.
If you get the following message, something is not configured correctly. Work through this section, Interface Setup, again and if the probe test still fails, consult a tutor.
Back to Contents
PonyProg Tutorial
You will then get the "Open program (FLASH) content file" dialog box. Go to the "File of type:" drop-down and select *.hex. Navigate to the folder which contains led.hex and select led.hex as the filename and press the "Open" button.
The window changes to show the contents of the led.hex program file. Displayed down the left side in red, are the address offsets of each line
http://www.itee.uq.edu.au/~csse1000/pracs/Atmel_AVR_Resources/PonyProg_Tutorial/?print=1 (6 of 10)1/09/2005 5:51:30 PM
PonyProg Tutorial
of data in the window. The addresses are displayed in hexadecimal. Each line contains 16 bytes of data, so the address offsets increment by 16 (10 in hex) for each line. The data in the program file, shown in green, are displayed in hexadecimal. These are the data that will be programmed into the program memory of the AT90S8515 device. On the right side of the window, shown in violet, are the ASCII representation of the data. Only data with values in the range of 32 (20 hex) to 127 (7E hex) will be recognisable as printable characters. Data with values that fall outside this range will still be displayed in their ASCII representation.
PonyProg Tutorial
A status dialog will appear showing the erasing progress. You will also see the YELLOW LED on the project board come on. The erasing process only takes a second or two to complete after which you should get an "Erase Successful" message. Press the "Ok" button to continue. The device can now be programmed. Select "Write Program (FLASH)" from the "Command" menu.
PonyProg Tutorial
You are then asked to confirm writing to the device. Press the "Yes" button.
A status dialog will appear showing the writing and verifying progress. Again, you will see the YELLOW LED on the project board come on. The writing and verifying process takes longer to complete than the erasing process. You should finally be greeted with a "Write Successful" message. Press the "Ok" button to continue.
PonyProg Tutorial
Back to Contents
privacy | feedback
2002-2005 The University of Queensland, Brisbane, Australia ABN 63 942 912 684 CRICOS Provider No: 00025B Authorised by: Head of School Maintained by: [email protected]