VI SDRAM CONTROLLER BLOCK: SDRAM INTERFACE
B-VI-2-34
EPSON
S1C33L03 FUNCTION PART
;;; SDRAM auto refresh count high-order register
xld.w %r0,0x39FFC7 ;
xld.w %r1,0x00 ;
ld.b [%r0],%r1 ;
;///////////////////////////////////////////
;;; SDRAM self refresh count register
;;; xld.w %r0,0x39FFC8 ;
;;; xld.w %r1,0x0f ;
;;; ld.b [%r0],%r1 ;
;///////////////////////////////////////////
;;; SDRAM advanced control register
xld.w %r0,0x39FFC9 ;
xld.w %r1,0x20 ; data width -> 16bit, bank interleave -> on
ld.b [%r0],%r1 ;
;;;*****************************************************************
;;;***************** SDRAM controller power up *********************
;;;*****************************************************************
xld.w %r0,0x39FFC1 ; SDRAM control register
xld.w %r1,0x39FFCA ; SDRAM status register
xld.w %r2,0x0
xld.w %r3,0x10
;;; enable SDRAM signal
bset [%r0],0x7 ; set SDRENA[D7/0x39FFC1]
SDRAM_SIGNAL_EN:
add %r2,0x1 ; SDRAM signal enable waiting loop
cmp %r2,%r3
jrne SDRAM_SIGNAL_EN
;;; SDRAM power up
bset [%r0],0x6 ; set SDRINI[D6/0x39FFC1]
POWER_UP:
btst [%r1],0x7 ; SDRAM power-up waiting loop
jrne POWER_UP
;;;------------------------ end of SDRAM access configuration ---------------------------
ret
The SDRAM can be accessed after executing the above program.
Example of initialization routine for 4M words
×
16 bits
×
4 banks (32MB) of SDRAM
When using a 32MB SDRAM, modify two parts of the above program example indicated with (note 1) and (note
2) as follows:
(note 1)
;///////////////////////////////////////////
;;; SDRAM area configuration register
xld.w %r0,0x39FFC0 ;
xld.w %r1,0xc8 ; set area13&14 to SDRAM area, #SDCE0(#CE13) available
ld.b [%r0],%r1 ; (32MB area available)
;///////////////////////////////////////////
(note 2)
;///////////////////////////////////////////
;;; SDRAM address configuration register
xld.w %r0,0x39FFC2 ;
xld.w %r1,0x2a ; col 512 / row 8K / bank 4 -> 256Mb[32MB] available
ld.b [%r0],%r1 ;
;///////////////////////////////////////////
Содержание CMOS 32-Bit Single Chip Microcomputer S1C33L03
Страница 4: ......
Страница 14: ......
Страница 15: ...S1C33L03 PRODUCT PART ...
Страница 16: ......
Страница 147: ...S1C33L03 FUNCTION PART ...
Страница 148: ......
Страница 149: ...S1C33L03 FUNCTION PART I OUTLINE ...
Страница 150: ......
Страница 152: ...I OUTLINE INTRODUCTION B I 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 162: ...I OUTLINE LIST OF PINS B I 3 8 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 163: ...S1C33L03 FUNCTION PART II CORE BLOCK ...
Страница 164: ......
Страница 166: ...II CORE BLOCK INTRODUCTION B II 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 172: ...II CORE BLOCK CPU AND OPERATING MODE B II 2 6 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 176: ...II CORE BLOCK INITIAL RESET B II 3 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 224: ...II CORE BLOCK BCU Bus Control Unit B II 4 48 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 250: ...II CORE BLOCK ITC Interrupt Controller B II 5 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 262: ...II CORE BLOCK DBG Debug Unit B II 7 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 263: ...S1C33L03 FUNCTION PART III PERIPHERAL BLOCK ...
Страница 264: ......
Страница 266: ...III PERIPHERAL BLOCK INTRODUCTION B III 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 292: ...III PERIPHERAL BLOCK 8 BIT PROGRAMMABLE TIMERS B III 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 318: ...III PERIPHERAL BLOCK 16 BIT PROGRAMMABLE TIMERS B III 4 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 322: ...III PERIPHERAL BLOCK WATCHDOG TIMER B III 5 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 414: ...III PERIPHERAL BLOCK INPUT OUTPUT PORTS B III 9 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 415: ...S1C33L03 FUNCTION PART IV ANALOG BLOCK ...
Страница 416: ......
Страница 418: ...IV ANALOG BLOCK INTRODUCTION B IV 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 434: ...IV ANALOG BLOCK A D CONVERTER B IV 2 16 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 435: ...S1C33L03 FUNCTION PART V DMA BLOCK ...
Страница 436: ......
Страница 438: ...V DMA BLOCK INTRODUCTION B V 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 492: ...V DMA BLOCK IDMA Intelligent DMA B V 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 493: ...S1C33L03 FUNCTION PART VI SDRAM CONTROLLER BLOCK ...
Страница 494: ......
Страница 496: ...VI SDRAM CONTROLLER BLOCK INTRODUCTION B VI 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 531: ...S1C33L03 FUNCTION PART VII LCD CONTROLLER BLOCK ...
Страница 532: ......
Страница 534: ...VII LCD CONTROLLER BLOCK INTRODUCTION B VII 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 579: ...S1C33L03 FUNCTION PART Appendix I O MAP ...
Страница 580: ......