How to learn MCU? What are the steps to learn MCU? MCU enthusiasts often ask us. We have roughly summarized that the process of learning MCU can basically be divided into four stages:
The first stage: First, browse the hardware part in the textbook to roughly understand the hardware structure of the microcontroller, such as ROM, RAM, address, I/O port, etc., and read some manufacturers' MCU data sheets to strengthen the impression of the various resources provided by the MCU.
The second stage: is to understand the binary numbers, hexadecimal numbers and software. Although there are many high-level languages that can be used for single-chip microcomputer programming, I think it is better to start with assembly language, which is more conducive to combining with hardware and mastering the hardware structure. After knowing the concepts of assembly language, machine language, instructions, and programs, start with the MOV instruction to learn assembly language and programming. For example, the MCU assembly language system of 51 has 11 instructions, which are simple and easy to understand how they are connected with hardware, and are more helpful for general learning of single-chip microcomputer instruction integration and application. Therefore, the method is to first understand a few basic MOV instructions and its machine language, roughly establish the hardware and software concepts of single-chip microcomputers, and know that the hardware of single-chip microcomputers is controlled and directed by instructions.
The third stage is to familiarize yourself with the programming environment according to its manual. Nowadays, programming environments are generally connected to computers, and anyone with basic computer knowledge can quickly master the operation steps.
The fourth stage is to learn and master the assembly language instruction system and simple programming of the microcontroller by relying on the experimental board. At the same time, it is combined with the hardware knowledge learned before, which plays a dual role of learning the software and consolidating the hardware.
At the beginning, you can use simple programs written by others to verify and analyze on the experimental board, mainly to familiarize yourself with the learning method. In terms of application, it mainly focuses on the use of various microcontroller I/O interfaces, such as A/D, D/A, PWM output applications, LCD and VFD control, and how to standardize the communication protocols of various serial output inputs, etc. The driving capabilities of the components it controls must be analyzed first, such as current and voltage issues.
After becoming familiar with assembly language, it is recommended to learn C language programming as soon as possible. After all, C language has rich library functions, fast computing speed, high compilation efficiency, good portability, and can directly control system hardware. C language is a structured programming language that supports the top-down structured programming technology widely used in current programming. In addition, C language programs have a complete module program structure, which provides a strong guarantee for the use of modular programming methods in software development. Therefore, using C language for programming has become a mainstream in software development. Using C language to write target system software will greatly shorten the development cycle, significantly increase the readability of the software, and facilitate improvement and expansion, thereby developing a larger system with more complete performance.
Previous article:Design of Dual-Integral A/D Conversion Based on Single Chip Microcomputer
Next article:Design of Simulating Fully Automatic Washing Machine Based on Single Chip Microcomputer
- 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
- How to use CPLD to collect asynchronous signals
- Share: Where should the inductor be placed on the power supply PCB?
- [Open Source] GPIO Experiment Tutorial - Crazy Shell ARM Dual Processor Development Board Series
- 2 mistakes in the RSL10 official getting started guide
- ADC10 multi-channel input of msp430g2553
- 【TI Recommended Course】#Texas Instruments Field Transmitter Output Interface/Fieldbus Solution#
- 【CH579M-R1】+Love for CH579M
- Module Design and FPGA Verification of 64-bit MIPS Microprocessor
- MSP430 MCU Example 10-8-bit Digital Tube Display Clock
- Getting Started with the ST SensorTile.box Sensor Kit (4) Programming Mode Experience