





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






The ET-AVR Support Board and the AVR-Stamp board form a development kit for the ATmega128 and other AVR processors. This development kit includes many useful features, including LED's, pushbuttons, adjustable analog inputs, speakers and more. There is also a large breadboard area to test and develop your own designs. These boards are easily affordable, costing less than $75.
To download programs to the ET-AVR, you will need additional software. This tutorial will guide you through the steps to download programs to the ET-AVR via the PonyProg software. PonyProg2000 is free-ware. This tutorial assumes that you have installed PonyProg2000 on your computer. If you do not have PonyProg2000 yet, you may obtain a copy from one of 2 places:
This tutorial will guide you through the steps required to:
This tutorial also assumes that you have written, assembled, and simulated an ATmega assembly language program and that you are now ready to download and execute the program on the ET-AVR.
Step 1: Obtain the following parts:
Figure 1: ET-AVR Support Board Figure 2: AVR Stamp Board
Note: Key position on connector Jumper positions: Free pins Arrow on card should be on the same side as the arrow on the butterfly board
Figure 3: The Parallel Port Card (left), Programmer Interface (right), and Ribbon Cable
Step 2: Orient the ET-AVR Support Board and the AVR Stamp Board as shown in figures 1 and 2, and then place the stamp board in the support board as shown in figure 4:
Power Connector on Support Board LED on Butterfly Board
Figure 4: Assembled ET-AVR Support and Stamp Boards
Step 6: Click on the “Device” Menu and choose AVR Micro and Atmega128:
Figure 6: Choose a device
Step 7: Click on the “Setup” Menu and choose Interface Setup. Choose “Parallel”, then “Avr ISP I/O”, and then LPT1 (or whichever port you’ll be using). Click [OK]:
Figure 7: Interface Setup
Step 8: Click on the “Setup” Menu and choose Calibrate. Click [Yes]:
Figure 8: Calibration Dialog
Step 9: You are now ready to load a program into PonyProg2000 so that you can download it into the ET-AVR Development kit. To do this open a hex file (previously assembled program). Choose “Open Program (FLASH) File…” from the “File” Menu:
Figure 9: Loading a program
Step 10: Navigate to the appropriate directory (the one in which your hex file is stored), click on the hex file and then the [Open] button:
Figure 10: Load hex file
If all is successful you will see the following dialog box:
Figure 14: Successful Download
Step 14: After the program is downloaded, it should begin to execute. At this point you can remove power and then the programmer interface. Restore power and the ET-AVR will begin executing your program (remember, the program is in Flash Memory and will stay there until your next download). Below, I am showing a program being executed that will light one LED, keep it on for about 1 second, turn it off, then light the other LED for about one second:
Figure 15: Successful Program
This next image shows a working Burglar Alarm Circuit/Program. The 1st^ image shows the blinking 0 on the 7-Segment LED (of course you cannot see it blinking). Notice that all switches are closed, simulating all doors are closed.
Figure 16: Initial State of Burglar Alarm
The next image shows the alarm working (note; switch 8 is open and 8 is displayed on the LED)
Figure 17: “Door” 8 is open
The alarm is producing an annoying 2.5kHz buzz. The next image shows the scope output measuring the input to the speaker: