MT410 Controller for 4-Wire Resistive Touchscreens Reference Guide
The information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of MicroTouch Systems, Inc. MicroTouch may have patents or pending patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document.
Contents About This Manual MicroTouch Support Services ................................................................ 5 MicroTouch Technical Support ........................................................ 5 MicroTouch on the World Wide Web.............................................. 6 MicroTouch Corporate Headquarters and Worldwide Offices............... 7 Chapter 1 Integrating the MT410 Controller Overview of the MT410 Touchscreen Controller.................................
MT410 Controller Reference Guide Chapter 2 Communicating with the MT410 Controller Controller Default Settings.................................................................... 24 Communication Parameters ............................................................ 24 Data Format .................................................................................... 24 Operating Mode .............................................................................. 24 Communicating with the Controller......
About This Manual This reference manual, directed to developers of touchscreen systems, provides installation and configuration information for the MicroTouch MT410 4-wire resistive touchscreen controller. This document includes information on integrating the MT410 controller into your design, communicating with the controller, installing the TouchWare user interface software, and troubleshooting setup problems.
MT410 Controller Reference Guide Whenever you contact Technical Support, please be ready to provide the following information: • Part numbers of your controller and sensor • Version number of your MicroTouch TouchWare • Make and model of your personal computer • Name and version number of your operating system • Type of mouse connected to your system • List of other peripherals connected to your system • List of application software installed on your system You can also submit a written desc
About This Manual MicroTouch Corporate Headquarters and Worldwide Offices United States MicroTouch Systems, Inc. 300 Griffin Brook Park Drive Methuen, MA 01844 United States Phone: 978-659-9000; Fax: 978-659-9100 Web Site: http://www.microtouch.com E-Mail: touch@microtouch.com Support Hot Line: 978-659-9200 Support Fax: 978-659-9400 Support E-Mail: support@microtouch.com Australia MicroTouch Australia, PTA Ltd. 797 Springvale Road Mulgrave Victoria 3170 Australia Phone: +613 9582 4799 Web Site: http://www.
C H A P T E R 1 Integrating the MT410 Controller The MicroTouch MT410 controller offers an economical, high performance, 4-wire resistive solution for touch applications. Its compact design makes for easy integration into flat panel displays and mobile devices. The MT410 controller works with all the leading operating systems and is backed by the MicroTouch guarantee of worldwide support.
MT410 Controller Reference Guide Overview of the MT410 Touchscreen Controller The MT410 is a compact controller with a standard RS-232 serial interface. It measures 1.3 x 2.435 inches with a total height profile of 0.4 inches from the thru hole pins on the trace side of the board to the top of the highest component on the opposite side. See Figure 1 for the board dimensions (profile not shown) and for mounting hole locations. 2.435" [61.85mm] 0.125" [3.18mm] JP3 0.125" [3.18mm] LED1 JP1 + JP2 1.
Chapter 1 Integrating the MT410 Controller 11 To properly integrate and test the MT410 controller, you need the following items: • A MicroTouch 4-wire resistive touchscreen, which is available in a variety of sizes, and the controller. • A method of establishing the serial data communication between the controller and your system. You can use the standard MicroTouch RS232 serial cable (P/N 7310101), or you can build your own cable. • A means of supplying power to the controller.
MT410 Controller Reference Guide 0.122" (4-40 screw grounding required) 0.400" [10.16mm] 0.430" 0.836" [10.92mm] [21.23mm] JP3 LED1 0.929" [23.60mm] JP1 JP2 + 12 0.200" [5.08mm] 0.122" (4-40 screw no-grounding required) 0.080" [2.03mm] Figure 3 Connector Locations and Hole Identifications • Maintain a clearance of at least 1/8 inch from the highest projection on the controller to the chassis.
Chapter 1 Integrating the MT410 Controller 13 Connecting the Touchscreen Cable The touchscreen connector (JP3) is a 4-pin AMP 103634-3 locking right angle male connector with pins on 0.1 inch centers. 4-Wire Touchscreen Connector JP3 LED1 JP1 JP2 + Figure 4 Touchscreen Connector The MT410 controller supports orienting the touchscreen with any of the four sides on the top. The controller firmware automatically determines the pinout configuration when you calibrate the touchscreen.
MT410 Controller Reference Guide Establishing the Data Connection The MT410 controller requires that an RS-232 serial communication cable be attached to connector JP1. RS-232 Cable Connector JP3 LED1 JP1 JP2 + Figure 5 Data Connector You can use a standard MicroTouch RS-232 cable (P/N 7310101). You may need a 9-pin to 25-pin adapter if the only available communication (COM) port on your PC has 25 pins.
Chapter 1 Integrating the MT410 Controller Table 2 COM Cable for MT410 Controller (JP1) Wire PC Side (9-Pin D) Controller Side (7-Pin Molex) Pin RS-232 Assigned Jumpered to: Color Pin 1 Data Carrier Detect (DCD) 4 and 6 DTR and DSR None 2 Receive Data (RXD) Brown 2 Transmit Data (TXD) 3 Transmit Data (TXD) Red 3 Receive Data (RXD) 4 Data Terminal Ready (DTR) None 5 Signal Ground Blue 5 6 Data Set Ready (DSR) None 7 Request to Send (RTS) Black 1 Request to Send (
MT410 Controller Reference Guide Supplying Power to the Controller You must supply the MT410 controller with power. You can use internal power (that is, tap power from inside the monitor or PC) or external power. Note: The power source must deliver 70 mA typical, with a maximum ripple and noise of 50 mV peak-to-peak. Power should be limited to less than one amp. A 1 amp fuse or current limited power regulator is recommended.
Chapter 1 Integrating the MT410 Controller ! 17 To provide power directly to the controller using JP2: 1. Obtain a locking, mating connector for JP2 (Molex housing 22-01-3027 with 08-50-0114 contacts). 2. Attach power and ground to the connector (Pin 1: +5V , Pin 2: Ground). The connector is keyed. Pin 1 has continuity to the trace marked + on the board. 3. Insert locking connector into JP2.
MT410 Controller Reference Guide ! To connect a keyboard power tap cable: 1. Disconnect the keyboard cable from the back of your computer. 2. Plug the keyboard cable into the power tap cable. 3. Plug the power tap cable into the keyboard socket on the back of your computer. 4. Remove the plastic plug covering the power jack of the 9-pin D connector on the serial cable. 5. Connect the DC plug from the power tap cable to the jack built into the 9-pin D connector.
Chapter 1 Integrating the MT410 Controller 19 If it was necessary for you to mount the controller component side down, you can determine the status of the LED from its reflected light off the mounting surface. Status Light (LED) Diagnostics MicroTouch controllers are highly reliable units, however there may be occasions when the controller does not perform exactly as you expect. The MT410 controller provides diagnostic feedback with the LED shown in Figure 7.
MT410 Controller Reference Guide Table 3 LED Diagnostic Codes for MT410 Controller LED Flashes (/10 sec.) Self Test Bit (Unit Type Command) 2 1 ROM error. Firmware checksum verification error. 3 Block 1 EEPROM error. The operating parameters in the controller EEPROM are invalid. Using defaults. 7 Block2 EEPROM error. The linearization data in the controller EEPROM is invalid.
Chapter 1 Integrating the MT410 Controller 21 What's Next? You have successfully installed the MT410 controller and connected the touchscreen to your computer. You are now ready to complete the following tasks: • Install TouchWare or equivalent software for your touchscreen • Use the software to calibrate the touchscreen Installing and Using TouchWare TouchWare includes the software driver that lets your touchscreen work with your computer.
C H A P T E R 2 Communicating with the MT410 Controller This chapter discusses the fundamentals of communicating with the MT410 controller. The firmware commands, which are usually issued by a driver or utility program on the host system, control the operation of the touchscreen controller, however developers can enter these commands directly.
MT410 Controller Reference Guide Controller Default Settings This section provides detailed information on the default settings for the MT410 chipset controller. Communication Parameters The default operation of the MT410 controller is N, 8, 1 (no parity, 8 data bits, and 1 stop bit) at 9600 baud. Data Format Data format refers to the type of packet the controller uses to send the X/Y touch coordinates to the host system. Format Tablet is the default 8–bit format for the MT410 controller.
Chapter 2 Communicating with the MT410 Controller 25 Mode Stream is the default operating mode for the MT410 controller and the mode that MicroTouch recommends you use. In Mode Stream, the controller sends a continuous stream of data packets when the touchscreen is touched. The controller sends the data as long as the touch continues on the screen. Because Mode Stream sends touch data continually, it is the most versatile mode enabling program filtering at any touch event.
MT410 Controller Reference Guide The header is the first character in the command string and is the ASCII start–of–header control character SOH (01 hexadecimal). To start the command sequence, send the SOH character. Most terminal emulators use the key sequence (^A). Using Microcal, TouchWare, or most IBM compatible terminal emulators, SOH is displayed as ☺. Since the controller echoes the character it receives, typing returns a ☺ to the screen.
Chapter 2 Communicating with the MT410 Controller 27 Another standard response is 1 (ASCII character ‘one’ or 31 hexadecimal). For most commands, this response indicates that the command failed. The controller received an invalid that it could not execute. Some possible reasons for the failure include: • The command was not formatted correctly. • The system parameters were not set up to allow command execution. • The controller does not support the command.
MT410 Controller Reference Guide Table 4 Summary of Firmware Commands Command Name ASCII Code Description Calibrate Extended CX Initiates an interactive, two–point calibration. Calibrate Raw CR Collects the raw X and Y coordinates prior to normal scaling, linearization, and filtering process. Controller Name NM Returns a null terminated character string defining the name of the controller.
Chapter 2 Communicating with the MT410 Controller Firmware Commands This section covers the command format for each firmware command and the range of responses you can expect to receive from the controller.
MT410 Controller Reference Guide Calibrate Extended Syntax: CX Description: Initiates an interactive, two–point calibration. During the calibration process, you define the active area of the touchscreen by mapping locations to an absolute X/Y coordinate system. You touch two target areas on the screen. Touching the target areas sends the X/Y coordinates for those touch points to the controller. The controller calculates all other touch points based on these two points.
Chapter 2 Communicating with the MT410 Controller 31 (1023, 0) (0, 0) (560, (895, 96) 420) Upper Right Calibration Target X = 1023 – (1024 x 1/8) = 1023 – 128 = 895 Y = 0 + (768 x 1/8) = 0 + 96 = 96 (128, (80, 60) 671) (0, 767) Lower Left Calibration Target X = 0 + (1024 x 1/8) = 0 + 128 = 128 Y = 767 - (768 x 1/8) = 767 - 96 = 671 Note: The example in this discussion is in video terms, with the origin (0, 0) in the upper left corner of the screen.
MT410 Controller Reference Guide Calibrate Extended Procedure To use the CX command: 1. Enter the Calibrate Extended (CX) command. The controller sends an acknowledgment of 0. 2. Touch the screen at a lower left target, which is located 12.5% (1/8) in from the corner of the video image. The controller returns an acknowledgment of 1. This is a positive response. If you receive a negative response, try touching the screen again. 3.
Chapter 2 Communicating with the MT410 Controller 33 Calibrate Raw Syntax: CR Description: Allows the collection of raw (signed) X and Y coordinates prior to the normal scaling, linearization, and filtering processes. The controller sends the coordinates whenever a touch is detected and continues to send a stream of data as long as a finger remains in contact with the touchscreen. The Calibrate Raw data is a 5–byte packet that includes 1 status byte and 4 bytes of binary X/Y coordinate data.
MT410 Controller Reference Guide MSB* Bits Data Sequence 7 6 S - Byte 1 1 S6 5 4 LSB* 3 2 1 0 Reserved X - Byte 2 0 X3 X2 X1 X0 x - Byte 3 0 Xs** X9 X8 X7 Y - Byte 4 0 Y3 Y2 Y1 Y0 y - Byte 5 0 Ys** Y9 Y8 Y7 Reserved X6 X5 X4 Reserved Y6 Y5 Y4 * MSB = Most Significant Bit, LSB = Least Significant Bit ** s = sign bit Table 5 describes the meaning of the bits in the status byte (Byte 1).
Chapter 2 Communicating with the MT410 Controller 35 Controller Name Syntax: NM Description: Returns a character string of any length, terminated by a null character. The character string can be used to display the name of the controller. Response: xxxxxx...
MT410 Controller Reference Guide Format Raw Syntax: FR Description: Returns uncorrected X and Y coordinates. The returned values are not corrected for offset and stray values, however you can obtain the offset and stray values using the Get Parameter Block command. For more information, refer to the description of the Get Parameter Block command later in this chapter. Format Raw data is a 5–byte packet that includes 1 status byte and 4 bytes of binary position data.
Chapter 2 Communicating with the MT410 Controller 37 SXxYy where: S = Status byte; first byte of data. Refer to Table 5. Xx = X (horizontal) coordinate data; second and third bytes of data Yy = Y (vertical) coordinate data; fourth and fifth bytes of data.
MT410 Controller Reference Guide Format Tablet Syntax: FT Description: Outputs the calibrated X/Y touch coordinate data in a 5–byte packet. The packet includes 1 status byte and 4 bytes of binary X/Y coordinate data. X and Y coordinates are sent out as 14 binary bits providing a range of 0 to 16,383, however the low order bits (X3 – X0 and Y3 – Y0) are not used. To use Format Tablet, the controller and host system must be in an 8–bit data communication mode.
Chapter 2 Communicating with the MT410 Controller 39 Table 6 defines the status bits (Byte 1) for the Format Tablet data. Table 6 Format Tablet Status Bits Bit Description Values S0 – S5 Reserved — S6 Proximity (touch state) 1= 0= Touchscreen is being touched (a touchdown or a continued touch). Touchscreen is not being touched (a touch liftoff or inactive).
MT410 Controller Reference Guide Mode Stream Syntax: MS Description: Sends a continuous stream of X/Y coordinate data when you touch the screen. The controller continues to send data as long as you touch the screen. The controller sends the data even if the touch is stationary and unchanging. The format of the coordinate data depends on the last format command received by the controller. Note: Format Raw automatically uses Mode Stream to send X/Y coordinate data.
Chapter 2 Communicating with the MT410 Controller Null Command Syntax: Z Description: Queries the controller and waits for a response. Use Z to determine that you are communicating with the controller or to make sure that a utility is communicating with the controller. Using this command does not affect the controller’s current operating parameters. Response: 0 Positive response.
MT410 Controller Reference Guide Output Identity Syntax: OI Description: Returns a 6–character identifier, which describes the controller type and the firmware version number. Response: CcXxxx where: Cc = Two ASCII characters that describe the type of MicroTouch controller. MT = Small format resistive serial controllers and chipsets Xxxx = Four ASCII characters that indicate the firmware version number in decimal format.
Chapter 2 Communicating with the MT410 Controller 43 Reset Syntax: R Description: Initializes the hardware and the firmware, causes the controller to stop sending data, and recalculates the environmental conditions (for example, stray and offset values). The Reset command also cancels the Format Raw and Calibrate Raw commands and returns the controller to normal operation.
MT410 Controller Reference Guide Restore Defaults Syntax: RD Description: Returns to the factory default operating parameters. The Restore Defaults command copies the MicroTouch factory default parameters from ROM to the non–volatile memory (NoVRAM) and then executes a Reset command. Table 7 lists the factory defaults for the MT410 controller. The Restore Defaults command is useful in situations where inadvertent commands to the controller have rendered the touchscreen inoperative.
Chapter 2 Communicating with the MT410 Controller 45 Unit Type Syntax: UT Description: Responds with an 8–character identity string. This string identifies the type of controller currently attached to the system, lists the features supported by the controller, and outputs the status of the controller hardware (a self–test code). The identification code for the MT410 controller is MTR***00.
MT410 Controller Reference Guide Table 8 Bit Definition for the Unit Type Command Bit Controller Status 1 ROM error. Firmware checksum verification error. 3 Block 1 NoVRAM error. The operating parameters in the controller NoVRAM are invalid. Using defaults. 7 Block 2 NoVRAM error. The data in the controller NoVRAM is invalid.
A P P E N D I X A MT410 Controller Specifications MT410 Controller: Programmable CMOS, small format-size controller Circuit Board Dimensions: 1.3 in. x 2.4 in.
Index A adapter, 9-pin to 25-pin 14 dimensions 21 driver 11, 21, 23 E B bits data 46 parity 46 electrostatic discharge 12 error 19 errors 20 C F calibration definition 21 clearance 11, 12 connecting the touchscreen cable 13 connectors JP1 14 JP2 16, 17 Molex 17 serial cable 17, 18 corporate headquarters 7 flat panel displays 9, 18 D data connection 14 diagnostic codes, LED 20 G ground 11, 12, 15, 16, 17 grounding 11 H headquarters, corporate 7 help phone support 5 world wide web 6
MT410 Controller Reference Guide I P Internet address, MicroTouch 6 phone support 5 pins 14 power requirements 46 power, supplying external 17 internal 16, 17 profile 10, 11 J JP1 connector 14 JP2 connector 16, 17 K keyboard power tap 16, 17 R RS-232 10, 11, 14, 15, 17, 46 L LCD modules 18 LED 18, 19 M MicroTouch Internet address 6 mounting holes 11, 12 MT410 controller LED 18 overview 9 power connector 16 serial data connector 14 specifications 46 S screws 11, 12, 18 specifications 46 standof