USBasp Serial Programmer
USBasp Serial Programmer
USER GUIDE
USER GUIDE
Elementz Engineers Guild Pvt Ltd Ayurveda College Trivandrum-695001 Phone 0471-6006699 Mob +91-9020616699 Website: www.elementzonline.com Mail: [email protected]
REVISION HISTORY
V ERSION 1
JULY 2013
T able of Contents
Overview ................................................................................. 1 Features .................................................................................. 1
Module SnapShot ........................................................................... 1
Connection Details ................................................................... 2 Installing the drivers ................................................................. 2 Configuring AVRDudeGUI........................................................ 3 Downloading HEX code............................................................. 5
I M P O R T A N T N O T E
This user guide describes how to get started with your board in Windows.
U S E R
G U I D E
V E R
Overview
SBasp serial programmer will allow you to painlessly transfer hex programs to most ATMEL AVR microcontrollers.
It is more reliable than most other AVR programmers available. Entire AVR programmer has been built with using common parts and fits in the case of the serial connector. The socket pcb has been created to fit a 28-DIP AVR ATmega8 microcontroller, but you can build a socket pcb for any other AVR microcontroller out there. This AVR programmer is compatible with AVRdude GUI software.
Features
Microcontroller Operating Voltage ATmega8 5V
Module Snapshot
P I C T U R E
Following figure contains the Snapshot of the USBasp AVR serial programmer.
Connection Details
How to connect
C O N N E C T I O N D I A G R A M
Connect the USBasp serial programmer to the pc with male to male usb connector. +5V for the microcontroller chip will be provided directly from usb. Connect the target board to the USBasp serial programmer using ICSP CON.
I M P O R T A N T
While Programming, its better to use External Power Source, because USB port can only supply maximum current of 500mA. Short the pins VCC and EN for powering the target board.
On Windows7 Right click on My computer. Select ManageDevice ManagerOther devicesUsbasp. Right click on Usbasp and select PropertiesUpdate driverBrowse my computer for driver software . Click on it and driverlibusb_1.2.4.0 . browse for the usbasp.2011-05-28binwin-
When asked Can Windows connect to Windows Update to search for software? select No, not this time. Click next. Select Install from a list or specified location (Advanced) and click next. Make sure that Search for the best driver in these locations is checked; uncheck Search removable media; check Include this location in the search and browse to the usbasp.2011-05-28binwindriver libusb_1.2.4.0 directory extracted from the support CD. Click next.
The wizard will search for the driver and then tell you that a "USB Serial Converter" was found. Click finish. The new hardware wizard will appear again. Go through the same steps and select the same options and location to search. This time, a "USB Serial Port" will be found.
You can check that the drivers have been installed by opening the Windows Device Manager (in the Hardware tab of System control panel). Look for a "USB Serial Port" in the Ports section.
Connect the USBasp Serial Programmer to the pc using usb connector. Open AVRdudeGUI by double-clicking the AVRDudeGUI application.
In the "Location of avrdude", browse and show the path where the avrdude application is located. In Tool options>Port(-P)>select usb from the dropdown menu. In Programmer(-c)>select usbasp(USBasp, http://www.fischl.de/usbasp/). In Device(-p)>select the microcontroller you are using in your target board.
Tick the Write boxes below Low Fuse & High Fuse. Click the Execute button.
Output will show avrdude.exe: verifying ... avrdude.exe: 1 bytes of hfuse verified avrdude.exe done. Thank you.
I M P O R T A N T N O T E
Be careful to select the fuses for your target IC, otherwise it can brick your IC forever. User may use the online tool in http://www.engbedded.com/fusecalc for finding the fuse bits for your Target.
Connect the USBasp Serial programmer to the pc using usb connector. Connect the target board which is to be programmed to the USBasp Serial programmer. Now open the AVRDudeGUI application.
In Flash, browse for the hex code to be dumped to the target board. Tick the write box.
6
Click Execute. Output will show avrdude.exe: verifying ... avrdude.exe: xxx bytes of flash verified avrdude.exe done. Thank you.
After execution remove the tick from the Write box. During execution the led will blink. That's it.