PixiPointTM Z UR7HCPXZ-P440 Advanced “Click-to-Select” TM No-Drift PS/2 Force Stick Controller HID & SYSTEM MANAGEMENT PRODUCTS, MOUSECODERTM FAMILY DESCRIPTION The PixiPointTM Z mouse encoder is a cost-effective, highfunctionality IC designed to interface the CTS 106, 108 and 109 sensors to the PS/2 port. Ideal for laptop/palmtop use, the low power PixiPointTM Z offers an advanced algorithm for enhanced motion control. The IC also enables click, double-click, MouseWheel action and slow drag without the need for special drivers. The IC provides an extra port for hot-plug connection of an external pointing device, including those with built-in Mousewheel. Both the embedded sensor and the external device can be operated concurrently. The PixiPointTM Z utilizes a special signal conditioning circuit (US and International patent pending) which enables a low cost, simple and real estate-saving implementation. Just a few low tolerance external components are needed. FEATURES • Accurate cursor control via Semtech’s Advanced Motion Control algorithm • Click (Select), Double-Click (Execute), MouseWheel and slow drag are implemented in the IC – no special driver support required • Enables hot-plug connections of an external pointing device, including those with MouseWheel • Offers concurrent operation of force stick and external pointing device • Provides ideal interface for CTS Series 106, 108 and 109 sensors • Low power consumption of typically less than 3mA makes it ideal for battery-operated systems • 3-5V operation in extended temperature range APPLICATIONS • Keyboards • Instrumentation • Notebooks/laptops • Handhelds PIN ASSIGNMENTS _RB SPWR0 SPWR1 SPWR2 SPWR3 SPWR4 DA OFST The IC implements typically consumes less than 3mA, making it suitable for use in battery-operated systems. PS/2 communication is bidirectional at 10 kbps. The IC, a CMOS device operating at 4 MHz, is compatible with both the IBM and Microsoft two-button and the Logitech three-button mouse protocols. It implements all commands from and to the system, as defined in the IBM PS/2 Mouse Communication Protocol. Custom versions are also available to suit a range of applications. 32 25 24 1 _MB _LB INH MDAT MCLK SSELECT XCLK1 XCLK AD SELX SELZ DRVZ VREF _RESET VSS2 VDD 17 8 16 OCSIN _OSCOUT VSS DRV_XY0 DRV_XY1 Z_SIG0 Z_SIG1 XDAT 9 PixiPoint and MouseCoder are trademarks of Semtech Corp. All other trademarks belong to their respective companies. Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 • Can utilize standard mouse drivers • Inexpensive, simple and real estate-saving implementation with USAR’s proprietary signal conditioning circuit • Offers “Clean Stop” so cursor stops when you want it to • Compatible with IBM/Microsoft two-button and Logitech threebutton mouse • Supports all commands from and to the system, as defined in the IBM PS/2 Mouse Communication Protocol • Small 32-pin 7mm X 7mm LQFP package • Customized versions available • Royalty-free and cost-effective 1 www.semtech.com ORDERING CODE Package options 32-pin, Plastic LQFP Pitch in mm’s 0.5 TA = -20°C to +85°C UR7HCPXZ-P440-FA XX = Optional for customization codes BLOCK DIAGRAM LEFT, MIDDLE, RIGHT & SCROLL BUTTONS 3 Data Buffer Switch Interface 3 MCLK MDAT X/Y/Z Channel Activation Control X Input PS/2 Communication Port Analog Signal Input Y Input XCLK XDAT 5 Control 8042 Emulation Port Power Strobe PixiPoint TM Z Interface 16-bit Timer Power-On Reset Oscillator Circuit 2 Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 Signal Conditioning Control 2 OSCIN-OSCOUT www.semtech.com FUNCTIONAL DESCRIPTION The UR7HCPXZ-P440 consists functionally of five major sections (see Functional Diagram, previous page). These are the PixiPointTM Z Interface, the 16-Bit Timer, the Oscillator Circuit, the PS/2 Communication Port and the 8042 Emulation Port. All sections communicate with each other and operate concurrently. SIGNAL CONDITIONING CIRCUIT The PixiPointTM Z sensor is a flexible (but very firm) “beam” with four Strain Gages – one on each of the sides. If the force is applied precisely in the X direction, then it will produce a change of resistance of only the two X gages. Force in the Y direction will cause changes only in the Y gages. One of the pair of the gages will increase, while the other will concurrently decrease the resistance. If the user presses on the sensor from the top (Z Axis), all of the strain gages will decrease the resistance. When the test current is passed through the gages, these resistance changes are converted into the voltage changes. These signals are very small, typically under 1 mV Full Scale. The Signal Conditioning Circuit (patent pending) balances and amplifies the incoming signals for digitizing by a built-in A/D converter. Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 PIN DEFINITIONS Mnemonic VDD VSS VSS2 OSCIN Pin # 8 11 7 9 Type P P P I _OSCOUT 10 O _RESET MDAT MCLK XCLK 6 21 20 17 I I/O (nd) I/O (nd) I XCLK1 XDAT 18 16 I/O (nd) I/O (nd) _LB _MB _RB DRV_XY0 DRV_XY1 Z_SIG0 Z_SIG1 DRVZ SELX SELZ INH VREF AD DA OFST SPWR0 SPWR1 SPWR2 SPWR3 SPWR4 PWROFF 23 24 25 12 13 14 15 4 2 3 22 5 1 31 32 26 27 28 29 30 19 I/O (nd) I/O (nd) I/O (nd) I/O I/O I/O I/O I/O O O O AI AI I/O I/O I/O I/O I/O I/O I/O I/O Name and Function Power Supply: +5V Ground Ground Oscillator Input: external clock input or one side of the Ceramic Resonator with built-in Load Capacitors Oscillator Output: open for external clock input or other side of the Ceramic Resonator with built-in Load Capacitors Reset: apply 0V to provide orderly start-up Mouse Data: connects to host’s data line Mouse Clock: connects to host’s clock line External Mouse Clock: PS/2 clock signal from external mouse External Mouse Clock 1: connect to XCLK External Mouse Data: PS/2 data signal from external mouse Left Button: active low, strobed sampling Middle Button: active low, strobed sampling Right Button: active low, strobed sampling Sensor’s Excitation Driver Sensor’s Excitation Driver: connect to DRV_XY0 Sensor’s Excitation Driver Sensor’s Excitation Driver: connect to Z_SIG0 Sensor’s Excitation Driver Select X: control line for analog multiplexer Select Z: control line for analog multiplexer Multiplexer Inhibit Signal: active high Reference Voltage for built-in A/D Analog to Digital Converter Input Digital to Analog Converter Output Offset: resets the offset circuit during inactivity Switched Power Driver Switched Power Driver: connect to SPWR0 Switched Power Driver: connect to SPWR0 Switched Power Driver: connect to SPWR0 Switched Power Driver: connect to SPWR0 Reserved: power management control Note: An underscore before a pin mnemonic denotes an active low signal. Pin Types Legend: AI=Analog Input; I=Input; O=Output; I/O=Input or Output; I/O (nd)=Input or Output with N-chanel Open Drain driver SIGNAL CONDITIONING CIRCUIT (CON’T) Semtech’s proprietary circuit can correct a significant imbalance between the gages in each X and Y pair (+/- 25%), allowing relaxed manufacturing tolerances for the sensors, interconnecting cabling, and temperature-shift induced errors (no performance degradation over the full operating temperature range and for large temperature gradients between the paired gages). 3 www.semtech.com BUILT-IN FEATURES PS/2 COMMUNICATION The PixiPointTM Z enables click, double-click, MouseWheel action and slow drag without the need for special drivers. A standard PS/2 mouse driver can be utilized. At start-up or upon receiving a reset command, the PixiPointTM Z will wait between 300 and 500 milliseconds before sending an AAh to the host followed by a device ID of 00h. Then the IC will set itself to its default values, i.e. Incremental Stream Mode with 1:1 scaling, and a report rate of 100 Hz. The device will then disable itself until a command is sent from the host. PixiPointTM Z has responded or until 25 milliseconds have elapsed. EXTERNAL PS/2 PORT The UR7HCPXZ-P440 offers an external PS/2 mouse port. Data from this port is seamlessly merged with data from the internal pointing device. External devices, including those utilizing a MouseWheel, can be hot-plug connected. ERROR HANDLING For every correct command or parameter received from the host, the UR7HCPXZ-P440 sends an Acknowledge (FAh). If an invalid command or parameter is received, the UR7HCPXZ-P440 issues a Resend Request (FEh). If an invalid input is again received, the device transmits an Error Code (FCh) to the host. Both error and Resend request responses are sent by the device within 25 milliseconds. The host may not issue any new commands until either the PixiPointTM Z has responded or until 25 milliseconds have elapsed. Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 4 www.semtech.com PS/2 DATA FORMAT The following table shows the data report format. Each of the two position values (X and Y) is expressed as a 9-bit Two’s Complement integer with the most significant bit (the sign bit) stored separately in Byte 1. Z value (wheel or scroll) is expressed as an 8-bit Two’s complement integer. DATA REPORT FORMAT TABLE Byte 1 b0 b1 b2 b3 b4 b5 b6 b7 Left Button status Right Button Status Middle Button Status Reserved X8: MSB of X data, sign bit Y8: MSB of Y data, sign bit X data overflow Y data overflow b0 b1 b2 b3 b4 b5 b6 b7 X0: LSB of X data X1 X2 X3 X4 X5 X6 X7 1 = depressed 1 = depressed 1 = depressed Always = 1 1 = negative 1 = negative 1 = overflow 1 = overflow Byte 2 If there is an overflow of the accumulator, the maximum positive or negative count is reported and the corresponding overflow bit is set. Byte 3 b0 Y0: LSB of Y data b1 Y1 b2 Y2 b3 Y3 b4 Y4 b5 Y5 b6 Y6 b7 Y7 Byte 4 (for wheel function; sent only if output of Z data is enabled by the driver) b0 Z0: LSB of Z data b1 Z1 b2 Z2 b3 Z3 b4 Z4 b5 Z5 b6 Z6 b7 Z7: MSB or Z data, sign bit STATUS REPORT FORMAT TABLE Byte 1 b0 b1 b2 b3 b4 b5 b6 b7 Right Button 1 = depressed Middle Button 1 = depressed Left Button 1 = depressed Reserved Always = 0 Scaling - 1:1 (0) / 2:1 (1) Disable - (0) / enable (1) Stream - (0) / prompt (1) mode Always = 0 b0 - 1 b2 - 7 Current resolution setting b0-7 Current sampling rate Byte 2 Always = 0 Byte 3 Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 5 www.semtech.com PS/2 MODE COMMANDS When the Reset Command (FFh) is received, the UR7HCPXZ-P440 sets the following default parameters: Incremental Stream Mode, 1:1 scaling, report rate of 100 Hz, and disabled. It then sends AAh to the host followed by a device ID of 00h. The host sends the Resend Last Data Stream Command (FEh) when it detects an error in any UR7HCPXZ-P440 transmission. The device then resends the last output data packet to the host. This transmission occurs after a PixiPointTM Z transmission and before the host enables the interface allowing the next PixiPointTM Z output. The Set Default Status Command (F6h) re-initializes the device to its condition at power-up. The Reset Echo Mode Command (ECh) returns the device to its previous mode, and disabled. The Set Prompt (Remote) Mode Command (F0h) sets the device The Read Report Command (EBh) prompts the PixiPointTM Z for a report. The report occurs even if the device has not moved or if the status of the switches did not change. to Prompt Mode. Data values are then only reported in response to a Read Report Command (EBh). The Set Incremental Stream Mode Command (EAh) sets the If the Set Echo Mode Command (EEh) is received, the PixiPointTM Z will immediately return any data bytes except FFh or ECh. Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 The Status Request Command (E9h) returns a 3-byte status report. If the PixiPointTM Z is in Incremental Stream Mode, the Enable Command (F4h) will allow it to begin data transmission. If the device is in Prompt Mode, the Enable Command will only update the internal status of the PixiPointTM Z. The PixiPointTM Z will respond to the The Disable Command (F5h) stops the device from transmitting all reports. However, the mode does not change; the PixiPointTM Z is still able to respond to commands. If the Disable Command is issued while the device is transmitting a report, the UR7HCPXZ-P440 immediately stops the transmission and disables itself. PixiPointTM Z to Stream Mode and disables the device. Set Sampling Rate Command (F3h) in both Stream and Prompt Modes but will only update its internal status if this command is enacted while the device is in the Stream Mode. The Set Resolution Command (E8h) controls resolution, the Set 2:1 Scaling Command (E7h) enables a coarse/fine tracking response, and the Set 1:1 Scaling Command (E6h) enables the values of movements to be transmitted to the host without any scaling. Due to Semtech’s Advanced Motion Algorithm, Set Resolution and Scaling Commands are acknowledged and reported as activated, but their status is ignored. The UR7HCPXZ-P440 responds to the Read Device Type Command (F2h) with the device ID of 00h. 6 www.semtech.com SEQUENTIAL COMMANDS Unlike normal commands, sequential commands must be enacted with a sequence of commands. If the sequence is not consecutive or is incorrect, the PixiPointTM Z aborts the detection and responds the way it would normally respond to a command. The individual commands that comprise a sequential command have been designed so that the elements of a sequential command can be sent to the PixiPointTM Z via the standard IBM PS/2 BIOS calls and the device returns a valid response to the Status Request. This ensures that, if the sequential command is sent via the BIOS, the status response will be accurately returned even if the BIOS performs error detection. Thus, a programmer can have complete control of the mouse without having to access the device hardware port directly. The UR7HCPXZ-P440 implements a special sequential command that can be used to determine its ability to report three buttons. The sequential command is a series of commands to the PixiPointTM Z that cause the device to respond to the last command (Read Status) with alternate information. The sequence of commands is as follows. 1. 2. 3. 4. 5. Set Resolution = one count/ mm Set Scaling = 1:1 Set Scaling = 1:1 Set Scaling = 1:1 Read Status (E8H) (E6H) (E6H) (E6H) (E9H) The response to the Read Status Command is in the following format. Byte 1: Standard Status Information (buttons, scaling, etc.) Byte 2: Number of mouse buttons (3) Byte 3: Firmware Revision Number (encoded) or current sampling rate Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 7 www.semtech.com Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 8 487952_6 6 5 4 3 2 1 JP1 C3 .1uF C2 .1uF GND Y_SIG X_SIG DRV_XY Y_SIG X_SIG Z_SIG GND 4.7k 1k R2 1 3 OFFSET 220pF C1 R1 2 5 12 13 Y_SIG X_SIG 6 11 10 9 5 3 1 6 www.semtech.com RB 8 G N D Z Y X OFST DA X_NOT_Y Z_NOT_XY 15 L B 2 3 I N H 2 2 U1 M D A T 2 1 M C L K 2 0 P W R O F F 1 9 2 S E L X 3 S E L Z 5 V R E F Z_SIG0 .1uF L1 is a Hot-plug Surge Current limiter for the external PS/2 port. If U2 is used, do not install R4 and C8. If Active-low System Reset is available, remove R4, C8, and U2. DRV_XY Z_SIG NOT_RESET Y1 C5 47uF GND 1uF C8 R4 100k Q1 BSS84 GND DRV_XY Z_SIG EXT_M_DATA GND 3 2 47pF C7 GND 47pF C6 S5B_PH_K JP4 PS/2 DATA SHIELD GND +5V PS/2CLOCK 1 TC54VC4502ECB Reset IC (Voltage Detector) U2 GND 1 2 3 4 5 8 Optional Components (see Note) 1 M_CLOCK M_DATA +5V 7 3 2 5 4 MDIN6_SH JP3 L1 12uH 6 +5V (C)1996-1999 USAR SYSTEMS EXT_M_CLOCK 4.00MHz 9 10 11 12 13 14 15 16 GND GND 8 V D D OSCIN C4 7 V S S 2 OSCOUT VSS DRV_XY0 DRV_XY1 GND 6 R E S E T NOTE: R3 3.16k 1% 4 D R V Z 32-pin LQFP X C L K XDAT 1 7 M_CLOCK M_DATA Z_SIG1 1 8 X C L K 1 UR7HCPXZ_P440 1 A D SPWR4 SPWR3 SPWR2 SPWR1 14 4 M B / S B SPW0 SIG_IN 32 31 30 29 28 27 26 25 GND 7 INH A B V E C E Z0 Z1 Y0 Y1 X0 V X1 C C U3 74HC4053 SIGNAL LMV321 4 U4 D/A GND SW3 SW RIGHT XY_SIG 2 Z_SIG 1 SW2 SW MIDDLE SWITCHED_POWER GND SW1 SW LEFT 2 4 TP1 PWROFF SUGGESTED INTERFACING FOR THE PIXIPOINTTM Z UR7HCPXZ-P440-FG ELECTRICAL SPECIFICATIONS Absolute Maximum Ratings Ratings Supply Voltage Input Voltage Current Drain per Pin (not including Vss or Vdd) Operating Temperature UR7HCPXZ-P440 Storage Temperature Range Symbol Vdd Vin I Value -0.3 to 7.0 Vss -0.3 to Vdd +0.3 20 Unit V V mA Ta T low to T high -20 to +85 -40 to +125 °C °C °C Tstg DC Electrical Characteristics, Temperature range=T low to T high unless otherwise noted) Characteristic Symbol Min Typ Max Supply Voltage 3.0 5.0 5.5 Output Voltage (10 µA load) Voh Vdd–0.1 Vol 0.1 Input High Voltage Vih 0.8 x Vdd Vdd Input Low Voltage Vil Vss 0.2xVdd Input Current Iin +/- 1 Supply Current (Vdd=5.0 Vdc+/-10%, Vss=0) Idd 3.0 TBD Unit V V V V µA mA Control Timing (Vdd=5.0 Vdc +/-10%, Vss=0 Vdc, Temperature range=T low to T high unless otherwise noted) Characteristic Symbol Min Typ Max Unit Frequency of Operation fosc MHz Crystal Option 4.0 External Clock Option 4.0 Sensor Characteristics Characteristic Resistance Matching Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 Symbol Rx Rx1/Rx2 Ry1/Ry2 Min 2K 75 75 9 Typ Max 10K 125 125 www.semtech.com Unit Ohms % % MECHANICALS FOR THE UR7HCPXZ-P440-FG HD D 32 e 25 F 24 8 17 E HE 1 y b L1 A2 9 A1 c Symbol L Detail F A b2 ME e MD I2 A A1 A2 b c D E e HD HE L L1 y b2 I2 MD ME 16 Dimension in Millimeters Min Nom Max – – 1.7 0.1 0.2 0 1.4 – – 0.3 0.35 0.45 0.105 0.125 0.175 6.9 7.0 7.1 6.9 7.0 7.1 0.8 – – 8.8 9.0 9.2 8.8 9.0 9.2 0.3 0.5 0.7 1.0 – – 0.1 – – 0ϒ 10ϒ – 0.5 – – – – 1.0 – – 7.4 – – 7.4 Recommended PCB Footprint Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 10 www.semtech.com This Page Left Intentionally Blank Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 11 www.semtech.com For sales information and product literature, contact: HID & System Mgmt Division Semtech Corporation 568 Broadway New York, NY 10012 [email protected] http://www.semtech.com 212 226 2042 Telephone 212 226 3215 Telefax Semtech Western Regional Sales 805-498-2111 Telephone 805-498-3804 Telefax Semtech Central Regional Sales 972-437-0380 Telephone 972-437-0381 Telefax Semtech Eastern Regional Sales 203-964-1766 Telephone 203-964-1755 Telefax Semtech Asia-Pacific Sales Office +886-2-2748-3380 Telephone +886-2-2748-3390 Telefax Semtech Japan Sales Office +81-45-948-5925 Telephone +81-45-948-5930 Telefax Semtech Korea Sales Sales +82-2-527-4377 Telephone +82-2-527-4376 Telefax Northern European Sales Office +44 (0)2380-769008 Telephone +44 (0)2380-768612 Telefax Southern European Sales Office +33 (0)1 69-28-22-00 Telephone +33 (0)1 69-28-12-98 Telefax Central European Sales Office +49 (0)8161 140 123 Telephone +49 (0)8161 140 124 Telefax Copyright 2000-2001 Semtech Corporation. All rights reserved. MouseCoder, PixiPoint, and No-Drift are trademarks of Semtech Corporation. Semtech is a registered trademark of Semtech Company. All other trademarks belong to their respective companies. INTELLECTUAL PROPERTY DISCLAIMER This specification is provided "as is" with no warranties whatsoever including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification or sample. A license is hereby granted to reproduce and distribute this specification for internal use only. No other license, expressed or implied to any other intellectual property rights is granted or intended hereby. Authors of this specification disclaim any liability, including liability for infringement of proprietary rights, relating to the implementation of information in this specification. Authors of this specification also do not warrant or represent that such implementation(s) will not infringe such rights. Copyright Semtech 2000-2001 DOC7-PXZ-P440-DS-111 12 www.semtech.com