EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ary n i m i l e Pr GENERAL DESCRIPTION The EM83812 PnP Scrolling Mouse Controller is specially designed to control serial mouse device. This single chip can interface three key-switches and 4 X-Y photo-couples plus Z-axis directly to RS-232C. There are four types Z-axis inputs used to implement scrolling mouse functionality. FEATURES Using 50kΩ ±1% resistor for RC oscillation. Compatible with Microsoft serial scrolling mouse. 100 bytes PnP ID code could be filled by code layer. Built-in noise immunity circuit. The sampiling rate of motion detector is up to 65KHz. Built-in three zener diodes : one in VDD to VSS, two in RTS to VDD. CMOS push-pull RXD output. Built-in current comparator for photo-couples input. Built-in three step dynamic input impedance. Three key-switches and four photo-couples inputs. RTS debouncing circuit included. Photo couple test mode included. Low power dissipation. Six types Z direction input: 1. Photo couples input. (Z/1) 4. Mechanical input. (Z/1) 2. Key-switches input. 5. Photo couples input. (Z/4) 3. Voltage-sensing input. 6. Mechanical input. (Z/2) • Package type: EM83812AP : 16DIP, Photo couples input. (Z/1) EM83812DP: 16DIP, Mechanical input. (Z/1) EM83812BP : 16DIP, Key-switches input. EM83812EP : 16DIP, Photo couples input. (Z/4) EM83812CP : 16DIP, Voltage-sensing input. EM83812FP : 16DIP, Mechanical input. (Z/2) • • • • • • • • • • • • • • APPLICATION • Serial PnP scrolling mouse. PIN ASSIGNMENT EM83812A/B/C/D/E/FP VDD OSC.OUT Z1 Z2 RTS RXD OPT VSS 1 2 3 4 5 6 7 8 * This specification are subject to be changed without notice. 16 15 14 13 12 11 10 9 OSCR Y2 Y1 X2 X1 L M R 9.3.1999 1 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER inary m i l e r P FUNCTIONAL BLOCK DIAGRAM THREE TYPES SELECTOR COMPARATOR VOLTAGE KEY-SWITCH SENSOR DETECTOR Z1 Z2 RXD RTS Z-AXIS COUNTER C O M P A R A T O R OPT X1 X2 Y1 Y2 L M R D ME OT TE IC OT NO R D E B O U N C E COUNTER MULTIPLEXER COMMAND STATUS DATA I/O TIMING CONTROLLER SYSTEM CLOCK GENERATOR OSCR OSC.OUT RC OSCILLATION PIN DESCRIPTIONS Symbol I/O OPT I/O OSC.OUT O OSCR RTS I I/O RXD I/O R M L X1 X2 Y1 Y2 Z1 Z2 I I/O I/O I I I I I I VSS VDD Function INPUT: 200kohm pull low to VSS. When OPT is connected to VDD, EM84520 will enter test mode. In test mode, L will be the output of X1,while M will be the output of X2. Toggling R key can change these output to be Y1,Y2 or Z1,Z2 respectively. OUTPUT: 2kHz Z-axis LED driving source with A/D/E/F version. "1"= VDD, "0"= floating High duty is about 60us. The RC oscillation clock output. Or 3mA sink current output for X, Y photo emitters. Connect 50kΩ±1% precise resistor for oscillation. ±12V signal with 10mA driving. Used as PnP ID code output trigger signal from 10w (-12V) to high (+12V) while under normal operating. RTS will keep on ±12V driving. One report contains 4 data bytes, 7 data bits without parity in the data byte. The data byte is sgifted out from LSB through MSB, started by start bit and ended by stop bit. The RXD signal swing between +6V and -6V. Three key-switches inputs. 200kΩ resistor pull low. In Z-axis key mode, M key toggling can change the scrolling speed from low to high. Three step dynamic input impedance. If OSC.OUT is not connected to LEDs, the dynamic input impedance will be off. Use current comparator to measure photo-couples "ON", or "OFF". Z-axis input. Photo mode : Three steps dynamic input impedance. Current comparator input. Key mode : 200 kΩ resistor pull low. 7 levels increased by "M" key. Voltage mode : 200 kΩ resistor pull low. 7 levels voltage comparator. Mechanical mode : 13.2kΩ resistor pull low. Current comparator input. Negative power. Power line. * This specification are subject to be changed without notice. 9.3.1999 2 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ary n i m i l e Pr FUNCTION DESCRIPTIONS (I) Serial Scrolling Mouse : In Microsoft mode, the transmission cycle consists of four bytes in one report. Each byte contains one start bit, 7 data bits and two stop bits. The first byte contains "L", "R" key status and four bits of the two most significant bits in horizontal counter and vertical counter. The second byte represents the value accumulated by horizontal counter, the third byte is the data of the vertical counter. The last byte contains "M" key status and Z-axis value. The vertical data is transmitted in 2's complement. Output byte arrange Bit no. 1st byte 2nd byte 3rd byte 4th byte ...... ...... .... .... .... 6 1 0 0 0 5 L H5 V5' 0 4 R H4 V4' M 3 V7' H3 V3' Z3 2 V6' H2 V2' Z2 1 H7 H1 V1' Z1 0 H6 H0 V0' Z0 Plug & Play ID code When RTS input from low to high, EM84520 will send a string ID code. Customer can specify the contains of the code area and the total lenth below 100 bytes by changing the code layer. Field Name Other ID Begin ID PnP Revision EISA ID Product ID Serial Number Class ID Driver ID User Name Length <17 1 2 3 4 9 <34 <42 <42 Check sum End PnP 2 1 Field Data 4D, 5A, 40, 00, 00, 00 08 01, 24 25, 2D, 23 10, 10, 10, 11 3C 3C, 2D, 2F, 35, 33, 25 3C, 30, 2E, 30, 10 26, 10, 21 3C, 25, 2D, 23, 00, 33, 23, 32, 2F, 2C, 2C, 29, 2E, 27, 00, 33, 25, 32, 29, 21, 2C, 00, 2D, 2F, 35, 33, 25 21, 15 09 Description ID for legacy Begin PnP ID Version 1.00 EMC 0001 None provided Mouse Class PnP0F0A EMC SCROLLING SERIAL MOUSE 2 bytes checks um End PnP ID (II). Z-axis Input Function : (a) Photo couples input : Z-axis counter accumulates the Z1, Z2 phase changed by movement. (b) Key-switches input : Pressing Z1, Z2 will start to fill the Z-axis counter with the value beginning at one. Toggling "M" key can increase the value any time by one. The limit value is ±7. (c) The relationship between the value and the transmission rate as follows : * This specification are subject to be changed without notice. 9.3.1999 3 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER inary m i l e r P Value 1 2 3 4 5 6 7 Rate per second 2.7 6.4 9.2 12.8 15 18 20 (d) Voltage-sensing mode : There are 7 voltage levels in Z1, Z2 input. The transmission table is the same as key-switches mode. The relationship between the value of Z-axis counter and the voltage as folllows : Value 0 1 2 3 4 5 6 7 Under VDD=5V condition. Voltage 1V↓ 1.0V-1.6V 1.6V-2.2V 2.2V-2.8V 2.8V-3.4V 3.4V-4.0V 4.0V-4.6V 4.6V↑ (e) Mechanical mode : The same as optical wheel mode. * This specification are subject to be changed without notice. 9.3.1999 4 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ABSOLUTE MAXIMUM RATINGS ary n i m i l e Pr Parameter Temperature under bias Storage temperature range Supply voltage Power dissipation Ratings Unit Min. 0 -65 -0.3 - Max. 70 150 7.5 500 °C °C V mW DC ELECTRICAL CHARACTERISTICS (TA=25°C to 70°C, Vds=5.6V)) Parameters Operating voltage Operating current (Vdd=5.4, RTS=Vdd) Operating current (Vdd=6.2, RTS=Vdd) RTS Operating current (Vdd=5.6, RTS=11V) RTS operating current (Vdd=5.6, RTS=12V) RXD high output voltage (Vrh=Vrts=2.6V) RXD low output voltage (Vrh=Vss+2.6V) RTS high input voltage RTS low input voltage X1,X2,Y1,Y2,Z1,Z2 (photo mode) low input reference current X1,X2,Y1,Y2,Z1,Z2 (photo mode) high input reference current X1,X2,Y1,Y2,Z1,Z2 (photo mode) input current (input impedance) (80µA) X1,X2,Y1,Y2,Z1,Z2 (photo mode) input current (input impedance) (500µA) L,M,R,OPT,Z1,Z2 (key mode) input low voltage Z1,Z2 (key mode) input high voltage Z1,Z2 (voltage mode) sensitivity L,M,R,Z1,Z2 (key & voltage mode) input current (Vds=5.6V) OPT input current OPT high output current (Iopt=20mA) L,M,R,X1,X2,Y1,Y2,Z1,Z2 input leakage current (Vds=0V) OPT input leakage current (Vds=5.6V) Sym. Min. Typ. Max. Unit Vdd Vrts Iop1 4.5 - 6 12 - 6.5 13 0.8 V V mA Iop2 3 - - mA Irts1 - - 1.8 mA Irts2 Irh 4 2 - - mA mA Irl - - -2 mA 9.6 70 - 6.8 - V V µA - - 106 µA Vpl1 0.8 - 1.2 V Vpl2 1.5 - 2.1 V Vail - - 1.5 V Vaih 3.5 - - V Vs -0.3 - +0.3 V Imi 18 - 56 µA Ixi -18 - -56 µA Idc 4.5 - - V Iil 0 - -1.0 µA Iih 0 - 1.0 µA Vrts+ VrtsIpl Iph * All voltage in above table are compared with VSS. * This specification are subject to be changed without notice. 9.3.1999 5 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER inary m i l e r P AC ELECTRICAL CHARACTERISTICS (TA=0°C to 70°C) Parameters Oscillating Frequency Key Debounce Transnission time Start bit time Data bit time Stop bit time Mode code delay time Rising Edge Crossed Wid Falling Edge Crossed Wid * This specification are subject to be changed without notice. Sym. Min. Typ. Max. Unit Fosc Tkd Tmx Ts Td Tp Trd Tr Tf -3.3% 11 15.4 15.4 32.40 13 33.33 833.3 833.3 833.3 - +3.3% . 14 - KHz ms ms us us us ms us us 9.3.1999 6 EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ary n i m i l e Pr TIMING DIAGRAM (A) RXD output : Key in/release Mouse RXD Tmx Tmx (B) Bytes structure : RXD 1st 2rd 3nd 4nd (C) Bits structure : RXD LINE Data Bit no. 0 Ts Td 1 2 Td Td 4 5 6 Td Td 3 Td Td TP Tp 0 1 (D) PnP ID code echo timing : RTS >< Trd RXD 4D 5A 40 00 00 "4D" code Bit no Ts 0 1 2 * This specification are subject to be changed without notice. PnP ID code 00 08 3 4 5 09 Tp Tp 9.3.1999 7 DTR SG DSR RTS RXD TXD 5 6 7 8 9 3 4 1 2 * This specification are subject to be changed without notice. 50K* 8 V SS 16 OSCR R M L Z1 Z2 X1 EM83812AP EM83812EP 1KΩ OSC.OUT 7 OPT 2 2 chips analog PT 4 chips digital PT 9 10 11 3 4 12 13 X2 6 RXD Y2 15 Y1 14 VDD RTS 5 1 * 50 kΩ must be precise resistor under ±1% 5.1V 1KΩ 0.1µF 10µF EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER inary m i l e r P APPLICATION CIRCUIT 9.3.1999 8 RXD TXD DTR SG DSR RTS 3 4 5 6 7 8 9 1 2 * This specification are subject to be changed without notice. 50K* RTS VDD 8 V SS EM83812BP 16 OSCR OSC.OUT 7 OPT 2 6 RXD 5 1 1KΩ R M L Z1 Z2 X1 X2 Y1 Y2 * 50 kΩ must be precise resistor under ±1% 5.1V 2 chips analog PT 4 chips digital PT 9 10 11 3 4 12 13 14 15 0.1µF 10µF EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ary n i m i l e Pr 9.3.1999 9 RTS DTR SG DSR RXD TXD 6 7 8 9 3 4 5 1 2 5.1V * This specification are subject to be changed without notice. 8 V SS EM83812CP 16 OSCR OSC.OUT 7 OPT 2 1KΩ R M L Z1 Z2 X1 X2 Y1 Y2 2 chips analog PT 4 chips digital PT 9 10 11 3 4 12 13 14 15 * 50 kΩ must be precise resistor under ±1% 50K* RTS VDD 6 RXD 5 1 0.1µF 10µF EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER inary m i l e r P 9.3.1999 10 RTS RXD TXD DTR SG DSR 1 2 3 4 5 6 7 8 9 * This specification are subject to be changed without notice. 50K* 8 V SS EM83812DP EM83812FP 16 OSCR OSC.OUT 7 OPT 2 1KΩ R M L Z1 Z2 X1 ** COM 4 chips digital PT B A 2 chips analog PT 9 10 11 3 4 12 13 X2 6 RXD Y2 15 Y1 14 VDD RTS 5 1 * 50 kΩ must be precise resistor under ±1% ** Mechanical wheel 5.1V 0.1µF 10µF EM83812 ALL-INONE PLUG & PLAY SCRLLING SERIAL MOUSE CONTROLLER ary n i m i l e Pr 9.3.1999 11