Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual

Application development system.
Hide thumbs
Freescale Semiconductor, Inc.
Motorola, Inc.
Application Development System
User's Manual
Revision 1.0
JAN 19, 2000
Preliminary
Motorola reserves the right to make changes without further notice to any product herein to improve
reliability, function, or design. Motorola does not assume any liability arising out of the application or
use of any product, circuit, or software described herein; neither does it convey any license under its
patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use
as components in systems intended for surgical implant into the body, or other applications intended to
support life, or for any other application in which the failure of the Motorola product could create a
situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any
such intended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers,
employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and
expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury
or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was
negligent regarding the design or manufacture of the part. Motorola and the
are registered trademarks
of Motorola Ltd.
For More Information On This Product,
Go to: www.freescale.com

   Summary of Contents for Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS

  • Page 1

    Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any...

  • Page 2: Table Of Contents

    LCD Interface.................... 3-23 3.9.2 Touch Panel Interface................3-24 3.10 Single Tone Generator................3-25 3.11 Logic Analyzer Interface ................3-25 3.12 ExPANSION Connectors ................3-25 3.13 Power Supply....................3-26 MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...

  • Page 3: Table Of Contents

    Appendix D Monitor Initialization Code Initialization Code of Metrowerks Monitor (Reset.S) ........D-40 Initialization Code of SDS Monitor (Monitor.H) .......... D-44 Appendix E Schematics M68EZ328ADS v2.0 ...................E-54 MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...

  • Page 4: Archived By Freescale Semiconductor,

    Freescale Semiconductor, Inc. Table of Contents ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 5

    Logic Analyzer Connectors ................3-25 3-12 Power Connectors.................... 3-27 Resistive Touch Panel..................B-30 Determination of X,Y Position ................B-31 Method of programming on-board Flash memory ........... C-33 Flash Program Algorithm................. C-38 MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...

  • Page 6: List Of Tables

    Signal Assignment for Touch Panel Controller..........3-24 Pin Assignments of P4 ..................3-26 Comparison of M68EZ328ADS v1.x and v2.0..........A-28 Software Change for using M68EZ328ADS v2.0 ..........A-28 MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...

  • Page 7: Introduction, Features

    —Yellow LED for status of MC68EZ328 pin PD1 • Board operation mode support —MC68EZ328 EMU mode —MC68EZ328 normal mode —MC68EZ328 bootstrap mode • Debug Monitor —MetroWerks Codewarrior Target Monitor using serial port MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...

  • Page 8: Related Documentation, Technical Support, M68ez328ads V2.0, Debugger

    There are three source-level debuggers for DragonBall -EZ. The contact information is listed below. 1. Metrowerks http://www.metrowerks.com 2. Single Step Development http://www.sdsi.com 3. Microtek SLD http://www.microtekintl.com M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 9: Overview, Equipments Required, Installation Procedure, Prepare The M68ez328ads V2.0 Board

    For detail description of each switch. Pls. refer to Table 3-1 and Table 3-2. For additional information on the M68EZ328ADS v2.0 and its components. Pls refer to Sec- tion 3 . MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL For More Information On This Product,...

  • Page 10

    Freescale Semiconductor, Inc. Quick Installation Guide ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 Figure 2-1. M68EZ328ADS v2.0 Key Component Layout M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 11

    Figure 2-2. Default DIP Switch Options for Metrowerks monitor 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Figure 2-3. DIP Switch Options for SDS monitor 2-10 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 12: Connecting M68ez328ads V2.0 To Pc, Installing Software Debugger

    The following software debugger supports M68EZ328ADS v2.0: • Metrowerks Codewarrior • Single Step Development System • SLD Metrowerks Codewarrior A simple procedure for using Metrowerks Codewarrior Target Monitor: 2-11 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 13

    2. Run Codewarrior IDE program. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 3. Open a new project file with Embedded 68k Stationery. 4. Select ADS_68EZ328 Stationery for new project. 2-12 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 14

    5. Choose "Enable Debugger" from the "Project" pull-down menu. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 6. Change the connection settings in the Debug Settings Windows. 2-13 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 15

    5. The file should be downloaded and then you can start your development. (For details, please refer to the SingleStep User’s Manual). Figure 2-5. Debug Pop-Up Window of SDS v7.4 2-14 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 16

    Freescale Semiconductor, Inc. Quick Installation Guide ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 Figure 2-6. Connection Setting inside Debug Pop-up Window of SDS v7.4 2-15 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 17

    IRDA UART IRDA Interface UART Touch Panel Controller Reset Power Circuit Connector RESET ABORT 4-bit LCD LCD Connectors Figure 3-1. M68EZ328ADS v2.0 Functional Block Diagram MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-16 For More Information On This Product, Go to: www.freescale.com...

  • Page 18: Control Switches, Dip Switches

    S2-3 CSD0 - EDO DRAM Connected Disconnected S2-4 EMU Mode Enable Disable S2-5 Bootstrap Mode Enable Disable S2-6 Monitor Select Metrowerks S2-7 Unused S2-8 Unused 3-17 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 19: Operation Modes, Led Indicators

    Green Power Power is applied to the system with right polarity The LED3 is connected to a counter. The counter is toggled by address line A1. MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-18 For More Information On This Product, Go to: www.freescale.com...

  • Page 20: Memory, Memory Map, Flash Memory

    They are chip-selected by *CSA0 and *CSA1 signals. The connection of these *CSAx signals to the Flash memories is controlled by DIP switches S2-1 and S2-2. 3-19 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 21: Emu Rom

    The M68EZ328ADS v2.0 is equipped with one 64K-byte EMU ROM. Figure 3-3 shows the interface of the EMU ROM. This EMU ROM has already been programmed with the SDS monitor and the Metrowerks monitor when the board is shipped out from the factory. MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-20 For More Information On This Product, Go to: www.freescale.com...

  • Page 22: Edo Dram

    Figure 3-4. shows the interface of EDO DRAMs. M68EZ328ADS v2.0 supports one bank of 4Mx16-bit EDO DRAMs. The EDO DRAM is enabled by turning DIP switch S2-3 on. 3-21 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 23: Uart And Irda

    ON/OFF. If IrDA is being used, S1-1 should be switched OFF and S1-2 should be switched ON. Then, the enable/disable of IRDA is totally controlled by software through PD4 (Port D4). MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-22 For More Information On This Product, Go to: www.freescale.com...

  • Page 24: Debug Port, Lcd And Touch Panel Interface, Lcd Interface

    The pin assignments of the LCD connector is shown in Figure 3-8. LFRM LACD LCLK LCONTRAST BOTTOM RIGHT LEFT Figure 3-8. LCD and Touch Panel Connector Pin Assignment 3-23 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 25: Touch Panel Interface

    The datasheet is available at the following web site. http://www.burr-brown.com For more details on the operation of resistive touch panel, please refer to Appendix B . MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-24 For More Information On This Product,...

  • Page 26: Single Tone Generator, Logic Analyzer Interface, Expansion Connectors

    If users want to use any of these signals for their daughter card, the corresponding on-board module may have to be disabled to avoid contention. The pin assignments for extension connectors are shown in Table 3-7. 3-25 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 27: Power Supply

    There are two power input connectors on the ADS, P1 and P2. P1 is designed for external 3V DC main power supply, which supplies power to the MC68EZ328 processor and most of the on-board components. P2 is used for LCD driver (VEE) power supply. If an LCD panel MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL 3-26 For More Information On This Product, Go to: www.freescale.com...

  • Page 28

    ADS, the LCD driver can be powered by this VEE input. Figure 3-12 locates the power connectors and their polarity. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 Debug Port EZ UART 3.0-3.3V M68EZ328ADS Figure 3-12. Power Connectors 3-27 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 29: A.1 Hardware, A.2 Software

    Pin 12 (DWE/UCLK/PE3) of MC68EZ328 is programmed as DWE signals for on-board EDO DRAM. It cannot be used as Port or UCLK again. IrDA The IrDA module needs to be enabled by setting PD4 to zero. MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL A-28 For More Information On This Product,...

  • Page 30

    Freescale Semiconductor, Inc. Comparison of M68EZ328ADS Version 1.x and 2.0 ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 A-29 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 31: B.1 General Concepts Of Resistive Panels

    Bars - highly conductive material such as silver ink, about 1000 times more conductive than ITO. Spacers - Non-conducting ink, adhesive, or other material such as Mylar is used to separate the two opposite conductive layers. MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL B-30 For More Information On This Product,...

  • Page 32

    At the same time, the y position can be find out by measuring the x layer. The exact position can be determined by referencing the output voltage to the distance relation- ship. B-31 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 33: C.1 Overview, C.2 Elements For Programming The Flash

    4. FLASHNML.B - b-record for programming flash. ROM image is copied from RAM area to the Flash memory area 5. ROM.B - ROM image of user program in b-record/s-record format. MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL C-32 For More Information On This Product,...

  • Page 34: C.3 Method, C.4 Offset Address Of Rom Image

    Flash. In order to create S-record/B-record with download address different from its execu- tion address, an OFFSET is sometimes required to be specified in downloading program. C-33 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 35: C.5 Executing Program Command Sequence

    DC.L pERROR_ADDRESS DC.L DC.L STKTOP ***************************************************************** SECTION code START MOVEA.L #STKTOP,a7 ;re-istall stack pointer in case bootstrap mode MOVE.L #0,pERROR MOVE.L #0,pFINISH move.l #0,pERROR_ADDRESS C-34 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 36

    ; Compare (a0),(a1) move.w (a3),d3 cmp.w d2,d3 POLLING ; End of POLLING add.l #2,a2 add.l #2,a3 add.l #2,d1 cmp.b #0,d5 NO_W ECHO ECHO NO_W add.b #1,d5 C-35 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 37

    POLLTXD ; bra if TXAVAIL not SET move.w #$0FFF,d7 LP_RDY sub.w #1,d7 bne.b LP_RDY move.l (a7)+,d7 ; Restore d7 **************************************************************************** FINISH ECHO '\n' ECHO ECHO C-36 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 38

    '\n' ECHO ECHO ECHO ECHO ECHO ECHO '\n' ECHO ECHO ECHO ECHO ECHO ECHO sub.l #1,a3 move.l a3,pERROR_ADDRESS move.l #1,pERROR BOOTSTRAP ************************************************************ BOOTSTRAP $FFFFFF44 ************************************************************ C-37 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 39

    Freescale Semiconductor, Inc. Programming On-board Flash Memory ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 Figure C-2. Flash Program Algorithm C-38 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 40

    Freescale Semiconductor, Inc. Programming On-board Flash Memory ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 C-39 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 41: D.1 Initialization Code Of Metrowerks Monitor (reset.s)

    (M328BASE+$40A) ; Pullup Enable Reg PBSEL .equ (M328BASE+$40B) ; Select Reg ; Port C Registers PCDIR .equ (M328BASE+$410) ; Direction Reg PCDATA .equ (M328BASE+$411) ; Data Reg MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL D-40 For More Information On This Product, Go to: www.freescale.com...

  • Page 42

    .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-41 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 43

    .DC.LMON_STACKTOP; stack pointer .DC.Lrom_start ; program counter .org0x10 ; int7 handler (in EMU mode) goes here .externemu_lvl7_handler emu_lvl7_handler .org0x20 ; initial code starts at offset 0x20 SECTIONrom_code D-42 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 44

    ;********************************** move.w #$30,EMUCS ; 3ws clr.l clr.l clr.l clr.l clr.l clr.l clr.l clr.l ;********************************************************************** LCD Temp init for screen protection ;********************************************************************** move.b #0,PCSEL move.b #0,PCPDEN D-43 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 45: D.2 Initialization Code Of Sds Monitor (monitor.h)

    ; 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 **************************************************************************** p=68000 M328BASE equ $FFFFF000 ;...

  • Page 46

    PFPUEN (M328BASE+$42A) ; Pullup Enable Reg PFSEL (M328BASE+$42B) ; Select Reg ; Port G Registers PGDIR (M328BASE+$430) ; Direction Reg PGDATA (M328BASE+$431) ; Data Reg D-45 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 47

    (M328BASE+$B00) ; Hrs Mins Secs Reg RTCALM0R (M328BASE+$B04) ; Alarm Register RTCDAY (M328BASE+$B08) ; RTC date reg RTCWD (M328BASE+$B0A) ; RTC watch dog timer reg RTCCTL (M328BASE+$B0C) ; Control Reg D-46 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 48

    ; base address of input device ;BASE_OUT: $fffd8000 ; base address of output device ;BAUD_IN: ; baud rates not applicable ;BAUD_OUT: ; baud rates not applicable **************************************** D-47 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 49

    NMI_STATUS. Bit #0 of the ; first byte at NMI_STATUS indicates that the ABORT switch was pressed. ; ************************************************** INT_STOP: macro D-48 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 50

    ; 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-49 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 51

    #$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 ;********************************************************************** D-50 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 52

    **************************************************************************** USER_DEFS: macro ; *************************************** ; * Setting for MC68681 ; *************************************** .if "\{DEV_IN}"=="MC68681" xdef MC68681acr xdef MC68681imr SECTION usr_ram MC68681acr: ds.b 1 ;ACR register D-51 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 53

    Freescale Semiconductor, Inc. Monitor Initialization Code MC68681imr: ds.b 1 ;IMR register .endif ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 endm D-52 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 54

    Freescale Semiconductor, Inc. Monitor Initialization Code ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 D-53 M68EZ328ADS v2.0 USER’S MANUAL MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 55

    Freescale Semiconductor, Inc. APPENDIX E SCHEMATICS ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 E.1 M68EZ328ADS V2.0 MOTOROLA M68EZ328ADS v2.0 USER’S MANUAL E-54 For More Information On This Product, Go to: www.freescale.com...

  • Page 56

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 57

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 PF6/A23 CLKO/PF2 PF5/A22 PLLVDD PF4/A21 XTAL PF3/A20 EXTAL PLLGND MD12/A13 MD11/A12 MD10/A11 MD9/A10 MD8/A9 MD7/A8 MD6/A7 MD5/A6 MD4/A5 MD3/A4 MD2/A3 MD1/A2 PA7/D7 MD0/A1 PA6/D6 PA5/D5 PA4/D4 PA3/D3 PA2/D2 PA1/D1 PA0/D0 For More Information On This Product, Go to: www.freescale.com...

  • Page 58

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 59

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 60

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 61

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 VLED For More Information On This Product, Go to: www.freescale.com...

  • Page 62

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 63

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 64

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

  • Page 65

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 For More Information On This Product, Go to: www.freescale.com...

Comments to this Manuals

Symbols: 0
Latest comments: