background image

Hardware Description and Board Operation

3-24

M68VZ328ADS USER’S MANUAL

MOTOROLA

3.8.2 Touch Panel Interface

The VZADS board is equipped with Burr-Brown Touch Panel Controller ADS7843. Figure 3-
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 MC68VZ328 are used to implement the touch
panel circuitry. All of these signals can be shared for other devices when touch panel inter-
face controller is being disabled. The on-board touch panel controller can be disabled by
turning both DIP switches S1-5, S1-6 off.

The ADS7843 is a 12-bit sampling analog-to-digital converter (ADC) with a synchronous
serial interface and low on-resistance switches for driving touch screens. The ADS7843
communicates with MC68VZ328 through SPI (Serial Peripheral Interface). In this case,
ADS7843 is slave, and MC68VZ328 is master. For the details on the operation of ADS7843,
please refer to its datasheet. The datasheet is available on the web:

http://www.burr-brown.com

For more details on the operation of resistive touch panel, please refer to Appendix A .

Table 3-7. Signal Assignment for Touch Panel Controller

Signals

Function

SPMRXD, SPMTXD, SPMCLK

This set of serial port interface signals performs data transfer with

ADS7843. For detailed operation on the SPI port, please refer to the

MC68VZ328 User’s Manual.

~IRQ5

This signal is driven from an MC68VZ328 interrupt capable I/O pin.

PB6

The MC68VZ328 general I/O signal is used to select the ADS7843 on data

transfer.

ADS7843

CS

PENIRQ

IRQ5

PB6

SPMCLK

SPMTXD

SPMRXD

DCLK

DIN

DOUT

Touch Panel

TOP

RIGHT

LEFT

BOTTOM

MC68VZ328

S1-6

S1-5

VCC

Figure 3-7. Touch Panel Controller Interface

 

   

  

Freescale Semiconductor, I

                                               

Freescale Semiconductor, Inc.

For More Information On This Product,

   Go to: www.freescale.com

nc.

..

Summary of Contents for M68VZ328ADS

Page 1: ...ication 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 unauthori...

Page 2: ...ware debugger 2 12 Section 3 Hardware Description and Board Operation 3 1 Overview 3 17 3 2 Control Switches 3 18 3 3 DIP Switches 3 18 3 4 Operation Modes 3 18 3 5 LED Indicators 3 19 3 6 Memory 3 19...

Page 3: ...the flash B 31 B 3 Method B 32 B 4 Offset Address of ROM Image B 32 B 5 Executing ProgRam Command Sequence B 33 Appendix C Monitor Initialization Code C 1 Initialization Code of Metrowerks Monitor Re...

Page 4: ...Table of Contents iv M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 5: ...p up Window of SDS v7 4 2 16 3 1 M68VZ328ADS Functional Block Diagram 3 17 3 2 Interface of Flash Memories 3 20 3 3 Interface of SDRAMs 3 21 3 4 UART and IRDA Interface 3 22 3 5 Serial Port Pin Assign...

Page 6: ...4 Function of LED Indicators 3 19 3 5 M68VZ328ADS Default Memory Map 3 19 3 6 Possible Configuration of FLASH Memories 3 20 3 7 Signal Assignment for Touch Panel Controller 3 24 3 8 Pin Assignments o...

Page 7: ...rial ports interface to MC68VZ328 internal UARTs Direct logic analyzer interface to system bus LCD and Touch Panel Interface MC68VZ328 LCD interface Burr Brown 12 bit touch panel controller ADS7843E a...

Page 8: ...formation please visit our web page http www mot com SPS WIRELESS products DragonBall html http www apspg com products html 1 4 2 Debugger There are three source level debuggers for DragonBallTM VZ Th...

Page 9: ...RS 232 serial port capable of 9600 115200 bit per second operation 2 3 INSTALLATION PROCEDURE Pls follow the procedure below to set up M68VZ328ADS 1 Prepare the M68VZ328ADS board 2 Connect the M68VZ3...

Page 10: ...ation Guide 2 10 M68VZ328ADS USER S MANUAL MOTOROLA Figure 2 1 M68VZ328ADS Key Component Layout Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www fre...

Page 11: ...3 DIP Switch Options for Metrowerks monitor using UART2 ON 1 2 3 4 5 6 7 8 S1 ON 1 2 3 4 5 6 7 8 S2 ON 1 2 3 4 5 6 7 8 S1 ON 1 2 3 4 5 6 7 8 S2 Figure 2 4 DIP Switch Options for SDS monitor using UAR...

Page 12: ...OM2 to connector P2 of M68VZ328ADS 2 Connect the power supply 3V or power adaptor to the P1 of M68VZ328ADS 3 Turn on the power supply The RED LED will flash and the GREEN LED will illuminate when powe...

Page 13: ...TOROLA 2 Run Codewarrior IDE program 3 Open a new project file with Embedded 68k Stationery 4 Select ADS_68VZ328 Stationery for new project Freescale Semiconductor I Freescale Semiconductor Inc For Mo...

Page 14: ...NUAL MOTOROLA 5 Choose Enable Debugger from the Project pull down menu 6 Change the connection settings in the Debug Settings Windows Freescale Semiconductor I Freescale Semiconductor Inc For More Inf...

Page 15: ...the Debug pop up window choose the object file to download or debug without file as shown in Figure 2 7 select the serial port COM1 or COM2 according to the serial port of the PC connecting to the ADS...

Page 16: ...16 M68VZ328ADS USER S MANUAL MOTOROLA Figure 2 8 Connection Setting inside Debug Pop up Window of SDS v7 4 Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product G...

Page 17: ...ace Touch Panel Controller 4 bit LCD LCD Connectors UART1 UART2 IRDA Single Tone Generator Logic Analyzer SDRAM Control Bus Extension Connectors Power Connector PWMO RESET UART SIGNALS 8 bit LCD 4M x...

Page 18: ...controlled by setting DIP switch S2 8 Operation mode has to be selected before resetting the system Mode is not allowed to be changed during normal runing Table 3 3 shows the operation mode configurat...

Page 19: ...ication develop ment They can be enabled or disabled individually by setting the corresponding DIP switches 3 6 1 Memory Map The default memory map of M68VZ328ADS in normal mode is shown in Table 3 5...

Page 20: ...1 to be the boot ROM These configuration allow users to put their appli cation program to boot ROM without having to erase the on board monitor program Table 3 6 summaries the possible configuration o...

Page 21: ...nstall and test their own SDRAM when needed These two banks of SDRAM are selected by CSD0 and CSD1 and enabled by closing DIP switches S2 4 and S2 5 CSC0 CSC1 DQMH SDWE A 1 20 D 0 15 CSD1 SDCE SDCLK D...

Page 22: ...he DIP switch S1 1 and S1 2 on respectively The IRDA transceiver is connected to UART2 only with a buffer in between for controlling its ON OFF If IRDA is being used S1 2 should be switched OFF and S1...

Page 23: ...of both LCD connectors are shown in Figure 3 6 For full description of the LCD signals please refer to the MC68VZ328 User s Manual Figure 3 6 LCD and Touch Panel Connector Pin Assignment 1 3 5 7 9 11...

Page 24: ...SPI Serial Peripheral Interface In this case ADS7843 is slave and MC68VZ328 is master For the details on the operation of ADS7843 please refer to its datasheet The datasheet is available on the web ht...

Page 25: ...C847 A14 A12 A10 A8 A6 A4 A2 A0 A15 A13 A11 A9 A7 A5 A3 A1 GND CSA1 CSB1 RAS1 CAS1 A22 A20 A18 A16 CSA0 CSB0 RAS0 CAS0 A23 A21 A19 A17 GND CLKO D14 D12 D10 D8 D6 D4 D2 D0 D15 D13 D11 D9 D7 D5 D3 D1 GN...

Page 26: ...ignments of P7 Pin A B C 1 GND GND GND 2 D0 PA0 D1 PA1 D2 PA2 3 D3 PA3 D4 PA4 D5 PA5 4 D6 PA6 D7 PA7 D8 5 D9 D10 D11 6 D12 D13 D14 7 D15 CSA0 PF7 CSA1 8 PB0 CSB0 PB1 CSB1 SDWE PB2 CSC0 RAS0 9 PB3 CSC1...

Page 27: ...e powered by this VEE input Figure 3 10 locates the power connectors and their polarity Table 3 9 Pin Assignment of P9 Pin A B C 1 GND GND GND 2 PM0 SDCLK PM1 SDCE PM2 DQMH 3 PM3 DQML PM4 SDA10 PM5 DM...

Page 28: ...Hardware Description and Board Operation 3 28 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 29: ...ERAL CONCEPTS OF RESISTIVE PANELS Basically resistive panel consists of two transparent resistive layers separated by insulating spacers as shown in Figure 1 1 Transparent Resistive Layer resistive ma...

Page 30: ...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...

Page 31: ...should have a basic understanding of bootstrap mode operation of MC68VZ328 before reading the material below For more details on Bootstrap mode please refer to the MC68VZ328 user s manual B 2 ELEMENTS...

Page 32: ...ry is blank Load ERASE B to erase the flash memory when needed 5 Load FLASH B the Flash Program and ROM B the ROM image to system RAM SDRAM on M68VZ328ADS 6 Execute the Flash Program by using the exec...

Page 33: ...art of this program Different brands of Flash memory may have different program command sequences please refer to their datasheets for more details XREF STKTOP OFFSET1 equ AAA OFFSET2 equ 554 TIME equ...

Page 34: ...rting Address Offset2 move l a0 a2 a2 as source move l a1 a3 a3 as target clr l d1 clear d1 as counter clr b d5 clear d5 as ECHO counter PROGRAM ENABLE move w a2 a3 Copy source to target clr l d4 clea...

Page 35: ...comparing clr b d5 clear d5 as ECHO counter clr l d1 clear d1 as counter VERIFIY cmp b 0 d5 bne NO_V ECHO V ECHO 0 NO_V add b 1 d5 move w a2 d2 move w a3 d3 cmp w d2 d3 bne ERROR add l 2 d1 cmp l d0 d...

Page 36: ...ove l 1 pFINISH bra BOOTSTRAP ERROR ECHO n ECHO E ECHO R ECHO R ECHO O ECHO R ECHO n ECHO 0 ECHO 0 ECHO 0 ECHO 0 ECHO 0 ECHO 0 sub l 1 a3 move l a3 pERROR_ADDRESS move l 1 pERROR bra BOOTSTRAP BOOTSTR...

Page 37: ...n board Flash Memory B 37 M68VZ328ADS USER S MANUAL MOTOROLA Figure B 2 Flash Program Algorithm Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www fre...

Page 38: ...Programming On board Flash Memory B 38 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 39: ...MUCS equ M328BASE 118 CSCTR equ M328BASE 150 PLL Registers PLLCR equ M328BASE 200 Control Reg PLLFSR equ M328BASE 202 Freq Select Reg PLLTSR equ M328BASE 204 Test Reg Power Control Registers PCTLR equ...

Page 40: ...M328BASE 60A Status Reg Watchdog Registers WCR equ M328BASE B0A Control Reg SPI Registers SPI Master Registers SPIMDATA equ M328BASE 800 Control Status Reg SPIMCONT equ M328BASE 802 Data Reg UART Reg...

Page 41: ...able Double Map Primary boot image is at start of flash Secondary boot image is at start 0x10000 If this is the primary image and PD2 is low boot alternate image lea l0 PC A0 get PC move lA0 D0 and l...

Page 42: ...000 DRAMC Disable DRAM Controller move w C03F SDCTRL move w 4020 DRAMMC move w 8000 DRAMC clr w d0 delay addi w 1 d0 cmp w FFFF d0 bne delay move w C83F SDCTRL issue precharge comm nop nop nop nop nop...

Page 43: ...D3 OFF and PD2 ON beq MW_UART2 cmp b 04 D0 PD3 ON and PD2 OFF beq SDS_UART1 cmp b 00 D0 PD3 ON and PD2 ON beq SDS_UART2 SDS_UART2 move l 103403E LSSA jmp 01030020 SDS_UART1 move l 102403E LSSA jmp 010...

Page 44: ...Pullup Enable Reg Port B Registers PBDIR equ M328BASE 408 Direction Reg PBDATA equ M328BASE 409 Data Reg PBPUEN equ M328BASE 40A Pullup Enable Reg PBSEL equ M328BASE 40B Select Reg Port C Registers P...

Page 45: ...ntrol Reg LPICF equ M328BASE A20 Panel Interface Config Reg LPOLCF equ M328BASE A21 Polarity Config Reg LACDRC equ M328BASE A23 ACD M Rate Control Reg LPXCD equ M328BASE A25 Pixel Clock Divider Reg LC...

Page 46: ...base address of input device BASE_OUT equ fffd8000 base address of output device BAUD_IN equ 0 baud rates not applicable BAUD_OUT equ 0 baud rates not applicable Seting for MC68681 on EZ ADS Supporte...

Page 47: ...ssor 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_S...

Page 48: ...roller move w C03F SDCTRL move w 4020 DRAMMC move w 8000 DRAMC clr w d0 delay addi w 1 d0 cmp w FFFF d0 bne delay move w C83F SDCTRL issue precharge comm nop nop nop nop nop nop nop nop nop nop move w...

Page 49: ...rrupt endm Soft reset macro contains instructions which must be executed upon a processor reset RESET_SOFT macro Setting for MC68681 if DEV_IN MC68681 MC68681ctur equ BASE_IN OFF6 MC68681ctlr equ BASE...

Page 50: ...Monitor Initialization Code C 50 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 51: ...Monitor Initialization Code C 51 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 52: ...Monitor Initialization Code C 52 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 53: ...Monitor Initialization Code C 53 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 54: ...Monitor Initialization Code C 54 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 55: ...Monitor Initialization Code C 55 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 56: ...Monitor Initialization Code C 56 M68VZ328ADS USER S MANUAL MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 57: ...MOTOROLA M68VZ328ADS USER S MANUAL D 57 APPENDIX D SCHEMATICS D 1 M68VZ328ADS Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 58: ...ong Kong Version Schematic File Name M68VZ328ADS 1 4 Last Updated Teddy Wong on 4 Sep 2000 VZADS14 DSN History R1 R2 R39 and R40 are changed to 300 ohm R27 is changed to 0 ohm Verison 1 1 Verison 1 4...

Page 59: ...143 A 1 7 2 A 1 8 3 A 1 9 4 PF3 A20 5 PF4 A21 6 PF5 A22 7 PF6 A23 8 L V D D 35 L V D D 58 P G 0 B B U S W D T A C K 117 R E S E T 118 O E 121 U W E U B 122 L W E L B 123 P K 3 U D S 83 P K 2 L D S 82...

Page 60: ...34 V C C 49 D Q 4 8 G N D 41 D Q 5 10 V C C 27 D Q 6 11 G N D 28 D Q 7 13 G N D 12 B S 1 21 B S 0 20 A 1 2 N C 36 N C 40 G N D 54 V C C 43 D Q 8 42 D Q 9 44 D Q 1 0 45 D Q 1 1 47 D Q 1 2 48 D Q 1 3 50...

Page 61: ...O M V C C V C C V C C V C C V E E V E E V C C V C C P 1 H E A D E R 1 0 X 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 C 4 0 0 1u C 3 8 22u U 9 A D S 7 8 4 3 E X 2 Y 3 X 4 Y 5 IN3 7 IN4 8 D C...

Page 62: ...X 5 13 T X 3 14 DI3 15 D O 5 16 DI2 17 D O 4 18 DI1 19 D O 3 20 D O 2 21 D O 1 22 V D D 23 C1 24 C 1 25 C2 26 C 2 28 U 1 0 M C 1 4 5 5 8 3 V F C 5 1 C5 3 R I M O N 4 V S S 5 S T B 6 R X 1 7 R X 2 8 R...

Page 63: ...ocument Number R e v Date Sheet of V C C V C C V C C V C C V C C R 2 7 000 R 2 8 1 0 K C 3 5 0 1u U 8 A 7 4 H C 1 2 5 2 3 1 U 8 B 7 4 H C 1 2 5 5 6 4 C 3 6 1u C 3 7 0 1u U 7 H S D L 3 2 0 1 V L E D 8...

Page 64: ...T I N E M U I R Q V C C V C C V C C V C C U 1 2 B 7 4 A C 0 5 3 4 U 2 D 7 4 H C 1 4 9 8 U 2 E 7 4 H C 1 4 11 10 U 2 F 7 4 H C 1 4 13 12 C 5 5 4u7 S W 2 P U S H B U T T O N U 1 2 A 7 4 A C 0 5 1 2 C 5...

Page 65: ...3 9 300 P 4 C 6 2 0 1u C 6 1 0 1u L E D 3 L E D R E D R 4 0 300 U 1 4 A 7 4 A C 7 4 D D 2 C L K 3 Q 5 Q 6 P R 4 C L 1 TP2 Test Point GND 1 TP3 Test Point GND 1 TP4 Test Point GND 1 TP5 Test Point GND...

Page 66: ...O S D C L K U D S D W E S D A 1 0 D Q M H S D C E W E L D S D M O E D Q M L D 0 15 A 0 26 L D 6 L D 4 L D 7 L D 5 V C C V C C P O D 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 P O D 3 1 2 3 4...

Page 67: ...2 C 3 C 4 C 5 C 6 C 7 C 8 C 9 C 1 0 C 1 1 C 1 2 C 1 3 C 1 4 C 1 5 C 1 6 P 9 A V M E 1 6 x 3 F E M A L E A 1 A 2 A 3 A 4 A 5 A 6 A 7 A 8 A 9 A 1 0 A 1 1 A 1 2 A 1 3 A 1 4 A 1 5 A 1 6 P 9 B V M E 1 6 x...

Page 68: ...1 32 12 7 15 5 10 8 16 14 6 4 11 3 9 1 13 2 A C B GND GND GND VCC VCC VCC LDS UDS WE EMUCS PIN PIN Pin Assignments for VME Connector P7 Pin Assignments for VME Connector P9 CSC0 CSC1 CSD0 CSD1 TOUT TI...

Reviews: