Freescale semiconductor, i, Freescale semiconductor, inc – Motorola M68EZ328ADS User Manual
Page 44

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