burning hex files using usbasp

Posted on Feb 5, 2014

AVRDude is excellent program for burning hex code into microcontroller. USBasp is awesome USB based programmer for the AVR. In this tutorial we will see how to use AVRdude for burning hex files into AVR microcontroller using USBasp. AVRdude is not readily available for windows installation. Windows version of AVRdude is bundled with WinAVR compiler.

burning hex files using usbasp
Click here to download the full size of the above Circuit.

Before we start : Download WinAVR from here. In order to program any microcontroller you need the. HEX file. It is nothing but the machine code for the microcontroller. This file is generated by the corresponding assembler software, which converts assembly code into machine code. Assembly can be produced by third party cross compiler software or can be handwritten. - Connect SPI programming pins of USBasp to the AVR microcontroller. Following figure shows sample schematic diagram, if you have different AVR, then connect MOSI, MISO, SCK, RESET and GND pins of that uC to corresponding pins of USBasp. - VIMP: If you are burning a fresh microcontroller, close the Slow Serial Clock jumper of USBasp. Since many brand new microcontroller are factory programmed for internal 1MHz oscillator. USBasp uses very high speed serial clock for faster programming. Thus you will have to specifically tell USBasp to use slow serial clock. This setting is done by above mentioned jumper. NOTE: If you have uC which has internal oscillator enabled and after the programming you are not planning to change its fuse bits back to external clock setting, then you can skip the crystal. Fortunately AVRdude is command line tool, so that you can be very sure of what you are doing with your uC Or Unfortunately AVRdude is command line tool, so you will have to spend little time to get familiar with it -p : Processor. We are using ATmega16, hence m16 . Note...

Leave Comment

characters left:

New Circuits



Popular Circuits

Sweep/Function Generator
Electronic combination lock
Water-level sensing and control
Power-switching circuit
LWDAQ Driver (A2037) Manual
Smoke Detector Circuit
switch mode power supply What does frequency foldback do in a switching regulator
AD Design
portable mixer block diagram
fade fade out led circuit car interior lighting
MPF102 FET Preamplifier
Night Light circuit
Modular Preamplifier Switching Center
Hi-fi amplifier 80Wx2
Line current measurement circuit