What is addressing mode? What are the addressing modes of MCS-51 microcontroller and how do they operate? What are the addressing spaces and ranges of various addressing modes?
Answer: MCS-51 microcontroller has 7 addressing modes: immediate addressing, register addressing, direct addressing, register indirect addressing, indexed addressing, bit addressing and instruction addressing. It can be divided into two categories: operand addressing and instruction addressing.
The addressing space and range of immediate addressing are: in the program storage space, read in MOV A with the instruction, #46H
The addressing space and range of direct addressing are: on-chip RAM, lower 128 bytes and SFR MOV A, 46H
The addressing space and range of register addressing are: use R0~R7, A, B, C, DPTR MOV A, R2
The addressing space and range of register indirect addressing are: On-chip RAM: use @Ri, SP; range is 256B, excluding SFR, Off-chip RAM: use @Ri, @DPTR; range is 64KB MOV A, @R0 MOVX A, @DPTR
The addressing space and range of indexed addressing are: using @A+PC, @A+DPTR; in program memory;
The ranges are within 256B after PC and the full 64KB space MOVC A, @A+DPTR
The addressing space and range of bit addressing are: using bit address; in bit addressing space; RAM 20H ~ 2FH and SFR SETB 36H
The addressing space and range of the instruction absolute addressing are: the operand is the target address; in the program storage space;
The range is 2KB or 64KB full space AJMP FIRST LJMP SECON
The addressing space and range of instruction relative addressing are: operand is relative address; in program storage space; range -128 to 127 SJMP LOOP
Previous article:Design of 16×16 LED Chinese Character Scrolling Display Screen Based on AT89C51 Single Chip Microcomputer
Next article:A brief description of the assembly instruction format of the MCS-51 microcontroller
Recommended ReadingLatest update time:2024-11-16 22:32
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- LTE Cat 1 STM32 4G EC200S
- Single-ended to balanced conversion, the actual situation is so different from the simulation, why?
- [NXP Rapid IoT Review] + Preliminary Study on Power Consumption of Some Devices
- Embedded Linux Learning Route Planning
- Today is the summer solstice. I heard that those who went out at noon had no shadow.
- Panta STM32H750 Part 6 (Using timer synchronization to generate a specified number of PWM pulses)
- The TI Cup is coming soon. Which editions have you participated in?
- The topology of the switching power supply in the electric competition must be solved according to the problem-solving ideas
- I encountered a problem. Before the program was burned, the voltage obtained by AIO4 was half of the battery voltage. After the program was burned...
- Qorvo breaks power barrier with 10W Ka-band GaN amplifier