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.


best payday loans online no credit check

online payday loans

payday loans online

payday loans

Canadian Online Pharmacy
Legitimate Canadian Mail Order Pharmacies
Canadian Online Pharmacy
CVS Pharmacy

viagra kosztuje

viagra generic

order viagra

viagra del canada

how can you buy cialis

buy cialis online

buy cialis

usefull link getting cialis

best place buy real viagra online
viagra buy dublin
viagra india buy
viagra price
viagra private prescription price

generic viagra shipped from us
viagra sale high street
buy viagra zurich
viagra sale in australia
comprar viagra online buenos aires

cheap viagra cialis online
viagra without a doctor prescription
price comparison cialis viagra
where to buy viagra
viagra andorra online

viagra blue pill men
viagra online
viagra cialis levitra buy online
viagra australia
how to buy viagra online in canada

do you get addicted to viagra
cheap viagra
viagra 100mg 4 st
viagra from canada
generic viagra now available

where to buy safe generic viagra
viagra coupons
buy viagra weekender
viagra coupons
viagra black market price

generics for viagra
viagra without a doctor prescription
viagra pille xxl
[url=http://fastshipptoday.com/#]online viagra[/url]
buy viagra american express

buy cheap viagra in australia
generic viagra
can u buy viagra from boots
buy viagra online
cheap generic viagra fast delivery

legale comprare viagra online
viagra coupons 75 off
buying viagra chemist uk
viagra australia
viagra 100mg pfizer rezeptfrei

kaufen viagra online
viagra prices
can i take half a pill of viagra
buy viagra
prix du viagra 100mg en pharmacie

has viagra gone generic
where to buy viagra
viagra generico venda brasil
generic for viagra
where can i get viagra or cialis

homemade viagra shake with no pills
viagra pill
quanto custa uma caixa de viagra generico
cost of viagra
why is viagra not generic

buy viagra online 25 mg
viagra prices
generic viagra cheap online
where to buy viagra
puedo comprar viagra sin receta en farmacias

how many mg of viagra do you need
viagra price
how to get rid of an erection after taking viagra
viagra on line
buy viagra professional online no prescription

generic viagra that works
viagra generic
is there a generic for viagra in mexico
viagra from canada
viagra online kaufen erfahrung

pfizer viagra 50mg online
buy viagra
online shopping of viagra
viagra for sale uk
viagra online is it legit

sildenafil de 50 mg para que sirve
where to buy viagra
viagra 40 mg
viagra tablets
what happens when a woman takes a viagra pill

generic viagra pharmacies
where to buy viagra
cialis levitra viagra price comparison
viagra generic
buy real viagra in australia

viagra generico sicuro
buy viagra
do people take viagra to get high
buy viagra
buy viagra soft

viagra safe to order online
generic viagra
non prescription viagra online
viagra generic
can you buy viagra out prescription

get viagra dubai
viagra online
buy viagra over the counter in canada
buy generic viagra
psych viagra falls episode online

is it legal to order viagra from canadian
buy viagra
can i get viagra from gp
generic viagra
take viagra 50mg correctly

where can i buy viagra yahoo answers
viagra pill
viagra ice cream go sale selfridges
viagra coupons
buy viagra tablets uk

viagra online in sydney
viagra cost
find viagra online
generic viagra
can you buy viagra over the counter in london

how do i get viagra from my doctor uk
viagra on line
can you buy viagra over the counter uk
viagra cost
can you buy viagra over the counter in turkey

viagra online overnight
buy viagra
viagra sale northern ireland
buy viagra online
viagra prescription online canada

what happens if u take half of a viagra pill
viagra tablets
online viagra now
buy viagra
buy liquid viagra for women

can i buy viagra in india
viagra sans ordonnance
viagra pills for cheap
viagra without a doctor prescription
is it safe to take 100mg viagra

cialis viagra best price
viagra tablets
compare viagra prices major pharmacies
viagra coupons 75 off
buying viagra online uk only

viagra ftbl 50mg
viagra coupons 75 off
can break viagra pill half
viagra price
buy cheapest generic viagra online

how to get viagra at boots
where to buy viagra
buy viagra canada mastercard
generic viagra
para que sirve la pastilla sildenafil 100mg

homemade viagra shake with no pills
generic for viagra
viagra 100mg forum
viagra cost
is 100mg of viagra safe

price viagra in australia
buy viagra
buy real viagra bangkok
generic for viagra
chemist warehouse viagra 100mg

sildenafil citrate 100mg in uk
viagra online
buy generic viagra fast shipping
viagra uk
viagra pill splitting tips

how easy is it to buy viagra in thailand
viagra pills
buy authentic viagra
viagra coupons 75 off
difference between generic and brand name viagra

viagra 50 mg information
viagra prices
where can i buy viagra in cardiff
viagra for men
cuantos mg viagra puedo tomar

do you need to be 18 to buy viagra
viagra uk
beli viagra online
viagra sans ordonnance
take cialis viagra together

online viagra perth
generic for viagra
buy viagra in uk online
viagra on line
where can i buy legit viagra online

cost viagra online
generic viagra
buy viagra johannesburg
online viagra
where can i buy viagra in ireland

energetico com viagra
buy viagra
generic viagra cheap
viagra coupons 75 off
buy viagra sildenafil

cheap viagra soft tabs
viagra for men
viagra 100 for sale
[url=http://fastshipptoday.com/#]viagra pill[/url]
when generic viagra in usa

buy viagra highstreet
viagra online
viagra sales pfizer
viagra generic
trusted online viagra

viagra price rise
online viagra
how much does 50mg of viagra cost
viagra pills
buy viagra through paypal