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:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Limit Temperature Buzzer
    Telephone Line Controller
    Phone line FM transmitter
    Automatic-shutoff
    Thermostat Switch For Automotive Electric Fans Circuit
    power How can I switch a high current with a low-rated switch
    project DBS
    square wave 2 sine wave convertion
    555 audio oscillator Analog Integrated Circuits
    Arduino Blinky LED Intro Circuit
    200W 136 kHz transmitter
    frequency counter PIC-Based Digital
    BA2181 stepping touch dimmer light circuit
    Electronic Peacock by the CD4017 NE555 circuit diagram consisting of the opening screen



    Top