JZ2440 bare metal development and analysis: Memory controller 1 memory interface concept

Publisher:PositiveEnergyLatest update time:2021-10-14 Source: eefocusKeywords:jz2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

JZ2440 internal structure:

The CPU writes values ​​to external registers, causing the external registers to emit different waveforms to control corresponding devices. From this, we will propose how different registers are selected inside the chip, so a memory controller is introduced inside the chip.

The CPU sends address information to the memory controller, and the memory controller selects different modules based on addr.


Memory devices

The memory interface (NOR FLASH, DM9000, SDRAM) is different. The CPU directly sends addresses and data to memory devices. There are many memory devices outside JZ2440. How to avoid interference? Each memory device has a chip select control terminal CS (chip select) to control which memory device is turned on. The signal of the chip select control terminal CS is managed by the memory controller. The CPU sends address information to the memory controller, and the memory controller sends a chip select signal according to the address.

insert image description here
insert image description here

If the address sent by the CPU is between 0x30000000 and 0x38000000, nGCS6 sends a low level, which selects each chip select signal of the SDRAM.

insert image description here
insert image description here

GPIO registers, UART registers, I2C registers, NAND control registers, memory devices (NOR FLASH; DM9000; SDRAM), etc. belong to the unified addressing of the CPU, while NAND FLASH is controlled by the NAND register and does not participate in the unified addressing. The NAND register controls the sending of the CS signal to the NAND FLASH.


Each chip select signal can select an address range of 2^27, requiring at least 27 address lines.


The CPU sends a 32-bit address to the memory controller, which: ① issues a chip select signal based on the address; ② extracts 27 bits to control peripherals


Keywords:jz2440 Reference address:JZ2440 bare metal development and analysis: Memory controller 1 memory interface concept

Previous article:JZ2440 bare metal development and analysis: serial port programming 5 serial port implementation printf
Next article:JZ2440 bare metal development and analysis: Connection of different bit width devices of memory controller 2

Recommended ReadingLatest update time:2024-11-15 07:28

Building the JZ2440 development environment
According to the JZ2440 Development Board User Manual V2V1 Must-Read Before Use, build the development environment.  1. Install VMware Workstation  2. Open Ubuntu 9.10 made by Baiwen.com 3. Install MobaXterm  MobaXterm is a three-in-one tool that combines remote login, serial port tool, and remote transmission.  In
[Microcontroller]
[JZ2440] Configure and compile U-Boot
1. Acquisition of relevant information   Personally, when I was learning the mini2440 development board, I followed teacher Wei Dongshan’s videos. The videos and information can be obtained from the Baiwen.com forum.   Baiwen.com forum link: http://www.100ask.net/bbs/forum.php   After downloading the information
[Microcontroller]
Latest Microcontroller Articles
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号