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

Triangle-to-sine converters
High quality tone control
Logarithmic-sweep-vco
Tone Burst Generator Circuit
Melody Generator Circuit using UM66
circuit diagram of remote control tester
S1L9251X Cd-rom 48x Rf Amp Semiconductor
Freescale unveils highly integrated TPMS device
70 Watt MOSFET Audio Amplifier
Cookers detection control circuit



Top