1. Because I had the basics of C language and assembly language, and I had learned analog electronics well. I also learned the principles of microcomputers. So I only spent half a day to figure out the pin functions and internal structure of 51. I think the most important thing to learn 51 is to understand the internal structure and address space.
2. I spent only a few hours to simply look at the 51 assembly instructions and C syntax. I personally think that learning the grammatical rules of programming languages is very simple, and there are commonalities between various languages. With the foundation of assembly and some high-level languages, learning other languages should be able to get started quickly.
3. Direct programming practice and software and hardware implementation.
My first program was a marquee program.
This will make you familiar with the use of ports and general process control. Of course, you can write one in C and one in assembly to achieve the same function.
My second program is a digital clock.
This program will give you a deeper understanding of interrupts and learn how to use them, including external interrupts (to adjust time). It is also implemented in C and assembly. You will also learn how to drive digital tubes, dynamic scanning, table lookup programming, etc.
My third program for the DS1821 Thermometer
This program taught me how to read the timing diagram from the data of an unfamiliar device and use a microcontroller to simulate its timing to implement the operation of the device. It was also implemented in C and assembly.
My fourth program is a 128×64 LCD display program.
This program will teach you the principles of LCD display, the operation of microcontroller data lines, etc. It is also implemented in two languages.
My fifth program IIC Communications.
ZLG7290 is used as keyboard control.
Study book: "Principles and Applications of Single-Chip Microcomputers" by Zhang Yikun, Xidian University (Follow, reply "Courseware" to get the ppt courseware of this book)
"Keil Cx51 V7.0 MCU High-Level Language Programming and uVision2 Application Technology" Xu Aijun Electronic Industry Press
Finally, I would like to emphasize one point: the five programs written above are all implemented as hardware circuits.
Postscript: This is just my personal opinion on learning 51. For example, the use of some expansion chips, I have written related programs in the microcomputer principles. In fact, some chips written in the 51 textbooks are rarely used, so I didn’t do it.
Personal opinion: If you really understand the five programs written above, you will reach the level where you can apply 51.
Previous article:Analyzing the issues related to precise delay of microcontrollers
Next article:51 MCU WiFi car code
- Popular Resources
- Popular amplifiers
- You may have heard the Latest Brief web service on CodeProject.com. It provides several methods for
- Multi-channel pressure measuring instrument based on C8051F020 single chip microcomputer
- C++ by Dissection presents a thorough introduction to the programming process bycarefully developi
- Design of automatic player for work and rest signal based on 51 single chip microcomputer
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Six tips for PCB layout design to make drawing easier!
- It is reported that Apple mistakenly used US dollars to settle accounts with Chinese developers, and the developers' income increased by 7 times
- MSP430 MCU Development Record (11)
- LSM6DSO iNEMO inertial module PCB package and code
- Which great god can come and take a look
- Problems encountered in circuit design based on operational amplifiers and analog integrated circuits 4th edition
- I overestimated the final project and only made a few things, SPI color screen + servo drive
- Looking for an idle oscilloscope with a speed of more than 100M
- TI Power Supply Learning and Growth Path: EMI Filter & EMI Optimization
- EEWORLD University----[High Precision Laboratory] Interface: FPD-Link