51 MCU-Preliminary Preparation

Publisher:Chunjie2022Latest update time:2021-08-13 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Learning prerequisites

The microcontroller needs to interact with programs, which requires you to master very basic C language knowledge first. Even if we explain the execution process of the program as detailed as possible, it will be difficult for students who have no C language knowledge foundation.


So you must master the following basic knowledge


1. Data Type

2. Conversion between hexadecimal, decimal and binary

3. Program running order

4. if, else, while, for, switch and other statements

 

2. Hardware

If you have no relevant knowledge of analog and digital electronics, and do not know electronic components, these are not difficulties in learning MCU. We will briefly introduce the hardware basics in the tutorial. You can also refer to the first three chapters of Teacher Song's "Teaching You How to Learn 51 MCU". As long as you have a certain understanding of middle school physics circuits and basic circuit knowledge, you can understand them. We also encourage everyone to learn to find relevant information on the Internet to deepen their understanding of circuit knowledge and MCU.

 

3. Software

The programming environment software uses the blue icon keil4. We took a screenshot of the circuit schematic in Altium Designer software for analysis. The installation of keil4 software and the setting up of the environment are not covered in this tutorial. Please find the detailed configuration tutorials on your own.

 

4. Tutorial Arrangement Notes

Because the internal hardware knowledge of the microcontroller is relatively abstract to beginners and requires a lot of words to explain, we do not need to delve into the details when encountering new concepts, but just remember that there is such a rule for this thing. Our focus is on explaining how to program.


When the actual modules used later are connected to the microcontroller, we use the connections on the schematic diagram to represent them.

 

5. Advanced

Although the entry-level microcontroller starts with the 51 microcontroller, the preferred controller that is now popular all over the country is the stm32. In practice, most projects using microcontrollers may also use stm32, but the programming ideas of 51 are indelible on stm32.


STM32 has become the mainstream single-chip microcomputer, because its performance, peripheral resources and price are far more cost-effective than 51 single-chip microcomputer. Most of the product project design and electronic competitions also use STM32 single-chip microcomputer for control. However, learning and using STM32 requires a lot of basics, 80% of which comes from 51. So we take it step by step, learn 51 single-chip microcomputer and then advance to STM32. The foundation laid in this process will be of great help to our later learning of new advanced controllers.

Reference address:51 MCU-Preliminary Preparation

Previous article:51 MCU-Development Board Selection
Next article:51 MCU - Initial Understanding of Schematic Diagram

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号