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

    Digital Clock with Solar Regulator
    Switching inverter for 12v systems
    Build a fully featured Arduino Thermostat
    Schematic Diagram VHF UHF Low-Noise amplifier circuit
    Lamp Flasher
    mixer circuits
    remote_control circuit
    MOSFETs and CMOS Inverter
    ISL6405 Dual Output LNB Supply and Control Voltage Regulator with I
    Traffic Lights For Model Cars Or Model Railways
    Transistor common emitter amplifier circuit



    Top