Friday 23 March 2012

Learn to Make USBasp is Easy

USB Downloader was made by Thomas Fischl. He used the the USB driver with  AVR that is being developed by Objective Development GmbH. USBasp consists of ATmega48 / 8 and a few passive components without requiring the other driver components. USBasp has several features such as:

  1. Can work on the Linux operating system, Mac OS X and Windows.
  2. Does not require a dedicated controller or SMD components.
  3. Programming speeds up 5Kbytes/sec.
  4. SCK option to support the target device with a low speed (<1.5 MHz)

Here I will help you to create your own USBasp with yourself.
Create a circuit USBasp as shown below with PCB software that you usually use. I use Eagle. (Click on the Picture to zoom in)
After the circuit schematic completed ,  convert to the form of PCB. Examples of  PCB results from the circuit above as:
Setting Hardware
Before the firmware is written to the microcontroller with USBasp, there are some hardware settings that need to be understood. There are three jumpers on the hardware used for configuration, they are:
  1. Jumper 1 (JP1) is used to provide 5V supply to the target through ISP connector. If the Jumper is connected, the target does not require any external supply because has been obtained from USBasp.
  2. Jumper 2 (JP2) is used to perform firmware upgrades. This jumper must be connected if you want to do the writing / frimware upgrade.
  3. Jumper 3 (JP3) connected with pin PC2 as the setting SCK. If the target has a lower clock speed (<1.5 MHz), then this jumper must be connected. SCK will be reduced from 375 kHz to 8 kHz.
Firmware Installation
USBasp made ​​in this post using ATmega8 microcontroller. The firmware can be installed using PonyProg 2000 with a parallel port interface. The steps to install the firmware is as follows:
  1. Connect the Jumper 2 (JP2).
  2. Connect USBasp  with PC / laptop via the USB port. When connecting this, there will be a warning " USB not recognize". Just ignore this warning.
  3. Load the firmware version used in accordance with the microcontroller. The firmware is contained in usbasp.2009-02-28\bin\firmware (download in   usbasp.2009-02-28.tar.gz 260 kB)or usbasp.2011-05-28\bin\firmware (download in usbasp.2011-05-28.tar.gz 519 kB).
  4. Set and setting H-Fuse L-fuse configuration for 12 MHz external crystal . For the ATmega8, H-fuse = 0xC9 and L-fuse = 0xEF, while for the ATmega48, H-fuse = 0xdd and L-fuse = 0FF. For the ATmega8, setting H-fuse and L-fuse  on PonyProg as follows:
  5. Click write to write the settings above.
  6. When finished, remove the back Jumper 2 (JP2) and unplug the USB cable.
Our work is not finished until here, one more step to complete.
Windows Driver Installation
  1. Connect USBasp  with laptop / PC using a USB cable.
  2. Will appear in Windows as shown below.
  3. Select "No, not this time", then press Next.
  4. Then select "Install from specific location (advanced)" and press Next.
  5. Then will appear,
  6. Navigate to the folder where the driver is located, that is, usbasp.2009-02-28 \ usbasp.2009-05-28 \ bin \ win_driver or usbasp.2011-05-28 \ usbasp.2011-02-28 \ bin \ win_driver (I use usbasp.2009-02-28 \ usbasp.2009-05-28 \ bin \ win_driver). In this folder there are two drivers folder. Which is is used depends on the WinAVR is used. If WinAVR that is used more than  2008-05-12, use libusb_0.1.12.1. If the version of WinAVR is used for longer, use libusb_0.1.10.1.
  7. Not long after, the installation process to be completed are marked with the appearance of the dialog box as shown below. Press Finish on this dialog box.
  8. To ascertain whether USBasp been installed properly, check through Device Manager. In the Device Manager will appear USBasp as shown below.
Download Firmware, Driver and Circuit
Software

14 comments:

j O C y said...

You have a wonderful site.. Be happy always..

El3kTr0 said...

Thanks 4 the info bro!! nice site

mikexplorer said...

Have a happy weekend to you. Keep posting.

k and k world said...

nice site! keep it up!

Unknown said...

thanks all,, if you have problem, ask me :)

j O C y said...

Have a happy sunday to you my friend ;)

Hot Insurance Blog said...

nice info friend :) btw I'm happy to be here, I hope you too. Happy blogging friend

Lina Gustina said...

Came here to visit u back.

http://www.1sthappyfamily.com

Hussien said...

I am not so sure on how to set the fuses. I believe, the firmware to be burned into atmega88 using an ISP programmer. Please help me on this

Unknown said...

just do it like explained above, after that, if you find some problem, you can ask me

Subhasis Banik said...

doesnt work on windows xp not even on win 7.tried a lot.the usbasp doesnt seem to get recognized anywhr and shows unknown device every time.wat shud i do?

Sheldon said...

Awesome! But how do I connect this usbasp to my controller(ATMEGA 8), in order to program it?

Unknown said...

Hi! For me Ponyprog is telling that communication port is unavailable (-16). I do not know which file to load and how to write it.

Unknown said...

thanks you !! :)

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Review