Several programs that must be written to learn 51 single-chip microcomputer

Publisher:RadiantJourneyLatest update time:2016-03-10 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
I learned 51 single-chip microcomputer completely by myself, because when I wanted to learn it, it was still a long time before the school started. Now that I have finished learning single-chip microcomputer, the school class has also finished, and I have gained a lot. Now I write down my learning experience for everyone to share.

Study.jpg

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.

Reference address:Several programs that must be written to learn 51 single-chip microcomputer

Previous article:Analyzing the issues related to precise delay of microcontrollers
Next article:51 MCU WiFi car code

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号