Motorola M68EZ328ADS user manual #$9,PGSEL, #MONSTACKTOP,A7, #0,RTCWD, #$08,ICEMCR, #$07,ICEMSR

Page 44

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

.global ___reset

___reset: rom_start:

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

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

move.w

#$07,ICEMSR

; clear level 7

interrupt

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

;Init Code for 512Kx16 Flash ;*****************************

move.w

#$0400,GRPBASEA

;

GROUPA BASE(FLASH), Start address=0x800000

move.w

#$0189,CSA

;

2MB each, 0ws, FLASH,

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

;Init Code 4Mx16 (12/10) EDO DRAM ;**********************************

move.w

#$8F00,DRAMCFG

; DRAM Memory Config Register

 

 

; Col Address = PA1-PA10; Row Address = PA11-PA22

move.w

#$9667,DRAMCTL

; DRAM Control Register, 0ws

move.w

#$0000,GRPBASED

; GROUPA BASE(DRAM),

 

 

;Start address=0x000000-0x7FFFFF

move.w

#$069F,CSD

; enable DRAM cs

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

;Init Code for EMUCS ;**********************************

move.w #$30,EMUCS

; 3ws

clr.l d0

clr.l d1

clr.l d2

clr.l d3

clr.l d4

clr.l d5

clr.l d6

clr.l d7

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

;

;LCD Temp init for screen protection

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

move.b #0,PCSEL move.b #0,PCPDEN

D-43M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 44
Contents Freescale Semiconductor, Inc PreliminaryTable of Contents Appendix a Comparison of M68EZ328ADS Version 1.xResistive Touch Panel Operation 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 Section Quick Installation Guide Installation ProcedureOverview 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 OperationControl Switches DIP SwitchesDIP Switch pack S1 Setting DIP Switch pack S2 SettingLED Indicators Operation Mode SettingFunction of LED Indicators Operation ModesM68VZ328ADS v2.0 Default Memory Map MemoryMemory Map 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 Table A-2. Software Change for using M68EZ328ADS Appendix a Comparison of M68EZ328ADS Version 1.XHardware 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 Program Enable ErrorPolling NOW EchoProgram VerifiyNOV Echo 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 Reset Options LxmaxLymax Lcxp#$9,PGSEL #MONSTACKTOP,A7#0,RTCWD #$08,ICEMCRInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Addressing Options Device OptionsBasein BaseoutAcrval IrqmaskInterrupt Behavior Options StoplevelUsrreset Resethard#$7,ICEMSR Monstacktop#0,PCPDEN #$0000,GRPBASED#0,PCSEL BASEIN+OFF6 BASEIN+OFF7ACR 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