If you are looking for software to use, go to Huajun Software Park! software release

How to write source code using Keil5-Keil5 usage tutorial-

Author: Huluwa Date: 2020-10-29

Keil5
Keil5-v5.35 latest version

programming tools Storage: 1018.21MB Time: 2021-08-25

Software introduction: Keil5 is a very friendly and powerful C language software development system. Keil5 software provides users with a clear and intuitive operation interface, which is relatively...

Download now

How to use Keil5 to write source code? There may be many friends who don’t know how to do it yet, so those who don’t know how to do it should come and learn how to use Keil5 to write source code with the editor. I hope that through the study of this tutorial, it can help Everyone.

1. First, open Keil5, create a new project, and click the first new project option of Proctect.

How to write source code using Keil uVision software

2. Then select the microcontroller chip you need to download, usually AT89C51.

How to write source code using Keil uVision software

3. Create a new text and save the text. The code is written in assembly language and saved as an .asm file. If the code is written in C language, it is saved as a .c file.

How to write source code using Keil uVision software

4. Save the saved text into Source Group1. Right-click Source Group1, select Add Exitting, find the file you just saved and add it.

How to write source code using Keil uVision software

5. After completing the above steps, you can write code in the text.

How to write source code using Keil uVision software

6. After writing and compiling, if there is no ERROR, it means there is no syntax error. If there is an error, find the error and observe it.

How to write source code using Keil uVision software

Note: Make sure that the first 4 steps are correct before the code written later can be compiled successfully.

The above is the method of writing source code using Keil5 brought by the editor. I believe it can help everyone.

Related articles