Motorola M68EZ328ADS user manual Acrval, Irqmask, Interrupt Behavior Options, Stoplevel, Vectstop

Page 49

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

*Seting for MC68681 on EZ-ADS

*Supported baudrate: 19200

*9600

****************************************ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

;#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

D-48M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 49
Contents Preliminary Freescale Semiconductor, IncTable of Contents Comparison of M68EZ328ADS Version 1.x Appendix aResistive Touch Panel Operation Programming On-board Flash MemoryIii M68EZ328ADS v2.0 USER’S Manual List of Illustrations List of Tables Section General Information FeaturesIntroduction Technical Support 1.4.1 M68EZ328ADS Related DocumentationDebugger Installation Procedure Section Quick Installation GuideOverview Equipments RequiredM68EZ328ADS v2.0 Key Component Layout DIP Switch Options for SDS monitor Default DIP Switch Options for Metrowerks monitorInstalling software debugger Connecting M68EZ328ADS v2.0 to PCMetrowerks Codewarrior Select ADS68EZ328 Stationery for new project Change the connection settings in the Debug Settings Windows Debug Pop-Up Window of SDS Connection Setting inside Debug Pop-up Window of SDS Section Hardware Description and Board Operation M68EZ328ADS v2.0 Functional Block DiagramDIP Switches Control SwitchesDIP Switch pack S1 Setting DIP Switch pack S2 SettingOperation Mode Setting LED IndicatorsFunction of LED Indicators Operation ModesMemory M68VZ328ADS v2.0 Default Memory MapMemory Map Flash MemoryInterface of EMU ROM EMU ROMMC68EZ328 CSD1 EDO DramMC68VZ328 Uart and IrdaLCD Interface LCD and Touch Panel InterfaceTouch Panel Interface Signal Assignment for Touch Panel ControllerSingle Tone Generator Expansion ConnectorsLogic Analyzer Interface Pin Assignments of P4 Power SupplyGND VEE Appendix a Comparison of M68EZ328ADS Version 1.X Table A-2. Software Change for using M68EZ328ADSHardware SoftwareFreescale Semiconductor, Inc General Concepts of Resistive Panels Appendix B Resistive Touch Panel OperationDetermination of X,Y Position Elements for Programming the Flash Appendix C Programming ON-BOARD Flash MemoryOffset Address of ROM Image MethodExecuting Program Command Sequence Error Program EnablePolling NOW EchoVerifiy ProgramNOV Echo Finish TxdrdyError Echo BootstrapEND Figure C-2. Flash Program Algorithm Freescale Semiconductor, Inc Appendix D Monitor Initialization Code Initialization Code of Metrowerks Monitor RESET.SMonitor Initialization Code Freescale Semiconductor, Inc Lxmax Reset OptionsLymax Lcxp#MONSTACKTOP,A7 #$9,PGSEL#0,RTCWD #$08,ICEMCRInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Device Options Addressing OptionsBasein BaseoutIrqmask AcrvalInterrupt Behavior Options StoplevelResethard Usrreset#$7,ICEMSR Monstacktop#0,PCSEL #$0000,GRPBASED#0,PCPDEN BASEIN+OFF7 BASEIN+OFF6ACR Other DefinitionsEndmARCHIVED by Freescale SEMICONDUCTOR, INC Freescale Semiconductor, Inc M68EZ328ADS Appendix E SchematicsM68EZ328ADS By Freescale SEMICONDUCTOR, INC Memory LCD Screen IncUart Ports FreescaleIrDA Reset Circuit Misc Logic Analyzer Connectors Test pin & VME connector