VI SDRAM CONTROLLER BLOCK: SDRAM INTERFACE
S1C33L03 FUNCTION PART
EPSON
B-VI-2-13
A-1
B-VI
SDRAM
Power-up and Initialization
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 general-purpose input and placed in the high-
impedance state. If the power to the SDRAM is designed to be turned on simultaneously with the CPU, the
SDCKE (P20), HDQM (P32), and LDQM (P15) pins left floating may adversely affect the SDRAM, depending
on its specifications. (For example, unnecessary data may be output.) In such a case, these pins must be pulled
high, external to the chip. If the CPU and SDRAM are powered from separate power supplies and the power to
the SDRAM is turned on after writing "1" to SDRENA, the problem mentioned above does not occur, because
the signals for SDRAM use are being output.
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 power-on, and is set to "0" by executing the MRS (Mode Register Set) command.
Because the MRS command uses an external address bus, no other external devices can be accessed until its
output is finished. The SDRAM controller asserts the #WAIT signal provided for the user logic and keeps it
active until the MRS command output is finished after writing "1" to SDRINI, thus disabling external access
during that time. The CPU also ignores the no-wait access specified by SWAITE (D0/0x4812E) = "0". Before
initiating external access, however, be sure to check that SDRMRS is set to "0".
In addition to being reset at power-on, SDRMRS is reset to "1" by writing "0" to SDRENA or writing "1" to
SDRINI.
This completes the SDRAM initialization sequence, allowing access to the SDRAM.
Summary of Contents for CMOS 32-Bit Single Chip Microcomputer S1C33L03
Page 4: ......
Page 14: ......
Page 15: ...S1C33L03 PRODUCT PART ...
Page 16: ......
Page 147: ...S1C33L03 FUNCTION PART ...
Page 148: ......
Page 149: ...S1C33L03 FUNCTION PART I OUTLINE ...
Page 150: ......
Page 152: ...I OUTLINE INTRODUCTION B I 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 162: ...I OUTLINE LIST OF PINS B I 3 8 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 163: ...S1C33L03 FUNCTION PART II CORE BLOCK ...
Page 164: ......
Page 166: ...II CORE BLOCK INTRODUCTION B II 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 172: ...II CORE BLOCK CPU AND OPERATING MODE B II 2 6 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 176: ...II CORE BLOCK INITIAL RESET B II 3 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 224: ...II CORE BLOCK BCU Bus Control Unit B II 4 48 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 262: ...II CORE BLOCK DBG Debug Unit B II 7 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 263: ...S1C33L03 FUNCTION PART III PERIPHERAL BLOCK ...
Page 264: ......
Page 266: ...III PERIPHERAL BLOCK INTRODUCTION B III 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 322: ...III PERIPHERAL BLOCK WATCHDOG TIMER B III 5 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 415: ...S1C33L03 FUNCTION PART IV ANALOG BLOCK ...
Page 416: ......
Page 418: ...IV ANALOG BLOCK INTRODUCTION B IV 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 434: ...IV ANALOG BLOCK A D CONVERTER B IV 2 16 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 435: ...S1C33L03 FUNCTION PART V DMA BLOCK ...
Page 436: ......
Page 438: ...V DMA BLOCK INTRODUCTION B V 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 492: ...V DMA BLOCK IDMA Intelligent DMA B V 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 493: ...S1C33L03 FUNCTION PART VI SDRAM CONTROLLER BLOCK ...
Page 494: ......
Page 531: ...S1C33L03 FUNCTION PART VII LCD CONTROLLER BLOCK ...
Page 532: ......
Page 579: ...S1C33L03 FUNCTION PART Appendix I O MAP ...
Page 580: ......