8051 Microcontroller Programming setup


Programming 8051 microcontroller is quite easy. I have programmed two types of 8051 microcntroller. One is from Philips p89v51rD2 and other one is At89s51 from ATmel. Both are very similar and there are very less difference in both of them.

Without wasting time, lets move to programming.

Tools you need for writing 8051 micro controller:

Here are the some of tools used for 8051 microcontroller programming and simulation

  • A51-Assembler
  • Code editor -Syntax highlighting Notepad.
  • Simulator-windows based Smart n Small Simulator.
  • Baud -Timer value calculators for various baud rates.
  • C compiler for 8051.
  • RIDE software – simulation Click here
  • Keil uVision – 8051/ARM simulation Click here (most preferred)
  • Proteus – Fully embedded simulation software  Click here

Personally, I used Keil Uvison4 simulation software to make my simulation before burning program into 8051 chip.

Following are the steps:

  • Install sofware on your system
  • Click Project -> New Uvision Project
  • Save your project
  • Select Target Device (8051 – AT89s51) or you can choose any other depending upon, what you are using.
  • 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

sbit en=P0^0;
void delay();
void delay()
    int i,j;
        en = 0;
        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.

Thats it!! You’re done with your simulation.

Burning the Hex file into 8051

NOW, to burn your hex file into 8051 RAM which you have generated by compiling your code.

There comes a software FLASHMAGIC

This is all in one software for burning hex files into huge list of 8051 microcontrollers. Beside this, it has also nice serial monitor which can be used for general level serial debugging. One thing which you should rememvber is that you have to connect your 8051 microcontroller board by serial cable in this software. 

After connecting the device through serial port to PC.

1. Select the Com port number. (usually you will find this from device manager ) AND in case, if you are using usb to serial convertor, then its much higher number.

2. You have to set the baud rate according to the device model you are using.

3. select the device itself from the list

4. Click on start

5. Now REST the microcontroller board

Please note that, sometimes reset could not trigger the start of flashing process, In that case, just replug the power adapter cable into board. It will at once start burning your hex into controller.

For programming 8051 microcontroller with USB is also possible,  which i will talk sometimes in future. But i personally have flashed my 8051 microcontroller with serial cable. But yes! you can use a good USB to serial convertor, if you are using your laptop or some other netbooks.

I have uploaded several codes, which you can use to learn and even use to make big projects using those as modules. You find them on my git code repository (Link).

ALSO, If you want to learn the 8051 Microcontroller based C programming, then i have a long tutorial of around 45 minutes.


top quality viagra online
viagra pills
can you take more than 100mg viagra
viagra prices
viagra sale mississauga

anyone order viagra online
viagra pill
viagra cvs price
viagra for sale uk only
generico de viagra mexico

cheapest viagra no prescription
generic for viagra
get viagra auckland
generic for viagra
where to buy viagra in hyderabad

best place buy viagra
cheap viagra
viagra buying in australia
viagra pills
purpose of viagra pill

should i buy viagra online
generic for viagra
is generic viagra real yahoo
[url=http://fastshipptoday.com/#]viagra coupons 75 off[/url]
lake michigan viagra spill

where to get viagra samples
viagra coupons
best viagra like pill
[url=http://fastshipptoday.com/#]generic for viagra[/url]
viagra 50 mg wirkungsdauer

precio de viagra 100mg
viagra for sale uk
uses viagra tablets
viagra pills
cant get hard with viagra

when will viagra become a generic drug
buy viagra online
where should i buy viagra
buy viagra online
sildenafil 50 mg como usarlo

do you need a prescription to buy viagra in canada
viagra coupons
can i buy viagra online legally
viagra australia
order viagra online us

when will viagra have generic
generic viagra
buy viagra discreetly online
viagra without a doctor prescription
do need prescription buy viagra ireland

sildenafil 50 mg presentacion
viagra sans ordonnance
viagra magnus 50 mg
viagra from canada
is there a viagra pill for women

best online place to buy viagra
viagra generic
viagra rezeptfrei 50 mg
viagra australia
how long does it take a 100mg viagra to work

generic viagra news
buy viagra online
buy generic viagra and cialis online
viagra without a doctor prescription
buy viagra ebay

price cialis vs viagra
generic viagra
viagra 100mg tablets 4
[url=http://fastshipptoday.com/#]generic viagra[/url]
herbal viagra uk buy

where to get viagra from in the uk
buy viagra
safe to buy viagra online
viagra cost
can i get viagra with medicaid

tomar viagra 100mg
viagra uk
can buy viagra australia
buy viagra online
buying viagra over the counter in germany

looking viagra pills
viagra price
does generic viagra sildenafil work
generic for viagra
buy liquid viagra for women

viagra sildenafil citrate 50 100 mg
viagra generic
can you buy viagra tesco
viagra coupons 75 off
can take 100mg viagra

generic viagra with dapoxetine 160 mg
cost of viagra
generic for sildenafil
viagra online
best place buy viagra online forum

sildenafil pfizer 100mg
where to buy viagra
generic viagra blog
viagra without a doctor prescription
viagra tablets for sale australia

viagra pro order now
viagra price
purchasing viagra online australia
generic viagra
long before viagra pills expire

get the most from viagra
generic for viagra
what is the price of viagra in india
viagra generic
viagra buy toronto

maxifort zimax sildenafil 50 mg
viagra prices
cheapest genuine viagra
viagra coupons 75 off
sildenafil citrate 100mg kamagra

viagra price list in indian rupees
viagra australia
is it safe to buy viagra over the internet
where to buy viagra
sildenafil 20 mg tablet

how can i get real viagra
viagra for men
order viagra internet
viagra price
what do you say to get viagra

use sildenafil 100mg
viagra pills
chinese viagra 2000 mg
viagra pills
but viagra online uk

order viagra cialis canada
viagra coupons 75 off
price comparison cialis viagra
viagra from canada
can you buy viagra over the counter in turkey

buying viagra in the philippines
buy generic viagra
viagra 50 mg u.k
viagra for sale uk
buy viagra safely online

sildenafil citrate generic cipla
viagra for sale uk only
can get viagra bangladesh
viagra uk
25 mg sildenafil citrate

levitra vs viagra price
viagra online
will generic viagra available
viagra prices
do prisoners get viagra

viagra price war
buy generic viagra
take cialis with viagra together
viagra for men
can get viagra performance anxiety

viagra 100 mg ndc
online viagra
generic viagra cialis levitra
where to buy viagra
cheapest pfizer viagra

what does generic viagra mean
buy viagra online
nombre del viagra en genericos
viagra without a doctor prescription
buy viagra soho

generic viagra online with mastercard
viagra for sale uk only
is ordering viagra online safe
viagra australia
can i buy viagra in london

cheap-generic-viagra erfahrung
viagra prices
buy viagra now
viagra for sale uk
quanto dura o efeito do viagra 50mg

vipps viagra online
buy viagra online
cheap viagra sildenafil citrate
viagra coupons
marcas de genericos de viagra

when will viagra be a generic
viagra australia
can buy viagra cvs
buy viagra online
viagra generico buenos aires

cheapest place to buy viagra in uk
buy viagra
viagra medicamentos genericos
viagra without a doctor prescription
buy viagra over the counter in london

viagra en genericos
generic for viagra
cheap sildenafil citrate
viagra generic
cual mejor generico viagra

taking viagra and cialis together
viagra uk
did generic viagra become available
generic viagra
price viagra per pill

taking viagra levitra together
viagra uk
where to buy viagra in hyderabad
online viagra
viagra nhs price

donde puedo comprar viagra sin receta capital federal
cheap viagra
does walmart have generic viagra
where to buy viagra
how to buy viagra over the counter in canada

viagra online bestellen erfahrungen
generic viagra
can you buy viagra in america
online viagra
wie lange wirken 25mg viagra

viagra on the internet to order
generic viagra
can get viagra over counter canada
where to buy viagra
buy viagra next day

sildenafil de 30 mg
viagra for men
generic of viagra
viagra prices
where can i buy cialis or viagra on line

can you buy viagra us
viagra for sale uk only
generico viagra funciona mesmo
buy viagra
how much are viagra pills

generic viagra for real
viagra tablets
generico viagra nombre
viagra pill
mens place viagra sildenafil generico 50 mg 100

thuoc sildenafil 50mg
viagra online
buying viagra china
viagra pills
generic viagra benefits

50mg viagra vs 20mg cialis
buy generic viagra
viagra pillen teilen
viagra online
compare viagra prices at major pharmacies