8051 – Getting Started with Keil IDE and 8051

Keil is a German based software development company, and it provides several development tools like IDE, Project Manager, Simulator, Debugger, C Cross Compiler, Cross Compiler, Cross assembler, Locator/Linker.evaluation boards

               Keil will support various processors and control includes ARM Cortex-M, CI66, 8051, 251, Debug Adapters, Evaluation boards. The tools includes C/C++ compilers, integrated development environments, RTOS, middle ware as well as debug adapters and

Download Keil IDE Tool : Keil IDE  tool for 8051


 How to Create a Project in Keil?

 I chooses AT89S51 micro controller(You can select any other keil support micro controller) and demonstrated, this is very simple and follow this below steps,

Steps to follow

  • Open a Keil Tool

  • In Project select New uVision Project.

  • Select the directory, and enter File_Name in anywhere in your machine, then Save project

  • “Select Device for Target” AT89S51 form Popup window and click OK

  • If popup windows then “Copy STARTUP.A51 to Project Folder and Add File to Project”, then Yes.


  •  Done. You created the project ! 


 How to write a Program in keil ?

Steps to follow

  • Select Source Group 1, Right click and click Add New item to Group ‘Source Group 1’.

  • Select C File(.c), then enter Name “LED_Blink” and Click Add


  • write program in text editor and save


  •  Done! 

 How to Create a Hex file?


Steps to follow

  • Select Options for Target from the Project menu in Target

  • Select the Output tab, Make sure the Create HEX File check box is checked, click OK
Note : Select the proper HEX file format to create (typically this will be HEX-80 for 8051 programs and HEX-386 for large C16x programs).
  • open specified folder and click Objects (after build only you can get this object folder files)

  •  Done!

How to Build a Project in Keil?

Steps to follow

  • Select Build Target(F7) from Project menu.


Go to specified project saved Folder directory


Open specified folder and click Objects

  •  Done!

How Debug program

  1. Start the debugger.
  2. Click on Debug – Go to run the program.
  3. Make sure that View – Periodic Window Update is checked.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

if you have any queries call us +918300026060 or WhatsApp Dismiss


Your Cart

%d bloggers like this: