Motorola M68EZ328ADS user manual #$7,ICEMSR, Usrreset, Monstacktop, Resethard

Page 50

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

move.w

#$7,ICEMSR

;

clear level 7 interrupt

or.w

#$FF80,ISR

 

 

endm

 

;

return non-zero in D0 if ABORT

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

INT_DOG: macro endm

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

;Macros for use at application startup (EXEC)

;and stop (DONE). Normally these are empty.

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

USR_EXEC: macro endm

USR_DONE: macro endm

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

*RESET OPTIONS

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

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

;Contents of the "usr_reset" section. In the usual

;case, this is two longwords long, with the first word

;containing the value with which the processor

;loads up its stack pointer, and the second of

;which is the value with which the processor

;loads up its program counter. This will bring up

;the monitor on a hardware reset.

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

USR_RESET:

macro

 

 

dc.l

MON_STACKTOP

;

stack pointer (default)

dc.l

reset$$$

;

program counter (default)

dcb.l

6,0

 

 

endm

 

 

 

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

;Hard reset macro - contains very high priority

;instructions which must be executed immediately

;upon a hardware reset.

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

RESET_HARD:

macro

 

move.b

#$9,PGSEL

; config PG0/DTACK to GPI/O,input

move.w

#$2410,PLLCR

; sysclk = VCO/1, enable clko

move.l

#MON_STACKTOP,A7

; Install stack pointer

move.w

#$2700,sr

; mask off all interrupts

move.b

#$1C,SCR

; enable bus error timeout bit

move.w

#0,RTCWD

; disable watch dog

move.b

#$03,PFSEL

; select A23-A20, CLKO, CSA1

move.b

#$00,PBSEL

; Config port B for chip select A,B,C and D

move.b

#$00,PESEL

; select *DWE

move.w

#$08,ICEMCR

; disable ICEM vector hardmap

D-49M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 50
Contents Freescale Semiconductor, Inc PreliminaryTable of Contents Resistive Touch Panel Operation Appendix aComparison of M68EZ328ADS Version 1.x Programming On-board Flash MemoryIii M68EZ328ADS v2.0 USER’S Manual List of Illustrations List of Tables Introduction FeaturesSection General Information Debugger Related DocumentationTechnical Support 1.4.1 M68EZ328ADS Overview Section Quick Installation GuideInstallation Procedure Equipments RequiredM68EZ328ADS v2.0 Key Component Layout Default DIP Switch Options for Metrowerks monitor DIP Switch Options for SDS monitorMetrowerks Codewarrior Connecting M68EZ328ADS v2.0 to PCInstalling software debugger 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 M68EZ328ADS v2.0 Functional Block Diagram Section Hardware Description and Board OperationDIP Switch pack S1 Setting Control SwitchesDIP Switches DIP Switch pack S2 SettingFunction of LED Indicators LED IndicatorsOperation Mode Setting Operation ModesMemory Map M68VZ328ADS v2.0 Default Memory MapMemory Flash MemoryEMU ROM Interface of EMU ROMEDO Dram MC68EZ328 CSD1Uart and Irda MC68VZ328LCD and Touch Panel Interface LCD InterfaceSignal Assignment for Touch Panel Controller Touch Panel InterfaceLogic Analyzer Interface Expansion ConnectorsSingle Tone Generator Power Supply Pin Assignments of P4GND VEE Hardware Table A-2. Software Change for using M68EZ328ADSAppendix a Comparison of M68EZ328ADS Version 1.X SoftwareFreescale Semiconductor, Inc Appendix B Resistive Touch Panel Operation General Concepts of Resistive PanelsDetermination of X,Y Position Appendix C Programming ON-BOARD Flash Memory Elements for Programming the FlashMethod Offset Address of ROM ImageExecuting Program Command Sequence Polling Program EnableError NOW EchoNOV Echo ProgramVerifiy Finish TxdrdyEND BootstrapError Echo Figure C-2. Flash Program Algorithm Freescale Semiconductor, Inc Initialization Code of Metrowerks Monitor RESET.S Appendix D Monitor Initialization CodeMonitor Initialization Code Freescale Semiconductor, Inc Lymax Reset OptionsLxmax Lcxp#0,RTCWD #$9,PGSEL#MONSTACKTOP,A7 #$08,ICEMCRInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Basein Addressing OptionsDevice Options BaseoutInterrupt Behavior Options AcrvalIrqmask Stoplevel#$7,ICEMSR UsrresetResethard Monstacktop#0,PCPDEN #$0000,GRPBASED#0,PCSEL ACR BASEIN+OFF6BASEIN+OFF7 Other DefinitionsEndmARCHIVED by Freescale SEMICONDUCTOR, INC Freescale Semiconductor, Inc Appendix E Schematics M68EZ328ADSM68EZ328ADS By Freescale SEMICONDUCTOR, INC Memory Inc LCD ScreenFreescale Uart PortsIrDA Reset Circuit Misc Logic Analyzer Connectors Test pin & VME connector