Looking For Anything Specific?

Header Ads

How to Burn Hex file into AT89S51/52 Microcontroller || Part 1



Tools you need for writing 8051 micro controller:
Here are the some of tools used for 8051 microcontroller programming and simulation
  • Keil uVision – 8051/ARM simulation Click here (most preferred)
  • Proteus – Fully embedded simulation software  Click here
  • Programmer - USBasp Programmer Click here 
 Here we will work on Keil Uvison4 simulation software to make our simulation before burning program into 8051 chip.
  • Install sofware on your system
  • Click Project -> New Uvision Project
  • Save your project
  • Select Target Device (8051 – AT89s51)
  • File -> New
New text-editior will be opened. Here you need to write your code:
In this tutorial we will see blink LED program as beginners

#include<reg52.h>
sbit en=P0^0;
void delay();
void delay()
{
    int i,j;
    for(i=0;i<1000;i++)
    for(j=0;j<500;j++);
}
main(){
    while(1){
        delay();
        en = 0;
        delay();
        en = 1;
    }
}

LED will get ON/OFF depending on delay function as specified in the about program
After typing this program save this file (with file extension *.c).
Right click source Group add files to source group. Choose your saved file wit extension “.c”.
After adding your code file to source group.
Go to “project” menu click “Build Target”
You should get zero errors after compile it.
Once you done with your compilation click “Debug” Menu click “Run”
Now your simulation will run where you can see the port0 which will be blinked depending on delay specified in your code.






Download this Driver ===click  Link below ( wait for 5 sec )

progisp 772.rar





Download this Drivers === click  Link below ( wait for 5 sec )

USBasp-win-driver-x86-x64-v3.0












How to Open .rar file (download this software )



Post a Comment

0 Comments