Keil 4 Tutorial
1. The first step is to create a project. It is best to create a new folder and put the new project in the folder. After clicking in, the first thing to do is to create a new uVision project.
2. The second step is to select the Atmel AT89C51 chip and then confirm. The reason for selecting this is to ensure that the program we write later includes the C51 header file, so that we can burn the program into the C51 later.
3. Then, create a new file in the upper left corner. Here's an example program. Make sure to save it, and make sure to choose the .C format (11.C in the image). Also, save it in the folder where you just created the project; otherwise, it will use the default format and won't be able to generate a hex file. After saving, you can compile it. Click the target + on the left, then find resources, right-click and add resources to the group "Resource Group 1". Then find the C language program you just saved, add it, add it once, and then close.
4. Then click the icon to the right of Target 1, then select the third title output item, check the box next to Generate Hex File, and then click OK to generate the Hex file, which can then be copied into the Proteus simulation software for use.
Keiluvision5 User Guide
Keil uVision 5 is a powerful C language software development system with unique advantages in structure, functionality, readability, and maintainability. If you are a C language developer, this software is definitely your best choice. It can improve your programming efficiency, make your code more compact, and easier for other users to read. Its unique high-level language advantages can also help users program when developing large software. Today, we'll introduce its usage tutorial.
1. File Options
1. New: This option allows you to create a new project within the software; it's where all files begin. You can also use the keyboard shortcut Ctrl+N instead.
2. Open/Close: This option allows you to open existing file projects or close existing projects.
3. Save/Save As/Save All: These three options are all methods for saving items. Using Save will automatically save the current file; Save As allows you to choose the name, format, and save location; Save All allows you to save all files at once.
4. Device Database: In this option, we can set the database when compiling C language.
5. Print Settings/Print/Preview: The above three options are relatively easy to understand. After connecting the printing device, we can use the above options to print.
6. Recent Processes: This option allows you to quickly open recently opened files in the software.
7. Exit: We can use this option to exit the application.
II: Editor Selection
1. Undo: This option allows you to cancel the steps you've taken. You can undo one step each time you use it.
2. Redo: We should use this function with caution, as all projects will be automatically deleted after use.
3. Copy/Paste/Cut: These are three commonly used functions that can greatly reduce our workload.
4. Indenting Selected Text / Restoring Indentation of Selected Text: After selecting a line of code, you can use the above functions to control the formatting to be consistent, or restore the controlled formatting.
5. Bookmark function: Bookmarks are similar to the notes function we use. With this function, you can quickly know the function of a certain piece of code.
6. Search: Use this option to quickly search for files.
7. Replace: The replace function is rarely used, and it is difficult to restore normal operation after replacement.
8. Batch file search/incremental search: Both of these options are upgraded versions of the search function, allowing you to refine the files you search for according to your needs.
9. Configuration: The configuration function allows you to configure the software's information.
Three: View Options
As the name suggests, the view window is a better and simpler way for us to see the code we are editing.
1. Status Bar: This bar shows the status of our code, that is, whether the code is being created or debugged.
2. Project Window: Here you can see all our project information.
3. Using the logic analyzer option allows us to test the code we've written, which is essentially the software's debugging function.
The most frequently used toolbar in the entire window is the debug toolbar, which users often use to view the progress of the entire project. Sometimes, it is also used to debug errors when they occur in the project.
IV: Process Options
1. Import Project: This option allows you to freely import external projects.
2. Open/Close Project: As the name suggests, this is a button for opening and closing the project.
3. Management: This option allows you to manage all items open in the current window.
5: Debugging Options
This is a very important part of the entire software.
1. The startup and debugging functions can be used to debug the entire program project.
2. Below this project, there are options such as run and trace. When performing debugging, you can choose the debugging method according to your needs.
3. You can also set debugging information in the debugging settings.
4. You can see the previous debugging records by using the trace log.
5. Using an online assembler will allow the system to compile your program online.
Six: Flash Memory Option
This option is used less frequently, as it's only needed when users need to download and erase data. Flash memory configuration can also be done in this option.
7: Tool Options
1. This option allows you to configure PC-lint and perform checks on your code projects.
2. Customizing the toolbar menu is also done under this option. As shown in the image below, clicking it will bring up the corresponding settings interface, where you can configure it according to your needs.
8: SVCS Options
This project allows you to configure the software version, as shown in the image below. You can configure the software according to your desired system settings.
Nine: Help Options
This section should be clear to everyone, right? Using this option, you can get technical support and provide feedback on the software. Software updates are also handled through this option.