
VI SDRAM CONTROLLER BLOCK: SDRAM INTERFACE
The following describes the processing sequence for powering up the SDRAM.
1.Setting the BCU and SDRAM access conditions
Set the BCU and the SDRAM controller as explained in "SDRAM Configuration".
2.SDRENA (D7)/SDRAM control register (0x39FFC1) = "1"
This causes the pins shown in Table 2.1 to be switched for SDRAM signal use. (The contents set in the port function select and port function extension registers do not affect this switching.) Also, the BCLK pin starts outputting the SDRAM clock.
Until this stage, the SDRAM pins shared with I/O ports are set for
3.Wait for 100 µs or more after turning on the power to the SDRAM
After the power to the SDRAM is turned on, the SDRAM must be held in an NOP state (#SDCEx = high) for at least 100 µs. Because the duration of this period varies with each SDRAM, consult the specifications for your
SDRAM.
4.SDRINI (D6)/SDRAM control register (0x39FFC1) = "1"
This causes the SDRAM controller to output the commands in the order specified by the SDRIS (D4)/SDRAM control register (0x39FFC1) in order to initialize the SDRAM. (Data are not initialized.)
SDRIS = "0": 1. Precharge → | 2. | Refresh → 3. Mode Register Set |
SDRIS = "1": 1. Precharge → | 2. | Mode Register Set → 3. Refresh |
Writing "1" to SDRINI has no effect when SDRENA = "0".
5.Checking SDRMRS (D7)/SDRAM status register (0x39FFCA)
SDRMRS is reset to "1" after
In addition to being reset at
SDRINI.
This completes the SDRAM initialization sequence, allowing access to the SDRAM.
SDRAM
S1C33L03 FUNCTION PART | EPSON |