The instruction system of 8051 consists of 111 instructions. If classified by the number of bytes, there are 49 single-byte instructions, 46 double-byte instructions and 16 three-byte instructions, with single-byte instructions being the main ones; if classified by the instruction execution time, there are 64 single-cycle instructions, 45 double-cycle instructions and 2 four-cycle instructions, with single-cycle instructions being the main ones.
The instruction system of 8051 has the following characteristics:
(1) High storage efficiency and fast execution speed. It can perform direct address to direct address data transfer and can transfer the content of a parallel I/O port to the internal RAM unit without passing through accumulator A or working register Rn. This can greatly improve the transfer speed and alleviate the bottleneck effect of accumulator A.
(2) Use the indexed addressing mode to access the table in the program memory and transfer the fixed constant or table byte content in the program memory unit to accumulator A. This provides convenience for compiling translation algorithms.
(3) There are multiplication and division instructions in the arithmetic operation instructions.
(4) Some instructions in the instruction system that operate on the I/O port have the function of "read-modify-write". This function means that when executing the instruction to read the latch, the CPU first completes the value of the latch through the buffer BUF2 to enter the internal, modify and change it, and then rewrite it to the latch. This type of instruction includes all logical operations and bit operation instructions.
(5) There is a Boolean processor inside the 8051 microcontroller, which has a rich bit operation instruction for the address space. There are 17 Boolean operation instructions, including Boolean transfer instructions, Boolean state control instructions, Boolean logic operation instructions, and Boolean conditional transfer instructions.
Previous article:How many categories can the 8051 microcontroller instruction system be divided into according to its functions? How many addressing modes does it have?
Next article:MCS-51 MCU instruction table (function, machine code, number of bytes, number of machine cycles)
- Popular Resources
- Popular amplifiers
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- 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)
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
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- Can you help me check if this UL certificate is for an aluminum substrate?
- Programs for calculating pi in various languages
- How to use edge trigger and pre-trigger data viewing on Gowin online logic analyzer
- Last day! Free review of Lingdong MM32 eMniBoard, hurry up and get it!
- TI's active-clamp flyback controller is said to halve the size of power supplies
- EEWORLD University Hall----Power System Analysis (Tsinghua University)
- Asynchronous IO principles and corresponding functions
- What is NFC, a wireless communication technology, and what impact does it have on our lives?
- What embedded operating system are you using?
- 【ufun learning】Analysis of the buzzing routine