Keil4 microcontroller 51 using a new project, the first LED lights up.

Tools: windows 10, keil 4, proteus7.8

Here we are using a software localization

After opening keil is blank interface, it is necessary to build the project, first click on the menu button inside the project, pop-up dialog box.

 

 

 

 

 

 

 Create a new name for the example project that is saved on the desktop firstproject folder.

 

 

 

 After you save the pop-up box, select the desired item microcontroller chips. Choose one of the "Atmel", click on "Atmel" in English in front of the "+" symbol, select "AT89C52", click "OK" Click "Yes."

 

 

 

 

 

 New file, click on the top left of the "File" and select "New" to create a new file. Then click on the "File" menu, select "Save" dialog box, select the location to save the new file named "example_led.c". File name does not matter, but there must be ".c" suffix.

 

 

 

 

 

 

 

 

Add File (new example_led.c files) to the project, click the "progenitor 1" folder, right-click and select "Add files to source group 1 ..." dialog box, select New to add a example_led.c file, click "Add" to finish adding click "Close" to close the window. As shown below:

 

 

 

 

 

 

 

 

Programs written in English

 

 

 

 

 The red block check the

 

 

Check the input program correctness, then click the top left of the three buttons, the following figure appears to prove there is no problem

 

 

 

 

 

 

Next simulation, find the "Embedded C Programming Language" circuit diagram of the total open circuit simulation, written before clicking microcontroller selection procedures, start simulation

 

 

Analog success

 

Guess you like

Origin www.cnblogs.com/lixuandun/p/11546243.html