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

Page 49

Advertising
background image

Monitor Initialization Code

D-48

M68EZ328ADS v2.0 USER’S MANUAL

MOTOROLA

* Seting for MC68681 on EZ-ADS

*

Supported baudrate: 19200

*

9600

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

;#define DEV_IN

MC68681

;#define DEV_OUT

MC68681

;#define PNAME_IN

A

;#define PNAME_OUT A

;BASE_IN:

equ

$fffd0001

; base address of input device

;BASE_OUT:

equ

$fffd0001

; base address of output device

;BAUD_IN:

equ

19200

; baud rates (bits/sec)

;BAUD_OUT:

equ

19200

; baud rates (bits/sec)

;ACR_VAL:

equ

$80

; choose baud set 2 (bit#7=1)

;IRQ_MASK:

equ

$00

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

* Seting for MC68681 on EZ-ADS with BaudRate=57600bps

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

;#define DEV_IN

MC68681

;#define DEV_OUT

MC68681

;#define PNAME_IN

A

;#define PNAME_OUT A

;BASE_IN:

equ

$fffd0001

; base address of input device

;BASE_OUT:

equ

$fffd0001

; base address of output device

;BAUD_IN:

equ

0

;BAUD_OUT:

equ

0

;ACR_VAL:

equ

$60

;IRQ_MASK:

equ

$00

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

*

INTERRUPT BEHAVIOR OPTIONS

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

#define STOP_LEVEL

7

#define VECT_STOP

$47

; ABORT interrupt

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

; If your board hardware requires you to clear the

; "read" interrupt, then you must include the necessary

; code inside the INT_RCLEAR macro below.

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

INT_RCLEAR:

macro

endm

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

;

"stop" interrupt

;

We will only stop the target if the ABORT switch is pressed. We

;

will not stop for HOST_NMI or EXT_NMI interrupts.

;

The Non-Maskable Interrupt status is in the NMI_STATUS register

;

which is in even-byte locations at NMI_STATUS. Bit #0 of the

; first byte at NMI_STATUS indicates that the ABORT switch was pressed.

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

INT_STOP:

macro

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