D.2 initialization code of sds monitor (monitor.h), Freescale semiconductor, i, Freescale semiconductor, inc – Motorola M68EZ328ADS User Manual

Page 45

Advertising
background image

Monitor Initialization Code

D-44

M68EZ328ADS v2.0 USER’S MANUAL

MOTOROLA

move.l

#$4000,LSSA

move.w

#160,LXMAX

move.w

#239,LYMAX

move.b

#10,LVPW

move.b

#$08,LPICF

move.b

#$01,LPOLCF

move.b

#$00,LACDRC

move.b

#$02,LPXCD

move.b

#$14,LRRA

move.b

#$00,LPOSR

move.b

#$00,LCKCON

; disable LCDC

move.b

#$80,LCKCON

; enable LCDC, 0ws, 16-bit

;**********************************************************************

;

Interrupt controller

;**********************************************************************

move.b #$40,IVR

move.l #$007fffff,IMR; mask all interrupts except *EMUIRQ,

; since it is used for the abort

button

; on this board

.extern__start

JMP __start

; jump to MW startup code

D.2 INITIALIZATION CODE OF SDS MONITOR (MONITOR.H)

.option list="off"

****************************************************************************

*

EZ328EMU.H - Configuration file for Motorola's M68EZ328ADS

****************************************************************************

****************************************************************************

*

CPU OPTIONS

****************************************************************************

opt

p=68000

M328BASE

equ $FFFFF000

; SIM28 System Configuration Registers

SCR

equ

(M328BASE+$000)

; Chip Select Registers

GRPBASEA

equ

(M328BASE+$100)

GRPBASEB

equ

(M328BASE+$102)

GRPBASEC

equ

(M328BASE+$104)

GRPBASED

equ

(M328BASE+$106)

CSA

equ

(M328BASE+$110)

CSB

equ

(M328BASE+$112)

CSC

equ

(M328BASE+$114)

CSD

equ

(M328BASE+$116)

DRAMCFG

equ

(M328BASE+$C00)

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

Advertising