Difference between revisions of "8051 Keil Setup"
Line 1: | Line 1: | ||
[[Category:Starter 8051]] | [[Category:Starter 8051]] | ||
+ | In this tutorial we see how to setup Keil4 for generating .hex file. | ||
+ | Keil software can be downloaded from this [https://www.keil.com/download/product/ link].<br> | ||
+ | Download and install the Keil C51 for 8051.<br> | ||
+ | [[FILE:01Kiel.PNG]]<br> | ||
− | + | ||
− | <br> | + | =Keil Setup Steps= |
+ | <b>Step1:</b> Open the Keil software and select the New Microvision project from Project Menu as shown below.<br> | ||
[[FILE:8051_Keil_01.png]]<br> | [[FILE:8051_Keil_01.png]]<br> | ||
− | + | <b>Step2:</b> Browse to your project folder and provide the project name and save it.<br> | |
− | <br> | + | |
[[FILE:8051_Keil_02.png]]<br> | [[FILE:8051_Keil_02.png]]<br> | ||
− | # | + | <b>Step3:</b> Once the project is saved a new pop up “Select Device for Target” opens, Select the required 8051 series controller and click on OK.<br> |
− | <br> | + | #Atmel->AT89s52<br> |
+ | #NXP->P89V51RD2<br> | ||
+ | #Nuvoton-> W78E052D<br> | ||
[[FILE:8051_Keil_03.png]]<br> | [[FILE:8051_Keil_03.png]]<br> | ||
− | + | <b>Step4:</b>Select Atmel->At89s52 and click OK.<br> | |
− | <br> | + | |
[[FILE:8051_Keil_04.png]]<br> | [[FILE:8051_Keil_04.png]]<br> | ||
− | + | ||
− | <br> | + | <b>Step5:</b>8051 doesn't need the startup code, click on <b>NO</b> option to proceed.<br> |
[[FILE:8051_Keil_05.png]]<br> | [[FILE:8051_Keil_05.png]]<br> | ||
− | + | ||
− | <br> | + | <b>Step6:</b> Create a new file to write the program.<br> |
[[FILE:8051_Keil_06.png]]<br> | [[FILE:8051_Keil_06.png]]<br> | ||
− | + | ||
+ | <b>Step7:</b> Type the code or Copy paste the below code snippet and save the file as main.c<br> | ||
+ | [[FILE:8051_Keil_07.png]] | ||
+ | <html> | ||
+ | <script src="https://gist.github.com/SaheblalBagwan/cb2cf78aadc724737d79.js"></script> | ||
+ | </html> | ||
<br> | <br> | ||
− | + | ||
# | # | ||
<br> | <br> | ||
− | [[FILE: | + | [[FILE:8051_Keil_08.png]]<br> |
# | # |
Revision as of 16:18, 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.
Keil Setup Steps
Step1: Open the Keil software and select the New Microvision project from Project Menu as shown below.
Step2: Browse to your project folder and provide the project name and save it.
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.
- Atmel->AT89s52
- NXP->P89V51RD2
- Nuvoton-> W78E052D
Step4:Select Atmel->At89s52 and click OK.
Step5:8051 doesn't need the startup code, click on NO option to proceed.
Step6: Create a new file to write the program.
Step7: Type the code or Copy paste the below code snippet and save the file as main.c