Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual page 52

Application development system v2.0
Table of Contents

Advertisement

Monitor Initialization Code
;
; Initialize I/O to avoid contention
;
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
;**********************************************************************
;
TBD since the contention does not affect ADS operation
;**********************************************************************
;
; Program Interrupt Controller
;
;**********************************************************************
move.b #$40,IVR
move.l #$007FFFFF,IMR
endm
; **************************************************
;
Soft reset macro - contains instructions
;
which must be executed upon a processor reset.
; **************************************************
RESET_SOFT:
MC68681ctur
MC68681ctlr
endm
****************************************************************************
*
OTHER DEFINITIONS
****************************************************************************
USER_DEFS:
D-51
Freescale Semiconductor, Inc.
macro
; ***************************************
; * Setting for MC68681
; ***************************************
.if "\{DEV_IN}"=="MC68681"
equ
(BASE_IN+OFF6)
equ
(BASE_IN+OFF7)
move.b #IRQ_MASK,MC68681imr
move.b #ACR_VAL,MC68681acr
; Setting for baudrates = 57600bps
move.b #00,MC68681ctur
move.b #02,MC68681ctlr ; divider=2
.endif
macro
; ***************************************
; * Setting for MC68681
; ***************************************
.if "\{DEV_IN}"=="MC68681"
xdef
MC68681acr
xdef
MC68681imr
SECTION
usr_ram
MC68681acr: ds.b 1 ;ACR register
M68EZ328ADS v2.0 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
;enable NMI interrupt
;set value of IMR
;set value of ACR
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents