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. The changes of these 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 each pin of the single-chip microcomputer does? 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. 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
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 to help you, then I advise you to buy one yourself. After all, it is much more convenient to have one yourself, and 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 less movies and play less 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 what career you want to go in this life. This is how to practice. When writing programs, 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? I got 90 points after the exam, so happy, hahahaha, but I forgot everything when I 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 also took it and 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 C language is better. 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 better, and it will definitely be useful in the future. Otherwise, you 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. Programming in assembly language 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 microcontrollers is also constantly improving, which is enough to hold any code you write in C language. There is a lot of information on C language 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.
The next thing is programming. Let's talk about the learning process of programming. One of the best ways is to imitate. First, find someone else's ready-made program that can be compiled to generate code, download it, see the phenomenon, and then write it yourself. If there is an error, compare it with the correct one. After success, continue to learn. The most annoying thing is that some people take other people's programs, compile them directly, and after downloading them, they think they can do it, but when they have to write it themselves, they can't write it. Even if they copy it, they have to be familiar with it. This is a necessary process. In the end, what level do you need to reach? That is, the most basic timers, interrupts, and I/O ports of the microcontroller can be directly written without flipping through books or looking for other people's codes. Some people say that assembly language is direct and easy to understand, but if you can write 100 lines of assembly language, what about more than 1,000 lines? If you want to do a multiplication and division, assembly language will not work. C language is universal and easy to transplant. If you learn assembly language, you can learn one set of 51 microcontrollers, another set of avr microcontrollers, and even msp430. However, C language is the same. You can just take the algorithm and change the I/O port and you can use it. It is convenient for development.
Finally, let me calculate the cost of learning microcontrollers. When I was learning before, I needed to buy a programmer, etc., but now I don't need to. For beginners, 51 microcontrollers are the best, with a lot of information, universal, and simple. The better ones on the market now include S series, C51 series, STC series, and of course, enhanced ones from various companies. From a learning perspective, S series and STC series are recommended, and they can be downloaded through ISP. I am currently using the STC series, and the minimum development system is:
8 yuan for a single chip microcomputer
Max232 3 yuan
Serial cable costs 6 yuan (can be made by yourself, just 3 cables)
Resistor and capacitor 3 yuan
Crystal oscillator 1 yuan
Light Emitting Diode 2 Yuan
Universal board 3 yuan
In summary, as long as you have confidence, can stick to things, and have a strong will not to give up until you succeed, it is very easy to learn a microcontroller.
Steps
1. Find a book to get a rough understanding of the structure of the microcontroller. Just get a rough understanding. You don't have to understand everything, and you won't be allowed to publish a book. (Three days)
2. Find some small circuit materials on the Internet to practice designing peripheral circuits. After soldering, debug yourself and get familiar with the process. (Ten days)
3. Find a learning board to practice writing programs. Learning microcontrollers is about practicing writing programs. If you encounter something you don't know, ask people or look up books. I bought a development board at the beginning and got it done in twenty days.
4. Design circuits and products with your own personal style... You are already a master... Do you see it? You can become a master in more than a month of hard work. That's all I have to say. It depends on you whether you can learn it or not and whether you can put in the hard work!
Previous article:MCU interrupt example
Next article:Summary of MCU button connection method
- Popular Resources
- Popular amplifiers
- 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?
- CATL releases October battle report
- Battery industry in October 2024: growth momentum remains unabated!
- Mercedes-Benz will launch the eCitaro equipped with NMC4 batteries to provide high energy density and long life
- Many companies have announced progress on solid-state batteries. When will solid-state batteries go into mass production?
- Xsens Sirius Series Inertial Sensors Enable 3D Inertial Navigation in Harsh Environments
- Infineon's Automotive Landscape: From Hardware to Systems
- 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
- Circuit Analysis
- Tms320VC5502 and isp1581 high-speed data acquisition solution
- 2019FPGA Employment Competition and Guidance
- What kind of activities do you hope the RF/Radio Frequency section will carry out? Please leave a message in the thread.
- Oscilloscope usage tips you don't know
- Free Trial | Keysight Accelerates Signal Integrity and Power Integrity Testing
- Learning PLC technology is super easy
- Research on a New ZVZCT Soft-Switching PWM Converter
- Tips for Efficiently Implementing Mobile Phone RF Testing
- Advantages of modules