Microcontroller learning notes, teach you how to learn in three steps!
[Copy link]
As an electronic technology practitioner, have you learned single-chip microcomputers? Can you use single-chip microcomputers? I think you must have learned them, but you may not be able to use them. Because learning single-chip microcomputers requires more effort and cost than learning other subjects. You must not only learn theoretical knowledge but also practice practical operations. And it is mainly in practical operations that you can truly learn single-chip microcomputer technology.
Due to different majors and the depth of electronic foundation, different people may adopt different learning methods. The following Xinyingda editor will introduce you to the learning methods and steps.
1. Basic theoretical knowledge learning
Basic theoretical knowledge includes analog circuits, digital circuits and C language knowledge. Analog circuits and digital circuits are abstract subjects, and it takes some effort to learn them well. Before you learn single-chip microcomputers, if you feel that the foundation of analog circuits and digital circuits is not good, don't rush to learn single-chip microcomputers. You should first review the knowledge of analog circuits and digital circuits you have learned to strengthen the foundation for learning single-chip microcomputers.
C language knowledge is not difficult, anyone without any programming foundation can learn it. In my opinion, junior high school students, high school students, technical secondary school students, and college students can all learn it. Of course, people with a good math foundation and good logical thinking can learn it relatively easily.
When the foundation is laid, you will feel that MCU is no longer difficult to learn, and you will become more and more motivated. When the MCU executes instructions according to your logical thinking and algorithms and achieves the expected control effect, the sense of achievement will make you full of confidence and devote yourself to the world of MCU day and night. It can be said that a solid foundation of electronic technology and C language can enhance the confidence in learning MCU and master MCU technology quickly.
2. MCU Practice
1. Determination to study hard
First, clarify the purpose of learning. First, answer two questions carefully: What do I want to learn MCU for? How long does it take to learn it? This is your motivation to learn MCU. Without motivation, I think you won't be able to stick to it for long.
Secondly, correct your learning attitude. The process of learning microcontrollers is boring, lonely and lonely. You should know that there is no shortcut to learning knowledge. Only by proceeding step by step, being down-to-earth and taking one step at a time can you learn real skills.
Secondly, you should use your brain more and do more. The study of single-chip microcomputer is very practical and is a technical subject that focuses on practical hands-on operation. You can't learn single-chip microcomputer without hands-on practice. Finally, communicate humbly. In the process of learning single-chip microcomputer, everyone will encounter countless unsolvable problems. You need to humbly ask for advice from experienced people. Otherwise, blindly burying your head in exploration will take many detours and waste a lot of time.
2. Pay attention to the combination of theory and practice
Theoretical knowledge of microcontroller C language programming is not profound, and you can understand it just by reading the book without doing it. But it is not that simple when it comes to actual programming. The formation of a program requires not only C language knowledge, but also your personal programming ideas and algorithms.
Programming ideas and algorithms determine the quality of a program, which is a major issue in single-chip microcomputer programming. Only when you actually write it can you have a deep understanding. Whether a program can run normally according to your wishes depends on whether your ideas and algorithms are correct and reasonable.
If the program is not working properly, you need to debug it repeatedly ( check and modify ideas and algorithms ) until it succeeds. This process is time-consuming, brain-consuming, and mentally exhausting. People with weak wills often get tripped up and give up halfway.
Learning to write programs should be done in the following way for better results. When you see a sample problem, try to conceive your own programming ideas first, then look at the code in the textbook or video tutorial, study other people's programming ideas, and pay attention to the differences with your own ideas; then copy other people's ideas and write the program yourself, understand the role of each statement; try to modify the program according to your own ideas for any doubts, compare the program running results, and understand the mystery.
3. MCU Hardware Design
When you can easily write your own programs and find problems when reading other people's programs, it means that your MCU programming skills are quite good. The next step is to study the hardware. Hardware design includes circuit principle design and PCB board design. Learning to make hardware is more troublesome than learning to make software, with higher costs and longer cycles.
However, the ultimate goal of learning single-chip microcomputers is to develop products - combining software and hardware to form a complete control system. Therefore, making hardware is also a must-learn content in learning single-chip microcomputer technology.
Circuit principle design involves the application of various chips. The design of these chip peripheral circuits, typical application circuits and connections with microcontrollers can all be found in the chip data manual, provided that you can understand the data manual which is written in English.
If you are proficient in microcontroller C language programming, can use Protel software or AltimDesigner software to design PCB boards, and have a certain level of English reading ability, you will be a microcontroller master who will become stronger when facing stronger opponents.
|