The timing of the programmable access cycle of the S3C2440 memory controller is:
The time parameters (Tacc, Tacs, Tcoh, etc.) in the above figure are all programmable.
Let's take a look at the timing of NOR Flash:
All we need to do is set the timing of the S3C2440 Nor Flash controller (BANK0 of the memory controller) to meet the timing of the Nor Flash chip.
The reference range of each parameter can be obtained through the AC CHARACTERISTICS of Nor Flash.
Combining the two pictures of the Nor Flash chip, we can get the following information:
After sending the address data (Addresses), you need to wait for Taa (required to be greater than or equal to 70ns) time for the address data to be valid;
After sending the chip select signal (CE#), you need to wait for Tce (required to be greater than or equal to 70ns) time before the chip select signal is valid;
After sending the read signal (OE#), you need to wait for the Toe time (required to be greater than or equal to 30ns) for the read signal to be valid;
For simplicity, we send out the address data (Addresses), chip select signal (CE#), and read signal (OE#) at the same time, and then let them all wait for 70ns (wait for the signal to be valid). Corresponding to the read timing diagram of the Nor Flash controller of S3C2440, the address signal A[24:0], chip select signal nGCS, and read signal nOE need to be sent out at the same time, and keep Tacc greater than or equal to 70ns.
According to the reference manual of S3C2240, Nor Flash is connected to BANKCON0, so we only need to set BANKCON0.
The default value of Tacc is 14 clocks. When the system is powered on, a 12MHz crystal oscillator is used. HCLK=12MHz, Tacc=(1000/12*14)≈1166ns. This value is very large and can almost meet all Nor Flash requirements.
After startup, set HCLK to 100MHz, T=1000/100=10ns, Tacc needs to be greater than or equal to 70ns, so set Tacc equal to 101, 8 clocks.
#include "s3c2440_soc.h"
void bank0_tacc_set(int val)
{
BANKCON0 = val << 8;
}
Previous article:Code relocation (S3C2440)
Next article:Memory Controller and SDRAM (S3C2440)
Recommended ReadingLatest update time:2024-11-16 14:28
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
- quartusii official tutorial
- [Repost] Learn these eight circuit design skills and your professional quality will be greatly improved
- [STM32WB55 Review] +ST's Attack
- MSP430 ADC acquisition filter
- Soil moisture measurement circuit diagram
- I tested the TLC2272 chip and found that the rail-to-rail output is really good.
- [CC1352P Review] BLE Program Framework
- EEWORLD University ---- Robotics
- Do you engineers use Diodes (US-Taiwan) discrete components?
- EEWORLD University - In-depth study of light load high efficiency and low noise power supply reference design for wearable devices and the Internet of Things (TIDA-01566)