In the following system, 8051 expands the off-chip program memory and data memory at the same time. The chip select signals of the two memories are both grounded, that is, they are valid at the same time. In other words, there is no need to select the two memories.
51 Expand RAM and ROM at the same time
Let's analyze this problem. Although there are two memories in the system, the input and input enable signals of the two memories are different. The program memory has no input enable, and its output enable is controlled by the 8051 pin PSEN. Only when the chip select signal and output enable signal of the program memory are valid at the same time, the program memory bus is connected to the CPU bus. Otherwise, all the bus pins of the program memory are in high impedance state, which is equivalent to disconnecting the memory from the CPU bus.
The input enable terminal of the data memory is WR, which is controlled by P3.6 of 8051. The output enable signal is RD, which is controlled by P3.7 of 8051. The condition for the data memory to be connected to 8051 is that the chip select signal is valid and at least one of the input and output enable signals is valid. It can be seen that in this system, the condition for making the two memories valid at the same time is that PSEN is valid and WR is valid or PSEN is valid and RD is valid.
Both of these situations are impossible, because only one of the three signals PSEN, RD, and WR of the CPU can be valid at any time. Therefore, although the chip selects of the two memories in the system are grounded, they will never work at the same time, which means that there will be no confusion in memory access. It is precisely because the input and output enable signals of the 8051 off-chip data memory and program memory are controlled by different pins of the 8051 that the 8051 off-chip program memory space and data memory space are independent, each of which is 64K. In this system, the 8K external data memory uses the 8051's 64K off-chip data storage logical address, and each physical unit has 8 logical addresses. Similarly, the 8K external program memory occupies the 8051's 64K external program memory logical address, and each physical unit also has 8 logical addresses.
Previous article:System expansion—MCU ROM expansion
Next article:8051 MCU instruction symbol convention and instruction format
Recommended ReadingLatest update time:2024-11-16 13:03
- Popular Resources
- Popular amplifiers
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
- I want to use an I/O port of the STM32F1 chip to connect an infrared sensor at a distance of 3 meters. I am worried that the transmission distance is too long. How can I achieve this?
- Op amp transfer function solves the problem
- [Repost] This article tells you the difference between Ethernet and broadband
- Passive buzzer driver
- [Reference Solution] Nuvoton Bluetooth Low Energy Microcontroller M031BT for Personal Electronic Massager
- The CC3200 LaunchPad crashed before I even got it warm?
- TMS320F28377S Study Notes 3 Building a fully portable CCS9.3 project
- Recruiting part-time lecturers in motor control related majors
- It is recommended to merge the ATMEL and PIC microcontroller sections
- TI TMS320C6678 Evaluation Module