EasyManuals Logo
Home>Epson>Computer Hardware>CMOS 32-Bit Single Chip Microcomputer S1C33L03

Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 User Manual

Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03
631 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #529 background imageLoading...
Page #529 background image
VI SDRAM CONTROLLER BLOCK: SDRAM INTERFACE
S1C33L03 FUNCTION PART EPSON B-VI-2-33
A-1
B-VI
SDRAM
Examples of SDRAM Controller Initialization Program
The following shows examples of the initialization program for using SDRAM.
Example of initialization routine for 2M words × 16 bits × 4 banks (16MB) of SDRAM
INIT_SDRAM_16MB:
;;;----------------------- SDRAM access configuration -----------------------------------
;;;*****************************************************************
;;;***************** C33 macro setting part ************************
;;;*****************************************************************
;;; set CEFUNC to use #CE13/14 (upper area) ... 1 (See "SDRAM Controller Configuration".)
xld.w %r0,0x48131
bset [%r0],0x1
;;; set area 6,13,14 to internal access ... 2, 5, B-1
xld.w %r0,0x48132
xld.w %r1,0x2200
ld.h [%r0], %r1
;;; area 6 -> output disable 0.5, wait 2 ... 3
xld.w %r0,0x4812A
xld.w %r1,0x0237
ld.h [%r0],%r1
;;; available #WAIT ... 4
xld.w %r0,0x04812E
bset [%r0],0x0
;;; area 13,14 -> 16bit device, output disable 2.5, wait 0 ... B-2, B-3, B-4
xld.w %r0,0x048122
xld.w %r1,0x30
ld.h [%r0],%r1
;;;*****************************************************************
;;;************** SDRAM Controller REG setting part ****************
;;;*****************************************************************
;;;-------------------------------------------------
;;;area13 0x2000000 - 0x2FFFFFF(16MB)
;;;area14 0x3000000 - 0x3FFFFFF(16MB)
;;;-------------------------------------------------
;///////////////////////////////////////////
;;; SDRAM area configuration register ... (note 1)
xld.w %r0,0x39FFC0 ;
xld.w %r1,0x88 ; set area13 to SDRAM area, #SDCE0(#CE13) available
ld.b [%r0],%r1 ; (16MB area available)
;///////////////////////////////////////////
;;; SDRAM control register
;;; xld.w %r0,0x39FFC1 ;
;;; xld.w %r1,0xff ; SDRAM self-refresh -> disable, initial sequence ->PRE REF MRS
;;; ld.b %r0],%r1 ; Little endian
;///////////////////////////////////////////
;;; SDRAM address configuration register ... (note 2)
xld.w %r0,0x39FFC2 ;
xld.w %r1,0x26 ; col 512 / row 4K / bank 4 -> 128Mb[16MB] available
ld.b [%r0],%r1 ;
;///////////////////////////////////////////
;;; SDRAM mode set-up register
xld.w %r0,0x39FFC3 ;
xld.w %r1,0x40 ; 2 CAS Latency ,burst length = 1
ld.b [%r0],%r1 ;
;///////////////////////////////////////////
;;; SDRAM timing set-up register 1
xld.w %r0,0x39FFC4 ;
xld.w %r1,0x4A ; Tras=2,Trp=1,Trc=2 ... Recommended setting to operate with
ld.b [%r0],%r1 ; 25 MHz clock in x1 speed mode
;///////////////////////////////////////////
;;; SDRAM timing set-up register 2
xld.w %r0,0x39FFC5 ;
xld.w %r1,0x48 ; Trcd=1,Trsc=2,Trrd=1
ld.b [%r0],%r1 ;
;///////////////////////////////////////////
;;; SDRAM auto refresh count low-order register
;;; xld.w %r0,0x39FFC6 ;
;;; xld.w %r1,0xff ;
;;; ld.b [%r0],%r1 ;
;///////////////////////////////////////////

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 and is the answer not in the manual?

Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Specifications

General IconGeneral
BrandEpson
ModelCMOS 32-Bit Single Chip Microcomputer S1C33L03
CategoryComputer Hardware
LanguageEnglish

Related product manuals