ELAN EM84520FP, EM84520EP, EM84520DP, EM84520CP, EM84520BP, EM84520AP Datasheet
Specifications and Main Features
Frequently Asked Questions
User Manual
GENERAL DESCRIPTION
The EM84520 Scrolling Mouse Controller is specially designed to control serial mouse or PS/2 mouse device.
This single chip can interface three key-switches and 4 X-Y photo-couples plus Z-axis directly to RS-232C or
8042 controller.
There are four types Z-axis inputs used to implement scrolling mouse functionality.
FEATURES
• Using 50kΩ±1% resistor for RC oscillation.
• Compatible with legacy PS/2 mouse.
• Compatible with Microsoft serial scrolling mouse.
• Compatible with Microsoft PS/2 scrolling mouse.
• Serial or PS/2 port auto-detect.
• 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.
* This specification are subject to be changed without notice.
16
OSCR
15
Y2
14
Y1
13
X2
12
X1
11
L
10
M
9
R
6.28.1999
1
FUNCTIONAL BLOCK DIAGRAM
EM84520
2-IN-ONE SCROLLING MOUSE CONTROLLER
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
OPT
X1
X2
Y1
Y2
Z1
Z2
C
D
O
M
E
M
O
T
P
T
E
A
I
C
R
O
T
A
N
O
T
R
O
R
D
L
M
R
E
B
O
U
N
C
E
OSCR
OSC.OUT
THREE TYPES SELECTOR
COMPARATOR
Z-AXIS COUNTER
COUNTER
COMMAND
SYSTEM CLOCK
GENERATOR
OSCILLATION
VOLTAGE
SENSOR
STATUS
RC
KEY-SWITCH
DETECTOR
MULTIPLEXER
DATA/RXD
CLK/RTS
DATA
I/O
TIMING
CONTROLLER
PIN DESCRIPTIONS
Symbol I/OFunction
OPTI/OINPUT: 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.
OSC.OUTOThe RC oscillation clock output. Or 3mA sink current output for X, Y photo
emitters.
OSCR IConnect 50kΩ±1% precise resistor for oscillation.
CLK/RTSI/OConnect to 8042 auxiliary port CLK line in PS/2 mode or connect directly to RS-
232C RTS pin in serial mode. Auto-detect the operating port by this pin.
DATA/RXDI/OConnect to 8042 auxiliary port DATA line in PS/2 mode or connect directly to RS-
232C RXD pin in serial mode.
RIThree key-switches inputs. 200kΩ resistor pull low.
MI/OIn Z-axis key mode, M key toggling can change the scrolling speed from low to
LI/Ohigh.
X1IThree step dynamic input impedance. If OSC.OUT is not connected to LEDs, the
X2Idynamic input impedance will be off.
Y1IUse current comparator to measure photo-couples "ON", or "OFF".
Y2I
Z1IZ-axis input.
Z2IPhoto 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.
VSSNegative power.
VDDPower line.
* This specification are subject to be changed without notice.
6.28.1999
2
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.......654321 0
1st byte......1LRV7'V6'H7H6
2nd byte....0H5H4H3H2H1H0
3rd byte....0V5'V4'V3'V2'V1'V0'
4th byte....00MZ3Z2Z1Z0
Plug & Play ID code
2-IN-ONE SCROLLING MOUSE CONTROLLER
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM84520
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 NameLengthField DataDescription
Other ID<174D, 5A, 40, 00, 00, 00ID for legacy
Begin ID108Begin PnP ID
PnP Revision201, 24Version 1.00
EISA ID325, 2D, 23EMC
Product ID410, 10, 10, 110001
Serial Number93CNone provided
Class ID<343C, 2D, 2F, 35, 33, 25Mouse Class
Driver ID<423C, 30, 2E, 30, 10 26, 10, 21PnP0F0A
User Name<423C, 25, 2D, 23, 00, 33, 23, 32,EMC SCROLLING
7Y data overflow; 1 = overflow
20-7X data ( D0 - D7 )
30-7Y data ( D0 - D7 )
* This specification are subject to be changed without notice.
6.28.1999
4
EM84520
2-IN-ONE SCROLLING MOUSE CONTROLLER
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
C) PS/2 mouse Data Transmission:
a). EM84520 generates the clocking signal when sending data to and receiving data from the system.
b). The system requests EM84520 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:
BitFunction
1Start bit ( always 0 )
2-9Data bits ( D0 - D7 )
10Parity bit ( odd parity )
11Stop bit ( always 1 )
d). Data Output ( data from EM84520 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 EM84520 until CLK and DATA both high. If CLK and DATA both
are high, the transmission is ready. DATA is valid prior to the falling edge of CLK and beyond the rising edge
of CLK. During transmission, EM84520 check for line contention by checking for an inactive level on CLK
at intervals not to exceed 100u sec. Contention occurs when the system lowers CLK to inhibit EM84520
output after EM84520 has started a transmission. If this occurs before the rising edge of the tenth clock,
EM84520 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 EM84520 by holding CLK low until it can service the input
or until the system receives a request to send a response from EM84520.
e). Data Input ( from system to EM84520 ):
The system first check if EM84520 is transmitting data. If EM84520 is transmitting, the system can override
the output forcing CLK to an inactive level prior to the tenth clock. If EM84520 transmission is beyond
the tenth clock, the system receives the data. If EM84520 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, EM84520 clocks 11 bits. Following the tenth clock EM84520 checks for
an active level on the DATA line, and if found, force DATA low , and clock once more. If occurs framing
error, EM84520 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 EM84520 to response before sending its next output.
D). PS/2 Mouse Error Handling:
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) is send to the system.
* This specification are subject to be changed without notice.
6.28.1999
5
EM84520
2-IN-ONE SCROLLING MOUSE CONTROLLER
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
c). The counter accumulators are cleared after receiving any command except “Resend”.
d). EM84520 receives a Resend command ( FE ), it transmit its last packet of data.
e). In the stream mode “Resend” is received by EM84520 following a 3-byte data packet transmission
to the system. EM84520 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). If EM84520 is in the stream mode :
a). The system disables EM84520 before issuing any command requiring a response.
b).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 EM84520. 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: