How to learn microcontroller well

Publisher:Yuexiang888Latest update time:2015-11-13 Source: eefocusKeywords:MCU  MCS-51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The first question many people who want to learn MCU ask me is how to learn MCU well? For this question, I will tell you how I started to learn MCU, how to get started, and how to become proficient in this process.

Let's talk about the single-chip microcomputer first. Generally, the MCS-51 single-chip microcomputer that we use more now has a lot of information, many people use it, and the market is also very large. In my personal experience, how can I learn the single-chip microcomputer course faster? The single-chip microcomputer course is a subject that attaches great importance to hands-on practice. You can't always read books, but you must read books first to learn it, because from the book you need to have a general understanding of the various functional registers of the single-chip microcomputer. To put it more clearly, we use the single-chip microcomputer to control the various functional registers of the single-chip microcomputer with software. To put it more clearly, it is to control when the level of those pins of the single-chip microcomputer outputs high and when it outputs low. These changes in high and low levels control your system board and realize the various functions we need. As for reading books, you only need to have a general understanding of what the pins of the single-chip microcomputer do? What kind of functions can be realized? You may not understand it the first time or the second time, but it doesn't matter, because you still lack practical sensory understanding. So I always say that it is enough to read books for two or three days to learn single-chip microcomputers. You can read five or six novels a day, and it is enough to read single-chip microcomputers two or three times in two or three days. You don't need to read them carefully. I recommend a book. This one is enough. The title is "New MCS-51 Single-chip Microcomputer Application Design", which is published by Harbin Institute of Technology Press and the author is Zhang Yigang. It is very important to have a general understanding of the content of the book and then practice. If you don't practice to learn single-chip microcomputers, it is impossible to learn. There are two ways to practice. One way is to spend money to buy a single-chip microcomputer learning board. It doesn't require too many functions. For beginners, you buy a board with many functions. There are many things on it that you will never use in your life. I suggest running lights, digital tubes, independent keyboards, matrix keyboards, AD or DA (the principle is the same), LCDs, buzzers, and that's about it. If you can skillfully apply the things I mentioned above, it can be said that you have already got started with the hardware of single-chip microcomputers. The rest is to practice designing circuits by yourself and constantly accumulate experience. As long as you pass the first level, the rest of the road will be much easier. Everyone may have heard that everything is difficult at the beginning. Method 2: If you have an expert in single-chip microcomputers around you, ask him for help and let him help you build a simple minimum system board. For an expert, it only takes one minute to make a minimum system board for a single-chip microcomputer, but it is much more difficult for a beginner, because only when you understand the hardware can you use it skillfully. If you don’t have such an expert around you and can’t find someone who can help you, then I advise you to buy one yourself. After all, it is much more convenient to have one yourself. You can use it when doing small experiments such as single-chip microcomputers in the future, and it is also trouble-free.

   After you have a MCU learning board, you should practice more. It is best to have a computer. Watch fewer movies and play fewer games every day. Connect the learning board and the computer, open the debugging software and sit in front of the computer. First learn how to use the debugging software, and then start with the simplest running light experiment. When you can make the eight running lights flow freely according to your wishes, you have already entered the door. You will find how fascinating the MCU is. It is so fun. This is not learning knowledge, but playing. When the program you wrote is realized according to your wishes, you are happier than doing anything else. You will be addicted, really. People who do electronics are really addicted. Then make the digital tube light up. After these two items, you can't extricate yourself. You have begun to consider which line of work you will go in this life. This is how to practice. When writing a program, you will definitely encounter many problems. At this time, you will look for it in a book or ask others. When you get the answer, you will remember it for a lifetime. Knowledge must be used in real life to solve practical problems, so that it can play its role. Think about it yourself. You have been in college for so many years and have classes every day. What have you learned in class? Are you busy for the final exam? You got 90 points after the exam, so happy, hahaha, but you forgot everything when you came back from the next semester, right? What did you learn? But I tell you that once you learn the microcontroller, you will never forget it. In addition, let me talk about the problem of programming in assembly language and C language. Many students have C language courses in their freshman and sophomore years. I have also taken them. I know that at that time, every day I was multiplying, adding, and calculating factorials. What's the use of learning it? Would you be stupid if you were asked to program the microcontroller in C language? We must be able to use what is in the book. Microcontroller programming can be done in C language or assembly language, but I suggest that it is better to use C language. If you have a foundation in C language, it will be easier to learn. If not, you can also learn C language while learning microcontrollers. C language is also very simple, just a tool. I advise you to learn it as it will definitely be useful in the future. Otherwise, you will have to learn it in the future. It doesn't matter if you don't know any assembly language, but if you don't know any C language, you will suffer in the future. Assembly language programming is efficient, but relatively difficult and wordy, especially when encountering algorithmic problems, it is extremely troublesome. Now the main frequency of microcontrollers is constantly increasing, and we don't need such high-efficiency code at all. Because of the high-frequency clock, the ROM of the microcontroller is also constantly improving, which is enough to hold any code you write in C language. There is a lot of C language information and it is easy to find. It will be very portable in the future. You only need to change an IO port to write a temperature sensor program and it can be used anywhere, so I advise everyone to use C language.

   To sum up, as long as you have confidence, can stick to what you do, and have a strong will not to give up until you succeed, then learning a microcontroller is a very easy thing.

 

Steps: 1. Find a book to learn about the structure of the microcontroller. Just get a general understanding. You don't have to understand everything. I won't let you publish a book. (Three days)

  2. Find a learning board to practice programming. Learning microcontrollers is all about practicing programming. If you encounter something you don’t know, ask someone or look up a book.    (20 days)

 3. Find some small circuit materials on the Internet and practice designing peripheral circuits. After soldering, debug by yourself and get familiar with the process.     (10 days)

 4. Design your own circuits and products with your own personal style. You are already a master        .

 

Did you see that? If you work hard for more than a month, you can become a master. That’s all I have to say. It’s up to you whether you can learn it and whether you can work hard enough.

Keywords:MCU  MCS-51 Reference address:How to learn microcontroller well

Previous article:Serial communication port SCI__HCS12 study notes (2)
Next article:Microcontroller C language programming example

Recommended ReadingLatest update time:2024-11-16 17:34

Experiment 0: Talk about MCU and Robot
Everyone should know about the term "robot", so I won't talk too much about it here. I will mainly talk about how robots work, what microcontrollers are, what they do, and how to learn about them. A single-chip microcomputer is a chip that can be used for programming. It is equivalent to the human brain for robots. In
[Microcontroller]
Experiment 0: Talk about MCU and Robot
AVR single chip microcomputer realizes intelligent refrigerator control system
Introduction: Nowadays, refrigerators have become popular in every household. People have higher and higher requirements for the performance and control functions of refrigerators, especially the intelligence level. The AVR single-chip intelligent refrigerator control system described in this paper has the advantages
[Microcontroller]
AVR single chip microcomputer realizes intelligent refrigerator control system
51 MCU (XII) - MCU Reset
1. Reset Introduction Reset provides a way for the microcontroller to start processing from a known initial condition. During reset, most control and status registers are forced to use initial values, and the peripheral modules of the microcontroller are disabled. The reset sources used by the microcontroller for rese
[Microcontroller]
51 MCU (XII) - MCU Reset
Application of Small Size Single Chip Microcomputer C8051 in Portable Equipment
Introduction       Mobile phones are increasingly used in modern life, and their functions are also increasing. For example, many mobile phones now have MP3 and camera functions, and some also have flash messaging and pedometer functions. Mobile phone flash messaging requires the processor to complete multi-channel an
[Microcontroller]
Application of Small Size Single Chip Microcomputer C8051 in Portable Equipment
Serial communication between Labview and C51 microcontroller
There are two methods of Labview serial communication, one is to use visa (virtual instrument software framework), and the other is to call activeX control. The first method (VISA) program is shown in the figure First, set the serial port parameters, initialize the serial port, use VISA WITE in the loop to writ
[Microcontroller]
Design of digital capacitance meter using AT89C2051 microcontroller
Design tasks Design and produce a digital capacitance meter. The functions and requirements of the system are as follows: (1) The designed capacitance meter can measure capacitance with a capacity less than 2μF. (2) The capacitance meter designed uses a 3-and-a-half-digit display, and the maximum display value is 1,99
[Microcontroller]
Design of digital capacitance meter using AT89C2051 microcontroller
Design of Human-Computer Interaction System Based on 51 Single-Chip Microcomputer and FPGA
In the development of modern instruments, human-computer interaction functions are playing an irreplaceable role. Instruments with friendly human-computer interaction interfaces will be easier to operate and use, thereby improving work efficiency. Liquid crystal displays (LCDs) have the characteristics of low power
[Microcontroller]
Design of Human-Computer Interaction System Based on 51 Single-Chip Microcomputer and FPGA
Development of mechanical equipment timer based on single chip microcomputer technology
1 Timer composition and working principle (1) Hardware composition and timing principle The timing intelligent control system adopts the method of hardware trigger plus software detection and control. It uses the vibration signal generated by the operation of mechanical equipment, and uses the microprocessor
[Microcontroller]
Development of mechanical equipment timer based on single chip microcomputer technology
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号