Motorola M68EZ328ADS user manual Initialization Code of SDS Monitor MONITOR.H

Page 45

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

move.l

#$4000,LSSA

 

move.w

#160,LXMAX

 

move.w

#239,LYMAX

 

move.b

#10,LVPW

 

 

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

move.b

#$08,LPICF

 

move.b

#$01,LPOLCF

 

move.b

#$00,LACDRC

 

move.b

#$02,LPXCD

 

move.b

#$14,LRRA

 

move.b

#$00,LPOSR

 

move.b

#$00,LCKCON

; disable LCDC

move.b

#$80,LCKCON

; enable LCDC, 0ws, 16-bit

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

;Interrupt controller ;**********************************************************************

move.b #$40,IVR

move.l #$007fffff,IMR; mask all interrupts except *EMUIRQ,

; since it is used for the abort

button

; on this board

.extern__start

JMP __start ; jump to MW startup code

D.2 INITIALIZATION CODE OF SDS MONITOR (MONITOR.H)

.option list="off"

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

*EZ328EMU.H - Configuration file for Motorola's M68EZ328ADS

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

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

*CPU OPTIONS

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

opt p=68000

M328BASE

equ $FFFFF000

 

; SIM28 System Configuration Registers

SCR

equ

(M328BASE+$000)

; Chip Select Registers

 

GRPBASEA

equ

(M328BASE+$100)

GRPBASEB

equ

(M328BASE+$102)

GRPBASEC

equ

(M328BASE+$104)

GRPBASED

equ

(M328BASE+$106)

CSA

equ

(M328BASE+$110)

CSB

equ

(M328BASE+$112)

CSC

equ

(M328BASE+$114)

CSD

equ

(M328BASE+$116)

DRAMCFG

equ

(M328BASE+$C00)

D-44M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 45
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 Features Section General InformationIntroduction Related Documentation Technical Support 1.4.1 M68EZ328ADSDebugger 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 monitorConnecting M68EZ328ADS v2.0 to PC Installing software debuggerMetrowerks 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 ControllerExpansion Connectors Single Tone GeneratorLogic 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 TxdrdyBootstrap Error EchoEND 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#$0000,GRPBASED #0,PCSEL#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