Programming atmega using USBasp
For burning a program in a AVR uc using usb port instead of parallel or serial then USBasp is the best option. For circuit diagram of USBasp click here. following are the procedure for burning the hex file
-
Install the avrdude (winavr) ,it can be downloaded from click here
-
Download USBasp driver ,you can download it from click here
-
Connect cable directly to USB port of computer .
-
Wait for windows information “New Hardware Found USBASP”. If device isnt detected, check the board for errors and reconnect again;
-
After device is detected Driver setup wizard opens. Select where USBASP driver is located. It is in directory you’ve downloaded with firmware. If you unpacked in D: drive, than driver should be in D:\usbasp.2006-12-29\bin\win-driver\ and press next:
-
there are many GUI available on net , using which u can burn the code , i think AVR8_Burn-O-Mat was the easiest one which can be downloaded from click here , dis GUI is self explanatory .
-
select the uc , specify the hex file
-
click on write , it will show msg flash successfully written.
-
click on verify to verify.
-
if got some error msg instead of flash succesfully written , these may be the reasons for the error
-
avrdude: error: could not find USB device “USBasp” with vid=0x16c0 pid=0x5dc , reason may be
“USBasp” is not Connect , check your connector or u haven’t installed the driver (install it) click here
2. avrdude: error: program enable: target doesn’t answer. 1 , reason for dis error
- Programmer isn’t connected with Target circuit
- ISP Connector is bad connection
- Target circuit power is OFF
3. avrdude: verification error , first mismatch at byte 0x002a0x31 != 0xb1 , reason is verify error so try again.
4 . if you got an error message “flash successfully written error while verifying flash” the reason for this error is the power supply , Vcc which you are providing is less than the specified value 5 – 4.5 V .
……..if you found this tutorial helpful or have any suggestions … do leave a comment.

kartriter said,
December 30, 2008 at 17:54
seems useful!
kv said,
January 2, 2009 at 21:22
quite nice…many people are facing this problem says google!
Mattu – the problem solver!
Eko Rudiawan said,
January 31, 2009 at 08:42
Nice news & nice blog guys
let’s rock with avr MCU
Rohit said,
February 8, 2009 at 04:18
One can also use progisp as the application for USBASP this is a small self contained software(chinese and english version) 1MB.
rohit
praveendb said,
February 8, 2009 at 17:17
>>Rohit
thanx for suggestion
u can dwld progisp from this loction
http://www.ouravr.com/bbs/bbs_upload72449/files_5/armok01114793.rar
but i think for beginner avr-burn-o-mat will be easier to use as compare to progisp.
Akhil kumar s said,
August 9, 2009 at 22:46
I am not able to detect the IC using USBasp…
My usbasp has 5 outputs, whereas microcontoller has only 4
praveendb said,
August 10, 2009 at 00:38
which uc u r using?
connect o/p of USBasp to
GND
reset
SCK
SO
SI
of atmega.
sudarshan said,
December 12, 2009 at 12:07
Sir,
I recently bought your keeprog mk2. It was working fine for some time.But now
on trying to burn a hex file onto a microcontroller the avrdude gui 2.0
says can’t open device “giveio”.Even on other burning softwares like
KHAZAMA avr programmer it says unable to find SSB device “USBasp” with
vid=0x16c0 pid=0x5dc.
I would be really grateful if you can help me out.
Thanking you,
Sudarshan
praveendb said,
December 13, 2009 at 15:10
uninstall the old driver and install it again!!!!!!!
try AVR Burn’o'MAT
saransh said,
February 26, 2011 at 13:28
Dear sir ,
i connected the usb asp with atmega8 miniavr board i tried using burn-omat its giving me an error process 3
and also i tried using sina prog this software is not detecting the atmeg8 at all can you please help me with it ?
praveendb said,
June 28, 2011 at 01:11
gimme details abt the error..
Devyang B Shah said,
March 1, 2011 at 19:58
i am busy with one project & need technical guidance? do you take consulting work?
Devyang
praveendb said,
June 28, 2011 at 01:09
contact me @ praveen[dot]1324[at]gmail.com
frenky said,
May 8, 2011 at 08:15
RhOlch http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com
Awais said,
October 26, 2011 at 15:28
Hello!!
Can i connect ATMEGA16L instead of ATMEGA8???
praveendb said,
October 31, 2011 at 20:29
with minor modification yes…