Playing for many years of MCU programming work, from 51 to AVR to STM8 and then to STM32, and finally to Android, this growth, along the way, hardships and excitement accompanied. I now share my experience and history with those of you who are like me on this platform. This homologous theme is the classic introduction to 51 MCU environment establishment and use.
Computer (laptop or desktop, XP or above)
Keil uVision3 Chinese cracked installation package (without this package or with Internet download conditions can also be used)
Download to the following cloud disk address:
Unzip after download
Go to the Keil.uVision3 folder and click [Keil.uVision3].c51v808a.exe to install
Check the I agree to all the terms of the preceding License Agreement option and click Next
Path default, click Next
In the First Name: enter your name (e.g. abc), in the E-mail: enter your email address (e.g. firstname.lastname@example.org) then click Next to start the installation.
Click the icon on the desktop as shown in the figure, if the desktop is not there, go to the C:\Keil\UV3 path to find uv3.exe and click open
Once opened, click File>License Management
Copy the string of numbers in the CID box (I'll need the decrypting key later)
Click on the Keil_lic-v3.2 registry.exe under the Keil.uVision3 folder before unzipped well
Click on 51 and select External CID
Click Generate, and once generated, copy the string of numbers in the LIC0= box (be sure to check all copies, you'll need them later).
Go back to Keil and paste the string of numbers copied in step 14 in the New License ID Code box
Click Add LIC to Generate the validity period. The validity period generated by the graph is 2023. The black font can be used, if the validity period is invalid, the font will be red. Repeat the above steps 14-15 (Click Generate will generate a different string of numbers each time, and then paste it to generate the validity period. After many attempts, it will be available) OK, close the dialog box, close Keil, since then the cracking work is completed, next we need to change its interface into Chinese characters (Chinese)
Copy all files in the c518.09 Perfect Chinese Fix patch 20090111 folder
Paste in the C:\Keil\UV3 path, prompting whether to cover, according to the red circle operation cover.
Back to the desktop, open Keil, the interface is already in Chinese, since the completion of the Chinese work, and then we use it to build the first project.
Right click on a folder called LED on the desktop
Click Engineering >uVision Engineering
Select the LED folder on your desktop, set the project name to test, and click Save
Select the 51 microcontroller model we want to use, I use STC89C52, here select Atmel's AT89C52, click OK
Click File, then click Save, name the file main.c(or main.asm if you are using assembly language), and click Save
Right click on Source Group 1> Add Files to Group "Source Group 1"
Click main.c, click Add, click Close
Double-click source group 1 and you can see that main.c has been added to the project
Write a piece of the simplest code, the code to light a LED light connected to the P0.0 port (STC89C52 pin 39 output low level), as shown in the figure
Click on the red circle position in the icon, the compilation report output shows "0 errors", which means that it is passed, and then we have to set up the hex file that can be burned into the MCU
Click the red circle in the icon, select the output column, check Generate HEX file, and click OK
Click compile again, the report output "Create HEX file", in the desktop LED folder can be found test.hex file, since the program compilation output work has been completed, if we change the HEX file into STC89C52, you can see 39 pin output low level, the low level can light an LED light
We then follow the next chat topic burning tool use (see the following experience quote: computer serial communication 51 MCU burning download and set), welcome to talk!
Just contact with the MCU, the computer is not too familiar with friends, must not rush, need to follow the above steps step by step, to be familiar with the road, everyone will walk freely
There are a few steps attached to a few pictures, it is step intensive must be careful, but do not dare to fall again, fall more easily hurt self-esteem