Silan Semiconductors
PS/2 SCROLLING MOUSE CONTROLIER
DESCRIPTION
The SC84510 Scrolling Mouse Controller is specially designed to control PS/2 mouse device. This single chip can interface three keyswitches four photo-couples plus x-axis direct to 8042 controller. SC84510 can receive command and echo status or data format which are compatible with IBM PS/2 mode mouse. Key debouncing circuit is provided to prevent false entry and improve the accuracy. In the traditional mouse, a great number of noises are generated when the grid is partially closed or opened. These noises are usually mistaken for movement signals by traditional mouse controller and the cursor of the display screen is thus moved frequently up and down or back and forth. This will consume a great amount of energy. The SC84510 mouse controller provides noise immunity circuits to eliminate these noises in order to reduce energy consumption.
SC84510
DIP-16
FEATURES
* Using 50k ±5% resistor for RC oscillation. * Compatible with legacy PS/2 mouse. * Compatible with Microsoft scrolling mouse. * Built-in noise immunity circuit. * Built-in current comparator for photo-couples input. * Built-in three steps dynamic input impedance. * Three key-switches and four photo-couples inputs. * Both key-press and key-release debounce interval 12 ms. * The sampling rate of motion detector is about 65KHz. * Low power dissipation. * Six types Z direction input: 1. Photo couples input. (Z/1) 2. Key-switches input. 3. Voltage-sensing input. 4. Mechanical input. (Z/1) 5. Photo couples input. (Z/4) 6. Mechanical input. (Z/2)
ORDERING INFORMATION
SC84510AP SC84510BP SC84510CP SC84510DP SC84510EP SC84510FP DIP-16 Package, Photo couples input. (Z/1) DIP-16 Package, Key-switches input. DIP-16 Package, Voltage-sensing input. DIP-16 Package, Mechanical input. (Z/1) DIP-16 Package, Photo couples input. (Z/4) DIP-16 Package, Mechanical input. (Z/2)
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
1
Silan Semiconductors
PIN CONFIGURATIONS
VDD OSC OUT Z1 Z2 CLK DATA OPT VSS
SC84510
1 2 3 4 5 6 7 8 SC84510A/B/C/E/F 16 OSCR 15 Y2 14 Y1 13 X2 12 X1 11 L 10 M 9
R
BLOCK DIAGRAM
DATA 6 CLK 5
THREE TYPES SELECTOR Z1 Z2 3 4 COMPARATOR VOLTAGE SENSOR KEY-SWITCH DETECTOR
Z-AXIS COUNTER OPT X1 X2 Y1 Y2 7 COMPARATOR 12 13 14 15 DATA I/O DETECTOR
COUNTER
MULTIPLEXER
L M R
11 10 9
DEBOUNCE
COMMAND STATUS
TIMING CONTROLLER
OSCR OSC.OUT
16 2
SYSTEM CLOCK GENERATOR
RC & CRYSTAL OSCILLATION
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
2
Silan Semiconductors
ABSOLUTE MAXIMUM RATINGS (Tamb=25°C, unless otherwise specified)
Characteristic
Temperature Under Bias Storage Temperature range Input Voltage Output Voltage
SC84510
Symbol
TOPR TSTR VIN VO
Value
0 ~ 70 -65 ~ +150 -0.3 ~ +6.0 -0.3 ~ +6.0
Unit
°C °C V V
DC ELECTRICAL CHARACTERISTICS (Tamb=25~70°C)
Parameter
Operating Voltage Operating Current CLK, DATA Positive-going Threshold Voltage CLK, DATA Negative-going Threshold Voltage DATA, CLK Input Current (pull up resistor) DATA, CLK Low Output 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) (Input Impedance) (500µA) (Vin=0V) (Iprl=-4mA) (No Load)
Symbol
VDD Iop Vt+
Min
4.5 -0.6VDD
Typ
5 ---
Max
5.5 1.2 0.8 VDD
Unit
V mA V
VtIdc Vprl Ipl
0.2 VDD 0.56 -60
-----
0.4 VDD 1.86 0.4 --
V mA V µA µA
Iph
--
--
110
Vpi
0.8
--
1.2
V
X1, X2, Y1, Y2, Z1, Z2 (Photo Mode) Input Current
Vpi Vail Vaih Rmi Rxi Vopt Iil
1.5 -0.7 VDD 92 133 4.5 0 3.2
-----------
2.8 0.3 VDD -310 400 --1.0 ----
V V V kΩ kΩ V µA
L, M, R, OPT, Z1, Z2 (Key Mode) Input Low Voltage L, M, R, OPT, Z1, Z2 (Key Mode) Input High Voltage L, M, R, Z1, Z2 (Key & Voltage Mode) Input Resistor OPT Input Resistor OPT High Output Current L, M, R, X1, X2, Y2, Y2, Z1, Z2 Input Leakage Current (Vin=0V) VDD=4.5V OPT High Output Current (Iopt=10mA) VDD=5V VDD=5.5V (Vin=VDD) (Vin=VDD) (Vin=VDD)
Idc
4.5 5.5
V
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
3
Silan Semiconductors
Note: 1. All voltage in above table are compared with VSS. 2. All parameters in above table are tested under VDD=5V.
SC84510
3. CLK & DATA output gates are open drains that connect to pull up resistors. X1, X2, Y1, Y2 input impedance
UNIT:K¡
16.0 15.0 14.0 13.0 12.0 11.0 10.0 9.0 8.0 7.0 6.0 5.0 4.0 3.0 2.0 1.0 0
MAX.
TYP.
MIN.
1.0 10.0M
2.0
3.0
4.0
5.0
VOLTAGE (LIN)
AC ELECTRICAL CHARACTERISTICS (Tamb=25~70°C)
Parameter
Oscillating Frequency Key Debounce Rising Edge Crossed Width Fosc=35KHz Falling Edge Crossed Width Mouse CLK Active Time Mouse CLK Inactive Time Mouse Sample DATA from CLK rising Edge System CLK Active Time System CLK Inactive Time Time from DATA Transition to Falling Edge of CLK Time from rising Edge of CLK to DATA Transition Time to mouse Inhibit after the 11th CLK to ensure mouse does not start another Transmission The AC timings are measured under using 35KHz system clock signal.
Symbol
Fosc Tkd Tr Tf Tmca Tmci Tmdc Tsca Tsci Tsdc Tscd Tpi
Min
34.3-10% -14.3 14.3 -------0
Typ
34.3 12 --42.9 42.9 14.3 42.9 42.9 14.3 28.6 --
Max
Unit
34.3+10% kHz ----------50 ms µs µs µs µs µs µs µs µs µs µs
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
4
Silan Semiconductors
PIN DESCRIPTION
Pin Name I/O
INPUT: 200kΩ pull low to VSS.
SC84510
Description
When OPT is connected to VDD, SC84510 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 OPT I/O these output to be Y1, Y2 or Z1, Z2 respectively. OUTPUT: 2kHz Z-axis LED-driving source. “1” = VDD, “0” = floating High duty is about 60µs. OSC OUT OSCR CLK DATA R M L X1 X2 I Y1 Y2 Z-axis input. Z1 I Z2 Photo mode: Three steps dynamic input impedance. Current comparator input. Key mode: 200kΩ resistor pull low. 7 levels increased by “M” key. Voltage mode: 200kΩ resistor pull low. 7 levels voltage comparator. Mechanical mode: 13.2kΩ resistor pull low. VSS VDD Negative power. Power line. Three step dynamic input impedance. Use current comparator to measure photo-couples “ON”, or “OFF”. I Three key-switches inputs. 200kΩ resistor pull low. O I I/O I/O Connect to 8042 auxiliary port CLK line. Connect to 8042 auxiliary port DATA line. RC mode oscillation with 50kΩ resistor.
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
5
Silan Semiconductors
FUNCTION DESCRIPTIONS
1. LEGACY PS/2 MOUSE OPERATING (A) Operating mode
There are four operating modes in PS/2 mouse: (a) Reset Mode:
SC84510
In this mode a self-test is initiated during power-on or by a Reset command. After reset signal, PS/2 mouse will send: a Completion code AA & ID code 00. b Set default: * sampling rate: 100 reports/s * non-autospeed * stream mode * 2 dot/count * disable (b) Stream Mode: The maximum rate of transfer is the programmed sample rate. Data report is transmitted if a switch is pressed b movement has been detect (c) Remote Mode: Data is transmitted only in response to a Read Data command. (d) Wrap Mode: Any byte of data sent by the system, except hex EC (Reset wrap mode) or hex FF (Reset), is returned by SC84510.
(B) PS/2 Mouse Data Report:
(a) In stream mode: A data report is sent at the end of a sample interval. (b) In remote mode: A data report is sent in response to Read Data command. (c) Data report format:
Byte
1
Bit
0 1 2 3 4 5 6 7
Description
Left button status; 1 = pressed Right button status; 1 = pressed Middle button status; 1 = pressed Reserve X data sign; 1 = negative Y data sign; 1 = negative X data overflow; 1 = overflow Y data overflow; 1 = overflow X data (D0~D7) Y data (D0~D7)
2 3
0~7 0~7
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
6
Silan Semiconductors
(C) PS/2 mouse Data Transmission:
SC84510
(a) SC84510 generates the clocking signal when sending data to and receiving data from the system. (b) The system requests SC84510 receive system data output by forcing the DATA line to an inactive level and allowing CLK line to go to an active level. (c) Data transmission frame:
Bit
1 2~9 10 11
Function
Start bit (always 0) Data bits (D0~D7) Parity bit (odd parity) Stop bit (always 1)
(d) Data Output (data from SC84510 to system): If CLK is low (inhibit status), data is no transmission. If CLK is high and DATA is low (request-to-send), data is updated. Data is received from the system and no transmission are started by SC84510 until CLK and DATA both high. If CLK and DATA are both high, the transmission is ready. DATA is valid prior to the falling edge of CLK and beyond the rising edge of CLK. During transmission, SC84510 check for line contention by checking for an inactive level on CLK at intervals not to exceed 100µ sec. Contention occurs when the system lowers CLK to inhibit SC84510 output after SC84510 has started a transmission. If this occurs before the rising edge of the tenth clock, SC84510 internal store its data in its buffer and returns DATA and CLK to an active level. If the contention does not occur by the tenth clock, the transmission is complete. Following a transmission, the system inhibits SC84510 by holding CLK low until it can service the input or until the system receives a request to send a response from SC84510.
(e) Data Input (from system to SC84510): System first check if SC84510 is transmitting data. If SC84510 is transmitting, the system can override the output forcing CLK to an inactive level prior to the tenth clock. If SC84510 transmission is beyond the tenth clock, the system receives the data. If SC84510 is not transmitting or if the system choose to override the output, the system force CLK to an inactive level for a period of not less than 100µ sec while preparing for output. When the system is ready to output start bit (0), it allows CLK go to active level. If request-to-send is detected, SC84510 clocks 11 bits. Following the tenth clock SC84510 checks for an active level on the DATA line, and if found, force DATA low, and clock once more. If occurs framing error, SC84510 continue to clock until DATA is high, then clocks the line control bit and request a Resend. When the system sends out a command or data transmission that requires a response, the system waits for SC84510 to response before sending its next output.
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
7
Silan Semiconductors
(D) PS/2 Mouse Error Handling:
SC84510
(a) A Resend command (FE) following receipt of an invalid input or any input with incorrect parity. (b) If two invalid input are received in succession, an error code of hex FC send to the system. (c) The counter accumulators are cleared after receiving any command except “Resend”. (d) SC84510 receives a Resend command (FE), it transmit its last packet of data. (e) In the stream mode “Resend” is received by SC84510 following a 3-byte data packet transmission to the system. SC84510 resend the 3-byte data packet prior to clearing the counter. (f) A response is sent within 25 ms if a The system requires a response b An error is detected in the transmission (g) When a command requiring a response is issued by the system, another command should not be issue until either the response is received or 25ms has passed.
(E) PS/2 Mouse Commands Description:
There are 16 valid commands that transmits between the system and SC84510. The “FA” code is always the first response to any valid input received from the system other than a Set Wrap Mode or Resend command. The following table list the commands: The following describes valid commands:
Hex Code
FF FE F6 F5 F4 F3, XX F2 F0 EE EC EB EA E9 E8, XX E7 E6
Command
Reset Resend Set Default Disable Enable Set Sampling Rate Read Device Type Set Remote Mode Set Wrap Mode Reset Wrap Mode Read Data Set Stream Mode Status Request Set Resolution Set Auto-speed Reset Auto-speed
SC84510 echo code
FA, AA, 00 XX, (XX, XX) FA FA FA FA, FA FA, 00 FA FA FA FA, XX, XX, XX FA FA, XX, XX, XX FA, FA FA FA
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
8
Silan Semiconductors
The following describes valid command: (a) Reset (FF) SC84510 operation: a Completion the reset. b Transmitted FA, AA, 00 to the system. c Set default: sampling rate: 100 reports/s non-auto-speed stream mode 2 dots/count disable (b) Resend (FE)
SC84510
a. Any time SC84510 receives an invalid command; it returns a Resend command to the system. b. When SC84510 receives a Resend command, it retransmits its last packet of data. If the last packet was a Resend command, it transmits the packet just prior to the Resend command. c. In stream mode if a Resend command is received by SC84510 immediately following a 3-byte data packet transmission to the system. (c) Set Default (F6) The command reinitializes all conditions to the power-on defaults. (d) Disable (F5) This command is used in the stream mode to stop transmissions from SC84510. (e) Enable (F4) Begins transmissions, if in stream mode. (f) Set Sampling Rate (F3, XX) In the stream mode, this command sets the sampling rate to the value indicated by byte hex XX, shown in following:
Second byte XX
0A 14 28 3C 50 64 C8
Sample Rate
10/sec 20/sec 40/sec 60/sec 80/sec 100/sec 200/sec
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
9
Silan Semiconductors
(g) Read Device Type (F2) SC84510 always echoes “ FA, 00 “ following this command. (h) Set Remote Mode (F0) Data values are reported only in response to a Read Data command. (i) Set Wrap Mode (EE) Wrap mode remains until Reset (FF) or Reset Wrap Mode (EC) is received. (j) Reset Wrap Mode (EC)
SC84510
SC84510 returns to the previous mode of operation after receiving this command. (k) Read Data (EB) This command is executed in either remote or stream mode. The data is transmitted even if there has been no movement since the last report or the button status is unchanged. Following a Read Data command, the registers are cleared after a data transmission. (l) Set Stream Mode (EA) This command sets SC84510 in stream mode. (m) Status Request (E9) When this command is issued by the system, SC84510 respond with a 3-byte status report as follows:
Byte
1
Bit
0 1 2 3 4 5 6 7
Description
1 = Right button pressed 1 = Middle button pressed 1 = Left button pressed Reserved 0 = Normal speed, 1 = Auto-speed 0 = Disabled, 1 = Enabled 0 = stream mode, 1 = Remote mode Reserved Current resolution setting (D0~D7) Current sampling rate (D0~D7)
2 3
0~7 0~7
(n) Set Resolution (E8, XX) SC84510 provides four resolutions selected by the second byte of this command as follows:
Second Byte XX
00 01 02 03 (o) Set Auto-speed (E7)
Resolution
8 dots/count 4 dots/count 2 dots/count 1 dot/count
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
10
Silan Semiconductors
SC84510
Output
0 1 1 3 6 9 2.0*N
At the end of a sample interval in the stream mode, the current X and Y data values are converted new values. The sign bits are not involved in this conversion. The conversion is only in stream mode. The relationship between the input and output count follows:
Input
0 1 2 3 4 5 N( ≥6) (p) Reset Auto-speed (E6) This command restores normal speed.
2. MICROSOFT PS/2 SCROLLING MOUSE MODE:
(A) Entering procedure: Except in WRAP mode, While SC84520 received the following consecutive command.
(a) F3 C8 (b) F3 64 (c) F3 50 ---- set sampling rate 200/sec ---- set sampling rate 100/sec ---- set sampling rate 80/sec
(B) Operating:
(a) All of the command in legacy mode still is valid. (b) The ID code of read device type command (F2) will changed from “00” to be “03”. (c) Data report will be four bytes format:
Byte
1
Bit
0 1 2 3 4 5 6 7
Description
Left button status; 1 = pressed Right button status; 1 = pressed Middle button status; 1 = pressed Reserve X data sign; 1 = negative Y data sign; 1 = negative X data overflow; 1 = overflow Y data overflow; 1 = overflow X data (D0 – D7) Y data (D0 – D7) Z data (D0 – D7)
2 3 4
0-7 0-7 0-7
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
11
Silan Semiconductors
(C) Exiting Microsoft scrolling mode:
There are two ways to exit: (a) Power off. (b)Reset command (FF).
SC84510
3. Z-AXIS INPUT FUNTION: The Z0 ~ Z7 limit value is ±7 (A) Photo couples input: Z-axis counter accumulates the Z1, Z2 phase changed by movement. This mode includes noise immunity.
Z/1: 1 dot per count. Z/4: 4 dots per count. Counted by Z1=1, Z2=1 phase, the wheel should stay at Z1=0, Z2=0 phase.
(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.
The relationship between the value and the transmission rate as follow:
Value
1 2 3 4 5 6 7
Rate per second
2.7 6.4 9.2 12.8 15 18 20
(C) Voltage-sensing mode: There are 7 voltage levels in Z1, Z2 input. The transmission table is the same as keyswitch mode. The relationship between the value of Z-axis counter and the voltage as follows:
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 ↑
(D) Mechanical mode: The function is the same as photo couples input mode, except there is no noise immunity.
Z/1: 1 dot per count. Z/2: 2 dots per count. Counted by Z2 changing phase.
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
12
Silan Semiconductors
TIMING DIAGRAM
(1) Photo-couples pulse width
SC84510
X1(Y1)
X2(Y2) Tr Tf
(2) PS/2 Mouse (A) Receiving Data
Inhibit CLK
Tmca Tmci
1st CLK
2rd CLK
9th CLK
10th CLK
11th CLK
DATA
Tmdc
Start Bit
Bit0-Bit7
Parity Bit
Stop Bit
Line Control Bit
(B) Sending Data
1st CLK 2nd CLK 10th CLK 11th CLK
CLK
Tscl
Tsca Tpi
DATA
Tsdc
Tscd
Start Bit
Bit0-Bit7
Parity Bit
Stop Bit
AC TIMING POINT
Output:
DATA CLK PIN
Input:
VDD-2.6
VSS+0.4V +1.6V
X1, X2, Y1, Y2 PIN
VSS VDD-0.8V
CLK, DATA PIN
VSS+0.8V VDD
L, M, R PIN
VSS
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
13
Silan Semiconductors
SC84510 I/O PIN EQUIVALENT CIRCUITS
CLK: X1, X2, Y1, Y2:
X1,X2,Y1,Y2
SC84510
PHASE DIGITAL SIGNAL
VCC
VCC 13.2kO
PS/2 MOUSE ENABLE
CLK
CLK INPUT SIGNAL
VCC VCC
CLK INPUT SIGNAL
VPP/4 80
13.2k 51k
R, M, L:
(R,M,L) (R, L, M) INTERNAL SIGNAL
DATA:
VCC
VCC
DATA PS/2 MOUSE ENABLE DATA INPUT SIGNAL
DATA INPUT SIGNAL
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
14
Silan Semiconductors
APPLICATIONS CIRCUITS
1 2 3 4 5 6 1 5 6 2 7 16
51k VDD CLK DATA OSC OUT Y2 Y1 X2 X1 Z2 OPT Z1 OSCR L M
SC84510
15 14 13 12 4 3 11 10 9
10f
8
VSS
R
SC84510A/E
1 2 3 4 5 6
1 5 6 7 2
VDD CLK DATA OPT OSC OUT
Y2 Y1 X2 X1 Z2 Z1
15 14 13 12 4 3 11 10 9
10f
51k
16
OSCR
L M
8
VSS
R
SC84510B
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
15
Silan Semiconductors
APPLICATIONS CIRCUITS (continued)
SC84510
1 2 3 4 5 6
1 5 6 7 2
VDD CLK DATA OPT
Y2 Y1 X2 X1 Z2
15 14 13 12 4 3 11 10 9
10f
OSC OUT Z1
16
51k
OSCR
L M
8
VSS
R
SC84510CP
1 2 3 4 5 6
1 5 6 7 2
VDD CLK DATA OPT
Y2 Y1 X2 X1 Z2
15 14 13 12 4 3 11 10 9
A* COM B 10f
OSC OUT Z1
16
51k
OSCR
L M
8
VSS
R
SC84510D/F
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
16
Silan Semiconductors
PACKAGE OUTLINE
SC84510
UNIT: mm
2.54
DIP-16-300-2.54
6.40
1.50 19.4
7.62
15 degree
3.51
0.46
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 1.0 2000.12.31
17
3.30
5.08
0.25