What should you learn before learning microcontroller? Mentioning this reminds me of the history of blood and tears when I started studying microcontrollers.
In 2008, I joined the school's electronics laboratory to prepare for the 2008 National Electronics Competition.
The electronics competition in 2008 is divided into three categories: hardware design, microcontroller software, and product debugging .
The current competition should be changed.
I chose the software category. The reason I chose this is that I think it is more mysterious. It is this mystery that makes me more interested in software.
I really didn’t know anything about it at the beginning. I bought a C language book , studied it alone for 2 months , took 3 notebooks , and then studied digital circuits for another month . By this time, I was almost exhausted. , 3 months have passed and I still don’t understand anything!
At this time, I was ready to give up. Finally, I thought: I have to finish the road I chose on my knees.
It just so happened that I had a lot of free time every day, so I took the attitude of learning while playing. You may not believe it, but I unknowingly learned the IO port, timer, interrupt, and serial communication of the microcontroller.
At that moment, I was thinking that microcontroller development is not so mysterious! Ha ha!
Looking back on my own learning process, it is still very unforgettable. I believe that many of my friends may still be like me, persisting for a while, making no progress, and always being confused in the early stages of entry.
In fact, the microcontroller is just a tool. Before learning this tool, you still need other knowledge as a foundation.
For example, basic digital circuit foundation and simple C language programming foundation .
1. What to learn about circuit basics and C language basics
1. What do you need to learn about the basics of digital circuits?
Mastering the basic usage of resistors, capacitors, and transistors, and mastering the concepts of high and low levels of microcontrollers is basically the same.
The best learning channel is the schematic diagram of the development board. If you understand the schematic diagram of the development board, you can basically do some projects.
2. C language programming basics
To learn the basics of C language, you must master some basic syntax and the definition of variables.
For specific learning paths, you can go to Xiaopo Station to find Wuji Microcontroller Programming, which is more systematic and comprehensive, and is also focused on microcontrollers.
After learning the knowledge of microcontrollers, circuit basics, and C language, you can start working on some projects. Start with small projects in the early stage, such as electronic clocks.
2. What is the relationship between C language and microcontroller?
Through the previous explanation, I believe everyone already has a little idea.
Next, I will give you an in-depth explanation of the relationship between C language and microcontroller.
The microcontroller supports C language and assembly to write programs.
1. Written in C language
The program written in C language ultimately needs to be compiled into a .hex file that can be recognized by the microcontroller through the keil tool:
C program source code->C compiler->Assembly code->Assembly compiler->Machine code (.HEX or .BIN)
2. Written through assembly
In the early days, the programs of microcontrollers were all assembly codes. The assembly code is closest to the low-level language at the bottom of the hardware and runs more efficiently.
However, assembly language has many obvious shortcomings: it is inconvenient to read, has poor portability, and is difficult to develop, etc. With the continuous advancement of technology, people have gradually begun to use C language to replace assembly language (lower-end chips are still Requires assembly to develop).
Therefore, general product development uses C language, and assembly is generally used to make small products or startup files for microcontrollers.
Previous article:Can I learn microcontroller in one month? How long does it take to learn microcontroller programming?
Next article:How much C language foundation is needed to learn microcontroller, C language microcontroller programming tutorial
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- How can LM3447 achieve constant power control?
- Design of 30kHz High Frequency Switching Power Supply Transformer
- Application of LAN91C111 controller in embedded Ethernet interface
- Share the MCPWM cycle setting and calculation of LPC17xx
- STM32 MCU download and debug solution e-link32
- 【Nucleo G071 Review】 Final Conclusion
- Differences between CPU and CLA and Error Handling Techniques
- WeChat applet Bluetooth communication
- SuperEye liquid lens, autofocus system with no moving parts
- Analysis of IC Testing Principles (Part 3)