Embedded zero foundation second homework

Installation of mdk5 and installation of stm32 package

1. After finding the mdk5 resource, run the executable file directly to install the mdk5 main body.
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
2. Since only the keil5 body is installed, if you want to build the stm32 related program project and compile the program, you also need to install the stm32 series package
Insert picture description here

keil5 download and install the program compilation and simulation test

1. About the basic operation steps of writing stm32 C program in keil5,
first create the project Insert picture description here
and then select the components you need for simulation. (Note: If the stm32 package is not installed here, there is no chip to choose from)
Insert picture description here
and then create the file, write the C program,
Insert picture description here
and then save the file Save it as a .c suffix, and add the file to the project, and
Insert picture description here
Insert picture description here
finally compile and run
Insert picture description here

Carry out a 51 program design on keil5 and simulate on proteus

The topic is LED control based on 51 single-chip microcomputer
. Compile the 51C program on keil4.
Create the project first, select 51 single-chip microcomputer, and add the file to the project and run
Insert picture description here
it. Connect the simulation diagram on proteus and
Insert picture description here
find that the suffix will be generated after the C program runs. This file is used as a guide file for circuit operation.
Insert picture description here
Right-click the microcontroller, select edit, and select program file. Select the file
Insert picture description here
just generated
Insert picture description here
and run the circuit in protuse. The results are as followsInsert picture description here

Guess you like

Origin blog.csdn.net/rude_dragon/article/details/108961714