通常有reg51.h,reg52.h,math.h, ctype.h, stdio.h, stdlib.h, absacc.h, intrins.h 。
Keywords:C51
Reference address:Commonly used header files in C51 microcontrollers
But the commonly used ones are only reg51.h or reg52.h, math.h.
reg51.h and reg52.h define the special function registers and bit registers of 51 microcontroller or 52 microcontroller. Most of the contents in these two header files are the same. The 52 microcontroller has one more timer T2 than the 51 microcontroller. Therefore, reg52.h has a few more lines than reg51.h to define the contents of the T2 register.
math.h defines commonly used mathematical operations, such as absolute value, square root, sine and cosine, etc. This header file contains various mathematical operation functions, and we can directly call its internal functions when we need to use them.
(1) Necessary conditions for the operation of the minimum microcontroller system: 1. Power supply; 2. Crystal oscillator; 3. Reset circuit.
The main contents that should be mastered when learning microcontrollers:
(2) Master the operation of any I/O port of the microcontroller: 1. Output control level; 2. Input detection level.
(3) Timer: Focus on the most commonly used method 2.
(4) Interrupts: Master external interrupts, timer interrupts, and serial port interrupts.
(5) Serial port communication: Master the communication between MCUs and between MCUs and computers.
After mastering the above knowledge, it can be said that everyone has basically mastered the microcontroller. Other knowledge is expanded on the basis of these knowledge points. As long as everyone is willing to actively try and is good at drawing inferences from one example, they can quickly master the knowledge related to the microcontroller.
Previous article:Using 51 single chip microcomputer to make 4-way buzzer
Next article:MCU realizes 7-segment digital tube display
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
Guess you like
- [Raspberry Pi Pico Review] WS2812B Snowflake Light Practice -- and IoT Communication RGB Control
- How to convert a sine wave into a square wave
- Decoupling Technology
- Bluetooth 4.0 BLE Development Complete Manual: Practical IoT Development Technology
- UltraISO, English learning .iso files made on PC, cannot be played?
- Why can't I find the management option in the Download Center?
- How to calculate the saturation of an inductor with a magnetic core? Is there a calculation formula for reference?
- What is the difference between the PLL input clock (1) the clock generated by the XTH crystal oscillator and (2) the clock input from the XTH pin PD00?
- Summary: GigaDevice GD32F350 Innovation Design Competition Participants' Shared Content
- Good stuff for beginners - How to find MSP430 program examples on TI's official website