How can I learn microcontrollers well?

Publisher:Joyful444LifeLatest update time:2015-03-26 Source: diangonKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
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. Writing program code in assembly language is highly 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 do not need such high-efficiency code at all, because there is a high-frequency clock, and the ROM of microcontrollers is also constantly improving, which is enough to hold any code you write in C language. C language materials are abundant and easy to find, and 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. 

In summary, as long as you have confidence, can stick to things, and have a strong will not to give up until you succeed, then learning a microcontroller is a very easy thing.
Keywords:MCU Reference address:How can I learn microcontrollers well?

Previous article:MCU serial communication program
Next article:How to calculate good microcontroller C language code

Recommended ReadingLatest update time:2024-11-17 02:35

51 MCU clock assembly program
It’s finally here... I’m so touched... I can now DIY an electronic clock myself. The circuit boards and original parts need to be found separately. Electronic components are so scarce in Nanning that they are really hard to find. After they are ready, they need to be soldered. It seems that I need to find a better sol
[Microcontroller]
Design and implementation of a 32-bit MCU development board
     The STM32F100VBT6 uses the ARM Cortex-M3 32-bit RISC core, operates at 24MHz, integrates high-speed embedded memory (up to 128kB flash memory, up to 8kB SRAM) and various enhanced peripherals and I/O connected to two APB buses. All devices provide two I2C, two SPI, one HDMI CEC and up to 3 USART Peugeot communi
[Microcontroller]
Design and implementation of a 32-bit MCU development board
AVR microcontroller controls 74HC595 74HC165 sample program
Hardware description: PB5 of ATmega48/88/168 is the SPI clock output, connected to the shift clock input of 74HC595/74HC165; PB4 is the MISO data input of SPI, connected to the data output of 74HC165; PB3 is the MOSI data output of SPI, connected to the serial data input SER of 74HC595; PB2 is connected to the latch c
[Microcontroller]
Simple inverter made by single chip microcomputer (DC12-AC220)
//50HZ square wave generation  #include stc12c2052ad.h #include intrins.h #define uchar unsigned char #define uint unsigned int //Shaozhanyu production Hebei Zhengding welcomes you Changsha Aviation Vocational and Technical College 2010 QQ:411656434  sbit M=P1^0; bit FLAG; /******************************************
[Microcontroller]
Playing with STM8 microcontroller (Part 1)
It is a very normal step-by-step learning method to learn the entire computer system from the microcontroller. Because until today, the computer system has not escaped this most basic architecture. Unfortunately, I skipped this process and started directly from Intel 486. At that time, I was struggling forward with co
[Microcontroller]
Playing with STM8 microcontroller (Part 1)
51 MCU implements the universal program framework of the serial port to judge the data header to receive a string of data
1. Use proteus to draw a simple circuit diagram for subsequent simulation 2. Programming /******************************************************************************************************************** ---- @Project: USART ---- @File: main.c ---- @Edit: ZHQ ---- @Version: V1.0 ---- @CreationTime: 20
[Microcontroller]
51 MCU implements the universal program framework of the serial port to judge the data header to receive a string of data
Communication power supply monitoring system based on Web microcontroller and CC430F6127
  introduction   As the scale of communication networks continues to expand, the number of communication power supplies is also increasing, and the monitoring of communication power supplies has become more important. The power supply of communication base stations is generally in a relatively scattered state, and in
[Microcontroller]
Communication power supply monitoring system based on Web microcontroller and CC430F6127
Design of digital capacitance meter based on 51 single chip microcomputer
Design Task Design and make a digital capacitance meter. The functions and requirements of the system are as follows: (1) The capacitance meter can measure capacitance less than 2μF. (2) The capacitance meter uses a 3.5-digit display, and the maximum display value is 1999. (3) The reading unit of the capac
[Microcontroller]
Design of digital capacitance meter based on 51 single chip microcomputer
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号