![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
Motorola, Inc. M68EZ328ADS v2.0 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. TABLE OF CONTENTS Section 1 General Information 1.1 1.2 1.3 1.4 1.4.1 1.4.2 Introduction ................................................................................................... 1-6 Features........................................................................................................ 1-6 Related Documentation ................................................................................ 1-7 Technical Support ......................................................................................... 1-7 M68EZ328ADS v2.0 ................................................................................... 1-7 Debugger .................................................................................................... 1-7 Section 2 Quick Installation Guide 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 Overview ....................................................................................................... 2-8 Equipments Required ................................................................................... 2-8 Installation Procedure ................................................................................... 2-8 Prepare the M68EZ328ADS v2.0 board ..................................................... 2-8 Connecting M68EZ328ADS v2.0 to PC.................................................... 2-11 Installing software debugger ..................................................................... 2-11 Section 3 Hardware Description and Board Operation 3.1 3.2 3.3 3.4 3.5 3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.7 3.8 3.9 3.9.1 3.9.2 3.10 3.11 3.12 3.13 Overview ..................................................................................................... 3-16 Control Switches ......................................................................................... 3-17 DIP Switches............................................................................................... 3-17 Operation Modes ........................................................................................ 3-18 LED Indicators ............................................................................................ 3-18 Memory ....................................................................................................... 3-19 Memory Map ............................................................................................. 3-19 FLASH Memory ........................................................................................ 3-19 EMU ROM ............................................................................................... 3-20 EDO DRAM .............................................................................................. 3-21 UART and IRDA.......................................................................................... 3-22 Debug Port.................................................................................................. 3-23 LCD and Touch Panel Interface.................................................................. 3-23 LCD Interface............................................................................................ 3-23 Touch Panel Interface............................................................................... 3-24 Single Tone Generator................................................................................ 3-25 Logic Analyzer Interface ............................................................................. 3-25 ExPANSION Connectors ............................................................................ 3-25 Power Supply.............................................................................................. 3-26 MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL i Table of Contents Appendix A Comparison of M68EZ328ADS Version 1.x and 2.0 A.1 A.2 Hardware ....................................................................................................A-28 Software......................................................................................................A-28 Appendix B Resistive Touch Panel Operation B.1 General Concepts of Resistive Panels .......................................................B-30 Appendix C Programming On-board Flash Memory C.1 C.2 C.3 C.4 C.5 Overview .................................................................................................... C-32 Elements for programming the flash .......................................................... C-32 Method ....................................................................................................... C-33 Offset Address of ROM Image................................................................... C-33 Executing ProgRam Command Sequence ................................................ C-34 Appendix D Monitor Initialization Code D.1 D.2 Initialization Code of Metrowerks Monitor (Reset.S) .................................. D-40 Initialization Code of SDS Monitor (Monitor.H) .......................................... D-44 Appendix E Schematics E.1 M68EZ328ADS v2.0 ...................................................................................E-54 MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL ii Table of Contents iii M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA LIST OF ILLUSTRATIONS 2-1 2-2 2-3 2-4 2-5 2-6 3-1 3-2 3-3 3-4 3-5 3-6 3-7 3-8 3-9 3-10 3-11 3-12 2-1 2-2 C-1 C-2 M68EZ328ADS v2.0 Key Component Layout .................................................... 2-9 Default DIP Switch Options for Metrowerks monitor ........................................ 2-10 DIP Switch Options for SDS monitor................................................................ 2-10 Connecting PC to Debug Port of M68EZ328ADS v2.0 .................................... 2-11 Debug Pop-Up Window of SDS v7.4................................................................ 2-14 Connection Setting inside Debug Pop-up Window of SDS v7.4 ...................... 2-15 M68EZ328ADS v2.0 Functional Block Diagram............................................... 3-16 Interface of Flash Memories............................................................................. 3-19 Interface of EMU ROM ..................................................................................... 3-20 Interface of EDO DRAMs ................................................................................. 3-21 UART and IRDA Interface. ............................................................................... 3-22 Serial Port Pin Assignment............................................................................... 3-22 Debug Port Interface ........................................................................................ 3-23 LCD and Touch Panel Connector Pin Assignment .......................................... 3-23 Touch Panel Controller Interface...................................................................... 3-24 Single Tone Generator ..................................................................................... 3-25 Logic Analyzer Connectors .............................................................................. 3-25 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 iv LIST OF TABLES 3-1 3-2 3-3 3-4 3-5 3-6 3-7 A-1 A-2 DIP Switch pack S1 Setting.............................................................................. 3-17 DIP Switch pack S2 Setting.............................................................................. 3-17 Operation Mode Setting ................................................................................... 3-18 Function of LED Indicators ............................................................................... 3-18 M68VZ328ADS v2.0 Default Memory Map ...................................................... 3-19 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 v SECTION 1 GENERAL INFORMATION 1.1 INTRODUCTION The DragonBallTM-EZ (MC68EZ328) Application Development System (M68EZ328ADS) is designed to supply users with an environment to develop MC68EZ328 based application software. Moreover, this board can be used as a reference for real-life product design. M68EZ328ADS provides several interface ports for application software and target board debug purpose. DragonBallTM-EZ ADS altogether has two versions released for customers. This is the second version. The board design and layout in second version has been changed a great deal. It includes simplifying the design for enhancing production quality and the easiness to use. However, most of the interfaces to external peripherals remain unchanged in order to provide high degree of compatibility with previous version. For more details on the changes, Please refer to Appendix A . This document will discuss the usage and system details of the M68EZ328ADS v2.0. 1.2 FEATURES * MC68EZ328 CPU * Memory Subsystem --2 MB FLASH (Expandable to 4MB) --8 MB EDO DRAM * Debug ports --One RS232 serial port interface to MC68EZ328 internal UART --One External RS232 serial port connecting to on-board UART chip --Direct logic analyzer interface to system bus * LCD and Touch Panel Interface --MC68EZ328 LCD interface --Burr-Brown 12-bit touch panel controller ADS7843E available for pen input * LED Indicators --Red LED for power --Green LED for system heart beat --Yellow LED for status of MC68EZ328 pin PD0 --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 1-6 General Information --SDS source-level debugger monitor by Software Development System Inc. using serial port * Clock Source --32.768KHz for MC68EZ328 internal PLL * Power Supply --3.0V - 3.3V main power supply 1.3 RELATED DOCUMENTATION The following documents can be used as references when using M68EZ328ADS. * MC68EZ328 User's Manual * MC68EZ328 Product Information 1.4 TECHNICAL SUPPORT 1.4.1 M68EZ328ADS v2.0 For getting the latest information, please visit our web page: http://www.mot.com/SPS/WIRELESS/products/DragonBall.html http://www.apspg.com/products/dragonballez/mc68ez328.html 1.4.2 Debugger There are three source-level debuggers for DragonBallTM-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 1-7 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA SECTION 2 QUICK INSTALLATION GUIDE 2.1 OVERVIEW This section provides a description of the evaluation module, requirements, quick installation and test information. Detailed information on the M68EZ328ADS v2.0 design and operation is provided in the remaining sections of this manual. 2.2 EQUIPMENTS REQUIRED The following equipments are required to use with the M68EZ328ADS Application Development System, some of them are already bundled with the ADS package. * Power supply - 3.0V-3.3V, 1500mA, with 2 mm female (inside positive) power connector * RS-232 cable (DB9 male to DB9 female) * IBM PC compatible computer (486 class or higher) running Windows 3.1 and DOS 6.0 (or higher), or Windows 95, with an RS-232 serial port capable of 9600-115200 bit per second operation 2.3 INSTALLATION PROCEDURE Please follow the procedure below to set up M68EZ328ADS. 1. Prepare the M68EZ328ADS v2.0 board 2. Connect the M68EZ328ADS v2.0 board to PC and power supply 3. Install software debugger 2.3.1 Prepare the M68EZ328ADS v2.0 board Locate the DIP switches on the M68EZ328ADS v2.0 board and select appropriate monitor and debug port for your debugger. Figure 2-2 shows the factory default DIP switches settings. This setting selects to use Metroworks monitor. Figure 2-3 shows the DIP switches setting of using SDS monitor. 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 Section 3 . MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL 2-8 Quick Installation Guide Figure 2-1. M68EZ328ADS v2.0 Key Component Layout 2-9 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Quick Installation Guide Monitor and Debug port selection S2 ON S1 ON 123 45678 123 45678 Figure 2-2. Default DIP Switch Options for Metrowerks monitor S1 ON S2 ON 123 45678 123 45678 Figure 2-3. DIP Switch Options for SDS monitor 2-10 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Quick Installation Guide 2.3.2 Connecting M68EZ328ADS v2.0 to PC Figure 2-4 shows connections among the PC, the external power supply and the M68E Z328ADS v2.0 board. Use the following steps to complete cable connections: Host Computer COM1 / COM2 RS232 Cable Debug Port EZ UART 3.0-3.3V Power Supply M68VZ328ADS Figure 2-4. Connecting PC to Debug Port of M68EZ328ADS v2.0 For most evaluation platforms, serial communication is the primary channel to link up PC with the target board. Both Metrowerks Codewarrior and Software Development System (SDS) debug monitor support serial communication through UART port. The procedure are as follows. 1. Connect a RS232 cable from COM port (COM1 or COM2) to connector P2 of M68EZ328ADS v2.0. 2. Connect the power supply +3V or power adaptor to the P1 of M68EZ328ADS v2.0 3. Turn on the power supply. The RED LED will flash and the GREEN LED will illuminate when power is correctly applied. 2.3.3 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 Quick Installation Guide 1. Install the Metrowerks Codewarrior IDE 2. Run Codewarrior IDE program. 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 Quick Installation Guide 5. Choose "Enable Debugger" from the "Project" pull-down menu. 6. Change the connection settings in the Debug Settings Windows. 2-13 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Quick Installation Guide 7. Edit the code inside the Codewarrior IDE program. 8. Press F5 to run the program. Single Step Development System A simple procedure for using Single Step Debugger: 1. Install the Single Step Debugger on your PC. 2. Run Single Step Debugger 3. Choose Debug in the File pull-down menu to open the Debug pop-up window. 4. Inside the Debug pop-up window, choose the object file to download or "debug without file" as shown in Figure 2-5, select the serial port (COM1 or COM2 ...) according to the serial port of the PC connecting to the ADS, disable "hardware flow control" and the baud rate should be 115200bps as shown in Figure 2-6. 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 Quick Installation Guide Figure 2-6. Connection Setting inside Debug Pop-up Window of SDS v7.4 2-15 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA SECTION 3 HARDWARE DESCRIPTION AND BOARD OPERATION 3.1 OVERVIEW Figure 3-1 shows the block diagram of M68EZ328ADS v2.0. Logic Analyzer Extension Address Bus Data Bus MC68EZ328 Control Bus PWMO Connector Extension Connectors UART SIGNALS RESET FLASH 1M x 16-bit FLASH 1M x 16-bit EDO DRAM 4M x 16-bit Single Tone Generator UART CHIP Debug Port UART and IRDA Interface Touch Panel Controller IRDA UART Reset Circuit Power Connector 4-bit LCD LCD Connectors RESET GND ABORT GND Figure 3-1. M68EZ328ADS v2.0 Functional Block Diagram MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL 3-16 Hardware Description and Board Operation 3.2 CONTROL SWITCHES There are two push buttons on the ADS which function as follows: 1. Reset Switch (SW2): When pressed, a hardware reset is generated to the MC68EZ328 processor and resumes operation. 2. Abort Switch (SW1): This switch is used to generate a level 7 interrupt to the MC68EZ328 processor for aborting normal software execution and returning control to the debug monitor. 3.3 DIP SWITCHES There are two DIP switch packs on the ADS board, S1 and S2. S1 is used to configure the memory system and operation modes. S2 is used to enable the on-board peripheral such as buzzer and touch panel controller. Table 3-1 and Table 3-2 show the description of each switch. Table 3-1. DIP Switch pack S1 Setting Switch S1-1 S1-2 S1-3 S1-4 S1-5 S1-6 S1-7 S1-8 FUNCTION UART Transceiver IrDA Module Buzzer Pen IRQ Chip Select of Touch Panel Controller Unused Unused Unused ON Enable Enable Enable Enable Enable OFF Disable Disable Disable Disable Disable Table 3-2. DIP Switch pack S2 Setting Switch S2-1 S2-2 S2-3 S2-4 S2-5 S2-6 S2-7 S2-8 FUNCTION CSA0 - FLASH0 CSA1 - FLASH1 CSD0 - EDO DRAM EMU Mode Bootstrap Mode Monitor Select Unused Unused ON Connected Connected Connected Enable Enable SDS OFF Disconnected Disconnected Disconnected Disable Disable Metrowerks 3-17 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Hardware Description and Board Operation 3.4 OPERATION MODES M68EZ328ADS v2.0 supports three operation modes of MC68EZ328: EMU Mode, Normal Mode and Bootstrap Mode. Selection of these operation modes is controlled by DIP switch S2-8. Operation mode has to be selected before resetting the system. Mode is not allowed to change during normal running. Table 3-3 shows the operation mode configuration. Table 3-3. Operation Mode Setting DIP Switch S2-4 ON OFF ON OFF DIP Switch S2-5 OFF OFF ON ON Operation Mode EMU Normal Bootstrap Bootstrap Normal Mode - After power up or system reset in this mode, CSA0 is default to cover the whole memory map except MC68EZ328 internal registers and EMU space. Also, as reset vector fetch is at the beginning of CSA0 space, CSA0 should be connected to the boot ROM in which the first two words are reset vectors. Bootstrap Mode - When this mode is selected, the DragonBall-EZ will start its embedded bootloader. User can use this mode to do simple debugging or reprogram the flash memories. For detailed bootstrap mode operation, please refer MC68EZ328 user's manual. EMU Mode - When this mode is selected, the reset vectors are generated internally by the ICE module of MC68EZ328. The first instruction fetch is at $FFFC0020. Therefore, in EMU mode the debug monitor of MC68EZ328ADS v2.0 is located beginning at $FFFC0020. EMUCS is always running in 8-bit data bus mode covering the address space from $FFFC0000 to $FFFD0000 3.5 LED INDICATORS There are four LED indicators on the ADS which function as shown in Table 3-4. Table 3-4. Function of LED Indicators Reference # LED3 LED4 LED1 LED2 Color Yellow Yellow Red Green Name PD0 PD1 Heart Beat Power Function Status of PD0 Status of PD1 Blinking heart beat indicates the system is "alive" 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 Hardware Description and Board Operation 3.6 MEMORY M68EZ328ADS v2.0 provides on-board Flash memory and EDO DRAM, for application development. They can be enabled or disabled individually by setting the corresponding DIP switches. 3.6.1 Memory Map The default memory map of M68EZ328ADS v2.0 in normal mode is shown in Table 3-5. The chip select range to all of the memory are software programmable. Users can reconfigure the memory map for their applications. Table 3-5. M68VZ328ADS v2.0 Default Memory Map System Address $00000000-$007FFFFF $00800000-$009FFFFF $00A00000-$00BFFFFF $00C00000-$00FBFFFF $FFFC0000-$FFFCFFFF $FFFD0000-$FFFDFFFF $FFFFF000-$FFFFFFFF Memory 8MB EDO DRAM 2MB FLASH BANK0 2MB FLASH BANK1 Unused EMU Monitor Debug Port MC68EZ328 Internal Register Assigned Chip Select CSD0 CSA0 CSA1 EMUCS EMUCS - 3.6.2 FLASH Memory VCC VCC MC68EZ328 1MX16-Bit FLASH CE S2-1 CE A[0..19] 1MX16-Bit FLASH CSA1 S2-2 CSA0 A[1..20] D[0..15] D[0..15] OE WE OE FLASH1 WE FLASH0 Figure 3-2. Interface of Flash Memories M68EZ328ADS v2.0 supports up to two 2M-byte Flash memory chips. However, only one bank is installed when the board is shipped out from the factory. Figure 3-2. shows the interface of them. 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 Hardware Description and Board Operation When S2-1 is ON, *CSA0 is connected to FLASH0. When S2-2 is ON, *CSA1 is connected to FLASH1. In Normal Mode, FLASH0 is the boot ROM. User can reprogram Flashes with their own application program. For more details on flash memory programming, please refer to Appendix C . 3.6.3 EMU ROM 8x8-Bit EMU ROM EMUCS OR Gate MC68EZ328 A16 CS OE WE A[0..15] D[8..15] OE WE A[0..15] D[8..15] Figure 3-3. Interface of 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 Hardware Description and Board Operation 3.6.4 EDO DRAM VCC S2-3 CSC0 CSD0 CSD1 RAS UCAS LCAS 4MX16-Bit EDO DRAM MC68EZ328 OE DWE A[1..13] D[0..15] OE WE A[0..12] D[0..15] Figure 3-4. Interface of EDO DRAMs 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 Hardware Description and Board Operation 3.7 UART AND IRDA MC68VZ328 RS232 Transceiver TXD RXD RTS CTS P9 VCC UART EN VCC S1-1 Buffer IRDA GND S1-2 PD4 EN EN Figure 3-5. UART and IRDA Interface. Figure 3-5 shows the UART and IRDA module. The M68EZ328ADS v2.0 has one RS232 serial ports P9. P9 is using the UART of MC68EZ328. It is 9-pin female D-Type connectors containing the signals as shown in Figure 3-6. The transceivers for UART can be enabled by turning the DIP switch S1-1 on. NC TXD RXD NC GND 1 2 3 4 5 6 7 8 9 NC CTS RTS NC Figure 3-6. Serial Port Pin Assignment The IrDA transceiver is provided and connected to DragonBall's UART Port only with a buffer in between for controlling its 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 Hardware Description and Board Operation 3.8 DEBUG PORT ST16C2552A EMUCS OR Gate CS RS232 Transceiver TXD RXD CTS RTS P8 MC68EZ328 A16 OE WE A[0..2] D[8..15] OE WE A[0..2] D[8..15] UART EN Figure 3-7. Debug Port Interface As shown in Figure 3-7, an external UART chip ST16C2552A is used to provide one more debug port on the ADS board. This UART chip is connected with the DB9 connector P8. Its pin assignment is shown in Figure 3-6. The baud rate of this UART chip is defaulted to 115200bps. 3.9 LCD AND TOUCH PANEL INTERFACE 3.9.1 LCD Interface M68EZ328ADS consists of one LCD panel connector, P10. P10 is designed for 4-bit LCD panel. The pin assignments of the LCD connector is shown in Figure 3-8. LACD LLP VO GND LD0 LD2 GND PB1 TOP LEFT P10 2 1 4 3 6 5 8 7 9 10 11 12 13 14 15 16 17 18 19 20 LFRM LCLK VCC VEE LD1 LD3 LCONTRAST NC BOTTOM RIGHT Figure 3-8. LCD and Touch Panel Connector Pin Assignment 3-23 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Hardware Description and Board Operation For full description of the LCD signals, please refer to the MC68EZ328 User's Manual. 3.9.2 Touch Panel Interface Touch Panel VCC RIGHT TOP LEFT MC68EZ328 BOTTOM S1-5 PB6 IRQ5 S1-4 ADS7843 CS PENIRQ SPMCLK SPMTXD SPMRXD DCLK DIN DOUT Figure 3-9. Touch Panel Controller Interface The M68EZ328ADS board is equipped with Burr-Brown Touch Panel Controller ADS7843. Figure 3-9 shows the interface of Touch Panel Controller. Totally one I/O signal, one interrupt capable I/O signal and one set of SPIM signals from MC68EZ328 are used to implement the touch panel circuitry. All of these signals can be shared for other devices when touch panel interface controller is being disabled. The on-board touch panel controller can be disabled by turning both DIP switches S1-4, S1-5 off. Table 3-6. Signal Assignment for Touch Panel Controller Signals SPMRXD, SPMTXD, SPMCLK ~IRQ5 PB6 Function This set of serial port interface signals performs data transfer with ADS7843. For detailed operation on the SPI port, please refer to the MC68EZ328 User's Manual. This signal is a MC68EZ328 interrupt capable I/O pin. This MC68EZ328 general I/O signal is used to select the ADS7843 on data transfer. The ADS7843 is a 12-bit sampling analog-to-digital converter (ADC) with a synchronous serial interface and low on-resistance switches for touch screens. The ADS7843 communicates with MC68EZ328 through SPI (Serial Peripheral Interface). In this case, ADS7843 is a slave, and MC68EZ328 is a master. For the detailed operation of ADS7843, please refer to its datasheet. 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 Hardware Description and Board Operation 3.10 SINGLE TONE GENERATOR VCC S1-5 PWMO BC847 MC68VZ328 CitiSound CHB-03E GND Figure 3-10. Single Tone Generator Citizen single tone generator CHB-03E is provided on M68EZ328ADS v2.0. As shown in Figure 3-10, a simple transistor circuit is used to interface the CHB-03E with the PWMO pin of MC68EZ328. 3.11 LOGIC ANALYZER INTERFACE To provide an convenient way of connecting on-board signals to a logic analyzer, ADS board provides five 10x2-pin headers for direct plug-in. Pin assignments to these five headers are shown in Figure 3-11. POD3 POD2 POD1 EMUIRQ OE UWE DTACK LACD LLP LD3 LD1 GND CSA0 CSA1 CSB1 RAS1 CAS1 A22 A20 A18 A16 POD4 CSA0 CSB0 RAS0 CAS0 A23 A21 A19 A17 GND DTACK A14 A12 A10 A8 A6 A4 A2 A0 1 CLKO 3 D14 5 D12 7 D10 9 D8 11 D6 13 D4 15 D2 17 D0 19 2 4 6 8 10 12 14 16 18 20 1 D15 EMUCS 3 D13 RSTIN 5 D11 EMUCS 7 D9 LWE 9 D7 CONTRAST 11 D5 LCLK 13 D3 LFRM 15 D1 LD2 17 GND LD0 19 2 4 6 8 10 12 14 16 18 20 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 A15 A13 A11 A9 A7 A5 A3 A1 GND Figure 3-11. Logic Analyzer Connectors 3.12 EXPANSION CONNECTORS The M68EZ328ADS v2.0 provides basic features for software development and evaluation. If user wants to add application subsystem to M68EZ328ADS v2.0, it can utilize the signals provided on 32x3 local bus connector (P4). Some of these MC68EZ328 signals are used by the on-board modules. 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 Hardware Description and Board Operation Table 3-7. Pin Assignments of P4 Pin# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 A GND D0/PA0 D3/PA3 D6/PA6 D9 D12 D15 PB0/CSB0 PB3/CSC1/RAS1 PB6/TOUT/TIN PC1/LD1 PC4/LFRM PC7/LACD PD2/INT2 PD5/IRQ2 PE0/SPMTXD PE3/DWE/UCLK PE6/RTS PF1/IRQ5 MA0/A1 MA3/A4 MA6/A7 MA9/A10 MA12/A13 MA15/A16 A19 PF5/A22 PG3/HIZ/P/D PG0/BUSW/DTACK UWE PK3/UDS VCC B GND D1/PA1 D4/PA4 D7/PA7 D10 D13 CSA0 PB1/CSB1 PB4/CSD0/CAS0 PB7/PWMO1 PC2/LD2 PC5/LLP PD0/INT0 PD3/INT3 PD6/IRQ3 PE1/SPMRXD PE4/RXD PE7/CTS PF2/CLKO MA1/A2 MA4/A5 MA7/A8 MA10/A11 MA13/A14 A17 PF3/A20 PF6/A23 PG4/EMUCS RESET LWE PK1/R/W VCC C GND D2/PA2 D5/PA5 D8 D11 D14 PF7/CSA1 PB2/CSC0/RAS0 PB5/CSD1/CAS1 PC0/LD0 PC3/LD3 PC6/LCLK PD1/INT1 PD4/IRQ1 PD7/IRQ6 PE2/SPMCLK PE5/TXD PF0/LCONTRAST PG1/A0 MA2/A3 MA5/A6 MA8/A9 MA11/A12 MA14/A15 A18 PF4/A21 PG2/EMUIRQ PG5/EMUBRK OE PK2/LDS NC VCC 3.13 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 Hardware Description and Board Operation is connected to the ADS, the LCD driver can be powered by this VEE input. Figure 3-12 locates the power connectors and their polarity. P2 GND VEE Debug Port P1 GND EZ UART _ 3.0-3.3V + M68EZ328ADS Figure 3-12. Power Connectors 3-27 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Comparison of M68EZ328ADS Version 1.x and 2.0 APPENDIX A COMPARISON OF M68EZ328ADS VERSION 1.X AND 2.0 This section describes the difference between the M68EZ328ADS version 1.x and 2.0. If user is not upgrading the development platform from M68EZ328ADS v1.x to v2.0, this section can be ignored. A.1 HARDWARE Table A-1 shows the difference between the M68EZ328ADS v1.x and v2.0. Table A-1. Comparison of M68EZ328ADS v1.x and v2.0 Version 2.0 2M-byte Flash Memory using one Flash Memory 2M-byte Flash Memory using four AT29BV040 MBM29LV160T (expandable to 4M-byte Flash Memory) SRAM 256K-byte SRAM No SRAM 4M-byte EDO DRAM using the WE signal of 8M-byte EDO DRAM using the DWE signal of EDO DRAM MC68EZ328 MC68EZ328 Touch Panel Interface MAXIM MAX1249 and four transistors Burr-Brown ADS7843E Expansion Socket Same pin assignment Same pin assignment LCD Connector Same pin assignment Same pin assignment IrDA No HSDL-3201 ADI Port and MC68681 Serial Port with max. ST16C2552A Serial Port with max. baud rate = Debug Port baud rate = 57600bps 115200bps Buzzer No Citizen CHB-03E Bus Width 8-bit/16-bit 16-bit only Descriptions Version 1.x A.2 SOFTWARE Table A-2 shows the software change in M68EZ328ADS v2.0. Table A-2. Software Change for using M68EZ328ADS v2.0 Descriptions The new ADS is equipped with different memory device. So, the initizalization code needs to Initizalization Code be changed. Touch Panel Controller Device Burr-Brown ADS7843E is used. A new device driver is required. Driver Pin 12 (DWE/UCLK/PE3) of MC68EZ328 is programmed as DWE signals for on-board EDO DWE DRAM. It cannot be used as Port or UCLK again. IrDA The IrDA module needs to be enabled by setting PD4 to zero. Items MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL A-28 Comparison of M68EZ328ADS Version 1.x and 2.0 A-29 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA APPENDIX B RESISTIVE TOUCH PANEL OPERATION M68VZ328ADS features pen input through a resistive-film sensing panel. This type of panel provides high flexibility by accepting input form any kind of stimulus including fingers, which is most suitable for portable use. User can select a specific touch panel or order an LCD module which includes a touch resistive panel. This section describes the basic concepts of pen input and the required interface with the M68VZ328ADS. B.1 GENERAL CONCEPTS OF RESISTIVE PANELS Basically, resistive panel consists of two transparent resistive layers separated by insulating spacers as shown in Figure 2-1. Figure 2-1. Resistive Touch Panel Transparent Resistive Layer - resistive material such as an indium tin oxide (ITO) film is coated on dielectric (insulating) substrate, usually glass on bottom and plastic on top for actuation. 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 Resistive Touch Panel Operation The resistive panel works by applying a voltage gradient across one conductive layer and measuring the voltage at the point of contact with the opposing conductive layer. For instance, as shown in Figure 2-2, the resistive film acts as a series of resistors. Figure 2-2. Determination of X,Y Position When a point is contacted, it means the two opposing conductive layers come into electrical contact. The x position of actuation can be determined by measuring the output voltage of the y layer. 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 relationship. B-31 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA APPENDIX C PROGRAMMING ON-BOARD FLASH MEMORY C.1 OVERVIEW The Flash memory on the ADS board cannot be written directly. A special program command sequence is required to unlock it before starting the write process. A flash program is therefore provided with the ADS board for helping users to do re-programming. The sections below will describe the program and provide further information about the process and other required elements. It is recommended that user should have a basic understanding of bootstrap mode operation of MC68EZ328 before reading the material below. For more details on Bootstrap mode, please refer to the MC68EZ328 user's manual. C.2 ELEMENTS FOR PROGRAMMING THE FLASH The following files are necessary for programming the Flash memory 1. EZTOOLS including BBUG.EXE and STOB.EXE 2. INIT.B - b-record for initializing the ADS 3. ERASE.B - b-record for erasing the flash memory 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 Programming On-board Flash Memory C.3 METHOD FLASH Program System RAM ROM Image offset Copy the ROM Image from system RAM to Flash Memory by the flash Program. Flash Memory Figure C-1. Method of programming on-board Flash memory Flash memory can be programmed in bootstrap mode. First, a ROM image and a flash program are downloaded to the system memory by loading their b-records. Then, run the flash program. It will execute the Flash program command sequence and copy the ROM image from the system RAM to the Flash memory. The detailed steps are as follows. 1. Force the MC68EZ328 into bootstrap mode by turning S2-8 on and pressing RESET switch once. 2. Use BBUG.EXE or TERMINAL program to communicate with the M68EZ328ADS through RS232 port of a PC. 3. Initialize the internal registers of DragonBall-VZ by loading the INIT.B. 4. Make sure the Flash Memory is blank. Load ERASE.B to erase the flash memory when needed. 5. Load FLASHNML.B (the Flash Program) and ROM.B (the ROM image) to system RAM (EDO DRAM on M68EZ328ADS). 6. Execute the Flash Program by using the execution B-record. For example, if the starting address of Flash Program is 0x4000, the execution B-record is then "0000400000". C.4 OFFSET ADDRESS OF ROM IMAGE Figure C-1 shows that the ROM image is first put to the system RAM before it is copied to Flash. In order to create S-record/B-record with download address different from its execution address, an OFFSET is sometimes required to be specified in downloading program. C-33 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory For example, when using SDS's DOWN.EXE to generate the s-record, the "-w offset" parameter can be used to specify this offset value. Please refer to the SingleStep User Guide for using this command. C.5 EXECUTING PROGRAM COMMAND SEQUENCE Listed below is the source code of the flash Program which contains the necessary steps to write the flash memory MBM29LV160T. It executes the flash program command sequence and copies the ROM image from RAM area to the Flash memory area on ADS board. Figure C-2 shows the flow chart of this program. Different brands of Flash memory may have different program command sequences, please refer to their datasheets for more details. XREF OFFSET1 OFFSET2 TIME STKTOP equ $AAA equ $554 equ $FFF ***************************************************************** ECHO MACRO CHAR bsr TXD_RDY nop nop nop move.b #CHAR,$FFFFF907 ENDM ***************************************************************** ENABLE MACRO move.w #$00AA,(A5) ; Unlock Flash move.w #$0055,(A6) move.w #$00A0,(A5) ENDM ***************************************************************** SECTION parameter pSOURCE DC.L $00010000 pTARGET DC.L $01000000 pSIZE DC.L $00010000 pFLASH DC.L $01000000 pERROR pFINISH pERROR_ADDRESS DC.L $0 DC.L $0 DC.L $0 DC.L STKTOP ***************************************************************** SECTION code START MOVEA.L #STKTOP,a7 ;re-istall stack pointer in case bootstrap mode MOVE.L MOVE.L move.l #0,pERROR #0,pFINISH #0,pERROR_ADDRESS C-34 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory move.l move.l move.l move.l move.l pSOURCE,A0 pTARGET,A1 pSIZE,D0 pFLASH,A5 pFLASH,A6 ******************************************* * BreakPoint Here if program flash in SDS * ******************************************* add.l add.l #OFFSET1,A5 #OFFSET2,A6 ************************************************** ;***************************************** ; Input Parameters: ; a0 - (Long) Source Address ; a1 - (Long) Target Address ; d0 - (Long) Byte Size ; a5 - (long) Flash Starting Address Offset1 ; a6 - (long) Flash Starting Address Offset2 ;***************************************** move.l move.l clr.l clr.b PROGRAM ENABLE move.w clr.l POLLING cmp.l bgt add.l move.w move.w cmp.w bne add.l add.l add.l cmp.b bne ECHO ECHO add.b #TIME,d4 ERROR #1,d4 (a2),d2 (a3),d3 d2,d3 POLLING #2,a2 #2,a3 #2,d1 #0,d5 NO_W 'W' 0 #1,d5 ; if d4>#TIME, bra ERROR ; d4++ ; Compare (a0),(a1) (a2),(a3) d4 ; Copy source to target ; clear d4 as polling counter a0,a2 a1,a3 d1 d5 ; a2 as source ; a3 as target ; clear d1 as counter ; clear d5 as ECHO counter ; End of POLLING NO_W C-35 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory cmp.l ble d0,d1 PROGRAM ; if d1<=d0, bra PROGRAM ;***************************************** ; Input Parameters: ; a0 - (Long) Source Address ; a1 - (Long) Target Address ; d0 - (Long) Byte Size ; a5 - (long) Flash Starting Address Offset 1 ; a6 - (long) Flash Starting Address Offset 2 ;***************************************** move.l a0,a2 ;a2 & a3 are used to store the starting address move.l a1,a3 ;for comparing. clr.b clr.l VERIFIY cmp.b bne ECHO ECHO add.b move.w move.w cmp.w bne add.l cmp.l ble bra #0,d5 NO_V 'V' 0 #1,d5 (a2)+,d2 (a3)+,d3 d2,d3 ERROR #2,d1 d0,d1 VERIFIY FINISH ; if d1<=d0, bra CHECK d5 d1 ;clear d5 as ECHO counter ;clear d1 as counter NO_V **************************************************************************** TXD_RDY move.l POLLTXD btst.b beq.s move.w sub.w bne.b move.l rts #5,$FFFFF906 POLLTXD #$0FFF,d7 #1,d7 LP_RDY (a7)+,d7 ; bra if TXAVAIL not SET d7,-(a7) ; Push d7 LP_RDY ; Restore d7 **************************************************************************** FINISH ECHO ECHO ECHO '\n' 'P' 'A' C-36 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO move.l bra 'S' 'S' '\n' 0 0 0 0 0 0 #1,pFINISH BOOTSTRAP ************************************************************ ERROR ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO ECHO sub.l move.l move.l bra '\n' 'E' 'R' 'R' 'O' 'R' '\n' 0 0 0 0 0 0 #1,a3 a3,pERROR_ADDRESS #1,pERROR BOOTSTRAP ************************************************************ BOOTSTRAP jmp $FFFFFF44 ************************************************************ END C-37 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory Figure C-2. Flash Program Algorithm C-38 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Programming On-board Flash Memory C-39 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA APPENDIX D MONITOR INITIALIZATION CODE D.1 INITIALIZATION CODE OF METROWERKS MONITOR (RESET.S) MON_STACKTOP.equ$4100; M328BASE Above is TOO low, try this .equ $FFFFF000 ; SIM28 System Configuration Registers SCR .equ (M328BASE+$000) ; Chip Select Registers GRPBASEA .equ GRPBASEB .equ GRPBASEC .equ GRPBASED .equ CSA .equ CSB .equ CSC .equ CSD .equ DRAMCFG .equ DRAMCTL .equ EMUCS .equ CSCTR .equ ; PLL Registers PLLCR .equ PLLFSR .equ PLLTSR .equ (M328BASE+$100) (M328BASE+$102) (M328BASE+$104) (M328BASE+$106) (M328BASE+$110) (M328BASE+$112) (M328BASE+$114) (M328BASE+$116) (M328BASE+$C00) (M328BASE+$C02) (M328BASE+$118) (M328BASE+$150) (M328BASE+$200) ; Control Reg (M328BASE+$202) ; Freq Select Reg (M328BASE+$204) ; Test Reg ; Power Control Registers PCTLR .equ (M328BASE+$206) ; Control Reg ; Interrupt Registers IVR .equ ICR .equ IMR .equ ISR .equ IPR .equ ; PIO Registers PADIR PADATA PAPUEN PBDIR PBDATA PBPUEN PBSEL PCDIR PCDATA .equ .equ .equ .equ .equ .equ .equ .equ .equ ; Port A Registers (M328BASE+$400) ; Direction Reg (M328BASE+$401) ; Data Reg (M328BASE+$402) ; Pullup Enable Reg ; Port B Registers (M328BASE+$408) ; Direction Reg (M328BASE+$409) ; Data Reg (M328BASE+$40A) ; Pullup Enable Reg (M328BASE+$40B) ; Select Reg ; Port C Registers (M328BASE+$410) ; Direction Reg (M328BASE+$411) ; Data Reg (M328BASE+$300) (M328BASE+$302) (M328BASE+$304) (M328BASE+$30C) (M328BASE+$310) ; ; ; ; ; Interrupt Interrupt Interrupt Interrupt Interrupt Vector Reg Control Reg Mask Reg Status Reg Pending Reg MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL D-40 Monitor Initialization Code PCPDEN PCSEL PDDIR PDDATA PDPUEN PDSEL PDPOL PDIRQEN PDIRQEDGE PEDIR PEDATA PEPUEN PESEL PFDIR PFDATA PFPUEN PFSEL PGDIR PGDATA PGPUEN PGSEL .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ (M328BASE+$412) ; Pull-down Enable Reg (M328BASE+$413) ; Select Reg ; Port D Registers (M328BASE+$418) ; Direction Reg (M328BASE+$419) ; Data Reg (M328BASE+$41A) ; Pullup Enable Reg (M328BASE+$41B) ; port D select (M328BASE+$41C) ; Polarity Reg (M328BASE+$41D) ; IRQ Enable Reg (M328BASE+$41F) ; IRQ Edge Reg ; Port E Registers (M328BASE+$420) ; Direction Reg (M328BASE+$421) ; Data Reg (M328BASE+$422) ; Pullup Enable Reg (M328BASE+$423) ; Select Reg ; Port F Registers (M328BASE+$428) ; Direction Reg (M328BASE+$429) ; Data Reg (M328BASE+$42A) ; Pullup Enable Reg (M328BASE+$42B) ; Select Reg ; Port G Registers (M328BASE+$430) ; Direction Reg (M328BASE+$431) ; Data Reg (M328BASE+$432) ; Pullup Enable Reg (M328BASE+$433) ; Select Reg ; PWM Registers PWMC .equ PWMS .equ PWMCNT .equ ; Timer Registers TCTL TPRER TCMP TCR TCN TSTAT .equ .equ .equ .equ .equ .equ (M328BASE+$500) ; Control Reg (M328BASE+$502) ; Sample Reg (M328BASE+$504) ; Count Reg ; Timer 1 Registers (M328BASE+$600) ; Control Reg (M328BASE+$602) ; Prescalar Reg (M328BASE+$604) ; Compare Reg (M328BASE+$606) ; Capture Reg (M328BASE+$608) ; Counter (M328BASE+$60A) ; Status Reg ; SPI Registers SPIMDATA .equ SPIMCONT .equ ; UART Registers USTCNT .equ UBAUD .equ UARTRX .equ UARTTX .equ UARTMISC .equ UARTNIPR .equ ; LCDC Registers LSSA .equ LVPW .equ (M328BASE+$800) ; Control/Status Reg (M328BASE+$802) ; Data Reg (M328BASE+$900) (M328BASE+$902) (M328BASE+$904) (M328BASE+$906) (M328BASE+$908) (M328BASE+$90A) ; ; ; ; ; ; Status Control Reg Baud Control Reg Rx Reg Tx Reg Misc Reg None-Integer Prscaler reg (M328BASE+$A00) ; Screen Start Addr Reg (M328BASE+$A05) ; Virtual Page Width Reg D-41 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code LXMAX LYMAX LCXP LCYP LCWCH LBLKC LPICF LPOLCF LACDRC LPXCD LCKCON LRRA LPOSR LFRCM LGPMR LPWM ; RTC Registers RTCHMSR RTCALM0R RTCDAY RTCWD RTCCTL RTCISR RTCIENR RSTPWCH ;ICEM registers ICEMACR ICEMAMR ICEMCCR ICEMCMR ICEMCR ICEMSR .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ .equ (M328BASE+$A08) (M328BASE+$A0A) (M328BASE+$A18) (M328BASE+$A1A) (M328BASE+$A1C) (M328BASE+$A1F) (M328BASE+$A20) (M328BASE+$A21) (M328BASE+$A23) (M328BASE+$A25) (M328BASE+$A27) (M328BASE+$A29) (M328BASE+$A2D) (M328BASE+$A31) (M328BASE+$A33) (M328BASE+$A36) ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Screen Width Reg Screen Height Reg Cursor X Position Cursor Y Position Cursor Width & Height Reg Blink Control Reg Panel Interface Config Reg Polarity Config Reg ACD (M) Rate Control Reg Pixel Clock Divider Reg Clocking Control Reg Refresh Rate Adjust reg Panning Offset Reg Frame Rate Control Mod Reg Gray Palette Mapping Reg contrast control Reg .equ .equ .equ .equ .equ .equ .equ .equ (M328BASE+$B00) (M328BASE+$B04) (M328BASE+$B08) (M328BASE+$B0A) (M328BASE+$B0C) (M328BASE+$B0E) (M328BASE+$B10) (M328BASE+$B12) ; ; ; ; ; ; ; ; Hrs Mins Secs Reg Alarm Register RTC date reg RTC watch dog timer reg Control Reg Interrupt Status Reg Interrupt Enable Reg Stopwatch Minutes .equ .equ .equ .equ .equ .equ (M328BASE+$D00) (M328BASE+$D04) (M328BASE+$D08) (M328BASE+$D0A) (M328BASE+$D0C) (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 .externemu_lvl7_handler jmp emu_lvl7_handler .org0x20 ;-SECTIONrom_code ; int7 handler (in EMU mode) goes here ; initial code starts at offset 0x20 D-42 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code .global ___reset ___reset: rom_start: move.b move.w move.l move.w move.b move.w move.b move.b move.b move.w move.w #$9,PGSEL #$2410,PLLCR #MON_STACKTOP,A7 #$2700,sr #$1C,SCR #0,RTCWD #$03,PFSEL #$00,PBSEL #$00,PESEL #$08,ICEMCR #$07,ICEMSR ; ; ; ; ; ; ; ; ; ; ; config PG0/DTACK to GPI/O,input sysclk = VCO/1, enable clko Install stack pointer mask off all interrupts enable bus error timeout bit disable watch dog select A23-A20, CLKO, CSA1 Config port B for chip select A,B,C and D select *DWE disable ICEM vector hardmap clear level 7 interrupt ;***************************** ; Init Code for 512Kx16 Flash ;***************************** move.w #$0400,GRPBASEA move.w #$0189,CSA ; GROUPA BASE(FLASH), Start address=0x800000 ; 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 clr.l clr.l clr.l clr.l clr.l clr.l clr.l d0 d1 d2 d3 d4 d5 d6 d7 ;********************************************************************** ; ; LCD Temp init for screen protection ; ;********************************************************************** move.b move.b #0,PCSEL #0,PCPDEN D-43 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code move.l move.w move.w move.b move.b move.b move.b move.b move.b move.b move.b move.b #$4000,LSSA #160,LXMAX #239,LYMAX #10,LVPW #$08,LPICF #$01,LPOLCF #$00,LACDRC #$02,LPXCD #$14,LRRA #$00,LPOSR #$00,LCKCON #$80,LCKCON ; disable LCDC ; 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 M328BASE p=68000 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-44 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code DRAMCTL EMUCS CSCTR equ equ equ (M328BASE+$C02) (M328BASE+$118) (M328BASE+$150) ; PLL Registers PLLCR equ PLLFSR equ PLLTSR equ (M328BASE+$200) ; Control Reg (M328BASE+$202) ; Freq Select Reg (M328BASE+$204) ; Test Reg ; Power Control Registers PCTLR equ (M328BASE+$206) ; Control Reg ; Interrupt Registers IVR equ ICR equ IMR equ ISR equ IPR equ ; PIO Registers PADIR PADATA PAPUEN PBDIR PBDATA PBPUEN PBSEL PCDIR PCDATA PCPDEN PCSEL PDDIR PDDATA PDPUEN PDSEL PDPOL PDIRQEN PDIRQEDGE PEDIR PEDATA PEPUEN PESEL PFDIR PFDATA PFPUEN PFSEL PGDIR PGDATA equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ ; Port A Registers (M328BASE+$400) ; Direction Reg (M328BASE+$401) ; Data Reg (M328BASE+$402) ; Pullup Enable Reg ; Port B Registers (M328BASE+$408) ; Direction Reg (M328BASE+$409) ; Data Reg (M328BASE+$40A) ; Pullup Enable Reg (M328BASE+$40B) ; Select Reg ; Port C Registers (M328BASE+$410) ; Direction Reg (M328BASE+$411) ; Data Reg (M328BASE+$412) ; Pull-down Enable Reg (M328BASE+$413) ; Select Reg ; Port D Registers (M328BASE+$418) ; Direction Reg (M328BASE+$419) ; Data Reg (M328BASE+$41A) ; Pullup Enable Reg (M328BASE+$41B) ; port D select (M328BASE+$41C) ; Polarity Reg (M328BASE+$41D) ; IRQ Enable Reg (M328BASE+$41F) ; IRQ Edge Reg ; Port E Registers (M328BASE+$420) ; Direction Reg (M328BASE+$421) ; Data Reg (M328BASE+$422) ; Pullup Enable Reg (M328BASE+$423) ; Select Reg ; Port F Registers (M328BASE+$428) ; Direction Reg (M328BASE+$429) ; Data Reg (M328BASE+$42A) ; Pullup Enable Reg (M328BASE+$42B) ; Select Reg ; Port G Registers (M328BASE+$430) ; Direction Reg (M328BASE+$431) ; Data Reg (M328BASE+$300) (M328BASE+$302) (M328BASE+$304) (M328BASE+$30C) (M328BASE+$310) ; ; ; ; ; Interrupt Interrupt Interrupt Interrupt Interrupt Vector Reg Control Reg Mask Reg Status Reg Pending Reg D-45 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code PGPUEN PGSEL equ equ (M328BASE+$432) ; Pullup Enable Reg (M328BASE+$433) ; Select Reg ; PWM Registers PWMC equ PWMS equ PWMCNT equ ; Timer Registers TCTL TPRER TCMP TCR TCN TSTAT equ equ equ equ equ equ (M328BASE+$500) ; Control Reg (M328BASE+$502) ; Sample Reg (M328BASE+$504) ; Count Reg ; Timer 1 Registers (M328BASE+$600) ; Control Reg (M328BASE+$602) ; Prescalar Reg (M328BASE+$604) ; Compare Reg (M328BASE+$606) ; Capture Reg (M328BASE+$608) ; Counter (M328BASE+$60A) ; Status Reg ; SPI Registers SPIMDATA equ SPIMCONT equ ; UART Registers USTCNT equ UBAUD equ UARTRX equ UARTTX equ UARTMISC equ UARTNIPR equ ; LCDC Registers LSSA equ LVPW equ LXMAX equ LYMAX equ LCXP equ LCYP equ LCWCH equ LBLKC equ LPICF equ LPOLCF equ LACDRC equ LPXCD equ LCKCON equ LRRA equ LPOSR equ LFRCM equ LGPMR equ LPWM equ ; RTC Registers RTCHMSR RTCALM0R RTCDAY RTCWD RTCCTL (M328BASE+$800) ; Control/Status Reg (M328BASE+$802) ; Data Reg (M328BASE+$900) (M328BASE+$902) (M328BASE+$904) (M328BASE+$906) (M328BASE+$908) (M328BASE+$90A) ; ; ; ; ; ; Status Control Reg Baud Control Reg Rx Reg Tx Reg Misc Reg None-Integer Prscaler reg (M328BASE+$A00) (M328BASE+$A05) (M328BASE+$A08) (M328BASE+$A0A) (M328BASE+$A18) (M328BASE+$A1A) (M328BASE+$A1C) (M328BASE+$A1F) (M328BASE+$A20) (M328BASE+$A21) (M328BASE+$A23) (M328BASE+$A25) (M328BASE+$A27) (M328BASE+$A29) (M328BASE+$A2D) (M328BASE+$A31) (M328BASE+$A33) (M328BASE+$A36) ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Screen Start Addr Reg Virtual Page Width Reg Screen Width Reg Screen Height Reg Cursor X Position Cursor Y Position Cursor Width & Height Reg Blink Control Reg Panel Interface Config Reg Polarity Config Reg ACD (M) Rate Control Reg Pixel Clock Divider Reg Clocking Control Reg Refresh Rate Adjust reg Panning Offset Reg Frame Rate Control Mod Reg Gray Palette Mapping Reg contrast control Reg equ equ equ equ equ (M328BASE+$B00) (M328BASE+$B04) (M328BASE+$B08) (M328BASE+$B0A) (M328BASE+$B0C) ; ; ; ; ; Hrs Mins Secs Reg Alarm Register RTC date reg RTC watch dog timer reg Control Reg D-46 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code RTCISR RTCIENR RSTPWCH ;ICEM registers ICEMACR ICEMAMR ICEMCCR ICEMCMR ICEMCR ICEMSR equ equ equ (M328BASE+$B0E) ; Interrupt Status Reg (M328BASE+$B10) ; Interrupt Enable Reg (M328BASE+$B12) ; Stopwatch Minutes equ equ equ equ equ equ (M328BASE+$D00) (M328BASE+$D04) (M328BASE+$D08) (M328BASE+$D0A) (M328BASE+$D0C) (M328BASE+$D0E) **************************************************************************** * ADDRESSING OPTIONS **************************************************************************** ;INTERVAL: equ 2 INTERVAL: equ 1 **************************************************************************** * I/O DEVICE OPTIONS **************************************************************************** ***************************************************************** * WARNING: This file redefines _usr_gchar bypassing the BSP * ***************************************************************** **************************************** * Setting for ST16C2552 **************************************** #define DEV_IN ST16C2552 #define DEV_OUT ST16C2552 BASE_IN: equ $FFFD0000 ; BASE_OUT: equ $FFFD0000 ; BAUD_IN: equ 576 ; BAUD_OUT: equ 576 ; **************************************** * Setting for EZ-UART **************************************** ;#define DEV_IN EZUART ;#define DEV_OUT EZUART ;BASE_IN: equ $fffd8000 ;BASE_OUT: equ $fffd8000 ;BAUD_IN: equ 1152 ;BAUD_OUT: equ 1152 **************************************** * Seting for ADI PORT on EZ-ADS **************************************** ;#define DEV_IN ADIPORT ;#define DEV_OUT ADIPORT ;BASE_IN: equ $fffd8000 ;BASE_OUT: equ $fffd8000 ;BAUD_IN: equ 0 ;BAUD_OUT: equ 0 **************************************** base base baud baud address address rates = BAUD_IN/100 bps rates = BAUD_OUT/100 bps ; ; ; ; base base baud baud address address rates = rates = not applicable not applicable 115200 bps 115200 bps ; ; ; ; base base baud baud address of input device address of output device rates not applicable rates not applicable D-47 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code * Seting for MC68681 on EZ-ADS * Supported baudrate: 19200 * 9600 **************************************** ;#define DEV_IN MC68681 ;#define DEV_OUT MC68681 ;#define PNAME_IN A ;#define PNAME_OUT A ;BASE_IN: equ $fffd0001 ;BASE_OUT: equ $fffd0001 ;BAUD_IN: equ 19200 ;BAUD_OUT: equ 19200 ;ACR_VAL: equ $80 ;IRQ_MASK: equ $00 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; ; ; base address of input device base address of output device baud rates (bits/sec) baud rates (bits/sec) choose baud set 2 (bit#7=1) ***************************************************** * Seting for MC68681 on EZ-ADS with BaudRate=57600bps ***************************************************** ;#define DEV_IN MC68681 ;#define DEV_OUT MC68681 ;#define PNAME_IN A ;#define PNAME_OUT A ;BASE_IN: equ $fffd0001 ; base address of input device ;BASE_OUT: equ $fffd0001 ; base address of output device ;BAUD_IN: equ 0 ;BAUD_OUT: equ 0 ;ACR_VAL: equ $60 ;IRQ_MASK: equ $00 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; **************************************************************************** * INTERRUPT BEHAVIOR OPTIONS **************************************************************************** #define STOP_LEVEL 7 #define VECT_STOP $47 ; ABORT interrupt ; ************************************************** ; If your board hardware requires you to clear the ; "read" interrupt, then you must include the necessary ; code inside the INT_RCLEAR macro below. ; ************************************************** INT_RCLEAR: macro endm ; ************************************************** ; "stop" interrupt ; We will only stop the target if the ABORT switch is pressed. We ; will not stop for HOST_NMI or EXT_NMI interrupts. ; The Non-Maskable Interrupt status is in the NMI_STATUS register ; which is in even-byte locations at 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 Monitor Initialization Code move.w or.w endm INT_DOG: endm #$7,ICEMSR #$FF80,ISR ; clear level 7 interrupt ; return non-zero in D0 if ABORT macro ; ************************************************** ; Macros for use at application startup (EXEC) ; and stop (DONE). Normally these are empty. ; ************************************************** USR_EXEC: macro endm USR_DONE: endm macro **************************************************************************** * RESET OPTIONS **************************************************************************** ; ************************************************** ; Contents of the "usr_reset" section. In the usual ; case, this is two longwords long, with the first word ; containing the value with which the processor ; loads up its stack pointer, and the second of ; which is the value with which the processor ; loads up its program counter. This will bring up ; the monitor on a hardware reset. ; ************************************************** USR_RESET: macro dc.l MON_STACKTOP ; stack pointer (default) dc.l reset$$$ ; program counter (default) dcb.l 6,0 endm ; ************************************************** ; Hard reset macro - contains very high priority ; instructions which must be executed immediately ; upon a hardware reset. ; ************************************************** RESET_HARD: move.b move.w move.l move.w move.b move.w move.b move.b move.b move.w macro #$9,PGSEL #$2410,PLLCR #MON_STACKTOP,A7 #$2700,sr #$1C,SCR #0,RTCWD #$03,PFSEL #$00,PBSEL #$00,PESEL #$08,ICEMCR ; ; ; ; ; ; ; ; ; ; config PG0/DTACK to GPI/O,input sysclk = VCO/1, enable clko Install stack pointer mask off all interrupts enable bus error timeout bit disable watch dog select A23-A20, CLKO, CSA1 Config port B for chip select A,B,C and D select *DWE disable ICEM vector hardmap D-49 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code move.w #$07,ICEMSR ; clear level 7 interrupt ;***************************** ; Init Code for 512Kx16 Flash ;***************************** move.w #$0400,GRPBASEA move.w #$0189,CSA ; GROUPA BASE(FLASH), Start address=0x800000 ; 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=0x0000000x7FFFFF move.w #$069F,CSD ; enable DRAM cs ;********************************** ; Init Code for EMUCS ;********************************** move.w #$30,EMUCS ; 3ws clr.l clr.l clr.l clr.l clr.l clr.l clr.l clr.l d0 d1 d2 d3 d4 d5 d6 d7 ;********************************************************************** ; ; LCD Temp init for screen protection ; ;********************************************************************** move.b move.b move.l move.w move.w move.b move.b move.b move.b move.b move.b move.b move.b move.b #0,PCSEL #0,PCPDEN #$4000,LSSA #160,LXMAX #239,LYMAX #10,LVPW #$08,LPICF #$01,LPOLCF #$00,LACDRC #$02,LPXCD #$14,LRRA #$00,LPOSR #$00,LCKCON #$80,LCKCON ; disable LCDC ; enable LCDC, 0ws, 16-bit ;********************************************************************** D-50 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code ; ; Initialize I/O to avoid contention ; ;********************************************************************** ; TBD since the contention does not affect ADS operation ;********************************************************************** ; ; Program Interrupt Controller ; ;********************************************************************** move.b #$40,IVR move.l #$007FFFFF,IMR endm ; ************************************************** ; Soft reset macro - contains instructions ; which must be executed upon a processor reset. ; ************************************************** RESET_SOFT: macro ; *************************************** ; * Setting for MC68681 ; *************************************** .if "\{DEV_IN}"=="MC68681" equ (BASE_IN+OFF6) equ (BASE_IN+OFF7) move.b #IRQ_MASK,MC68681imr ;set value of IMR move.b #ACR_VAL,MC68681acr ;set value of ACR ; Setting for baudrates = 57600bps move.b #00,MC68681ctur move.b #02,MC68681ctlr ; divider=2 .endif ;enable NMI interrupt MC68681ctur MC68681ctlr endm **************************************************************************** * OTHER DEFINITIONS **************************************************************************** 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 Monitor Initialization Code MC68681imr: ds.b 1 ;IMR register .endif endm D-52 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA Monitor Initialization Code D-53 M68EZ328ADS v2.0 USER'S MANUAL MOTOROLA APPENDIX E SCHEMATICS E.1 M68EZ328ADS V2.0 MOTOROLA M68EZ328ADS v2.0 USER'S MANUAL E-54 A B C D E F G H I J 10 10 Motorola Semiconductors Hong Kong Ltd. 2 Dai King St, Tai Po Ind Est, Tai Po, NT, Hong Kong. 9 9 Schematic: Version: 8 M68EZ328ADS 2.0 8 File Name: EZADS20.DSN Last Updated: Teddy Wong on 5 Nov, 1999 7 7 6 6 5 5 4 4 3 3 2 2 1 1 A B C D E F G H I J 1 2 3 4 5 6 7 8 A[0..23] VCC A A[0..23] EZ_VDD A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 A21 A22 A23 VCC VCC VCC VCC C17 0.1u 97 78 58 40 17 U1 C18 0.1u C19 0.1u C20 0.1u A R49 2K A0 MD0/A1 MD1/A2 MD2/A3 MD3/A4 MD4/A5 MD5/A6 MD6/A7 MD7/A8 MD8/A9 MD9/A10 MD10/A11 MD11/A12 MD12/A13 A14 A15 A16 A17 A18 A19 PF3/A20 PF4/A21 PF5/A22 PF6/A23 82 83 84 85 86 88 89 90 91 92 93 94 95 96 98 99 100 1 2 3 4 5 6 7 ~DTACK ~RSTIN ~OE ~UWE ~LWE ~CSA0 ~CSA1 ~CSB0 ~CSB1 ~RAS0 ~RAS1 ~CAS0 ~CAS1 76 77 79 80 81 57 56 55 54 53 52 51 50 46 45 44 43 42 41 39 38 37 BBUSW/DTACK RESET OE UWE/WE LWE CSA0 CSA1 CSB0/PB0 CSB1/PB1 CSC0/RAS0/PB2 CSC1/RAS1/PB3 CSD0/CAS0/PB4 CSD1/CAS1/PB5 LD0/PC0 LD1/PC1 LD2/PC2 LD3/PC3 LFRM/PC4 LLP/PC5 LCLK/PC6 LACD/PC7 CONTRAST/PF0 ~DTACK ~RSTIN ~OE ~UWE ~LWE ~CSA0 ~CSA1 ~CSB0 ~CSB1 ~RAS0 ~RAS1 ~CAS0 ~CAS1 LD[0..3] LD[0..3] B VDD VDD VDD VDD VDD INT0/PD0 INT1/PD1 INT2/PD2 INT3/PD3 IRQ1/PD4 IRQ2/PD5 IRQ3/PD6 IRQ6/PD7 IRQ5/PF1 SPMTXD/PE0 SPMRXD/PE1 SPMCLK/PE2 PE3 RXD/PE4 TXD/PE5 RTS/PE6 CTS/PE7 PWMO/PB7 TOUT/TIN/PB6 EMUIRQ HIZ/P/D EMUCS BST/EMUBRK 36 35 34 33 32 30 29 28 27 9 10 11 12 13 14 15 16 47 48 18 19 20 21 ~INT0 ~INT1 ~INT2 ~INT3 ~IRQ1 ~IRQ2 ~IRQ3 ~IRQ6 ~IRQ5 SPMTXD SPMRXD SPMCLK ~DWE RXD TXD ~RTS ~CTS PWMO TOUT/TIN ~EMUIRQ ~HIZ ~EMUCS ~EMUBRK ~INT0 ~INT1 ~INT2 ~INT3 ~IRQ1 ~IRQ2 ~IRQ3 ~IRQ6 ~IRQ5 SPMTXD SPMRXD SPMCLK ~DWE RXD TXD ~RTS ~CTS PWMO TOUT/TIN ~EMUIRQ ~HIZ ~EMUCS ~EMUBRK LFRM LLP LCLK LACD CONTRAST LD0 LD1 LD2 LD3 LFRM LLP LCLK LACD CONTRAST 0&(= EZ_VDD JP1 VCC B EZ_VDD JP2 VCC 8 31 49 67 87 75 74 73 72 71 70 69 68 66 65 64 63 62 61 60 59 22 23 24 25 26 PLLGND EXTAL XTAL PLLVDD CLKO/PF2 PA0/D0 PA1/D1 PA2/D2 PA3/D3 PA4/D4 PA5/D5 PA6/D6 PA7/D7 D8 D9 D10 D11 D12 D13 D14 D15 GND GND GND GND GND D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 CLKO CLKO R50 VCC D[0..15] D[0..15] Y1 330 + 32.768k C23 22p C24 22p C22 0.1u C21 4.7u C C VCC VCC C25 0.1u Address Decoder ~INT0 LED3 YELLOW LED VCC ~EMUCS A16 1 3 2 MC74HC32AD ~CSBOOT C26 0.1u U12A VCC U11E R51 ~INT0 D R52 11 10 MC74HC14AD U11F R54 13 12 300 ~INT0 000 R53 ~INT1 U12B LED4 YELLOW LED 1 300 MC74HC32AD MC74HC14AD U13A 2 4 6 5 ~CSUARTX HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D ~INT1 ~INT1 000 Title MC74HC14AD Size B Date: M68EZ328ADS Document Number EZADS20.DSN Wednesday, January 05, 2000 7 Rev 2.0 Sheet 2 8 of 10 1 2 3 4 5 6 1 2 3 4 5 6 7 8 Memory DEFAULT Am29LV640DU/Am29LV641DU INSTALL R4, R5, R7, R8, R9 Am29DL322C/Am29DL323C Am29LV160B/MBM29LV160 Am29LV800B INSTALL R4, R5, R6, R7 INSTALL R4, R5, R6 INSTALL R4, R5 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 R4 R5 R7 R9 29 31 33 35 38 40 42 44 30 32 34 36 39 41 43 45 U6 DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 TSOP DQ10 DQ11 DQ12 DQ13 DQ14 DQ15/A-1 BYTE RESET WP/ACC RY/BY NC VCC 37 VCC A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 CE OE WE 25 24 23 22 21 20 19 18 8 7 6 5 4 3 2 1 48 17 16 9 10 26 28 11 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A21 000 ~CSROM0 ~OE ~UWE R8 ~CSROM0 ~OE ~UWE B VCC C8 0.1u A A A[0..23] A[0..23] A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 A21 A22 ~OE ~OE A13 A12 A9 A11 A8 000 000 000 000 000 000 R29 R30 R31 * R32 U7 R33 * R34 R35 * R36 33 32 31 30 29 28 27 24 23 22 21 20 19 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 VCC VCC VCC VCC VCC 1 6 12 25 EDO DRAM DQ15 DQ14 DQ13 DQ12 DQ11 DQ10 DQ9 DQ8 DQ7 DQ6 DQ5 DQ4 DQ3 DQ2 DQ1 DQ0 NC NC NC NC NC NC NC NC 49 48 47 46 44 43 42 41 10 9 8 7 5 4 3 2 11 15 16 17 18 34 35 40 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 VCC (I) C9 0.1u B MBM29LV160T-90PFTN 46 27 A10 000 A8 000 A1 A2 A7 A6 A5 A4 A3 A9 A8 000 A10 000 VCC 4K7 4K7 4K7 A20 000 * 47 * 12 14 15 13 000 R6 * A20 A22 VCC VSS VSS R37 * R38 USER FLASH0 VCC ~DWE ~DRAM0 ~CAS0 ~CAS1 U8 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 R12 R14 R17 R19 29 31 33 35 38 40 42 44 30 32 34 36 39 41 43 45 DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 TSOP DQ10 DQ11 DQ12 DQ13 DQ14 DQ15/A-1 BYTE RESET WP/ACC RY/BY NC VSS VSS 37 D[0..15] D[0..15] D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 ~DWE ~DRAM0 ~CAS0 ~CAS1 ~OE ~DWE ~DRAM0 ~CAS0 ~CAS1 ~OE 13 14 38 37 36 WE RAS LCAS UCAS OE VCC ~DWE ~DRAM0 ~CAS0 ~CAS1 VCC uPD42S65165G5-A60 1M X 16 10/10 INSTALL (R29, R32, R34, R35) 1M X 16 12/8 INSTALL (R29, R31, R33, R36, R38) VCC 4K7 4K7 4K7 A20 000 U9 C11 0.1u A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 12 11 10 9 8 7 6 5 27 26 23 25 4 28 29 3 2 30 1 22 24 31 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 CE OE WE AT29LV010A-25JI O0 O1 O2 O3 O4 O5 O6 O7 13 14 15 17 18 19 20 21 D8 D9 D10 D11 D12 D13 D14 D15 (I) C 4M X 16 12/10 INSTALL (R31, R33, R35, R37) 4M X 16 13/9 INSTALL (R30, R31, R33, R35, R37) * 47 * 12 14 15 13 VCC A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 CE OE WE 25 24 23 22 21 20 19 18 8 7 6 5 4 3 2 1 48 17 16 9 10 26 28 11 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A21 26 39 45 50 GND GND GND GND C10 0.1u C 000 R15 * A20 A22 000 ~CSROM1 ~OE ~UWE R18 ~CSROM1 ~OE ~UWE VCC 46 27 MBM29LV160T-90PFTN USER FLASH1 Am29LV640DU/Am29LV641DU INSTALL Am29DL322C/Am29DL323C INSTALL INSTALL INSTALL R12, R14, R17, R18, R19 R12, R14, R15, R17 R12, R14, R15 R12, R14 HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D EMU ROM DEFAULT Am29LV160B/MBM29LV160 Am29LV800B D ~CSBOOT ~OE ~UWE ~CSBOOT ~OE ~UWE Title M68EZ328ADS Size B Date: Document Number EZADS20.DSN Wednesday, January 05, 2000 7 Rev 2.0 Sheet 3 8 of 10 1 2 3 4 5 6 1 2 3 4 5 6 7 8 Touch Panel & LCD A (0,0) TOP A LCD SCREEN LEFT RIGHT Connector for 4-Bit LCD VCC P10 BOTTOM (XMAX,YMAX) B VCC VEE 2 4 6 8 10 12 14 16 18 20 LFRM LCLK LD1 LD3 CONTRAST LFRM LCLK LD1 LD3 CONTRAST B VR1 LACD LLP LD0 LD2 LACD LLP LD0 LD2 VR_10K VEE R61 ~CSB1 000 1 3 5 7 9 11 13 15 17 19 HEADER 10X2 VCC ~PEN_IRQ R57 ~PEN_IRQ U17 10 1 VCC VCC CS PENIRQ DCLK DIN X+ DOUT Y+ XBUSY YVref GND ADS7843E IN3 IN4 11 2 3 4 5 7 8 BOTTOM RIGHT TOP LEFT C 2R2 + C C42 22u ~PEN_CS SPMCLK SPMTXD SPMRXD ~PEN_CS SPMCLK SPMTXD SPMRXD 15 16 14 12 13 VCC VCC R58 10 9 6 C43 0.1u C44 0.1u D HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D Title M68EZ328ADS Size B Date: 1 2 3 4 5 6 Document Number EZADS20.DSN Wednesday, January 05, 2000 7 Rev 2.0 Sheet 4 8 of 10 1 2 3 4 5 6 7 8 UART Ports A VCC 0805_1u U14 28 26 25 24 23 22 21 20 19 18 17 16 15 C2+ C2C1+ C1VDD DO1 DO2 DO3 DI1 DO4 DI2 DO5 DI3 MC145583VF C5+ C5RIMON VSS STB RX1 RX2 RX3 TX1 RX4 TX2 RX5 TX3 1 3 4 5 6 7 8 9 10 11 12 13 14 0805_1u C28 0805_1u C29 5 9 4 8 3 7 2 6 1 A VCC R55 4K7 U15 32 44 C30 0805_1u RXA RXB TXA TXB DTRA DTRB RTSA RTSB MFA MFB CTSA CTSB RIA RIB CDA CDB GND GND DSRA DSRB 39 25 38 26 37 27 36 23 35 19 40 28 43 31 42 30 41 29 VCC 0805_1u C27 C31 P8 ~OE ~UWE RST_UARTX ~CSUARTX 24 20 21 18 16 34 17 1 32 IOR IOW RESET CS CHSEL INTA INTB TXRDYA TXRDYB A0 A1 A2 D0 D1 D2 D3 D4 D5 D6 D7 XTAL1 XTAL2 VCC VCC DEBUG PORT DB9 FEMALE A[0..2] A0 A1 A2 D8 D9 D10 D11 D12 D13 D14 D15 10 14 15 2 3 4 5 6 7 8 9 11 13 VCC B D[8..15] B C32 0.1u MON_SEL0 MON_SEL1 MON_SEL2 R56 1M Y2 ST16C2552 C33 22p 3.6864MHz C34 33p 12 22 VCC C35 0.1u C C VCC ~UART_EN 0805_1u C36 0.1u C40 0805_1u RXD ~CTS TXD RXD ~CTS TXD ~RTS U16 28 26 25 24 23 22 21 20 19 18 17 16 15 C2+ C2C1+ C1VDD DO1 DO2 DO3 DI1 DO4 DI2 DO5 DI3 MC145583VF Title M68EZ328ADS Size B Date: Document Number EZADS20.DSN Wednesday, January 05, 2000 7 0805_1u C5+ C5RIMON VSS STB RX1 RX2 RX3 TX1 RX4 TX2 RX5 TX3 1 3 4 5 6 7 8 9 10 11 12 13 14 C38 0805_1u VCC 0805_1u C41 C37 C39 5 9 4 8 3 7 2 6 1 P9 UART HyhATrvpqpACtAFtAGvvrq DB9 FEMALE 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D D ~RTS Rev 2.0 Sheet 5 8 of 10 1 2 3 4 5 6 A B C D E F G H I J 10 IrDA 10 9 9 8 8 VCC R39 7 VCC C1 0.1u 7 000 8 ~IRDA_EN 6 7 6 1 5 MC74HC125AD 3 10K C2 1u U3A TXD RXD SD VLED U2 6 TXD 2 VCC VCC VCC 3 VCC GND AGND HSDL-3201 5 5 + RXD 6 4 R40 C3 0.1u 1 4 5 4 U3B MC74HC125AD 4 3 3 2 2 HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. Title M68EZ328ADS 1 1 Size B Date: A B C D E F G H Document Number EZADS20.DSN Wednesday, January 05, 2000 I Rev 2.0 Sheet 6 of J 10 1 2 3 4 5 6 7 8 Reset Circuit A A RST_UARTX RST_UARTX VCC 1 R46 300K U11A B U10A 2 MC74AC05D ~EMU U11B 2 3 4 MC74HC14AD 5 U11C 6 MC74HC14AD 3 U10B 4 MC74AC05D B 1 ~BOOTSTRAP RESET SW1 PUSHBUTTON + C13 4.7u MC74HC14AD ~RSTIN ~RSTIN VCC C R48 100K U11D 9 8 MC74HC14AD SW2 PUSHBUTTON + C16 4.7u 5 U10C 6 MC74AC05D ~EMUIRQ ~EMUIRQ VCC VCC C C14 0.1u C15 0.1u ABORT D HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D Title M68EZ328ADS Size B Date: 1 2 3 4 5 6 Document Number EZADS20.DSN Wednesday, January 05, 2000 7 Rev 2.0 Sheet 7 8 of 10 1 2 3 4 5 6 7 8 MISC VCC A A VCC VCC C4 0.1u A1 A1 U4 9 6 2 5 3 IN1 IN2 RST VDD VSS MC14521BD Q18 Q19 Q20 Q21 Q22 Q23 Q24 OT1 OT2 10 11 12 13 14 15 1 7 4 U5A R42 1 2 330 MC74HC14D LED1 RED LED HEART BEAT VCC RP1 4K7 X 4 R41 330 9 10 11 12 13 14 15 16 SW DIP-8 8 7 6 5 4 3 2 1 LED2 GREEN LED POWER TOUT/TIN ~IRQ5 PWMO ~IRQ1 1 2 3 4 S1 8 7 6 5 ~PEN_CS ~PEN_IRQ TONE_OUT ~IRDA_EN ~UART_EN VCC VCC VCC B B Single Tone Generator VCC R43 TONE_OUT 1K R44 100K R45 33R BZ1 Q1 BC847AWT1 ~CSA0 ~CSA1 ~RAS0 ~EMU ~BOOTSTRAP ~CSA0 ~CSA1 ~RAS0 1 2 3 4 5 6 7 8 S2 R59 4K7 RP3 4K7 X 4 R60 4K7 8 7 6 5 RP2 4K7 X 4 1 2 3 4 16 15 14 13 12 11 10 9 SW DIP-8 + 1 2 3 4 8 7 6 5 ~CSROM0 ~CSROM1 ~DRAM0 ~EMUIRQ ~EMUBRK MON_SEL0 MON_SEL1 MON_SEL2 ~CSROM0 ~CSROM1 ~DRAM0 ~EMUIRQ ~EMUBRK MON_SEL0 MON_SEL1 MON_SEL2 1 CitiSound CHB-03E - C C 2 P1 VCC 1 TP1 Test Point - VCC C5 220u P2 XVEE 1 2 VCC VEE GND + C6 0.1u C7 0.1u D HyhATrvpqpACtAFtAGvvrq D1 D2 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D VDD VCC Title M68EZ328ADS Size B Date: Document Number EZADS20.DSN Wednesday, January 05, 2000 7 VSS 1 2 3 4 5 6 GND Rev 2.0 Sheet 8 8 of 10 1 2 3 4 5 6 7 8 Logic Analyzer Connectors A A D[0..15] POD3 CLKO D14 D12 D10 D8 D6 D4 D2 D0 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 D15 D13 D11 D9 D7 D5 D3 D1 D[0..15] CLKO POD2 B ~RSTIN ~EMUCS ~LWE CONTRAST LCLK LFRM LD2 LD0 ~RSTIN ~EMUCS ~LWE CONTRAST LCLK LFRM LD2 LD0 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 ~EMUIRQ ~OE ~UWE ~DTACK LACD LLP LD3 LD1 ~EMUIRQ ~OE ~UWE ~DTACK LACD LLP LD3 LD1 B A[0..26] POD1 ~CSA0 ~CSA1 ~CSB1 ~RAS1 ~CAS1 ~CSA0 ~CSA1 ~CSB1 ~CSC1 ~CSD1 A22 A20 A18 A16 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 ~CSA0 ~CSB0 ~CSC0 ~CSD0 A23 A21 A19 A17 ~CSA0 ~CSB0 ~RAS0 ~CAS0 A[0..26] C C ~DTACK A14 A12 A10 A8 A6 A4 A2 A0 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 POD4 A15 A13 A11 A9 A7 A5 A3 A1 D HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D Title M68EZ328ADS Size B Date: 1 2 3 4 5 6 Document Number EZADS20.DSN Wednesday, January 05, 2000 7 Rev 2.0 Sheet 9 8 of 10 1 2 3 4 5 6 7 8 Test pin & VME connector VCC P3 A VCC 1 3 5 7 9 11 13 15 17 19 21 23 25 27 2 4 6 8 10 12 14 16 18 20 22 24 26 28 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 A21 A22 A23 A24 A25 A26 A27 A28 A29 A30 A31 A32 P4A A18 A20 A22 SPMTXD SPMCLK RXD ~RTS ~EMUIRQ ~EMUCS D0 D3 D6 D9 D12 D15 ~CSB0 ~RAS1 TOUT/TIN LD1 LFRM LACD ~INT2 ~IRQ2 SPMTXD ~DWE ~RTS ~IRQ5 A1 A4 A7 A10 A13 A16 A19 A22 ~HIZ ~DTACK VCC ~UWE D0 D3 D6 D9 D12 D15 ~CSB0 ~RAS1 TOUT/TIN LD1 LFRM LACD ~INT2 ~IRQ2 SPMTXD ~DWE ~RTS ~IRQ5 A1 A4 A7 A10 A13 A16 A19 A22 ~HIZ ~DTACK ~UWE * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * D1 D4 D7 D10 D13 ~CSA0 ~CSB1 ~CAS0 PWMO LD2 LLP ~INT0 ~INT3 ~IRQ3 SPMRXD RXD ~CTS CLKO A2 A5 A8 A11 A14 A17 A20 A23 ~EMUCS ~RSTIN ~LWE D1 D4 D7 D10 D13 ~CSA0 ~CSB1 ~CAS0 PWMO LD2 LLP ~INT0 ~INT3 ~IRQ3 SPMRXD RXD ~CTS CLKO A2 A5 A8 A11 A14 A17 A20 A23 ~EMUCS ~RSTIN ~LWE B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12 B13 B14 B15 B16 B17 B18 B19 B20 B21 B22 B23 B24 B25 B26 B27 B28 B29 B30 B31 B32 P4B * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * D2 D5 D8 D11 D14 ~CSA1 ~RAS0 ~CAS1 LD0 LD3 LCLK ~INT1 ~IRQ1 ~IRQ6 SPMCLK TXD CONTRAST A0 A3 A6 A9 A12 A15 A18 A21 ~EMUIRQ ~EMUBRK ~OE C1 C2 D2 C3 D5 C4 D8 C5 D11 C6 D14 C7 ~CSA1 C8 ~RAS0 C9 ~CAS1 C10 LD0 C11 LD3 C12 LCLK C13 ~INT1 C14 ~IRQ1 C15 ~IRQ6 SPMCLK C16 C17 TXD C18 CONTRAST C19 A0 C20 A3 C21 A6 C22 A9 C23 A12 C24 A15 C25 A18 C26 A21 ~EMUIRQ C27 ~EMUBRK C28 C29 ~OE C30 C31 C32 P4C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * A A17 A19 A21 A23 SPMRXD ~DWE TXD ~CTS ~HIZ ~EMUBRK A17 A19 A21 A23 SPMRXD ~DWE TXD ~CTS ~HIZ ~EMUBRK A18 A20 A22 SPMTXD SPMCLK RXD ~RTS ~EMUIRQ ~EMUCS HEADER 14X2 VCC P5 CLKO ~IRQ6 ~IRQ2 ~INT3 ~INT1 CONTRAST LCLK LFRM LD2 LD0 TOUT/TIN CLKO ~IRQ6 ~IRQ2 ~INT3 ~INT1 CONTRAST LCLK LFRM LD2 LD0 TOUT/TIN 1 3 5 7 9 11 13 15 17 19 21 23 25 27 2 4 6 8 10 12 14 16 18 20 22 24 26 28 VCC B ~IRQ5 ~IRQ3 ~IRQ1 ~INT2 ~INT0 LACD LLP LD3 LD1 PWMO ~CAS1 ~IRQ5 ~IRQ3 ~IRQ1 ~INT2 ~INT0 LACD LLP LD3 LD1 PWMO ~CAS1 B VCC VCC VME 32x3 FEMALE VME 32x3 FEMALE VME 32x3 FEMALE HEADER 14X2 VCC P6 ~CAS0 ~RAS0 ~CSB0 ~CSA0 D14 D12 D10 D8 D6 D4 D2 D0 ~CAS0 ~RAS0 ~CSB0 ~CSA0 D14 D12 D10 D8 D6 D4 D2 D0 1 3 5 7 9 11 13 15 17 19 21 23 25 27 2 4 6 8 10 12 14 16 18 20 22 24 26 28 VCC C ~CAS1 ~RAS1 ~CSB1 ~CSA1 D15 D13 D11 D9 D7 D5 D3 D1 ~CAS1 ~RAS1 ~CSB1 ~CSA1 D15 D13 D11 D9 D7 D5 D3 D1 C HEADER 14X2 VCC P7 ~DTACK ~OE ~LWE A1 A3 A5 A7 A9 A11 A13 A15 ~DTACK ~OE ~LWE A1 A3 A5 A7 A9 A11 A13 A15 1 3 5 7 9 11 13 15 17 19 21 23 25 27 2 4 6 8 10 12 14 16 18 20 22 24 26 28 VCC D ~RSTIN ~UWE A0 A2 A4 A6 A8 A10 A12 A14 A16 ~RSTIN ~UWE A0 A2 A4 A6 A8 A10 A12 A14 A16 HyhATrvpqpACtAFtAGvvrq 2 Dai King Street, Tai Po Industrial Estate, Tai Po, NT, Hong Kong. D Title M68EZ328ADS Size B Date: Document Number EZADS20.DSN Wednesday, January 05, 2000 7 HEADER 14X2 Rev 2.0 Sheet 10 8 of 10 1 2 3 4 5 6 |
Price & Availability of MC68EZ328ADSUM
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |