The ultimate fantasy of microcontrollers

Publisher:yunhuiLatest update time:2012-11-06 Source: 21ic Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Finally I have my own space, and I can't wait to post a paragraph. This is my first paragraph. With the vision of the future and the nostalgia for my past comrades and friends, I want to briefly talk about my experience of learning microcontrollers. As a kind of remembrance and memorial, I hope to give some help to friends who want to learn MCU. I first came into contact with MCU in the second semester of my freshman year, and it has been exactly four years now. It is always helpful to be good at summarizing and practicing like learning other knowledge; of course, I am not writing these to say how well I have learned, but just looking at the problems that many beginners may encounter from a certain height.


First of all, many students may think that it is outdated to talk about single-chip microcomputers now. In fact, it is not. The application range of high-end processors such as NXP lpcXX and Luminor LMSXX is fixed. At present, 4-bit, 8-bit, 16-bit and 32-bit processors exist in the market at the same time, and each has its own place. In the low-end consumer electronic product market, such as electronic watches, washing machines, etc., the advantages of MCU are very obvious in terms of cost performance. Although many chip manufacturers are working hard to improve the manufacturing process and thinking hard to solve the high cost of 32-bit machines compared to 8-bit machines, MCU is also constantly improving. The performance of Philips' MCS-51 has been improved by more than hundreds of times compared to the early 1980s. At present, 8-bit CPUs still account for 70% of the embedded market, and their advantages will still be undoubtedly to a certain extent in the next few years.

What basic knowledge do you need to learn MCU? In fact, there is no high threshold. A sophomore student majoring in electrical engineering or computer science is fully capable of introducing this knowledge. To put it bluntly, it is a little bit of analog electronics, a little bit of digital electronics, and you need to know some C language. Many students may say that they are not good at learning C. It doesn’t matter. You will understand in the process of using the language. As long as you can speak and think, and know how to abstract the phenomena and mechanisms of the real world into scientific logic (flowchart), and then implement the flowchart according to the grammar of a language, you are programming. Haha. Language is a difficult tool. Good use and expression awareness can give us a clearer understanding of the world.

What is the content of the study? Maybe many students will remember the running lights when they first learned the single-chip computer. Haha, yes, that is a classic introductory program, similar to the classic HelloWorld when learning C language, and more similar to the classic 8031\MCS-51 of Intel and Philips. What language is good for beginners to learn single-chip computer programming? Personally, I think it is better to learn some assembly. Since single-chip computers are sensitive to cost, the dominant software is still the lowest-level assembly language. It is the lowest-level language above binary machine code. Since it is so low-level, why should it be used? Many high-level languages ​​have reached the level of visual programming. Why not use it? The reason is very simple, that is, single-chip computers do not have CPUs like home computers, nor do they have massive storage devices like hard disks. Even if there is only one button in a small program written in a visual high-level language, it will reach a size of tens of K! It is nothing for the hard disk of a home PC, but it is unacceptable for single-chip computers. The utilization rate of hardware resources of single-chip computers must be very high, so although assembly is primitive, it is still widely used. The same is true. If you take the operating system and application software on a giant computer and run it on a home PC, the home PC will not be able to bear it. In addition, it is very beneficial for beginners to use assembly and deal with the underlying hardware.
In summary, I personally think that when learning, you should focus on: 1. Bus 2. Addressing mode, that is, the tricks between data, instructions, and addresses 3. Internal resources such as parallel ports, RAM, ROM, timers, etc. 4. Pay attention to the execution process of each type of instruction and basic stack operations. 5. Do more hands-on programming. Haha, there are more lessons that can only be learned after leaving school...
Cherish your youth and squander it recklessly, haha...

Keywords:MCU Reference address:The ultimate fantasy of microcontrollers

Previous article:Design of three-way intelligent synchronous acquisition card with phase-locked loop based on single-chip microcomputer control
Next article:Summary of Single Chip Microcomputer Circuit Design

Recommended ReadingLatest update time:2024-11-16 21:47

Anti-interference performance of single chip microcomputer
Friends who have worked on products all have experienced this: a design may seem simple, and the hardware design and code writing can be completed quickly, but there are more or less unexpected events during the debugging process. These are all manifestations of insufficient anti-interference capabilities. Let’
[Microcontroller]
Ultrasonic distance measurement 51 single chip microcomputer 12864 LCD display
The ultrasonic ranging module, 51 single-chip microcomputer connected to 12864 LCD, HC-SR04 ultrasonic module, can be used. I haven't looked at the specific program and don't know the hardware of the ultrasonic module. Today I will post a picture and a program (the program is attached to the module purchased from Taob
[Microcontroller]
Ultrasonic distance measurement 51 single chip microcomputer 12864 LCD display
Precautions for using AVR microcontroller I/O ports
1. Correctly set the DDRx direction register before performing read and write operations on the I/O port. 2. The initial state of the I/O port after reset is all input working mode, the internal pull-up resistor is invalid, and the external pin is in a three-state high-impedance input state. 3. When the I/O port w
[Microcontroller]
51 single chip microcomputer - infrared remote control
- What is infrared remote control The infrared remote control system is mainly composed of an infrared transmitting device and an infrared receiving device. The infrared transmitting device is mainly composed of a keyboard circuit, an infrared encoding chip, a power supply and an infrared transmitting circuit (such as
[Microcontroller]
51 single chip microcomputer - infrared remote control
Experiment 3: Table Lookup, Multi-branch (80C51 MCU Assembly Language Programming)
Suppose there is a table with the numbers: 00H, 11H, 22H...FFH. Put the lower 4 bits of the 00H unit on the chip into the 0000H outside the chip (the upper 4 bits of 0000H are 0), and put the upper 4 bits into the 0001H outside the chip (the upper 4 bits of 0001H are 0). According to the number in 0000H, take out the c
[Microcontroller]
Design of Intelligent Heat Meter Based on PIC16C73 Single Chip Microcomputer
With the continuous improvement of people's living conditions and the enhancement of environmental awareness, most urban residents and enterprises and institutions now use centralized heating for heating, and the scale of heat source production is expanding year by year. The water inlet and return water outlet of the m
[Microcontroller]
Design of Intelligent Heat Meter Based on PIC16C73 Single Chip Microcomputer
Research on Multi-channel Power Supply Monitor in Single-chip Microcomputer Measurement and Control System
1. Multi-channel power supply monitor of single-chip microcomputer measurement and control system The circuit of the multi-channel power supply monitor of the single-chip microcomputer control system composed of MAX8215 is shown in the figure. R1 and C1 form a resistor-capacitor filter to filter out the hig
[Microcontroller]
Summary of PIC microcontroller interrupts
Compared with 51 or other series of single-chip microcomputers, the interrupt mechanism of PIC single-chip microcomputer has its own special features. In view of some problems and doubts of some of our beginners, I will make a personal summary here. If there are any inappropriate parts, please correct me. sO100
[Microcontroller]
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号