Monitor Initialization Code
C-42
M68VZ328ADS USER’S MANUAL
MOTOROLA
move.b
#$00,PMSEL
; Pull Low PB7 to protect the buzzer
ori.b
#$80,PBSEL
ori.b
#$80,PBDIR
ori.b
#$80,PBPUEN
andi.b
#$7F,PBDATA
;******************************
;* 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
*
;************************************************
;**********************************************
;* LCD Initization Code
*
;**********************************************
move.b
#0,PCSEL
move.b
#0,PCPDEN
move.l
#$100403E,LSSA
move.w
#160,LXMAX
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..