The 8051 chip has a CPU, i.e. a controller, and an arithmetic unit.
It also includes 128 bytes of on-chip data memory RAM, which is used to store readable and writable data, such as intermediate calculation results, final results, and data to be displayed.
The on-chip program memory is 4KB, which is used to store tables, some raw data and tables.
Four 8-bit parallel input and output interfaces P0-P3, each port can be used as input or output.
Two timers, each timer counter can be set to count mode, used to count external events, or set to timing mode, and can realize computer control according to the counting or timing results.
Interrupt control system with five interrupt sources.
A full-duplex UART serial IO port can realize serial communication between MCU and other microcomputers.
The oscillator and clock generation circuit are built-in, but the quartz crystal and fine-tuning capacitor need to be connected externally, and the maximum allowable oscillation frequency is 24 MHz.
The above parts are connected through the internal system, and the system bus includes the data bus, the low 8-bit address bus, the high 8-bit address bus and the control bus.
The following are the components of 8051:
The arithmetic unit consists of several parts, such as the arithmetic logic unit ALU, the accumulator and the register. The function of the ALU is to perform arithmetic or logical operations on the data transmitted to the microprocessor. The ALU has two main input sources, one from the accumulator and the other from the data register.
ALU can add or subtract the two input data, and can also perform certain logical operations. The different operations performed by ALU are determined by the information on different control lines.
Usually, the ALU receives two groups of 8-bit binary numbers from register 1 and register 2. Because some operations are to be performed on these data, the two input data are called operands. The ALU can perform operations such as addition, subtraction, AND, OR, and size comparison on the two operands, and finally store the result in the accumulator.
For example, when adding two numbers 12 and 31, the operand 12 is placed in one register and 31 is placed in another register before the addition. The control line that performs the addition operation sends an addition signal, and the ALU adds the two numbers and stores the result 43 in the accumulator, replacing the number previously stored in the accumulator. In short, the arithmetic unit has two main functions:
1. Perform various arithmetic operations;
2. Perform various logical operations and perform logical tests, such as zero value testing or comparison of two values. Usually, an arithmetic operation produces an operation result, while a logical operation produces a judgment.
Previous article:Talk about the RETI instruction of 51 single chip microcomputer
Next article:MCU system resources—instruction register, instruction decoder
- 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)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Start with LoRa and learn more about the Internet of Things
- Ask about the udealy function of Liunx
- How to modify the AT32F4xx SRAM space size
- About software testing of commercial appliances
- EEWORLD University ---- Operating System Harbin Institute of Technology
- Calculation of stack usage in C2000 DSP
- [IoT indoor environment monitor based on ESP32-S2-Kaluga-1] Development environment experience-Arduino
- Analysis of chip failure steps and failure problems
- How to pull up the 5V power supply inverter with OD output to 24V output
- [RISC-V MCU CH32V103 Evaluation] Using USART2