keil5 operation tutorial for using C51

Time: 2019-10-28Source: Huajun Software TutorialAuthor: Xiaoxin

Recently, many netizens have inquired about the operation of keil5 using C51. In order to help everyone solve their problems, the editor here has specially shared the operation tutorial about keil5 using C51. Friends in need should not miss it.

First open the Keil5 software and enter the interface.

s.jpg

Create a project, click Project, select the first one, create a new project, give a name, click OK, and the interface as shown will appear.

S.png

Select Atmel, find AT89C51 and select it, another interface will appear, then select "No".

s1.jpg
s1.png

At this time, the project bar appears on the left side of the window. If it does not appear, click "View" in the toolbar and select the third "Project Window" to appear. At this time, the project has been created.

ss.jpg
ss.png

Create a project in the project. The operation is as shown in the figure. Add a name to the project. Note that if the project is written in C language, the project name will be appended with ".C". If it is a project written in C++, then ".Cpp" will be appended to the name. .

A.jpg
aa.jpg

Then you can write the program in the window. After writing, click the "build" and "rebuild" buttons in the upper left corner of the window to compile. Observe the "project output" below. If there are no errors, the compilation is completed.

s.jpg
S.png
s1.jpg

If you want to burn the program, you also need to produce a HEX file. The specific operation is to click the "option for target" button, enter the interface, select "Output", and select "Creat HEX file".

s1.png
ss.jpg

Friends who still don’t know how to use C51 by keil5, don’t miss this article brought by the editor.

Related articles更多>>

Popular recommendations