Showing posts with label USB PROGRAMMER. Show all posts
Showing posts with label USB PROGRAMMER. Show all posts

Monday, 16 May 2016

How to burn hex files in avr microcontrollers

In this post we will learn, how to burn hex file in avr microcontroller using programmer and burner software.

List of components/software:

1. USBasp programmer
2. Target circuit board having microcontroller (mine have atmega8)
3. Avrdudes (Burner software)

Prerequisites:
USBasp driver installed in your system.
If it is not installed, then read instructions about installation from my previous post.
USBasp driver installation

Default fuse byte for atmega8a is: HFUSE = 0XC9 and LFUSE = 0X1F
This corresponds to internal rc oscillator having frequency 1 MHz

HFUSE = 0XC6 and LFUSE = 0XE4
This corresponds to internal rc oscillator having frequency 8 MHz

Thursday, 5 May 2016

Driver for usbasp programmer

How to install usbasp driver in your pc/laptop?

https://drive.google.com/file/d/0B4Px6Drl6Zz_aGlDZnY0YmV6SUk/view?usp=sharing

Download driver from the above link. Extract the file, now you have two folders:

 windows-8-and-windows-10-usbasp-drivers-libusb_1.2.4.0-x86-and-x64-bit and  Win-Driver.
Former is for windows 8 and windows 10 while latter is for windows 7.

Open device manager after connecting the programmer you can see the yellow triangular icon which indicates that no driver is installed.

Device Manager
Right click on usbasp, you have two options of installing the driver, click on browse my computer for installation of driver.
Broswe
Browse the following directory in your computer:

E:\PROJECTS\8051_kit_programmer\AVRUPro+\Win-Driver. 
After extraction, you have two files. Let's suppose you have usbasp_driver folder in E drive.
Browse E:\usbasp_driver\Win-Driver if you are using Windows 7.

After selecting it will ask for driver installation, click on install this driver anyway.
Installing the driver
If the driver is installed successfully, you can check its status in device manager.
Post-installation
This post was for installing usbasp driver in windows 7. If you are using windows 8 or 10.

If you want to install usbasp driver in windows 8/10. You can do it by disabling driver signature option. You can google it for the detailed procedure.

Stay tuned for more updates !!








Wednesday, 25 June 2014

Make your own USBasp programmer

You can make your own USBasp programer using just few components.

USBasp is an open source programmer which supports AVR family.
For making this programmer you need an Atmega8 with USBasp firmware. The  firmware and list of supported devices can be found at  www.fischl.de/usbasp/



The fuse byte should be as follows:

HFUSE=0xC9
LFUSE=0xEF

You can upload firmware and set fuse from another programmer and download Bill of Material,
firmware

You can also burn 8051 from this USBasp programmer i.e. it acts as both 8051 + AVR programmer.
However, the firmware is different for combo programmer. I will upload the firmware sometime later.


The software for uploading programs are:

  •  AVRDUDE  (COMMAND LINE)
  • AVRDUDES  (GUI BASED)