Freescale Semiconductor, Inc.
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
Monitor Initialization Code Freescale Semiconductor, Inc.
.global ___reset
___reset: rom_start:
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
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 | |
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 = |
move.w | #$9667,DRAMCTL | ; DRAM Control Register, 0ws |
move.w | #$0000,GRPBASED | ; GROUPA BASE(DRAM), |
|
| ;Start |
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
For More Information On This Product,
Go to: www.freescale.com