Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual page 44

Application development system v2.0
Table of Contents

Advertisement

Monitor Initialization Code
.global ___reset
___reset:
rom_start:
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
move.b
#$9,PGSEL
move.w
#$2410,PLLCR
move.l
#MON_STACKTOP,A7
move.w
#$2700,sr
move.b
#$1C,SCR
move.w
#0,RTCWD
move.b
#$03,PFSEL
move.b
#$00,PBSEL
move.b
#$00,PESEL
move.w
#$08,ICEMCR
move.w
#$07,ICEMSR
;*****************************
; Init Code for 512Kx16 Flash
;*****************************
move.w
#$0400,GRPBASEA
move.w
#$0189,CSA
;**********************************
; Init Code 4Mx16 (12/10) EDO DRAM
;**********************************
move.w
#$8F00,DRAMCFG
move.w
#$9667,DRAMCTL
move.w
#$0000,GRPBASED
move.w
#$069F,CSD
;**********************************
; Init Code for EMUCS
;**********************************
move.w
#$30,EMUCS
clr.l
clr.l
clr.l
clr.l
clr.l
clr.l
clr.l
clr.l
;**********************************************************************
;
;
LCD Temp init for screen protection
;
;**********************************************************************
move.b
#0,PCSEL
move.b
#0,PCPDEN
D-43
Freescale Semiconductor, Inc.
; config PG0/DTACK to GPI/O,input
; sysclk = VCO/1, enable clko
; Install stack pointer
; mask off all interrupts
; enable bus error timeout bit
; disable watch dog
; select A23-A20, CLKO, CSA1
; Config port B for chip select A,B,C and D
; select *DWE
; disable ICEM vector hardmap
; clear level 7 interrupt
; GROUPA BASE(FLASH), Start address=0x800000
; 2MB each, 0ws, FLASH,
; DRAM Memory Config Register
; Col Address = PA1-PA10; Row Address = PA11-PA22
; DRAM Control Register, 0ws
; GROUPA BASE(DRAM),
;Start address=0x000000-0x7FFFFF
; enable DRAM cs
; 3ws
d0
d1
d2
d3
d4
d5
d6
d7
M68EZ328ADS v2.0 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents