Keil_uvision_4 basic tutorial
Registration Method:
??? 1. Install Keil C51 v9.00, that is, uv4
??? 2. Open uvision4, click File --- license management..., open the License Management window, and copy the CID in the upper-right corner.
??? 3. Open the keil_lic.exe registrar and fill in the copied CID in the CID window. Other settings remain unchanged.
??? 4. Click Generate to generate a license number and copy the license number
??? 5. Copy the license number to the new license ID code in the lower part of the License Management window, and click Add LIC on the right.
??? 6. if the above product displays pk51 prof. developers kit is successfully registered, and support period is the validity period. Generally, it can be about 30 years. If the validity period is short, you can generate a license number multiple times to re-register.
??
I. First, we need to develop a habit: We 'd better first create an empty folder and put your project files in it to avoid mixing with other files, for example, I first created a folder named "mytest":
??
?
??
Moonlight ?? Source: original site (www.mcusy.cn)
2. Click Keil uvision4 on the desktop.Icon to display the startup screen:
??
?
??
??
3. Click "Project --- New uvision project" to create a project:
??
?
??
??
Moonlight ?? Source: original site (www.mcusy.cn)
??
4. In the dialog box, select and place the project in the "mytest" folder you just created. Name the project and save it. You do not need to fill in the suffix, note that the default project suffix is different from that of uvision3 and uvision2, Which is uvporj.:
??
?
Moonlight ?? Source: original site (www.mcusy.cn)
??
5. In the pop-up box, under the CPU type, find and select the type of "Atmel", such as the value of or 52.:
??
?
??
??
6. After the above project is created, create a source program text:
??
?
??
??
Moonlight ?? Source: original site (www.mcusy.cn)
7. Write or copy a complete C program in the following blank spaces:
??
?
??
??
8. enter the name of the source program file. In this example, enter "test. Note: If you want to use the Assembly Language, The suffix must be "test. ASM". If it is a C language, it is "test. c", and then save:
?
??
IX,Next, we need to add the source program file we just created to the project file. When you click the "add" button, it will be strange. How can the dialog box not disappear? Regardless of it, click "close" to close it. Now you can see that the font color of the program text has changed.:
??
?
??
Moonlight ?? Source: original site (www.mcusy.cn)
??
10. Finally, you need to set up the crystal oscillator according to the settings. It is recommended that the period be modified to 12 m for beginners, because the command time can be conveniently calculated at 12 MHz.:
??
?
??
??
??
11. Select create HEX file in the output column so that the compiler can output the Hex file required by the MCU.:
??
??
Moonlight ?? Source: original site (www.mcusy.cn)
??
??
??
??
13. The Project Creation and setup are complete! Click to maintain and compile ():
??
?
??
View the project folder content:
?
Moonlight ?? Source: original site (www.mcusy.cn)
???This article describes how to use Keil uvision, which is essential for basic SCM Knowledge and basic operations. Keil uvision has powerful functions, as well as simulation, debugging, and other functions. We will not explain them in detail here. It is recommended that you have a good understanding of this book and use it for development.
Keil_uvision_4 basic tutorial