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.
Note:1. All voltage in above table are compared with VSS.
2. All parameters in above table are tested under VDD=5V.
3. CLK & DATA output gates are open drains that connect to pull up resistors.
X1, X2, Y1, Y2 input impedance
UNIT:K
¡
MAX.
16.0
15.0
14.0
TYP.
13.0
12.0
MIN.
11.0
10.0
9.0
8.0
7.0
6.0
5.0
4.0
3.0
2.0
1.0
01.02.03.04.05.0
10.0M
VOLTAGE (LIN)
SC84510
AC ELECTRICAL CHARACTERISTICS
(Tamb=25~70°C)
Parameter Symbol Min Typ Max Unit
Oscillating FrequencyFosc34.3-10%34.334.3+10% kHz
Key DebounceTkd--12--ms
Rising Edge Crossed Width Fosc=35KHzTr14.3----µs
Falling Edge Crossed WidthTf14.3----µs
Mouse CLK Active TimeTmca--42.9--µs
Mouse CLK Inactive TimeTmci--42.9--µs
Mouse Sample DATA from CLK rising EdgeTmdc--14.3--µs
System CLK Active TimeTsca--42.9--µs
System CLK Inactive TimeTsci--42.9--µs
Time from DATA Transition to Falling Edge of CLKTsdc--14.3--µs
Time from rising Edge of CLK to DATA TransitionTscd--28.6--µs
Time to mouse Inhibit after the 11th CLK to ensure mouse does
not start another Transmission
Tpi0--50µs
The AC timings are measured under using 35KHz system clock signal.
INPUT: 200kΩ pull low to V
When OPT is connected to V
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.
“1” = V
High duty is about 60µs.
RC mode oscillation with 50kΩ resistor.
Three key-switches inputs.
200kΩ resistor pull low.
, “0” = floating
DD
.
SS
, SC84510 will enter test mode. In test mode, L will
DD
SC84510
X2
Y1
Y2
Z1
Z2
V
SS
V
DD
Three step dynamic input impedance.
I
Use current comparator to measure photo-couples “ON”, or “OFF”.
Z-axis input.
Photo mode: Three steps dynamic input impedance. Current comparator input.
I
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.
Negative power.
Power line.
There are four operating modes in PS/2 mouse:
(a) Reset Mode:
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
aswitchispressed
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.
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 Bit Description
10Left button status; 1 = pressed
1Right button status; 1 = pressed
2Middle button status; 1 = pressed
3Reserve
4X data sign; 1 = negative
5Y data sign; 1 = negative
6X data overflow; 1 = overflow
7Y data overflow; 1 = overflow
(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
allowingCLKlinetogotoanactivelevel.
(c) Data transmission frame:
Bit Function
1Start bit (always 0)
2~9Data bits (D0~D7)
10Parity bit (odd parity)
11Stop 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
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.
transmission is complete.
(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 SC84510checks 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.
(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:
a. Any t ime SC84510 receives an invalid command; it returns a Res en d 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:
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 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:
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:
InputOutput
00
11
21
33
46
59
N( ≥6)2.0*N
(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---- set sampling rate 200/sec
(b) F3 64---- set sampling rate 100/sec
(c) F3 50----set sampling rate 80/sec
SC84510
(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: