Datasheet for Semtech models including: SH1211, MouseCoder, Ergonomic Mouse, PS/2, RS232, Encoder, Semtech, HID, System Management, HulaPoint, Fujitsu Takamisawa, FID-828, Hall-effect sensor, Analog joystick sensor, CTS 252, Switch joystick sensor, FSR sensor, Force Sensing Resistor, Varatouch, MicroPoint, CMOS, 32-pin LQFP, Datasheet, Technical Specification
SH1211 serial communication is unidirectional at a fixed speed of. 1200 Baud. PS/2 communication is bidirectional at 10 Kbps. The. SH1211 is a CMOS device.
SH1211 MouseCoder® Ergonomic Mouse PS/2 and RS232 Encoder HID & SYSTEM MANAGEMENT PRODUCTS, MOUSECODER® FAMILY PRELIMINARY DESCRIPTION FEATURES The SH1211 MouseCoder® is an easy-to-use single-chip multimouse encoder with an advanced motion algorithm for accurate cursor control. The SH1211 offers low power consumption in a smallfootprint package, and connects to a host serial or a PS/2 mouse port. The SH1211 is designed for use with a Fujitsu Takamisawa FID-828 Hall-effect sensor (HulaPointTM), a resistive analog joystick sensor (like the CTS 252), a switch joystick sensor, an FSR sensor, or a Varatouch MicroPointTM sensor, as well as others. · Advanced motion-control algorithm for accurate cursor control · Low power consumption in a 3.3 to 5.5 volt operating range · Compatible with standard twobutton, three-button, and wheel mice · RS232 or PS/2 host interface · Works with a Hall-effect sensor · Works with a resistive analog joystick sensor · Works with a switch joystick sensor · Works with an FSR sensor · Works with a Varatouch MicroPointTM sensor · Available in a small 32-pin plastic LQFP package APPLICATIONS · Embedded HulaPointsTM · Industrial panels · Joystick applications PIN ASSIGNMENTS · Industrial keyboards · Instrumentation · Gaming SEN15 INTSEL TxD SCLK SEN04 SEN05 SEN06 SEN07 The SH1211 provides an external port for hot-plug connection of a PS/2 mouse, including one with wheel function. SH1211 serial communication is unidirectional at a fixed speed of 1200 Baud. PS/2 communication is bidirectional at 10 Kbps. The SH1211 is a CMOS device operating at 4 MHz. It can return mouse reports at the rate of 100 per second. The SH1211 is compatible with the standard twobutton mouse protocol, the standard three-button mouse protocol, and standard wheel mouse protocols. It implements all commands from and to the system, as defined in the IBM PS/2 mouse communication protocol. SEN10 SEN09 EMDAT MCLK SEN08 VSS _OSCOUT OSCIN 32 1 SEN00 SEN01 SEN02 SEN03 VREF _RESET VSS2 VDD 8 9 SH1211-FG LQFP 25 24 SEN14 SEN13 SEN12 SENSEL2 SEN11 MDAT/RTS SENSEL1 EMCLK 17 16 The SH1211's low power consumption makes it ideal for battery operated systems. Semtech, the Semtech logo, MouseCoder, and HulaPoint are marks of Semtech Corporation. Force Sensing Resistor and FSR are marks of Interlink Electronics, Inc. MicroPoint is a mark of Varatouch Technology, Inc. All other marks belong to their respective owners. Copyright ©1995-2003 Semtech Corporation 1 SH1211 data sheet v1.10 (2003-07) www.semtech.com ORDERING CODE SH1211-FG LQFP 32-pin, 0.8 mm pitch, TA = -20°C to +85°C EVK-SH1211 Evaluation kit FUNCTIONAL DESCRIPTION The SH1211 consists functionally of five major sections (see block diagram below). These are the Sensor Interface, the 16-bit Timer, the Oscillator Circuit, the PS/2 Communication Port and the RS232 Communication Port. All sections communicate with each other and operate concurrently. BLOCK DIAGRAM Data Buffer MCLK MDAT TxD RTS Host PS/2 Communication Port Host Serial Communication Port EMCLK EMDAT RESET External PS/2 Port Power-on Reset Copyright ©1995-2003 Semtech Corporation 2 SH1211 data sheet v1.10 (2003-07) Left, Middle/Up, Right, & Down Buttons 4 Switch Interface X Input Y Input Control Sensor Interface 16-bit Timer Analog Signal Input Sensor Power Strobe Oscillator Circuit 2 OSCIN-OSCOUT www.semtech.com MOUSE EMULATION The SH1211 emulates either a standard 3-button mouse or a standard wheel mouse. The state of the button configuration pin (BCONF, pin 20) determines which mouse type is emulated. The pin left floating specifies 3-button mode, the pin tied to ground specifies wheel mode. In 3-button mode, the left, right and middle buttons are implemented. In wheel mode, the left, right, up, and down buttons are implemented; pressing up and down buttons together emulates a middle-button press. POWER CONSUMPTION The SH1211 typically consumes less than 3 mA in standby for HulaPointTM or analog joystick sensors and less than 1 µA for other sensors. EXTERNAL PS/2 PORT The SH1211 provides an external PS/2 mouse port. Data from this port is seamlessly merged with data from the embedded sensor. External mice, including those with a mouse wheel, can be hot-plug connected. HOST INTERFACE The SH1211 communicates with the host system using either PS/2 or serial. The state of the interface select pin (INTSEL, pin 26) determines which interface is used. If the pin is tied to ground, PS/2 is used; if it is tied to power (Vcc), serial is used. SENSOR CONFIGURATIONS The SH1211 has built-in support applicable to many sensors, including the following: HulaPointTM Fujitsu Takamisawa FID-828 Hall-effect sensor Analog joystick sensor such as the CTS 252 Switch joystick sensor FSRTM sensor (Force Sensing ResistorTM, Interlink Electronics) Varatouch MicroPointTM sensor The states of the sensor select pins 18 and 21 (SENSEL1, SENSEL2) indicate which sensor is being used. The name, definition and use of the 16 sensor pins (SEN00-SEN15: pins 14, 29-32, 15, 16, 20, 22-25) vary depending on which sensor is being used. Refer to the schematics and pin definitions in this data sheet for specifics. Copyright ©1995-2003 Semtech Corporation 3 SH1211 data sheet v1.10 (2003-07) www.semtech.com HULAPOINTTM & ANALOG These pin descriptions and the schematic on the next page apply to a circuit with he Fujitsu Takamisawa FID-828 Hall-effect sensor (HulaPointTM) or an analog joystick sensor (like the CTS 252 resistive sensor). With a HulaPointTM or analog joystick sensor, the SH1211 supports wait mode and typically consumes less than 3 mA in standby. See also the HulaPointTM sensor orientation diagram toward the end of this data sheet. PIN DESCRIPTION NOTES An underscore before a pin mnemonic denotes an active low signal. Pin types legend: P = power AI = analog input I = input O = output I/O = input or output I/O (nd) = input or output with N-channel open drain driver The internal oscillator has a built-in feedback resistor. Only one external component is needed for clock generation. Semtech recommends a 4.00 MHz ceramic resonator with built-in load capacitors (AVX PBRC-4.00BR or equivalent). The button inputs (pins 22-25) have built-in pull-up resistors. No additional components are required. However, if high levels of ESD and EMI are expected, then series protection resistors (47 Ohms to 1K Ohms) are recommended between the switches and the switch inputs on the SH1211. PINS FOR HULAPOINTTM & ANALOG JOYSTICK SENSOR CIRCUITS Pin Numbers Mnemonic Pin Type Name and Function Power VDD VSS2, VSS 8 P 7, 11 P Power supply: +5V Ground Reset _RESET 6 I Reset: apply 0V for orderly start-up Oscillator OSCIN 9 I _OSCOUT 10 O 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 one side of the ceramic resonator with built-in load capacitors Host INTSEL 26 I Host interface select: tie to ground for PS/2 host, tie to power (VCC) for serial host MCLK 13 I/O (nd) Host PS/2 clock MDAT/RTS 19 I/O (nd) Host PS/2 data / serial ready-to-send TxD 27 O Serial transmit to host: idle high; in serial mode, connect to host RxD; in PS/2 mode, leave floating External PS/2 EMCLK 17 EMDAT 14 I/O (nd) I/O (nd) External mouse clock: PS/2 clock signal from external mouse External mouse data: PS/2 data signal from external mouse Select SENSEL1-2 18, 21 I Sensor select; for HulapointTMor analog joystick, leave both floating Reference VREF 5 AI Reference voltage for built-in A/D: for HulaPoint sensor, connect to SPWR0 Sensor SEN00-3 1-4 /SWPWR0-3 SEN04-5 29, 30 /SWPWR4-5 SEN06/YAD 31 SEN07/XAD 32 SEN08/_XYSWP 12 SEN09/_XINV 15 SEN10/_YINV 16 SEN11/BCONF 20 SEN12/_DB 22 SEN13/_LB 23 SEN14/_MB/_UB 24 SEN15/_RB 25 I/O Switched power drivers; connect together I/O Switched power driver; connect to SWPWR0 AI AI I I I I I/O (nd) I/O (nd) I/O (nd) I/O (nd) Y-axis analog to digital converter input X-axis analog to digital converter input Leave floating for default X, Y axes; connect to ground to swap X and Y axes Leave floating for default X direction; connect to ground for reversed X direction Leave floating for default Y direction; connect to ground for reversed Y direction Button configuration: leave floating for standard 3-button mouse mode, tie to ground for up/down/wheel-mouse mode Down button: active low, strobed sampling Left button: active low, strobed sampling Middle button: active low, strobed sampling Right button: active low, strobed sampling Reserved RSVD 28 Leave floating Copyright ©1995-2003 Semtech Corporation 4 SH1211 data sheet v1.10 (2003-07) www.semtech.com SCHEMATIC FOR THE SH1211 MOUSECODER® WITH ANALOG JOYSTICK SENSOR SW1 Down SW2 Left SW3 SW4 Middle/Up Right GND GND GND GND JP2 1 2 3 4 FFCC4 GND 25 INTSEL 26 TXD 27 28 29 30 31 32 RB PS2SEL TXD SCLK SWPWR4 SWPWR5 YAD XAD MB / UB 24 C3 0.01uF GND 1 SWPWR0 2 SWPWR1 3 SWPWR2 4 SWPWR3 5 VREF 6 RESET 7 VSS2 8 VDD LB 23 DB 22 CON2 J1 GND 1 2 SH1 SH2 VCC GND M_DATA EXT_M_CLOCK J2 CON2 J3 CON2 EMCLK 17 1 2 1 2 SENSEL1 18 MDAT 19 BCONF 20 SENSEL2 21 U1 SH1211-FG 32-Pin LQFP YINV XINV EMDAT MCLK XYSWP VSS OSCOUT OSCIN 16 GND 15 14 13 12 11 10 _OSCOUT 9 OSCIN GND EXT_M_DATA M_CLOCK J4 1 2 GNDCON2 Y1 4.00 MHz AVX# PBRC-4.00BR or eqivalent GND VCC C4 100 nF C5 10 µF 1206 GNDGND GND R1 100K SH6 C6 1 µF 1206 GND VCC L1 12uH JP1 MDIN6_SH 6 4 2 C1 5 47pF 3 1 GND C2 Mount i ng hol es 47pF SHIELD 7 8 VCC M_DATA M_CLOCK JP3 1 PS/ 2 DATA 2 SHI EL D 3 GND 4 +5 V 5 PS/ 2CL OCK GND S5B_PH_K VCC RTS CTS INTSEL TXD GND J5 1 2 3 4 5 6 7 8 CON8 Copyright ©1995-2003 Semtech Corporation 5 www.semtech.com SH1211 data sheet v1.10 (2003-07) FSRTM SENSOR These pin descriptions and the schematic on the next page apply to a circuit with an Interlink Electronics Force Sensing ResistorTM (FSRTM) sensor. With an FSR sensor, the SH1211 supports stop mode and typically consumes less than 1 µA in standby. PIN DESCRIPTION NOTES An underscore before a pin mnemonic denotes an active low signal. Pin types legend: P = power AI = analog input I = input O = output I/O = input or output I/O (nd) = input or output with N-channel open drain driver The internal oscillator has a built-in feedback resistor. Only one external component is needed for clock generation. Semtech recommends a 4.00 MHz ceramic resonator with built-in load capacitors (AVX PBRC-4.00BR or equivalent). The button inputs (pins 22-25) have built-in pull-up resistors. No additional components are required. However, if high levels of ESD and EMI are expected, then series protection resistors (47 Ohms to 1K Ohms) are recommended between the switches and the switch inputs on the SH1211. PINS FOR FSRTM SENSOR CIRCUITS Pin Numbers Mnemonic Pin Type Name and Function Power VDD VSS2, VSS 8 P 7, 11 P Power supply: +5V Ground Reset _RESET 6 I Reset: apply 0V for orderly start-up Oscillator OSCIN 9 I _OSCOUT 10 O 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 one side of the ceramic resonator with built-in load capacitors Host INTSEL 26 I Host interface select: tie to ground for PS/2 host, tie to power (VCC) for serial host MCLK 13 I/O (nd) Host PS/2 clock MDAT/RTS 19 I/O (nd) Host PS/2 data / serial ready-to-send TXD 27 O Serial transmit to host: idle high; in serial mode, connect to host RxD; in PS/2 mode, leave floating External PS/2 EMCLK 17 EMDAT 14 I/O (nd) I/O (nd) External mouse clock: PS/2 clock signal from external mouse External mouse data: PS/2 data signal from external mouse Select SENSEL1-2 18, 21 I Sensor select; for FSR sensor, tie SESEL1 to ground and leave SENSEL2 floating Reference VREF 5 AI Reference voltage for built-in A/D: for FSR sensor, connect to VDD Sensor SEN00/FSR_E SEN01/FSR_N SEN02/FSR_W SEN03/FSR_S SEN04, SEN07-SEN10 SEN05/TOUCH SEN06/SENSE SEN11/BCONF 1 2 3 4 29, 32, 12, 15, 16 30 31 20 SEN12/_DB 22 SEN13/_LB 23 SEN14/_MB/_UB 24 SEN15/_RB 25 I/O East I/O North I/O West I/O South I/O Reserved, leave floating AI AI I I/O (nd) I/O (nd) I/O (nd) I/O (nd) Touch Sense Button configuration: leave floating for standard 3-button mouse mode, tie to ground for up/down/wheel-mouse mode Down button: active low, strobed sampling Left button: active low, strobed sampling Middle button: active low, strobed sampling Right button: active low, strobed sampling Reserved RSVD 28 Reserved, leave floating Copyright ©1995-2003 Semtech Corporation 6 SH1211 data sheet v1.10 (2003-07) www.semtech.com SCHEMATIC FOR THE SH1211 MOUSECODER® WITH FSRTM SENSOR SW1 Down SW2 Left SW3 SW4 Middle/Up Right GND GND GND GND 25 INTSEL 26 TXD 27 28 29 30 31 32 RB PS2SEL TXD SCLK RSVD TOUCH SENSE FSR_E FSR_E FSR_N FSR_IN FSR_W FSR_S VDD R14 100K C4 3.3nF GND Q4 NPN R16 1M R15 10K GND 1 FSR_N 2 FSR_W 3 FSR_S 4 RSVD 5 VREF 6 RESET 7 VSS2 8 VDD MB / UB 24 LB 23 DB 22 1 2 CON2 J1 GND GND SH1 SH2 VCC GND M_DATA EXT_M_CLOCK EMCLK 17 SENSEL1 18 MDAT 19 BCONF 20 SENSEL2 21 U1 SH1211-FG 32 Pin LQFP RSVD 16 RSVD 15 EMDAT 14 MCLK 13 RSVD 12 VSS 11 OSCOUT 10 OSCIN 9 EXT_M_DATA M_CLOCK _OSCOUT Y1 OSCIN 4.00 MHz GND AVX# PBRC-4.00BR or eqivalent VCC C4 100 nF C5 10 µF 1206 GNDGND GND R1 100K SH6 GND C6 1 µF 1206 VCC L1 12uH JP1 MDIN6_SH 6 4 2 C1 5 47pF 3 1 GND C2 47pF Mounting holes VCC M_DATA M_CLOCK JP3 1 PS/ 2 DATA 2 SHIELD 3 GND 4 +5 V 5 PS/ 2CL OCK GND S5B_PH_K VCC RTS CTS INTSEL TXD GND J5 1 2 3 4 5 6 7 8 CON8 SHIELD 7 8 www.semtech.com Copyright ©1995-2003 Semtech Corporation 7 SH1211 data sheet v1.10 (2003-07) SWITCH JOYSTICK SENSOR These pin descriptions and the schematic on the next page apply to a circuit with a switch joystick sensor. With a switch joystick sensor, the SH1211 supports stop mode and typically consumes less than 1 µA in standby. PIN DESCRIPTION NOTES An underscore before a pin mnemonic denotes an active low signal. Pin types legend: P = power AI = analog input I = input O = output I/O = input or output I/O (nd) = input or output with N-channel open drain driver The internal oscillator has a built-in feedback resistor. Only one external component is needed for clock generation. Semtech recommends a 4.00 MHz ceramic resonator with built-in load capacitors (AVX PBRC-4.00BR or equivalent). Direction switched\s and button switches share the same center contact pad. All sensor lines are connected to the SH1211 with no extra parts. PINS FOR SWITCH JOYSTICK SENSOR CIRCUITS Pin Numbers Mnemonic Pin Type Name and Function Power VDD VSS2, VSS 8 P 7, 11 P Power supply: +5V Ground Reset _RESET 6 I Reset: apply 0V for orderly start-up Oscillator OSCIN 9 I _OSCOUT 10 O 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 one side of the ceramic resonator with built-in load capacitors Host _INTSEL 26 I Host interface select: tie to ground for PS/2 host, tie to power (VCC) for serial host MCLK 13 I/O (nd) Host PS/2 clock MDAT/RTS 19 I/O (nd) Host PS/2 data / serial ready-to-send TxD 27 O Serial transmit to host: idle high; in serial mode, connect to host RxD; in PS/2 mode, leave floating External PS/2 EMCLK 17 EMDAT 14 I/O (nd) I/O (nd) External mouse clock: PS/2 clock signal from external mouse External mouse data: PS/2 data signal from external mouse Select SENSEL1-2 18, 21 I Sensor select; for switch sensor, tie both to ground Reference VREF 5 AI Reference voltage for built-in A/D: for switch sensor, connect to VDD Sensor SEN00/BT_N SEN01/BT_NE SEN02/BT_E SEN03/BT_SE SEN04/BT_S SEN05/BT_SW SEN06/BT_W SEN07/BT_NW SEN08/ BT_CENTER SEN09/BT_L SEN10/BT_R SEN11 /BT_COMMON SEN12-15 1 2 3 4 29 30 31 32 12 15 16 20 22, 23, 24, 25 I/O I/O I/O I/O I/O I/O I/O I/O I/O (nd) Connect to north contact pad Connect to northeast contact pad Connect to east contact pad Connect to southeast contact pad Connect to south contact pad Connect to southwest contact pad Connect to west contact pad Connect to northwest contact pad Connect to center contact pad, works as tap button I/O (nd) Left button I/O (nd) Right button I Connect to common contact pad Reserved, leave floating Reserved RSVD 28 Leave floating Copyright ©1995-2003 Semtech Corporation 8 SH1211 data sheet v1.10 (2003-07) www.semtech.com SCHEMATIC FOR THE SH1211 MOUSECODER® WITH SWITCH JOYSTICK SENSOR 1 2 3 4 5 6 7 J4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 CON14 J1 CON7 25 INTSEL 26 TXD 27 28 29 30 31 32 RSVD PS2SEL TXD SCLK BT_S BT_SW BT_W BT_NW 1 BT_N 2 BT_NE 3 BT_E 4 BT_SE 5 VREF 6 RESET 7 VSS2 8 VDD RSVD 24 RSVD 23 RSVD 22 SENSEL2 21 BT_COMMON 20 MDAT 19 SENSEL1 18 EMCLK 17 GND SH1 SH2 VCC GND M_DATA EXT_M_CLOCK U1 SH1211-FG 32-Pin LQFP BT_R BT_L EMDAT MCLK BT_CENTER VSS OSCOUT OSCIN 16 15 14 EXT_M_DATA 13 M_CLOCK 12 11 OSCOUT 10 9 OSC IN Y1 4.00 MHz AVX# PBRC-4.00BR GND or eqivalent VCC C4 100 nF C5 10 µF 1206 GNDGND GND R1 100K SH6 GND C6 1 µF 1206 VCC L1 12uH JP1 MDIN6_SH 6 4 2 C1 5 47pF 3 1 GND C2 47pF Mounting holes SHIELD 7 8 VCC M_DATA M_CLOCK JP3 1 PS/ 2 DATA 2 S HI E L D 3 GND 4 +5 V 5 PS/ 2CL OCK GND S5B_PH_K VCC RTS CTS INTSEL TXD GND J5 1 2 3 4 5 6 7 8 CON8 Copyright ©1995-2003 Semtech Corporation 9 www.semtech.com SH1211 data sheet v1.10 (2003-07) MICROPOINTTM SENSOR These pin descriptions and the schematic on the next page apply to a circuit with a Varatouch MicroPointTM sensor. With a Varatouch MicroPointTM sensor, the SH1211 supports stop mode and typically consumes less than 1 µA in standby. PIN DESCRIPTION NOTES An underscore before a pin mnemonic denotes an active low signal. Pin types legend: P = power AI = analog input I = input O = output I/O = input or output I/O (nd) = input or output with N-channel open drain driver The internal oscillator has a built-in feedback resistor. Only one external component is needed for clock generation. Semtech recommends a 4.00 MHz ceramic resonator with built-in load capacitors (AVX PBRC-4.00BR or equivalent). The button inputs (pins 22-25) have built-in pull-up resistors. No additional components are required. However, if high levels of ESD and EMI are expected, then series protection resistors (47 Ohms to 1K Ohms) are recommended between the switches and the switch inputs on the SH1211. PINS FOR MICROPOINTTM SENSOR CIRCUITS Pin Numbers Mnemonic Pin Type Name and Function Power VDD VSS2, VSS 8 P 7, 11 P Power supply: +5V Ground Reset _RESET 6 I Reset: apply 0V for orderly start-up Oscillator OSCIN 9 I _OSCOUT 10 O 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 one side of the ceramic resonator with built-in load capacitors Host _INTSEL 26 I Host interface select: tie to ground for PS/2 host, tie to power (VCC) for serial host MCLK 13 I/O (nd) Host PS/2 clock MDAT/RTS 19 I/O (nd) Host PS/2 data / serial ready-to-send TXD 27 O Serial transmit to host: idle high; in serial mode, connect to host RxD; in PS/2 mode, leave floating External PS/2 EMCLK 17 EMDAT 14 I/O (nd) I/O (nd) External mouse clock: PS/2 clock signal from external mouse External mouse data: PS/2 data signal from external mouse Select SENSEL1-2 18, 21 I Sensor select; for MicroPointTM sensor, leave SENSEL1 floating and tie SENSEL2 to ground Reference VREF 5 AI Reference voltage for built-in A/D: for MicroPointTM sensor, connect to VDD Sensor SEN00/SOUTH 1 SEN01/NORTH 2 SEN02/EAST 3 SEN03/RSVD 4 SEN04/ 29 PUPDRV SEN05/TOUCH 30 SEN06/SENSE 31 SEN07/WEST 32 SEN08-09 12, 15 SEN10/SWITCH 16 SEN11/BCONF 20 SEN12/_DB 22 SEN13/_LB 23 SEN14/_MB/_UB 24 SEN15/_RB 25 I/O I/O I/O I/O AI AI I/O I/O I/O I I/O (nd) I/O (nd) I/O (nd) I/O (nd) West South North Reserved, leave floating Pull-up driver: connect to Touch and Sense through a 500 KOhm resistor Touch Sense West Reserved, leave floating Switch Button configuration: leave floating for standard 3-button mouse mode, tie to ground for up/down/wheel-mouse mode Down button: active low, strobed sampling Left button: active low, strobed sampling Middle button: active low, strobed sampling Right button: active low, strobed sampling Reserved RSVD 28 Reserved, leave floating Copyright ©1995-2003 Semtech Corporation 10 SH1211 data sheet v1.10 (2003-07) www.semtech.com CON2 J1 2 1 GND GND SH1 SH2 VCC GND M_DATA VCC L1 12uH www.semtech.com SCHEMATIC FOR THE SH1211 MOUSECODER® WITH VARATOUCH MICROPOINTTM SENSOR SW1 Down SW2 Left SW3 SW4 Middle/Up Right GND GND GND GND R4 500K C3 47pF GND 25 INTSEL 26 TXD 27 28 29 30 31 32 RB PS2SEL TXD SCLK PUPDRV TOUCH SENSE WEST EAST NORTH SOUTH SWITCH JOYSTIC WEST 1 WEST 2 NORTH 3 EAST 4 JOYSTICK 5 SOUTH 6SWITCH JP6 ON BOARD SENSOR PCB CON_1X6 JP7 CON_1X6 1 2 3 4 5 6 MICROPOINT 1 SOUTH 2 NORTH 3 EAST 4 RSVD 5 VREF 6 RESET 7 VSS2 8 VDD MB / UB 24 LB 23 DB 22 EXT_M_CLOCK EMCLK 17 SENSEL1 18 MDAT 19 BCONF 20 SENSEL2 21 U1 SH1211-FG 32-Pin LQFP SWITCH 16 RSVD 15 EMDAT 14 MCLK 13 RSVD 12 VSS 11 OSCOUT 10 OSCIN 9 _OSCOUT OSCIN 4.00 MHz GND AVX# PBRC-4.00BR or eqivalent EXT_M_DATA M_CLOCK SHIELD 7 8 JP1 MDIN6_SH 6 5 4 3 2 1 C1 47pF GND C2 Mounting holes 47pF VCC C4 100 nF C5 10 µF 1206 GNDGND GND SH6 R1 100K C6 1 µF 1206 GND VCC M_DATA M_CLOCK JP3 1 PS/2 DATA 2 SHIELD 3 GND 4 +5V 5 PS/2CLOCK GND S5B_PH_K VCC RTS CTS INTSEL TXD GND J5 1 2 3 4 5 6 7 8 CON8 11 SH1211 data sheet v1.10 (2003-07) Copyright ©1995-2003 Semtech Corporation SERIAL HARDWARE The TxD and RTS lines are CMOS logic-level signals, suitable for direct connection to the pins of an UART. Interfacing via the RS-232 port requires an addition of an inverting driver and receiver. SERIAL COMMUNICATION Communication through the serial port is uni-directional at a fixed speed of 1200 Baud, 7N1 protocol (7 data bits, 1 stop bit, no parity check). The host can reset the device at any time by setting the RTS line high. When RTS is set low after a delay of at least 100 ms, the SH1211 responds with two identification characters. The SH1211's reponse depends on its mode, wheel mode or 3-button mode, as determined by the state of the button configuration pin (BCONF, pin 20). Wheel mode If the SH1211 is in wheel mode, then when RTS is set low after a delay of at least 100 ms, the SH1211 responds with the two identification characters "MZ" (0x4D, 0x5A); they are followed by a zero motion report consisting of the four bytes 0x40, 0x00, 0x00, 0x00, and then by the plug-and-play string: (vvSTH1211\\MOUSE\PNP0F0A\HULAcc) This plug-and-play string is a sequence of ASCII characters with their codes reduced by 0x20. Note that vv represents a 2-byte version number, and cc is a 2-byte checksum. For further information, please refer to the Microsoft Plug and Play External COM Device Specification: http://www.microsoft.com/hwdev/resources/specs/pnpcom.asp 3-button mode If the SH1211 is in 3-button mode, then when RTS is set low after a delay of at least 100 ms, the SH1211 responds with the two identification characters "M3" (0x4D, 0x33); they are followed by a zero motion report consisting of the four bytes 0x40, 0x00, 0x00, 0x00, and then by the plugand-play string: (vvSTH1211\\MOUSE\PNP0F0A\HULAcc) This plug-and-play string is a sequence of ASCII characters with their codes reduced by 0x20. Note that vv represents a 2-byte version number, and cc is a 2-byte checksum. For further information, please refer to the Microsoft Plug and Play External COM Device Specification: http://www.microsoft.com/hwdev/resources/specs/pnpcom.asp Copyright ©1995-2003 Semtech Corporation 12 SH1211 data sheet v1.10 (2003-07) www.semtech.com SERIAL COMMUNICATION (CONT'D) In wheel mode, data reports are always four bytes long. In 3-button mode, data reports are four bytes long only if the middle button is depressed or changing state; otherwise, data reports are three bytes long. A data report is sent if motion is detected, or if buttons are pressed or released. X and Y motion is reported relative to the last report sent, in a two's complement form with 8-bit resolution. Therefore, motion values range from -128 to +127. Z3-Z0 is Z-displacement (wheel value), a 4-bit two's complement value ranging from -8 to +7. SERIAL DATA REPORT Byte 1 b0 X6 b1 X7: MSB of X Data b2 Y6 b3 Y7: MSB of Y Data b4 Right button status, 1 = depressed b5 Left button status, 1 = depressed b6 Always=1 Byte 2 b0 b1 b2 b3 b4 b5 b6 X0: LSB of X data X1 X2 X3 X4 X5 Always=0 Byte 3 b0 b1 b2 b3 b4 b5 b6 Byte 4 (wheel mode) Y0: LSB of Y data Y1 Y2 Y3 Y4 Y5 Always=0 b0 Z0: LSB of Z data b1 Z1 b2 Z2 b3 Z3: MSB of Z data b4 Middle button status; 1=depressed b5 Always=0 b6 Always=0 Byte 4 (3-button mode, only when middle button is depressed or changing state) b0 Always=0 b1 Always=0 b2 Always=0 b3 Always=0 b4 Always=0 b5 Middle button status; 1=depressed b6 Always=0 Copyright ©1995-2003 Semtech Corporation 13 SH1211 data sheet v1.10 (2003-07) www.semtech.com PS/2 COMMUNICATION At start-up or reset, the SH1211 waits up to 500 milliseconds, then sends 0xAA to the host, followed by a device ID of 0x00. Then the SH1211 sets itself to its default values: incremental stream mode with 1:1 scaling, and a report rate of 100 Hz. The SH1211 then disables itself until a command is received from the host. PS/2 REPORTS The adjacent list shows the PS/2 report formats. In the data report, 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. If there is an overflow of the accumulator, the maximum positive or negative count is reported and the corresponding overflow bit is set. PS/2 ERROR HANDLING For every correct command or parameter received from the host, the SH1211 sends an acknowledge (0xFA). If an invalid command or parameter is received, the SH1211 issues a resend request (0xFE). If an invalid input is again received, the device transmits an error code (0xFC) 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 SH1211 has responded or 25 milliseconds have elapsed. PS/2 DATA REPORT Byte 1 b0 Left Button status 1 = depressed b1 Right Button Status 1 = depressed b2 Middle Button Status 1 = depressed b3 Reserved Always = 1 b4 X8: MSB of X data, sign bit 1 = negative b5 Y8: MSB of Y data, sign bit 1 = negative b6 X data overflow 1 = overflow b7 Y data overflow 1 = overflow Byte 2 b0 X0: LSB of X data b1 X1 b2 X2 b3 X3 b4 X4 b5 X5 b6 X6 b7 X7 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 PS/2 STATUS REPORT Byte 1 b0 b1 b2 b3 b4 b5 b6 b7 Byte 2 b0 - 1 b2 - 7 Byte 3 b0-7 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 Current resolution setting Always = 0 Current sampling rate Copyright ©1995-2003 Semtech Corporation 14 SH1211 data sheet v1.10 (2003-07) www.semtech.com COMMANDS FROM PS/2 HOST The Set Default Status Command (0xF6) re-initializes the device to its condition at power-up. When the Reset Command (0xFF) is received, the SH1211 sets the following default parameters: incremental stream mode, 1:1 scaling, report rate of 100 Hz, and disabled. It then sends 0xAA to the host followed by a device ID of 0x00. The host sends the Resend Last Data Stream Command (0xFE) when it detects an error in any SH1211 transmission. The device then resends the last output data packet to the host. This transmission occurs after a SH1211 transmission, and before the host enables the interface allowing the next SH1211 output. The Disable Command (0xF5) stops the device from transmitting all reports. However, the mode does not change; the SH1211 is still able to respond to commands. If the disable command is issued while the device is transmitting a report, the SH1211 immediately stops the transmission and disables itself. The Reset Echo Mode Command (0xEC) returns the device to its previous mode, and is disabled. The Set Prompt (Remote) Mode Command (0xF0) sets the device to Prompt Mode. Data values are then only reported in response to a Read Report Command (0xEB). If the Set Echo Mode Command (0xEE) is received, the SH1211 immediately returns any data bytes except 0xFF or 0xEC. If the SH1211 is in incremental stream mode, the Enable Command (0xF4) allows it to begin data transmission. If the device is in prompt mode, the enable command only updates the internal status of the SH1211. The SH1211 responds to the Set Sampling Rate Command (0xF3) in both stream and prompt modes but only updates its internal status if this command is enacted while the device is in stream mode. The SH1211 responds to the Read Device Type Command (0xF2) with the device ID of 0x00. The Read Report Command (0xEB) prompts the SH1211 for a report. The report occurs even if the device has not moved or if the status of the switches did not change. The Set Incremental Stream Mode Command (0xEA) sets the SH1211 to stream mode and disables the device. The Status Request Command (0xE9) returns a 3-byte status report. The Set Resolution Command (0xE8) controls resolution, the Set 2:1 Scaling Command (0xE7) enables a coarse/fine tracking response, and the Set 1:1 Scaling Command (0xE6) 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 contents are ignored. Copyright ©1995-2003 Semtech Corporation 15 SH1211 data sheet v1.10 (2003-07) www.semtech.com HULAPOINTTM SENSOR ORIENTATION The SH1211 has three pins that determine sensor orientation- X-invert (XINV, pin 15), Y-invert (YINV, pin 16), and XY swap (XYSWP, pin 12)- allowing eight orientation schemes. The diagrams below show two of these orientation schemes, using the HulaPointTM Fujitsu Takamisawa Hall-effect sensor (FID-828). Default sensor orientation Sensor orientation with both X and Y directions inverted Copyright ©1995-2003 Semtech Corporation 16 SH1211 data sheet v1.10 (2003-07) www.semtech.com MECHANICALS FOR THE SH1211 MOUSECODER® HD D 32 25 e F 1 24 E HE y b 8 L1 9 17 16 b2 e A1 A2 L Detail F A MD I2 ME c Symbol A A1 A2 b c D E e HD HE L L1 y b2 I2 MD ME Dimension in Millimeters Min Nom Max 1.7 0 0.1 0.2 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 ©1995-2003 Semtech Corporation 17 SH1211 data sheet v1.10 (2003-07) www.semtech.com ELECTRICAL SPECIFICATIONS FOR THE SH1211 MOUSECODER® Absolute maximum ratings Ratings Supply voltage Input voltage Current drain per pin (not including VSS or VDD) Operating temperature SH1211 Storage temperature range ESD rating (human body model) Symbol VDD VIN I TA TSTG VESD Value -0.3 to 7.0 VSS -0.3 to VDD +0.3 20 TLOW to THIGH -20 to +85 -40 to +125 2.0 Unit V V mA °C °C °C kV DC electrical characteristics, temperature range = TLOW to THIGH unless otherwise noted) Characteristic Symbol Min Typ Max Supply voltage 3.3 5.0 5.5 Output voltage (10 µA load) VOH VDD0.1 VOL 0.1 Input high voltage VIH 0.8VDD VDD Input low voltage VIL VSS 0.2VDD 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 = TLOW to THIGH unless otherwise noted) Characteristic Symbol Min Typ Max Unit Frequency of operation Crystal option fOSC 4.0 MHz External clock option fOSC 4.0 MHz Copyright ©1995-2003 Semtech Corporation 18 SH1211 data sheet v1.10 (2003-07) www.semtech.com This Page Left Intentionally Blank Copyright ©1995-2003 Semtech Corporation 19 SH1211 data sheet v1.10 (2003-07) www.semtech.com For sales information and product literature, contact: Semtech Corporation Human Interface Device (HID) and System Management Division 200 Flynn Road Camarillo, CA 93012-8790 sales@semtech.com http://www.semtech.com/ (805)498-2111 Telephone (805)498-3804 Fax Copyright ©1995-2003 Semtech Corporation. All rights reserved. Semtech, the Semtech logo, MouseCoder, and HulaPoint are marks of Semtech Corporation. Force Sensing Resistor and FSR are marks of Interlink Electronics, Inc. MicroPoint is a mark of Varatouch Technology, Inc. All other marks belong to their respective owners. LIMITED LICENSE GRANTED: NO WARRANTIES MADE 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. Any suggestions or comments by Semtech concerning use of this product are opinion only, and Semtech makes no warranty as to results to be obtained in any specific application. 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 ©1995-2003 Semtech Corporation 20 SH1211 data sheet v1.10 (2003-07) www.semtech.comPDF Edit pro.
![]() |
Semtech Smart Building Reference Kit User Guide User guide for the Semtech Smart Building Reference Kit, detailing setup, sensor placement, and functionality for monitoring room occupancy, temperature, humidity, and leaks using LoRaWAN technology. |
![]() |
Semtech SX1280: An Introduction to Ranging with the SX1280 Transceiver This application note provides an introduction to ranging with the Semtech SX1280 transceiver. It covers basic operation, sources of ranging error, correction methods for timing errors, accuracy and precision, and practical measurement results in both ideal and line-of-sight channels. |
![]() |
Semtech Smart Building Reference Kit User Guide User guide for the Semtech Smart Building Reference Kit, detailing setup, sensor configuration, and operation for IoT solution development and network coverage validation. Includes information on LoRaWAN gateways, hotspots, and various sensors. |
![]() |
Semtech SX1280/SX1281 Development Kit User Guide User guide for the Semtech SX1280 Development Kit, detailing its features, setup, and various test modes including Ping Pong, PER, and Ranging demos. Covers radio settings for LORA, FLRC, GFSK modulations, and utilities. |
![]() |
Semtech SX1272LM1CEP NAMote-72 User Guide This user guide provides comprehensive information on the Semtech SX1272LM1CEP NAMote-72, a programmable LoRa end device with integrated sensors and mbed compatibility. It covers hardware details, connection instructions, programming with mbed, and reference code examples. |
![]() |
Semtech AirLink XR80 External Antenna Ports Guide A guide to the external antenna ports on the Semtech AirLink XR80, formerly Sierra Wireless. Details FAKRA connector types for GPS, MIMO WiFi, and MIMO Cellular connections. |