Motorola M68EZ328ADS Lxmax, Lymax, Lcxp, Lcyp, Lcwch, Lblkc, Lpicf, Lpolcf, Lacdrc, Lpxcd, Lckcon

Page 43

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Monitor Initialization Code Freescale Semiconductor, Inc.

LXMAX

 

.equ

(M328BASE+$A08) ; Screen Width Reg

LYMAX

 

.equ

(M328BASE+$A0A) ; Screen Height Reg

LCXP

 

.equ

(M328BASE+$A18) ; Cursor X Position

LCYP

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

 

.equ

(M328B

+$A1A) ; Cursor Y Position

LCWCH

 

.equ

(M328BASE+$A1C) ; Cursor Width & Height Reg

LBLKC

 

.equ

(M328BASE+$A1F) ; Blink Control Reg

LPICF

 

.equ

(M328BASE+$A20) ; Panel Interface Config Reg

LPOLCF

 

.equ

(M328BASE+$A21) ; Polarity Config Reg

LACDRC

 

.equ

(M328BASE+$A23) ; ACD (M) Rate Control Reg

LPXCD

 

.equ

(M328BASE+$A25) ; Pixel Clock Divider Reg

LCKCON

 

.equ

(M328BASE+$A27) ; Clocking Control Reg

LRRA

 

.equ

(M328BASE+$A29) ; Refresh Rate Adjust reg

LPOSR

 

.equ

(M328BASE+$A2D) ; Panning Offset Reg

LFRCM

 

.equ

(M328BASE+$A31) ; Frame Rate Control Mod Reg

LGPMR

 

.equ

(M328BASE+$A33) ; Gray Palette Mapping Reg

LPWM

 

.equ

(M328BASE+$A36) ; contrast control Reg

; RTC Registers

 

 

 

RTCHMSR

 

.equ

(M328BASE+$B00) ; Hrs Mins Secs Reg

RTCALM0R

 

.equ

(M328BASE+$B04) ; Alarm Register

RTCDAY

 

.equ

(M328BASE+$B08) ; RTC date reg

RTCWD

 

.equ

(M328BASE+$B0A) ; RTC watch dog timer reg

RTCCTL

 

.equ

(M328BASE+$B0C) ; Control Reg

RTCISR

 

.equ

(M328BASE+$B0E) ; Interrupt Status Reg

RTCIENR

 

.equ

(M328BASE+$B10) ; Interrupt Enable Reg

RSTPWCH

 

.equ

(M328BASE+$B12) ; Stopwatch Minutes

;ICEM registers

 

 

 

ICEMACR

 

.equ

(M328BASE+$D00)

ICEMAMR

 

.equ

(M328BASE+$D04)

ICEMCCR

 

.equ

(M328BASE+$D08)

ICEMCMR

 

.equ

(M328BASE+$D0A)

ICEMCR

 

.equ

(M328BASE+$D0C)

ICEMSR

 

.equ

(M328BASE+$D0E)

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

*RESET OPTIONS

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

.section .reset rom_base:

;-- SECTIONrom_reset - SP, start addr & space for Exception Vectors

 

.DC.LMON_STACKTOP; stack pointer

 

.DC.Lrom_start

; program counter

 

.org0x10

; int7 handler (in EMU mode) goes here

 

.externemu_lvl7_handler

 

jmp

emu_lvl7_handler

 

.org0x20

; initial code starts at offset 0x20

;--

SECTIONrom_code

 

D-42M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 43
Contents Preliminary Freescale Semiconductor, IncTable of Contents Programming On-board Flash Memory Appendix aComparison of M68EZ328ADS Version 1.x Resistive Touch Panel OperationIii M68EZ328ADS v2.0 USER’S Manual List of Illustrations List of Tables Section General Information FeaturesIntroduction Technical Support 1.4.1 M68EZ328ADS Related DocumentationDebugger Equipments Required Section Quick Installation GuideInstallation Procedure OverviewM68EZ328ADS 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 Switch pack S2 Setting Control SwitchesDIP Switches DIP Switch pack S1 SettingOperation Modes LED IndicatorsOperation Mode Setting Function of LED IndicatorsFlash Memory M68VZ328ADS v2.0 Default Memory MapMemory Memory MapInterface 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 Software Table A-2. Software Change for using M68EZ328ADSAppendix a Comparison of M68EZ328ADS Version 1.X HardwareFreescale 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 NOW Echo Program EnableError PollingFinish Txdrdy ProgramVerifiy NOV EchoError 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 Lcxp Reset OptionsLxmax Lymax#$08,ICEMCR #$9,PGSEL#MONSTACKTOP,A7 #0,RTCWDInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Baseout Addressing OptionsDevice Options BaseinStoplevel AcrvalIrqmask Interrupt Behavior OptionsMonstacktop UsrresetResethard #$7,ICEMSR#0,PCSEL #$0000,GRPBASED#0,PCPDEN Other Definitions BASEIN+OFF6BASEIN+OFF7 ACREndmARCHIVED 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