Skip to main content

Upload HEX file to AVR Microcontroller - Using SINAPROG

Resource Download 
  • Download SINAPROG Program Burning Software - Download
  • USBASP Driver Download - Download
  • USBASP Programmer Schematic and Firmware - Download 

SINAPROG is use to upload HEX file in all AVR Microcontrollers.


To upload HEX file in Microcontroller we require following things :-

1. HEX Code Generated by AVR Studio 4 
2. AVR USBASP Programmer
3. AVR Training Board
4  FRC 10-10 Female Cable 
5  Blank AVR Microcontroller

Step to Program

Step 1 : 

Connect USBASP Programmer with AVR Trainer Board in ISP ( In System Programming ) section using FRC Cable.


Step 2 : 

Attach Blank AVR Microcontroller (Ex - Atmega 16 ) to AVR Trainer Board.


Step 3. 

Open SINAPROG Software, In HEX Section - Click Folder Icon and select the HEX file to be uploaded in Microcontroller 

Step 4:

Select the Microcontroller in Device Section in which the Program is to be uploaded or Click Search if already connected.

Step 5:

Select "USBASP Programmer" and "USB" in Programmer Section. First one is Programmer Type and Second is Connection type.

Step 6:

Click "Program" Button in Flash Section of SINAPROG. This will start the process of download HEX file from PC to Flash memory of Microcontroller. Progress of Flashing can be seen is Status Section.

Step 7: 

If the Program Download Succeeds than " Programming Flash OK " message will appear in Status Section. If Program Download fails than " Programming Failed " message will appear in Status section.

Step 8:

(Optional) AVR Microcontroller has a feature of Internal Crystal.
Select Internal Crystal (1, 2, 4, 8 Mhz) or External Crystal Frequency (Ext Crys.) in Drop down list of Fuses section and click " PROGRAM " Next to it. 

ERASE PROGRAM MEMORY OF MICROCONTROLLER
  • After Successful connection between Microcontroller Trainer Kit and USBASP Programmer.
  • Select Microcontroller in Device Section
  • Click ADVANCE in Fuses Section. 
  • A new Window will open.
  • Click CHIP ERASE

Common Errors and Solutions while Programming

 Can't Find Programmer - 
  • Check USB Cable between Programmer and PC/Laptop
  • Re-install Programmer Driver in PC
  • Hardware Inspection of Programmer, if any Short circuit or track disconnection
  • Upload USB Boot Loader in Atmega 8 and Check again 
Programming Failed-
  • Check the connection betweem Programmer and Trainer Kit
  • Check with OK FRC Cable
  • Check with another Microcontroller
  • Check the Crystal connected to Blank Microcontroller
  • Check with another OK Programmer

Comments

Popular posts from this blog

3D Printer

What is 3D Printing ? Invented by a man named Chuck Hull back in 1986, 3D printing is a process of taking a digital 3D model and turning that digital file into a physical object. While Hull went on to launch one of the world’s largest 3D printer manufacturers, 3D Systems, his invention concentrated solely on a fabrication process called Stereolithography (SLA). Since that time numerous other 3D printing technologies have been developed, such as Fused Deposition Modeling (FDM)/Fused Filament Fabrication (FFF), Selective Laser Sintering (SLS), PolyJetting and others, all of which rely on layer-by-layer fabrication and are based on a computer code fed to the printer. While there are numerous technologies which can be used to 3D print an object, the majority of 3D printers one will find within a home or an office setting are based on the FDM/FFF or SLA processes, as these technologies are currently cheaper and easier to implement within a machine. We wil...

Capacitors and Its Working

A capacitor is a passive electric element that accumulates energy in the form of electrostatic field. In simple words, capacitor includes 2 conducting plates alienated by the dielectric (an insulating material). The capacitance is inversely relative to the alienation amid the plates and it’s directly relative to the surface area of the conducting plates. Capacitance also relies on the dielectric constant of the material alienating the plates. The customary unit of capacitance is termed as farad, abbreviated. This is a huge unit; other universal units are known as microfarad, abbreviated 1 µF =10 -6 F (µF) & the picofarad, abbreviated 1 pF = 10 -12 F (pF). What is Capacitor?   “An electric circuit element used to store charge temporarily, consisting in general of two metallic plates separated and insulated from each other by a dielectric, also known as condenser.” Basics of Capacitor: A capacitor in general is like a battery....

AVR Studio 4 Installation Guide

Introduction to AVR Studio 4 AVR Studio 4 is Atmel's integrated development environment (IDE) specially design to write and debug applications for AVR devices. The suite includes a text editor to write programs, an assembler to translate assembly code into object programs, and a simulator to watch code's behavior without need of having an AVR device attached.   System Requirements : Window XP Window Vista Window 7(32-Bit) Window 7(64-Bit) Windows 8 Step 1: Download AVR Studio 4 from Here - Download Step 2: Download Win AVR from Here - Download Step 3:  Install Win AVR Software Step 4: Installing AVR Studio Locate the setup program in the folder where you downloaded the software. In this case, the name of the setup program is aStudio4b460.exe . Double-click on aStudio4b460.exe to start the installation. Select Next on the appearing window. Read the license agreement, select the "I accept" option, and...