Master the methods and techniques to easily learn 51 single chip microcomputer

Publisher:muhaoying2017Latest update time:2021-01-29 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

A single-chip microcomputer is a type of microcomputer. Currently, there are 8051, AVR, ARM7, ARM9 and other series. Among them, "8051" is derived from Intel's MCS-51 series chips, but different manufacturers currently focus on compatible chips, such as Ateml's 89C51/89S51 system and Macrocrystalline's STC89C52RC. This article describes Macrocrystalline's STC89C52RC. This chip is easy to burn. You only need to use Macrocrystalline's tools to burn the program to the chip through the TX and RX pins of the serial port MAXRS232. It is a very good embedded entry foundation. There are many tutorials and 51 series learning boards generally use STC89C52RC chips, which shows that it is very versatile. So how can we quickly learn 8051 single-chip microcomputers?


Learning the 51 series CPU requires memorizing the pin functions. When I was learning, I benefited from the simple memorization method. I mastered the functions and positions of the pins very quickly. I could easily remember the pins of P0, P1, P2, and P3 without rote memorization. Please see the figure below:

After learning the pin functions, if you want to start the circuit of the microcontroller, you also need to understand the peripheral connections, so as to lay the foundation for making your own microcontroller control circuit in the future. This is what you must remember when learning the 8051 system microcontroller. The following is the minimum circuit diagram of the 51 microcontroller. As long as you connect according to the following aspects, you can simply power on and drive the operation of the microcontroller. The application of functional pins is added on the basis of the minimum system.

To learn MCU, you can't do without a paper tutorial. You can go to the local bookstore to pick one or go to Joyo.com or Dangdang.com to buy one if it's cheap. A tutorial can better guide you on how to systematically learn MCU, especially the C language version. The "Example of 51 MCU (C Language Version)" published by Posts and Telecommunications Press is a good one. It has both the theoretical foundation of MCU and the learning of C language. I have been exposed to C language for a long time. I used C++Builder for Windows development before. Through the tutorial, I found that the difference between Windows C language and MCU C language is the definition of pins, which is unique to MCU C.


Tutorials are available, but how can you know how well you have learned without practice? Learning is one thing, and practical application is another. Programming 51 systems now all use Keil v3. It is best to apply the "bug to filter 0xfd characters" patch. I have experienced wasting time because of this character and the display result is incorrect. Applying the patch can reduce the strange phenomena we encounter in program debugging.

Programming with Keil software can only detect the correctness of C language programming syntax, but cannot verify whether the real function is realized. Now you can use the microcontroller software simulation Proteus (tutorial) to simulate and debug the circuit board and program functions. However, although simulation is a good method, it is not as good as using a single-chip experimental board. Through the program written by Keil, the program is written to the microcontroller through RS232 for substantial operation, so as to better understand the performance of the microcontroller and the matching use of hardware parts. Don't buy the smallest system. This is only for people who have mastered the control of the microcontroller. They have their own peripheral circuit boards. They only need to connect the corresponding microcontroller pins to drive the circuit according to their actual situation. It is not suitable for beginners. The entry-level microcontroller experimental board is better to have more complete functions. The more you learn, the more familiar you are with the application of the microcontroller. The following is a single-chip board learning board on Taobao, the price is less than 200 yuan, and there are video tutorials, which are more suitable for beginners. Interested netizens can refer to it. Choosing a good learning board, tutoring, and communication are ways to quickly learn microcontrollers.

Teach you to learn MCU step by step》Video tutorial 51 MCU development board learning board


The most valuable thing in learning a skill is perseverance. Only by continuous learning and summarizing can you improve. Learning the 51 series of microcontrollers is a stepping stone to enter the embedded field. If you are in the electronics field, you can also consider starting with the simple 51 and moving towards more advanced applications.


Reference address:Master the methods and techniques to easily learn 51 single chip microcomputer

Previous article:A method for removing key jitter using software
Next article:Transformer temperature intelligent monitoring instrument

Recommended ReadingLatest update time:2024-11-23 10:15

Domestic CPU Loongson with 100% independent instruction set was selected as "World's Leading Internet Scientific and Technological Achievements"
The 2022 World Internet Leading Scientific and Technological Achievements were recently announced at the 2022 World Internet Conference in Wuzhen, Zhejiang. The "Loongson 3A5000/3C5000 Processor Chip" submitted by Loongson China Science and Technology Co., Ltd. was selected as the World Internet Scientific and Technol
[Embedded]
Domestic CPU Loongson with 100% independent instruction set was selected as
Porting U-boot to mini2440 from scratch (Part 3) - CPU initialization
After the preparation in the first two sections, we can now start to work on the u-boot code. U-boot version: 2020/5/2 Compilation environment: Ubuntu 16.04 arm-none-eabi-gcc version 4.9.3 20150529 (prerelease) (15:4.9.3+svn231177-1) Operating environment: mini2440 (s3c2440, arm920t) Code repository: git@github.com:Ji
[Microcontroller]
Rekor upgrades vehicle identification software, CPU processing speed increased by 100%
Core Tips: According to foreign media reports, Rekor Systems (Rekor), a leading supplier of innovative license plate recognition systems, announced an upgrade to its OpenALPR vehicle recognition software. (Image source: Rekor Systems) Rekor Systems (Rekor), a leading provider of innovative license plate recog
[Automotive Electronics]
Rekor upgrades vehicle identification software, CPU processing speed increased by 100%
Intel 800 series chipset details revealed: Z890 exclusive CPU official overclocking function
On July 5, news source @jaykihn0 tweeted yesterday (July 4), sharing the specifications of Intel's 800 series chipsets. The preliminary specifications include 5 SKUs: H810, B860, Q870, Z890 and W880, but there may not be H870. According to the specification sheet information, Z890 is still the only offici
[Embedded]
Demand for electronic devices, servers, and data centers surges, CPU sales to reach $41.7 billion
According to foreign media reports, research institutions predict that the global microprocessor market will resume growth this year, with sales expected to reach US$79.3 billion, driven by increased demand for related electronic equipment, servers, and data centers due to working and studying from home.     Accordi
[Embedded]
Demand for electronic devices, servers, and data centers surges, CPU sales to reach $41.7 billion
NVIDIA releases its own CPU processor!
       NVIDIA is a GPU company, but it has also been trying various CPUs, including autonomous driving, mobile computing, etc. In the early years, it also tried to get involved in smartphones through the Tegra series.   At the GTC 2021 Developer Conference, Huang Renxun personally announced NVIDIA's new processor, cod
[Mobile phone portable]
NVIDIA releases its own CPU processor!
Latest Microcontroller Articles
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号