AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 TABLE OF CONTENTS 1. OVERVIEW ................................................................................................................ 1 1.1. Introduction .................................................................................................... 1 1.2. References .................................................................................................... 1 1.2.1. Referenced Web Pages ........................
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 TABLE OF TABLES Table 1. Referenced Documents ........................................................................................................... 1 Table 2. Acronyms and Abbreviations ................................................................................................... 2 Table 3. Supported Microcontrollers ......................................................................................................
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 1. Overview 1.1. Introduction USBasp is a USB in-circuit programmer for Atmel AVR controllers. It simply consists of an ATMega8 and a few passive components. The programmer uses a firmware-only USB driver, no special USB controller is needed. Some of the key features include: a. Works under multiple platforms. Linux, Mac OS X and Windows are tested, b. Programming speed is up to 5kBytes/sec, and c.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 Acronym and Abbreviation Description AVR According to Atmel, AVR stands for nothing, it's just a name. Others say it stands for Advanced Virtual RISC. However, the inventors of the AVR series chips are named Alf Egil Bogen and Vegard Wollan, so you be the judge.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 2. Layout The layout of the USBASP programmer is shown in Figure 1. Figure 1. Device Layout 2.1. USB Type A The USB end of the programmer connects directly into your computers USB port. 2.2. ISP – 10 pin IDC The 10 pin ISP connection provides an interface to the microcontroller.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 2.3. JP1 – Supply Target This jumper controls the voltage on the ISP VCC connector. It can be set to +3.3V, +5V or disable this jumper if the target device has its own power source. 2.4. JP2 – Self Program This jumper is used to update the firmware of the USBasp programmer. In order to update the firmware you will need 2 programmers. One to be programmed and the other to do the programming. 2.5.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 3. Circuit Diagram Figure 4.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 4. Using the Programmer 4.1. Connecting the programmer to your computer Connecting the programmer to your computer comprises of 2 steps: a. Physically connecting the programmer to the USB port, and b. Installing drivers in order for it to work. Whilst the USBasp programmer will work on a wide variety of operating systems, this procedure will focus on Widows Vista 32 bit and Windows XPs 4.1.1. Windows 7 (32 and 64 Bit) 4.1.1.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 b. A message will appear in the system tray, as shown below. Click on “Click here for status” to see what is going on. Figure 5. Driver Installation on Windows 7 – System Tray Message c. Windows will attempt to install a driver from Windows Update Figure 6. Driver Installation on Windows 7 – Installing Device Driver Software d. and will fail Figure 7.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 e. At this point, go into device manager and find the entry for the USBASP programmer. It should be displayed with a yellow alert icon next to it. f. Right click on the device and select “Update Driver Software” Figure 8. Driver Installation on Windows 7 – Device Manager g. When prompted “How do you want to search for driver software”, select “Browse my computer for driver software” Figure 9.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 h. Select the folder where you unzipped the driver files then click “Next” Figure 10. Driver Installation on Windows 7 – Browse for Driver Software i. When the installation is complete, a confirmation screen will be displayed. Click close to close it. Figure 11. Driver Installation on Windows 7 – Confirmation j. your programmer is now ready for use. 4.1.2. Windows Vista (32 Bit) 4.1.2.1.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 c. USBasp drivers downloaded and unzipped from (1) http://www.protostack.com/download/USBasp-win-driver-x86-x64-ia64v1.2.5.zip or (2) http://www.protostack.com/download/USBasp-win-driver-x86-x64-ia64v1.2.5.rar . Some people have problems with the zip file so rar file is available as well 4.1.2.2. Assumptions This procedure assumes that: a. The logged in user has sufficient privileges to install device drivers 4.1.2.3.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 Figure 13. Driver Installation on Vista 32 bit - Found New Hardware – USBasp e. On the next screen select “Browse my computer for driver software (advanced)” Figure 14.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 f. Click Browse and select the folder where you unzipped the USBasp drivers, then click Next Figure 15. Driver Installation on Vista 32 bit – Browse for driver software g. When the installation is complete, a confirmation screen will be displayed. Click close to close it. Figure 16. Installation on Vista 32 bit – Confirmation h. Your programmer is now ready for use 4.1.3. Windows XP (32 bit) 4.1.3.1.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 (1) http://www.protostack.com/download/USBasp-win-driver-x86-x64-ia64v1.2.5.zip or (2) http://www.protostack.com/download/USBasp-win-driver-x86-x64-ia64v1.2.5.rar . Some people have problems with the zip file so rar file is available as well 4.1.3.2. Assumptions This procedure assumes that: a. The logged in user has sufficient permissions to install device drivers 4.1.3.3. Procedure To install the USBasp programmer: a.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 Figure 18. Installation on Windows XP – Insert CD or install from specific location d. On the Search and Installation options page (1) Ensure that “Include this location in the search” is checked, (2) Click Browse and select the folder where you unzipped the USBasp drivers, then (3) Click Next Figure 19.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 e. Wait for the driver to install Figure 20. Installation on Windows XP – Driver installation f. When the installation is complete, a confirmation screen will be displayed. Click close to close it. Figure 21. Installation on Windows XP – Installation Confirmation g. Your programmer is now ready for use 4.1.4.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 4.2. Downloading firmware to your microcontroller 4.2.1. Required Items Item required for this procedure include: a. USBasp programmer, b. Computer with USB port and AVRdude software installed, c. Precompiled firmware to be loaded, d. 10 pin ISP cable, and e. AVR Microcontroller with ISP interface wired to it (e.g. an AVR microcontroller on a Protostack 28 pin AVR board) 4.2.2. Assumptions This procedure assumes that a.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 avrdude -p -P usb -c usbasp -U flash:w: Figure 22. AVRdude writing a flash image to the microcontroller 4.2.4. More information Please refer to the AVRdude documentation at http://www.nongnu.org/avrdude/usermanual/avrdude.html for more information. 4.3. Upgrading your USBasp 4.3.1. Required Items Item required for this procedure include: a.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 4.3.2. Assumptions This procedure assumes that a. The precompiled firmware filename is main.hex, b. AVRdude is in the path, and c. USBasp drivers have already been installed. 4.3.3. Procedure To download a new copy of the firmware to a USBasp progammer: a. Insert the active programmer into an available USB port b. Set the JP2 jumper on the target programmer If there is no header on JP2, then solder one on c.
AC-PG-USBASP USBASP AVR Programmer User Guide Version 2.0 18 January 2012 5. Comment and Questions If you have any questions or comments regarding this documentation or any of our products, please contact us via http://www.protostack.com/index.php?main_page=contact_us.