Motorola M68EZ328ADS user manual Monitor Initialization Code Freescale Semiconductor, Inc

Page 42

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

PCPDEN

 

.equ

(M328BASE+$412) ; Pull-down Enable Reg

PCSEL

 

.equ

(M328BASE+$413) ; Select Reg

 

 

 

; Port D Registers

PDDIR

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

 

.equ

(M328B

+$418) ; Direction Reg

PDDATA

 

.equ

(M328BASE+$419) ; Data Reg

PDPUEN

 

.equ

(M328BASE+$41A) ; Pullup Enable Reg

PDSEL

 

.equ

(M328BASE+$41B) ; port D select

PDPOL

 

.equ

(M328BASE+$41C) ; Polarity Reg

PDIRQEN

 

.equ

(M328BASE+$41D) ; IRQ Enable Reg

PDIRQEDGE

 

.equ

(M328BASE+$41F) ; IRQ Edge Reg

 

 

 

; Port E Registers

PEDIR

 

.equ

(M328BASE+$420) ; Direction Reg

PEDATA

 

.equ

(M328BASE+$421) ; Data Reg

PEPUEN

 

.equ

(M328BASE+$422) ; Pullup Enable Reg

PESEL

 

.equ

(M328BASE+$423) ; Select Reg

 

 

 

; Port F Registers

PFDIR

 

.equ

(M328BASE+$428) ; Direction Reg

PFDATA

 

.equ

(M328BASE+$429) ; Data Reg

PFPUEN

 

.equ

(M328BASE+$42A) ; Pullup Enable Reg

PFSEL

 

.equ

(M328BASE+$42B) ; Select Reg

 

 

 

; Port G Registers

PGDIR

 

.equ

(M328BASE+$430) ; Direction Reg

PGDATA

 

.equ

(M328BASE+$431) ; Data Reg

PGPUEN

 

.equ

(M328BASE+$432) ; Pullup Enable Reg

PGSEL

 

.equ

(M328BASE+$433) ; Select Reg

; PWM Registers

 

 

 

PWMC

 

.equ

(M328BASE+$500) ; Control Reg

PWMS

 

.equ

(M328BASE+$502) ; Sample Reg

PWMCNT

 

.equ

(M328BASE+$504) ; Count Reg

; Timer Registers

 

 

 

 

 

; Timer 1 Registers

TCTL

 

.equ

(M328BASE+$600) ; Control Reg

TPRER

 

.equ

(M328BASE+$602) ; Prescalar Reg

TCMP

 

.equ

(M328BASE+$604) ; Compare Reg

TCR

 

.equ

(M328BASE+$606) ; Capture Reg

TCN

 

.equ

(M328BASE+$608) ; Counter

TSTAT

 

.equ

(M328BASE+$60A) ; Status Reg

; SPI Registers

 

 

 

SPIMDATA

 

.equ

(M328BASE+$800) ; Control/Status Reg

SPIMCONT

 

.equ

(M328BASE+$802) ; Data Reg

; UART Registers

 

 

 

USTCNT

 

.equ

(M328BASE+$900) ; Status Control Reg

UBAUD

 

.equ

(M328BASE+$902) ; Baud Control Reg

UARTRX

 

.equ

(M328BASE+$904) ; Rx Reg

UARTTX

 

.equ

(M328BASE+$906) ; Tx Reg

UARTMISC

 

.equ

(M328BASE+$908) ; Misc Reg

UARTNIPR

 

.equ

(M328BASE+$90A) ; None-Integer Prscaler reg

; LCDC Registers

 

 

 

LSSA

 

.equ

(M328BASE+$A00) ; Screen Start Addr Reg

LVPW

 

.equ

(M328BASE+$A05) ; Virtual Page Width Reg

D-41M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 42
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 Features Section General InformationIntroduction Related Documentation Technical Support 1.4.1 M68EZ328ADSDebugger 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 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 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 InterfaceExpansion Connectors Single Tone GeneratorLogic Analyzer Interface 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 TxdrdyBootstrap Error EchoEND 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#$0000,GRPBASED #0,PCSEL#0,PCPDEN 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