1. Double-click the icon to open the Keil software
2. Click [Project]->[New Project] on the menu bar
3. Save the new project to a folder
4. Choose a CPU chip, here STC89C52RC corresponds to Philips' P89V51RD2
5. Prompt whether to copy the startup code of 8051 to the folder. Select "No" here.
6. After completion, you can see Source Group1 in Project Workspace
7. Create a new code file
8. Save with “*.c” as the suffix name
9. Add the file led .c you just saved to the project.
10. Select the source code file and add
11. You can see that led.c is already in Source Group1
12.Add the code as follows
13. Click "Op" on the toolbarTI ons for target" tool, select the Output tab, and check "Create HEX File"
14. Press F7 to compile and generate a hexadecimal HEX file
15. Open the STC_ISP_V480 download tool
16.Select MCU Type as STC89C52RC
17. Open the program file and select the led.hex file you just compiled.
18. Open the computer device manager to see which port the serial port of the 51 development board is. This is the COM4 port.
19.Select COM4
20. Click the " Download " button and wait for the download to complete before powering on!
21. The operation effect is as shown in the figure below, the first LED light is on
Previous article:Lesson 17 C51 Use of Structures, Unions and Enumerations
Next article:How to use 51 microcontroller to implement traffic lights
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- [2022 Digi-Key Innovation Design Competition] ESP32S2 button control RGB light
- New wearable technology developed, more skin-friendly and stronger
- A collection of autonomous driving technical materials, download now without any points!
- Switch OUT?! Nintendo's latest recruitment may be aimed at the next generation console
- 【ST NUCLEO-H743ZI Review】+ 3. Key input
- Today's Live Broadcast | Outlook for DLP Technology in AR HUD and In-Vehicle Display Applications
- Award-winning live broadcast: Focus on "TI FPD-Link III automotive chipset" Ideal solution for automotive video transmission
- Playing with Zynq Serial 1——Zynq Linux boot process
- 【AT-START-F425 Review】Overclocking Performance of AT32F425
- I can't access GitHub anymore, what should I do? I can't access it at all