A single-chip microcomputer is a type of microcomputer. Currently, there are 8051, AVR, ARM7, ARM9 and other series. Among them, "8051" is derived from Intel's MCS-51 series chips, but different manufacturers currently focus on compatible chips, such as Ateml's 89C51/89S51 system and Macrocrystalline's STC89C52RC. This article describes Macrocrystalline's STC89C52RC. This chip is easy to burn. You only need to use Macrocrystalline's tools to burn the program to the chip through the TX and RX pins of the serial port MAXRS232. It is a very good embedded entry foundation. There are many tutorials and 51 series learning boards generally use STC89C52RC chips, which shows that it is very versatile. So how can we quickly learn 8051 single-chip microcomputers?
Learning the 51 series CPU requires memorizing the pin functions. When I was learning, I benefited from the simple memorization method. I mastered the functions and positions of the pins very quickly. I could easily remember the pins of P0, P1, P2, and P3 without rote memorization. Please see the figure below:
After learning the pin functions, if you want to start the circuit of the microcontroller, you also need to understand the peripheral connections, so as to lay the foundation for making your own microcontroller control circuit in the future. This is what you must remember when learning the 8051 system microcontroller. The following is the minimum circuit diagram of the 51 microcontroller. As long as you connect according to the following aspects, you can simply power on and drive the operation of the microcontroller. The application of functional pins is added on the basis of the minimum system.
To learn MCU, you can't do without a paper tutorial. You can go to the local bookstore to pick one or go to Joyo.com or Dangdang.com to buy one if it's cheap. A tutorial can better guide you on how to systematically learn MCU, especially the C language version. The "Example of 51 MCU (C Language Version)" published by Posts and Telecommunications Press is a good one. It has both the theoretical foundation of MCU and the learning of C language. I have been exposed to C language for a long time. I used C++Builder for Windows development before. Through the tutorial, I found that the difference between Windows C language and MCU C language is the definition of pins, which is unique to MCU C.
Tutorials are available, but how can you know how well you have learned without practice? Learning is one thing, and practical application is another. Programming 51 systems now all use Keil v3. It is best to apply the "bug to filter 0xfd characters" patch. I have experienced wasting time because of this character and the display result is incorrect. Applying the patch can reduce the strange phenomena we encounter in program debugging.
Programming with Keil software can only detect the correctness of C language programming syntax, but cannot verify whether the real function is realized. Now you can use the microcontroller software simulation Proteus (tutorial) to simulate and debug the circuit board and program functions. However, although simulation is a good method, it is not as good as using a single-chip experimental board. Through the program written by Keil, the program is written to the microcontroller through RS232 for substantial operation, so as to better understand the performance of the microcontroller and the matching use of hardware parts. Don't buy the smallest system. This is only for people who have mastered the control of the microcontroller. They have their own peripheral circuit boards. They only need to connect the corresponding microcontroller pins to drive the circuit according to their actual situation. It is not suitable for beginners. The entry-level microcontroller experimental board is better to have more complete functions. The more you learn, the more familiar you are with the application of the microcontroller. The following is a single-chip board learning board on Taobao, the price is less than 200 yuan, and there are video tutorials, which are more suitable for beginners. Interested netizens can refer to it. Choosing a good learning board, tutoring, and communication are ways to quickly learn microcontrollers.
Teach you to learn MCU step by step》Video tutorial 51 MCU development board learning board
The most valuable thing in learning a skill is perseverance. Only by continuous learning and summarizing can you improve. Learning the 51 series of microcontrollers is a stepping stone to enter the embedded field. If you are in the electronics field, you can also consider starting with the simple 51 and moving towards more advanced applications.
Previous article:A method for removing key jitter using software
Next article:Transformer temperature intelligent monitoring instrument
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- TMS320F28335 project development record 9_28335 interrupt system
- Dealing with Rejection Issues: PSRR vs. CMRR of Instrumentation Amplifiers
- Common protection circuits for switching power supplies - overheating, overcurrent, overvoltage and soft start protection circuits
- [Lazy self-care fish tank control system] BLE_MESH network test, multiple elements are not allowed
- Detailed explanation of MSP430 crystal oscillator configuration
- C8051F340 program runaway problem
- Knowledge points on the classification of commonly used components in RF microwave circuits
- Tektronix TBS2000B Oscilloscope
- Safety issues regarding multi-port USB chargers on the market
- Remote upgrade of HuaDa MCU HC32L110