1. Learning prerequisites
The microcontroller needs to interact with programs, which requires you to master very basic C language knowledge first. Even if we explain the execution process of the program as detailed as possible, it will be difficult for students who have no C language knowledge foundation.
So you must master the following basic knowledge
1. Data Type
2. Conversion between hexadecimal, decimal and binary
3. Program running order
4. if, else, while, for, switch and other statements
2. Hardware
If you have no relevant knowledge of analog and digital electronics, and do not know electronic components, these are not difficulties in learning MCU. We will briefly introduce the hardware basics in the tutorial. You can also refer to the first three chapters of Teacher Song's "Teaching You How to Learn 51 MCU". As long as you have a certain understanding of middle school physics circuits and basic circuit knowledge, you can understand them. We also encourage everyone to learn to find relevant information on the Internet to deepen their understanding of circuit knowledge and MCU.
3. Software
The programming environment software uses the blue icon keil4. We took a screenshot of the circuit schematic in Altium Designer software for analysis. The installation of keil4 software and the setting up of the environment are not covered in this tutorial. Please find the detailed configuration tutorials on your own.
4. Tutorial Arrangement Notes
Because the internal hardware knowledge of the microcontroller is relatively abstract to beginners and requires a lot of words to explain, we do not need to delve into the details when encountering new concepts, but just remember that there is such a rule for this thing. Our focus is on explaining how to program.
When the actual modules used later are connected to the microcontroller, we use the connections on the schematic diagram to represent them.
5. Advanced
Although the entry-level microcontroller starts with the 51 microcontroller, the preferred controller that is now popular all over the country is the stm32. In practice, most projects using microcontrollers may also use stm32, but the programming ideas of 51 are indelible on stm32.
STM32 has become the mainstream single-chip microcomputer, because its performance, peripheral resources and price are far more cost-effective than 51 single-chip microcomputer. Most of the product project design and electronic competitions also use STM32 single-chip microcomputer for control. However, learning and using STM32 requires a lot of basics, 80% of which comes from 51. So we take it step by step, learn 51 single-chip microcomputer and then advance to STM32. The foundation laid in this process will be of great help to our later learning of new advanced controllers.
Previous article:51 MCU-Development Board Selection
Next article:51 MCU - Initial Understanding of Schematic Diagram
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Intelligently Connected World—Application of Internet of Vehicles and Future Development of Digitalization
- Motor drive circuit design 1
- Free Review - Topmicro Intelligent Display Module (5) Touch Screen
- How to deal with the acidic wastewater from acid salt spray testing of metal electronic products and devices?
- Summary: annysky2012's practical journey of motor development based on "STM32F746ZG+IHM07M1"
- Smart home management based on ESP8266 WIFI network control and Gizwits Cloud
- Engineer, if you don't develop from the perspective of engineering or product, how can you be worthy of the word "engineering"...
- Understand the past and present of NFC in one article!
- When power saving is required, how should the LCD screen's SEG pin, COM pin, VLVD1-3, and VLCDH related configurations be configured?
- [New version of Bluesun AB32VG1 RISC-V development board] - 1: From "New" to "0 errors, 0 warnings."