Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to use negation in c language of single chip microcomputer.
How to use negation in c language of single chip microcomputer.
1, first open the keil software on the desktop, and then program the 5 1 single chip microcomputer.

2. Write the corresponding code: # include

3. Compile after writing to ensure that the program has no errors. At the same time, generate hexadecimal file and save it. ?

4. After finding the corresponding folder, look for the hexadecimal file. This is a program that software can recognize.

5. After finding the program, connect the single chip microcomputer to the computer, click the program download, and burn the program to the single chip microcomputer.

6. After downloading the program to the single chip microcomputer, you can see that eight LEDs light up the first three.