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, subsidiari es, 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 theare registered trademarks
of Motorola Ltd.
3-6Signal Assignment for Touch Panel Controller.................................................3-24
3-7Pin Assignments of P4.....................................................................................3-26
A-1Comparison of M68EZ328ADS v1.x and v2.0..................................................A-28
A-2Software Change for using M68EZ328ADS v2.0.............................................A-28
Freescale Semiconductor, I
MOTOROLAM68EZ328ADS v2.0 USER’S MANUALv
For More Information On This Product,
Go to: www.freescale.com
Page 7
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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.Theboard design and layout insecondversion has beenchangeda 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
Freescale Semiconductor, I
•LEDIndicators
—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
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL1-6
For More Information On This Product,
Go to: www.freescale.com
Page 8
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
General Information
—SDS source-leveldebuggermonitor by Software DevelopmentSystemInc.usingse-
rial port
• Clock Source
—32.768KHz for MC68EZ328 internal PLL
• Power Supply
—3.0V - 3.3V main power supply
Freescale Semiconductor, Inc.
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:
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
Freescale Semiconductor, I
3. Microtek SLD
http://www.microtekintl.com
1-7M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 9
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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-232cable(DB9maletoDB9female)
• IBM PC compatible computer (486 class or higher) running Windows3.1and 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.
Figure2-2shows the factorydefaultDIP switchessettings.This settingselectstouse Metroworks monitor. Figure 2-3 shows the DIP switches setting of using SDS monitor.
Freescale Semiconductor, I
For detail description of each switch. Pls. refer to Table 3-1 and Table 3-2.
For additional informationon the M68EZ328ADS v2.0 and its components. Pls refer to Sec-
tion 3 .
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL2-8
For More Information On This Product,
Go to: www.freescale.com
Page 10
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Quick Installation Guide
Freescale Semiconductor, Inc.
Freescale Semiconductor, I
Figure 2-1. M68EZ328ADS v2.0 Key Component Layout
2-9M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 11
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Quick Installation Guide
Monitor and Debug port selection
Freescale Semiconductor, Inc.
nc...
S2
ON
12345678
Figure 2-2. Default DIP Switch Options for Metrowerks monitor
S1
ON
12345678
Figure 2-3. DIP Switch Options for SDS monitor
S1
ON
12345678
S2
ON
12345678
Freescale Semiconductor, I
2-10M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 12
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Quick Installation Guide
Freescale Semiconductor, Inc.
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 m ost 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.
Freescale Semiconductor, I
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-11M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 13
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Quick Installation Guide
1. Install the Metrowerks Codewarrior IDE
2. Run Codewarrior IDE program.
3. Open a new project file with Embedded 68k Stationery.
Freescale Semiconductor, Inc.
4. Select ADS_68EZ328 Stationery for new project.
Freescale Semiconductor, I
2-12M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 14
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Quick Installation Guide
5. Choose "Enable Debugger" from the "Project" pull-down menu.
Freescale Semiconductor, Inc.
6. Change the connection settings in the Debug Settings Windows.
Freescale Semiconductor, I
2-13M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 15
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
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-downmenutoopentheDebug pop-up window.
4. InsidetheDebug pop-upwindow,choosethe objectfile todownloador"debugwithout
file" asshowninFigure2-5,select the serial port (COM1 orCOM2...)accordingto 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 downloadedandthenyoucanstartyourdevelopment. (For details,
please refer to the SingleStep User’s Manual).
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.
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-4DIP Switch S2-5Operation Mode
ONOFFEMU
OFFOFFNormal
ONONBootstrap
OFFONBootstrap
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 #ColorNameFunction
LED3YellowPD0Status of PD0
LED4YellowPD1Status of PD1
Freescale Semiconductor, I
The LED3 is connected to a counter. The counter is toggled by address line A1.
LED1RedHeart BeatBlinking heart beat indicates the system is "alive"
LED2GreenPowerPower is applied to the system with right polarity
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL3-18
For More Information On This Product,
Go to: www.freescale.com
Page 20
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Hardware Description and Board Operation
Freescale Semiconductor, Inc.
3.6 MEMORY
M68EZ328ADS v2.0 provides on-board Flash memory and EDO DRAM, for application
development.They canbeenabled ordisabled individuallyby setting thecorresponding 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 AddressMemoryAssigned Chip Select
$00000000-$007FFFFF8MB EDO DRAMCSD0
$00800000-$009FFFFF2MB FLASH BANK0CSA0
M68EZ328ADS v2.0 supports up to two 2M-byte Flash memory chips. However, only one
bank is installedwhentheboardisshippedout from the factory.Figure3-2.showstheinterface of them.Theyarechip-selected by *CSA0 and *CSA1signals.Theconnection of these
*CSAx signals to the Flash memories is controlled by DIP switches S2-1 and S2-2.
3-19M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 21
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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
theirownapplication program.Formore detailsonflashmemory programming,please refer
to Appendix C .
3.6.3 EMU ROM
8x8-Bit EMU ROM
EMUCS
A16
MC68EZ328
OR
Gate
CS
nc...
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.
Freescale Semiconductor, I
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL3-20
For More Information On This Product,
Go to: www.freescale.com
Page 22
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Hardware Description and Board Operation
Freescale Semiconductor, Inc.
3.6.4 EDO DRAM
VCC
nc...
4MX16-Bit EDO DRAM
RAS
UCAS
LCAS
OE
WE
A[0..12]
D[0..15]
MC68EZ328
S2-3
CSC0
CSD0
CSD1
OE
DWE
A[1..13]
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.
Freescale Semiconductor, I
3-21M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 23
Freescale Semiconductor, Inc.
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
3.7 UART AND IRDA
MC68VZ328
Hardware Description and Board Operation
nc...
VCC
S1-1
GND
TXD
RXD
RTS
CTS
PD4
S1-2
VCC
RS232 Transceiver
EN
Buffer
EN
P9
UART
IRDA
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
Freescale Semiconductor, I
RXD
NC
GND
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 andS1-2shouldbe switched ON. Then, the enable/disable of IRDAistotallycontrolled
by software through PD4 (Port D4).
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL3-22
For More Information On This Product,
Go to: www.freescale.com
1
2
3
4
5
NC
6
CTS
7
RTS
8
NC
9
Page 24
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Hardware Description and Board Operation
Freescale Semiconductor, Inc.
3.8 DEBUG PORT
EMUCS
A16
MC68EZ328
OE
WE
A[0..2]
OR
Gate
ST16C2552A
CS
OE
WE
A[0..2]
TXD
RXD
CTS
RTS
RS232 Transceiver
EN
P8
UART
D[8..15]
nc...
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
Freescale Semiconductor, I
GND
LD0
LD2
GND
PB1
TOP
LEFT
P10
1
3
5
7
9
11
13
15
17
19
D[8..15]
2
LFRM
4
LCLK
6
VCC
8
VEE
10
LD1
12
LD3
14
LCONTRAST
16
NC
18
BOTTOM
20
RIGHT
Figure 3-8. LCD and Touch Panel Connector Pin Assignment
3-23M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 25
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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
nc...
RIGHT
TOP
LEFT
BOTTOM
MC68EZ328
PB6
IRQ5
SPMCLK
SPMTXD
SPMRXD
S1-5
S1-4
Touch Panel
VCC
ADS7843
CS
PENIRQ
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 i s 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
SignalsFunction
This set of serial port interface signals performs data transfer with
SPMRXD, SPMTXD, SPMCLK
~IRQ5This signal is a MC68EZ328 interrupt capable I/O pin.
Freescale Semiconductor, I
PB6
ADS7843. For detailed operation on the SPI port, please refer to the
This MC68EZ328 general I/O signal is used to select the ADS7843 on data
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 .
MC68EZ328 User’s Manual.
transfer.
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL3-24
For More Information On This Product,
Go to: www.freescale.com
Page 26
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Hardware Description and Board Operation
Freescale Semiconductor, Inc.
3.10 SINGLE TONE GENERATOR
S1-5
PWMO
MC68VZ328
Figure 3-10. Single Tone Generator
VCC
BC847
CitiSound CHB-03E
GND
nc...
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
Toprovidean convenientwayof connectingon-board signalsto alogicanalyzer, ADSboard
provides five 10x2-pin headers for direct plug-in. Pin assignments to these five headers are
showninFigure3-11.
POD2POD3
CLKO
D14
D12
D10
D8
D6
D4
D2
D0
1
3
5
7
9
11
13
15
17
19
10
12
14
16
18
20
2
4
6
8
D15
D13
D11
D9
D7
D5
D3
D1
GND
EMUCS
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
GND
Freescale Semiconductor, I
Figure 3-11. Logic Analyzer Connectors
CSA0
CSA1
CSB1
RAS1
CAS1
A22
A20
A18
A16
POD1
1
3
5
7
9
11
13
15
17
19
10
12
14
16
18
20
2
4
6
8
CSA0
CSB0
RAS0
CAS0
A23
A21
A19
A17
GND
DTACK
A14
A12
A10
A8
A6
A4
A2
A0
POD4
1
3
5
7
9
11
13
15
17
19
10
12
14
16
18
20
2
4
6
8
A15
A13
A11
A9
A7
A5
A3
A1
GND
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
providedon 32x3 localbus connector(P4).SomeoftheseMC68EZ328 signalsareusedby
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.
There are two power input connectors on the ADS, P1 and P2. P1 is designed for external
Freescale Semiconductor, I
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
MOTOROLAM68EZ328ADS v2.0 USER’S MANUAL3-26
For More Information On This Product,
Go to: www.freescale.com
Page 28
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Hardware Description and Board Operation
Freescale Semiconductor, Inc.
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
nc...
P1
GND
_
EZ UART
3.0-3.3V
+
M68EZ328ADS
Figure 3-12. Power Connectors
Freescale Semiconductor, I
3-27M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 29
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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
DescriptionsVersion 1.xVersion 2.0
Flash Memory2M-byte Flash Memory using four AT29BV040
SRAM256K-byte SRAMNo SRAM
EDO DRAM
Touch Panel Interface MAXIM MAX1249 and four transistorsBurr-Brown ADS7843E
Expansion Socket Same pin assignmentSame pin assignment
ADI Port andMC68681 Serial Port with max.
baud rate = 57600bps
signal of
2M-byte Flash Memory using one
MBM29LV160T (expandable to 4M-byte Flash
Memory)
8M-byte EDO DRAM using the DWE signal of
MC68EZ328
ST16C2552A SerialPort with max. baud rate =
115200bps
A.2 SOFTW ARE
Table A-2 shows the software change in M68EZ328ADS v2.0.
Table A-2. Software Change for using M68EZ328ADS v2.0
ItemsDescriptions
Initizalization Code
Touch Panel
Controller Device
Driver
Freescale Semiconductor, I
DWE
IrDAThe IrDA module needs to beenabled by setting PD4 to zero.
The new ADSis equipped with differentmemory device. So, theinitizalizationcode needsto
be changed.
Burr-Brown ADS7843E is used. A new device driver is required.
Pin12(DWE/UCLK/PE3) of MC68EZ328is programmed as DWEsignals foron-boardEDO
DRAM. It cannot be used as Port or UCLKagain.
MOTOROLAM68EZ328ADS v2.0 USER’S MANUALA-28
For More Information On This Product,
Go to: www.freescale.com
Page 30
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Comparison of M68EZ328ADS Version 1.x and 2.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, I
A-29M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 31
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
APPENDIX B
RESISTIVE TOUCH PANEL OPERATION
M68VZ328ADSfeaturespeninputthrough a resistive-film sensing panel.Thistype 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
Freescale Semiconductor, I
Transparent Resistive Layer
coated on dielectric (insulating) substrate, usually glass on bottom and plastic on top for
actuation.
Bars
- highly conductivematerial such as silver ink, about1000timesmore conductivethan
ITO.
Spacers
the two opposite conductive layers.
MOTOROLAM68EZ328ADS v2.0 USER’S MANUALB-30
- Non-conducting ink,adhesive, orothermaterial suchasMylaris used toseparate
- resistive material such as an indium tin oxide (ITO) film is
For More Information On This Product,
Go to: www.freescale.com
Page 32
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
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.
Freescale Semiconductor, Inc.
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.
Freescale Semiconductor, I
B-31M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 33
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Freescale Semiconductor, Inc.
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
thereforeprovided withtheADS board forhelpingusersto do re-programming.The sections
below will describe the program and provide further information about the process and other
required elements.
Itisrecommended thatusershould haveabasicunderstandingofbootstrap modeoperation
of MC68EZ328 before reading the material below. For more details on Bootstrap mode,
please refer to the MC68EZ328 user’s manual.
nc...
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-recordforprogramming flash.ROMimage is copiedfromRAM area
to the Flash memory area
5. ROM.B - ROM image of user program in b-record/s-record format.
Freescale Semiconductor, I
MOTOROLAM68EZ328ADS v2.0 USER’S MANUALC-32
For More Information On This Product,
Go to: www.freescale.com
Page 34
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Programming On-board Flash Memory
Freescale Semiconductor, Inc.
C.3 METHOD
System RAM
FLASH Program
nc...
ROM Image
offset
Copy the ROM Image from
system RAM toFlash
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.
Freescale Semiconductor, I
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 startingaddressof FlashProgramis 0x4000,the executionB-recordisthen"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-33M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 35
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Programming On-board Flash Memory
Freescale Semiconductor, Inc.
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 m emory 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.
****************************************
* Setting for ST16C2552
****************************************
#define DEV_INST16C2552
#define DEV_OUT ST16C2552
BASE_IN:equ$FFFD0000; base address
BASE_OUT:equ$FFFD0000; base address
BAUD_IN:equ576; baud rates = BAUD_IN/100 bps
BAUD_OUT:equ576; baud rates = BAUD_OUT/100 bps
****************************************
* Setting for EZ-UART
****************************************
;#define DEV_INEZUART
;#define DEV_OUT EZUART
;BASE_IN:equ$fffd8000; base address not applicable
;BASE_OUT:equ$fffd8000; base address not applicable
****************************************
* Seting for ADI PORT on EZ-ADS
****************************************
;#define DEV_INADIPORT
;#define DEV_OUT ADIPORT
;BASE_IN:equ$fffd8000; base address of input device
;BASE_OUT:equ$fffd8000; base address of output device
;BAUD_IN:equ0; baud rates not applicable
;BAUD_OUT:equ0; baud rates not applicable
****************************************
D-47M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 49
nc...
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Monitor Initialization Code
* Seting for MC68681 on EZ-ADS
*Supported baudrate: 19200
*9600
****************************************
;#define DEV_INMC68681
;#define DEV_OUTMC68681
;#define PNAME_INA
;#define PNAME_OUT A
;BASE_IN:equ$fffd0001; base address of input device
;BASE_OUT:equ$fffd0001; base address of output device
;BAUD_IN:equ19200; baud rates (bits/sec)
;BAUD_OUT:equ19200; baud rates (bits/sec)
;ACR_VAL:equ$80; choose baud set 2 (bit#7=1)
;IRQ_MASK:equ$00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
*****************************************************
* Seting for MC68681 on EZ-ADS with BaudRate=57600bps
*****************************************************
;#define DEV_INMC68681
;#define DEV_OUTMC68681
;#define PNAME_INA
;#define PNAME_OUT A
;BASE_IN:equ$fffd0001; base address of input device
;BASE_OUT:equ$fffd0001; base address of output device
;BAUD_IN:equ0
;BAUD_OUT:equ0
;ACR_VAL:equ$60
;IRQ_MASK:equ$00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; **************************************************
; If your board hardware requires you to clear the
; "read" interrupt, then you must include the necessary
Freescale Semiconductor, I
INT_RCLEAR:macro
INT_STOP:macro
; code inside the INT_RCLEAR macro below.
; **************************************************
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.
; **************************************************
D-48M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 50
Monitor Initialization Code
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
move.w#$7,ICEMSR; clear level 7 interrupt
or.w#$FF80,ISR
endm; return non-zero in D0 if ABORT
INT_DOG:macro
endm
; **************************************************
;Macros for use at application startup (EXEC)
;and stop (DONE). Normally these are empty.
; **************************************************
; **************************************************
;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.lMON_STACKTOP; stack pointer (default)
dc.lreset$$$; program counter (default)
dcb.l6,0
endm
; **************************************************
;Hard reset macro - contains very high priority
;instructions which must be executed immediately
;upon a hardware reset.
; **************************************************
RESET_HARD:macro
move.b#$9,PGSEL; config PG0/DTACK to GPI/O,input
move.w#$2410,PLLCR; sysclk = VCO/1, enable clko
move.l#MON_STACKTOP,A7; Install stack pointer
move.w#$2700,sr; mask off all interrupts
move.b#$1C,SCR; enable bus error timeout bit
move.w#0,RTCWD; disable watch dog
move.b#$03,PFSEL; select A23-A20, CLKO, CSA1
move.b#$00,PBSEL; Config port B for chip select A,B,C and D
move.b#$00,PESEL; select *DWE
move.w#$08,ICEMCR; disable ICEM vector hardmap
D-49M68EZ328ADS v2.0 USER’S MANUALMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Page 51
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
ARCHIVED BY FREESCALE SEMICONDUCTOR,INC.2005
Monitor Initialization Code
move.w#$07,ICEMSR; clear level 7 interrupt
;*****************************
; Init Code for 512Kx16 Flash
;*****************************
; **************************************************
;Soft reset macro - contains instructions
;which must be executed upon a processor reset.
; **************************************************
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