Logos and brand names used in this site are belonging to their respected owners. We have used them here only for the purpose of information. Enable Active X control from internet options of internet explorer to view all element of this site.

This article will demonstrate use of KEIL IDE. In previous article we have seen installation procedure of KEIL IDE. In this article we will show creation of project in KEIL and will build it and generate HEX file. That hex file can be downloaded into target processor by either programmer or if your processor support ISP then we can download code via serial port. Let discuss this in last section of this article.

Creating ProjectOpen keil IDE either from short cut icon present on desktop or link from start menu. Once it open you can see following window.

If you see any open project in Keil ide, that should be closed. For that Click Project Tab >> Close Project (which ever is open previously, In this case Hello Project default by Keil).

Now let us create a new project for that Click on Project >> New uVision Project

Pic of keil opening project

In Create New Project window, You will see the path of Default Project.Now Let us choose folder where you want to put your project. Suppose our location is C:\KEIL TEST, So, browse for this folder.
If directory is not created you can also create Folder KEIL TEST. Here you can Make Project named as Myproject. Extension of project file in keil is .uv2.

Pic of keil project file name

After that you can select CPU or Microcontroller from family.

pic of CPU as target

Now select ATMEL family.Choose 8051 Based Architecture AT89C51.

Pic of target selection in keil

After that following windows will appear.

Now we have to make a c file for our project, For that Click on File >> New, Now Text1 windows will appear For ‘Embedded C’ Programming
Write C code here. Let write P1_0 is equal 0. This will clear Port 1’s first line. If there is a LED connected to P1.0 in such a way that cathode of LED is connected to P1.0 and Anode is connected to +5V with a 220 Ohm register. Then this LED will glow.