User`s manual
Monitor Initialization Code
D-51 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA
;
; Initialize I/O to avoid contention
;
;**********************************************************************
; TBD since the contention does not affect ADS operation
;**********************************************************************
;
; Program Interrupt Controller
;
;**********************************************************************
move.b #$40,IVR
move.l #$007FFFFF,IMR ;enable NMI interrupt
endm
; **************************************************
; Soft reset macro - contains instructions
; which must be executed upon a processor reset.
; **************************************************
RESET_SOFT: macro
; ***************************************
; * Setting for MC68681
; ***************************************
.if "\{DEV_IN}"=="MC68681"
MC68681ctur equ (BASE_IN+OFF6)
MC68681ctlr equ (BASE_IN+OFF7)
move.b #IRQ_MASK,MC68681imr ;set value of IMR
move.b #ACR_VAL,MC68681acr ;set value of ACR
; Setting for baudrates = 57600bps
move.b #00,MC68681ctur
move.b #02,MC68681ctlr ; divider=2
.endif
endm
****************************************************************************
* OTHER DEFINITIONS
****************************************************************************
USER_DEFS: macro
; ***************************************
; * Setting for MC68681
; ***************************************
.if "\{DEV_IN}"=="MC68681"
xdef MC68681acr
xdef MC68681imr
SECTION usr_ram
MC68681acr: ds.b 1 ;ACR register
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 SEMICONDUCTOR, INC. 2005