Monitor Initialization Code
C-48
M68VZ328ADS USER’S MANUAL
MOTOROLA
ori.b
#$03,PDSEL
ori.b
#$03,PDDIR
ori.b
#$03,PDPUEN
move.b
#$01,PDDATA
;******************************
;* Chip Select initialization *
;******************************
;**********************
; Flash
;**********************
move.w
#$0800,GRPBASEA
; GROUPA BASE(FLASH), Start add.=0x1000000
move.w
#$0199,CSA
;
;***************************************
; SDRAM 64M-bit, Single Band, Latency 2
;***************************************
move.w
#$0000,GRPBASED
move.w
#$0281,CSD
move.w
#$0040,CSCR
; Chip Sel Control Reg
move.w
#$0000,DRAMC
; Disable DRAM Controller
move.w
#$C03F,SDCTRL
move.w
#$4020,DRAMMC
move.w
#$8000,DRAMC
clr.w
d0
delay
addi.w
#1,d0
cmp.w
#$FFFF,d0
bne
delay
move.w
#$C83F,SDCTRL
; issue precharge comm
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
move.w
#$D03F,SDCTRL
; enable refresh
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
move.w
#$D43F,SDCTRL
; issue mode command
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
;************************************************
;* End of System initialization
*
;************************************************
clr.l
d0
clr.l
d1
clr.l
d2
clr.l
d3
clr.l
d4
clr.l
d5
clr.l
d6
clr.l
d7
;**********************************************
;* LCD Initization Code
*
;**********************************************
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..