When learning microcontrollers, remember these four requirements and avoid detours.

Publisher:大橙子5511Latest update time:2022-12-19 Source: zhihu Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  I personally think that if you master one of the microcontrollers first, you can learn about the others and get started quickly. If you don't have these conditions, I suggest you learn 51 microcontroller.

  Why learn 51 microcontroller:

  Although there are many types and models of microcontrollers now, and each model has a certain market share, none of the models is as popular and popular as the early 51 microcontroller. Although its status is not so high now, because the 51 microcontroller has accumulated a lot of information , everyone will have a lot of reference materials when learning, so it will definitely be faster to get started than other models. If you study a slightly off-topic microcontroller, a simple software problem may have to trouble you for a long time. This not only wastes your learning time, but more importantly, it destroys your confidence in learning microcontrollers.

  So do we have to learn every type of microcontroller? The answer is of course no. If you follow me to learn the 51 microcontroller, you must learn to draw inferences from one example and the ability to integrate everything. There are so many types of microcontrollers, and I would probably be too gray to learn them all if I learn them one by one, so everyone should follow me to learn the 51 microcontroller. You can't just learn it as a 51, but more importantly, you must learn it as a "microcontroller", and you must go through our tutorial. , clarify all the internal resources of the microcontroller, and understand the usage of each internal module thoroughly, so that when you encounter a microcontroller that you have never used, you will know how to start using it for development.

  How to learn microcontroller:

  As mentioned before, microcontroller is a practical technology. We study it no longer to cope with exams. I have summarized the learning method of microcontroller for everyone: one essential and four steps.

  The key to learning microcontrollers is: grow in practice.

  But why do so many people always read only one book when learning about microcontrollers? First, the learning model in our primary schools, middle schools and even universities is the same. We mainly rely on reading books and coping with written exams to learn anything. Second, many people want to practice but don’t know how to do it.

  Looking up a book when you encounter a problem is a hundred times better than reading it directly. It’s not that we are not allowed to read the book, but that after reading a little bit, we should immediately verify it in practice, and then go back and combine the results of practice to understand the content of the book. From this point, everyone must draw a conclusion, that is, in the process of learning practical skills, unlike dealing with exams, you do not need to memorize the content in the book. The book is for checking, not for memorizing.

  The following are four steps for learning microcontrollers.

  1) Parroting

  When everyone first came into contact with microcontrollers, they were newbies in the microcontroller industry. Beginners may have never seen the appearance of a microcontroller, the various peripheral devices of the microcontroller, the various structures inside the microcontroller, and the programming method of the microcontroller using C language, and have no idea at all. It doesn't matter. It doesn't matter if you don't understand some concepts and methods. You don't even need to understand them. You just need to follow me and learn like a parrot. As for the program, you can copy it completely, or even copy it two or three times. After a while, you will find that you know a lot of things, and you gradually understand many concepts clearly, and you can also roughly understand other people's thoughts. If you already know the program, don’t just copy and paste it because you think you have read it well.

  2) Draw a picture of a gourd

  When studying, many students like to watch videos made by others. They can understand other people's programs and think they know it. But when they write their own programs, they don't know where to start. This is an easy mistake for beginners. The problem of "high sight but low hand".

  After each student has finished learning the content of the current lesson, he then turns off the video tutorial, turns off the source code, and rewrites the original program code of the lesson by looking at the circuit diagram and looking for any other non-source code information, while writing. I understand a little bit at the same time. It is not pure recitation. It should be said to be a combination of recitation and understanding. Even after learning a few lessons, you can go back to the previous lessons that were implemented in this way and do it again according to this method. Don't think that this step is unnecessary. This step is a key to whether you can truly learn the microcontroller. Before finishing this tutorial, you must do this in every lesson. If you can complete every program perfectly, then you can Say, you have mastered 70% to 80% of the content of this lesson.

  3) Stones from other mountains can be used to attack jade

  The biggest feature of microcontroller technology is that different functions can be realized by modifying the program, so the ability to draw inferences from one example is essential. After the routine of each class, it is best to assign a few homeworks yourself. In the process of completing this homework, you can refer to the original program ideas. On this basis, you can build your own program framework through brain thinking, and finally complete the program. Finish.

  This is also true in many situations when our engineers are actually developing products. For example, if we start a product from scratch, we may take many detours and encounter many setbacks that our predecessors have encountered. Therefore, our usual approach is to look for and purchase several similar products, and then study their respective advantages and disadvantages first. We learn from their strengths and then design our own products based on similar products. This is "a stone from another mountain can be used to attack jade."

  Beginners often encounter many problems when learning. You should think that the problems you encounter may have been encountered by seniors, so when you encounter problems, don’t panic. First use Google or Baidu to search. Search the engine online. Whether it's programming or hardware design, refer to other people's stuff. As long as you understand other people's stuff and use it yourself, it will become your own knowledge.

  4) Combining theory with practice, reviewing the past and learning new things

  After everyone has completed all the courses according to the previous three steps, you might as well open the book at this time and read the book again. After your own practical experience, you will have a sudden understanding of many knowledge points. Even video tutorials and books can be read several times. There may be some knowledge points that you didn’t understand when you were studying. After a while, when you look back and study again, you will understand them all at once.


Reference address:When learning microcontrollers, remember these four requirements and avoid detours.

Previous article:How to get started with learning microcontrollers
Next article:44 essential common sense for microcontroller motors

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号