Line 1: Line 1:
 
[[Category:Starter 8051]]
 
[[Category:Starter 8051]]
In this tutorial we see how to setup Keil4 for generating .hex file.
+
In this tutorial we see how to setup Keil4 for generating .hex file.<br>
 
Keil software can be downloaded from this [https://www.keil.com/download/product/ link].<br>
 
Keil software can be downloaded from this [https://www.keil.com/download/product/ link].<br>
 
Download and install the Keil C51 for 8051.<br>
 
Download and install the Keil C51 for 8051.<br>
Line 39: Line 39:
  
  
#
+
<b>Step8:</b>Save the file as main.c<br>
<br>
+
 
[[FILE:8051_Keil_08.png]]<br>
 
[[FILE:8051_Keil_08.png]]<br>
  
#
+
# Now we need to add the files to the project.<br>
<br>
+
Click on
 
[[FILE:8051_Keil_09.png]]<br>
 
[[FILE:8051_Keil_09.png]]<br>
  

Revision as of 16:38, 17 May 2016

In this tutorial we see how to setup Keil4 for generating .hex file.
Keil software can be downloaded from this link.
Download and install the Keil C51 for 8051.
01Kiel.PNG


Keil Setup Steps

Step1: Open the Keil software and select the New Microvision project from Project Menu as shown below.
8051 Keil 01.png

Step2: Browse to your project folder and provide the project name and save it.
8051 Keil 02.png

Step3: Once the project is saved a new pop up “Select Device for Target” opens, Select the required 8051 series controller and click on OK.

  1. Atmel->AT89s52
  2. NXP->P89V51RD2
  3. Nuvoton-> W78E052D

8051 Keil 03.png

Step4:Select Atmel->At89s52 and click OK.
8051 Keil 04.png


Step5:8051 doesn't need the startup code, click on NO option to proceed.
8051 Keil 05.png


Step6: Create a new file to write the program.
8051 Keil 06.png


Step7: Type the code or Copy paste the below code snippet and save the file as main.c
8051 Keil 07.png


Step8:Save the file as main.c
8051 Keil 08.png

  1. Now we need to add the files to the project.

Click on 8051 Keil 09.png


8051 Keil 10.png


8051 Keil 11.png


8051 Keil 12.png


8051 Keil 13.png


8051 Keil 14.png


8051 Keil 15.png


8051 Keil 16.png