Shunlongwei Co Ltd.

Shunlongwei Co. ltd.

IGBT Module / LCD Display Distributor

Customer Service
+86-755-8273 2562

How to learn MCU from scratch?

Posted on: 11/12/2021
As an old programmer who has worked in the embedded field for many years, from the beginning of the development of the MCU products of the front and back system, to the later MCU+RTOS, and even the back SOC+LINUX, it can be said that it is also a step by step from Xiaobai. of. Here I will take the opportunity to answer the questions and review and summarize my own MCU learning process, hoping to be helpful to the majority of MCU enthusiasts and learners.
Generally speaking, the learning of MCU is mainly divided into the following four steps. Based on personal development experience, the following learning steps are summarized for your reference and learning.

How to learn MCU from scratch?

Personal summary, for reference only
First, master the basic background knowledge of single-chip microcomputers.
Only by knowing ourselves and the enemy can we win every battle. We need to have a preliminary understanding of the history and development of the MCU, and through the analysis of the current mainstream chips in the embedded MCU field, refer to the personal future development field, and choose an MCU chip suitable for our development and learning.
Generally speaking, for beginners, 51 single-chip microcomputer is simple in structure, and the development code is also C language, so it is more suitable for beginners to learn. At the same time, in recent years, due to the high cost performance of STM32 series MCUs, the market share has continued to increase, and the driver development library it provides has changed the direct operation of the registers by the previous single-chip microcomputers, making development more convenient. For those who dare to challenge, you can choose to start with the STM32 chip.
Second, the basic knowledge and basic coding skills preparation.
Among them, the learning of basic knowledge is mainly divided into:
1. Learning the principle of single-chip microcomputer: Mainly learn the basic principles of MCU hardware architecture, GPIO, clock, minimum system and other Modules.
2. Learning the basic coding language of single chip microcomputer: mainly learn the basic knowledge of C language, and master basic coding skills through theoretical study.
3. Construction of coding environment: Different MCUs generally have different IDE coding and compiling environments, and different IDE environments are built according to the MCU.
Third, strengthen memory through hands-on practice.
For the learning of any programming language, especially embedded languages, hands-on coding practice is very necessary and critical. Generally speaking, many beginners of single-chip microcomputers will prepare a corresponding development experiment board. Through repeated coding exercises on the examples provided, the C language skills are continuously polished, and the coding ability of the relevant functional modules of the single-chip microcomputer is improved. In summary: repeated practice exercises based on theory.
Fourth, deepen the skill stack and improve coding techniques.
Generally speaking, the sample programs provided by the embedded development learning board are very basic and single. On the basis of mastering a certain coding ability and MCU coding skills, many of you will deepen to a higher technical skill stack. There are mainly RTOS operating system and common hardware communication protocols, such as IIC, SPI, UART, etc. for learning and advancement. After completing the fourth step of learning, generally speaking, learners will reach a certain basis for MCU development. But if you need to continue to make breakthroughs in the field of MCU, you need to continue to exercise projects in the field of microcontroller development. Only by continuous coding and continuous participation in new projects can the technology of microcontrollers be improved.
The above are the introductory learning steps of MCU based on personal learning experience. I hope it can be helpful to MCU enthusiasts.