System expansion—both RAM and ROM can be expanded simultaneously

Publisher:中华古风Latest update time:2017-12-22 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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

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.


Reference address:System expansion—both RAM and ROM can be expanded simultaneously

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

Red Magic 7 is online: Snapdragon 8+18G memory is unique
      On January 14, Nubia's gaming phone Red Magic 7 was registered with the Ministry of Industry and Information Technology, and its ID photo was officially announced.   The overall design of the phone continues the previous generation's design language, with the cameras arranged vertically. The biggest change is th
[Mobile phone portable]
Agency: The technological gap between domestic DRAM memory chips and Samsung has been shortened to 5 years
Chips play an important role in the digital economy. Thanks to talent gathering, industrial upgrading, and policy support, my country's semiconductor industry is booming and is narrowing the gap with advanced regions and companies. Recently, South Korean research institute OERI said in a report that it is estimated th
[Mobile phone portable]
Agency: The technological gap between domestic DRAM memory chips and Samsung has been shortened to 5 years
Implementation code of external memory self-boot function of DSP chip TMS320C6712
The booting methods of the TMS320C6000 series and the TMS320C54 series are very different. When developing and applying the TMS320C6000 series DSP, many developers, especially those who are new to it, have some difficulties in implementing the DSP ROM booting and spend a lot of time and energy to explore. The author
[Microcontroller]
Implementation code of external memory self-boot function of DSP chip TMS320C6712
Snapdragon 8+18GB large memory
      In the past two years, due to the heat and power consumption issues of flagship chips, conventional flagships generally dare not pile up heat dissipation and batteries to ensure the performance experience. Instead, it has given more market to gaming phones that were not optimistic before, and more and more gamer
[Mobile phone portable]
Snapdragon 8+18GB large memory
s3c2440 bare metal - memory controller 4 - SDRAM programming implementation
Configuring the Memory Controller - SDRAM Programming Configuration The 2440 memory controller has a total of 13 registers. BANK0--BANK5 only need to set two registers: BWSCON and BANKCONx (x is 0 to 5); when BANK6 and BANK7 are connected to external SDRAM, in addition to BWSCON and BANKCONx (x is 6 and 7)
[Microcontroller]
My understanding of the internal RAM memory of the microcontroller
      The capacity of the internal RAM memory of the MCS-51 series microcontroller is 256B, which is like a 256-story luxury hotel. The function of the hotel is to rent guests, and each guest is like a bit in the binary number, that is, 0 or 1.       The structure of this luxury hotel is as follows: there are 256 floo
[Microcontroller]
Demand for memory and flash memory has soared, and prices are about to rise again
In the past two years, demand for DRAM memory chips and NAND flash memory chips has been weak, causing prices to remain at a low level, and memory and SSD hard drive products have become increasingly cheaper. However, these good times seem to be coming to an end. According to TrendForce's latest research report, it is
[Semiconductor design/manufacturing]
Memory prices are rising, is this an opportunity for domestic manufacturers?
The devilish 2020 is finally over. For semiconductor supply chain practitioners, shortages and price increases are probably their most profound memories of the year. The outbreak of the epidemic, shutdowns, surge in demand for medical equipment, insufficient production capacity of foundries, and continued demand for o
[Mobile phone portable]
Memory prices are rising, is this an opportunity for domestic manufacturers?
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号