EMC EM85000

EM85000
EM85000
APPLE DESKTOP
APPLE DESKTOP
BUS MOUSE
BUS MOUSE
CONTROLLER
CONTROLLER
GENERAL DESCRIPTION
The EMC ADB Mouse Controller is a mouse controller for apple mouse system.
The following functions are supported:
• Controller receives command or data from Host.
• Controller transmits data to Host.
FEATURES
• Two-button mouse and trackball controller.
• Key Lock function is available.
• Both photo discharge and non-discharge modes are available.
• Discharge mode can reduce X,Y DC offset level.
• Dynamic LEDs Control to reduce system power consumption.
• Four stages sample rate at 1KHz,2.5KHz,5KHz,10KHz.
• Include Noise Immunity methodology to avoid false entry.
• Operating frequence at 3.58MHz.
• 18 Pin DIP.
PIN ASSIGNMENTS
EM85000
DISC
LLED
VDD
RESET
VSS
X1
X2
R
M
1
2
3
4
5
6
7
8
9
* This specification are subject to be changed without notice.
18
17
16
15
14
13
12
11
10
DIN
DOUT
OSCI
OSCO
VDD
DLED
LOCK
Y1
Y2
11.6.1995
1
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
PIN DESCRIPTIONS
Symbol
DISC
LLED
VDD
RESET
VSS
X1,X2
R
M
Y1,Y2
LOCK
DLED
OSCO
OSCI
DOUT
DIN
I/O
I
O
I
I
I
I
I
I
O
O
I
O
I
Function
H=discharge mode,L=non-discharge mode.(internal pull low)
Trackball lock led display.
+5v power.
Low active for chip reset.
GND.
Horizontal direction status for x counter data.
Right mouse key. (internal pull high)
Main mouse key. (internal pull high)
Vertical direction status for y counter data.
Optional trackball key lock button to lock /M key. (internal pull high)
Active low to turn on photo LEDs.
Crystal clock output.
Crystal clock input.
Transmit data to Host.(open drain)
Receive data or command from Host.
FUNCTION DESCRIPTIONS
The ADB Mouse Controller is communicated with Host by the ADB bus.Only Host sends command to mouse
controller,the mouse doesn’t send any command to the other devices or Host on the bus.The signal of the data
or command is transmitted by asynchronous protocol.First,Host sends Attention and Sync signals to synchronize
all devices on the bus,then sends command or data according the command defined.
If the addess which the device receives in command is the same as the device address,then the device will execute
this command.If there are more then two devices to contend the ADB bus,then the bus collision will happen.
Therefore,every devices must have capability to detect and to solve collision.On the contrary,if the address in
the command is not the same with the address in the device,the device will discard the command,or sends SRQ
signal to Host when device has data to be send.
COMMANDS
COMMAND B7 B6 B5 B4 B3 B2 B1 B0
DESCRIPTION
FLUSH
A3 A2 A1 A0 0
0
0
1
Mouse will clear all X,Y counter data(R0=0).
SENDRESET
0
0
0
0
Soft Reset(equal power-on reset).
TALK
A3 A2 A1 A0 1
1 Rh Rl Controller transmits data to Host.
LISTEN
A3 A2 A1 A0 1
0 Rh Rl Controller receives data from Host.
OTHER
------------------------Reserved command.
1.B7 ~ B4:Device Address(0~F)is the position of the device.(Ref table 2)
2.B0 ~ B1:Selected Register(R0~R3),each register has two bytes.
R0:Mouse counter data register(read only by Host)
R3:Control register(can be read or written by Host)
R1,R2:No use in mouse.
3.B3,B2=11:TALK command.(1 byte)
TALK R0:IF mouse has data to report,mouse will send two bytes (R0)to Host.
IF mouse has’t data to report,Host will continue polling(R0) or execute other command.
TALK R3:Host can read mouse R3 register(2 bytes).
TALK R1,R2:No use in mouse.
* This specification are subject to be changed without notice.
11.6.1995
2
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
4.B3,B2=10:LISTEN command.(3 bytes)
LISTEN R3:Host writes controll status to mouse R3.
LISTEN R0 ~R2:No use in mouse.
Host must send 3 bytes. (1 byte command and 2 bytes register data to mouse R3)
TABLE 1
DEVICE ADDRESS
Device Type
Addressing
Reserved
Extended
Appliances
Extended
Encoded Device
Movable
Relative Device
Movable
Absolute Device
Movable
Reserved
--------Reserved
--------Reserved
--------Soft address
---------
Device Address
Example
0
1
2
Keyboard address for initial address.
3
Mouse address for initial address.
4
Tablet address for initial address.
5
6
7
8 ~ F
1. Device address=0~F.
2. Movable:Host can change device address to new address(ex:Soft,reserved address)by LISTEN R3command.
TABLE 2
DATA STRUCTURE
DEVICE ECHO
DESCRIPTION
NO
NO
2 BYTES
If mouse has data to report,device echoes two
bytes(R0) to Host,otherwise no echo data.
TALK R1
----------------No use.
TALK R2
----------------No use.
TALK R3
1 BYTE
2 BYTES
Device always echoes two bytes(R3) to Host.
LISTEN R0
----------------No use.
LISTEN R1
----------------No use.
LISTEN R2
----------------No use.
LISTEN R3
3 BYTES
NO
Host sends control status (R3) to mouse.
First byte:command.
Second and last bytes:R3 control register.
1. CODE:First byte reference TABLE 1.
2. LISTEN R3 command reference TABLE 4.
TABLE 3
COMMAND
SENDRESET
FLUSH
TALK R0
LENGTH
1 BYTE
1 BYTE
1 BYTE
* This specification are subject to be changed without notice.
11.6.1995
3
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
Listen
R3
---3B
3B
CODE
SRQ
Device
(B13) Address
B15
~
B8
- - - - - - - - - - - A3 A2 A1 A0
LISTEN R3 COMMAND
DESCRIPTION
ID
Number
B7~B0
FF
FE
Self Test.
Device will change to new address(A0~A3)if no collision
has been detected.
3B
- - - - A3 A2 A1 A0 FD
Device will change to new address(A0~A3)if no collision
and /Mkey is pressed.
3B
0 1 - 1 A3 A2 A1 A0 00
IF no collision has been detected,device will change to
new address (A0~A3)and set (or clear)SRQ depend on B13(R3).
3B
- - - - - - - - 01
2 counts/dot for X/Y axis.
3B
- - - - - - - - 02
1 count/dot for X/Y axis.
1. LISTEN R3:Host transmits data to device.
2. IF mouse Address=3 and Command=Listen R3 then command data=3B.(Ref table 1)
3. B0 ~ B 15:R3 control register.
TABLE 4
REGISTER DESCRIPTION
REGISTER 0 (R0):mouse counter data.
B15 B14 B13
M Y6 Y5
B12 B11
Y4 Y3
B10
Y2
B9
Y1
B8
Y0
B7
R
B6
X6
B5
X5
B4
X4
B3
X3
B2
X2
B1
X1
B0
X0
B1
D1
B0
D0
1. X0 ~ X6:X direction counter data.
2. Y0 ~ Y6:Y direction counter data.
3. X6(Y6)=0:Positive count when mouse move to right(down).
X6(Y6)=1:Negative count when mouse move to left(up).
Negative count uses 2’S complement form.
4. R:When right key is pressed,B7 is cleared to zero,otherwise B7 status is set to one.
5. M:When main key is pressed,B15 is cleared to zero,otherwise B15 status is set to one.
REGISTER 3 (R3):control register.
B15 B14 B13 B12
0
EE SRQ 1
B11 B10
A3 A2
B9
A1
B8
A0
B7
D7
B6
D6
B5
D5
B4
D4
B3
D3
B2
D2
1. D0 ~ D7:Device Handler ID number. (00h ~ FFh)
2. A0 ~ A3:Device Address can be changed when host send LISTEN R3 command with ID=00,FE,FD.
3. B12:Always be“1”.
4. SRQ:Can be set or cleared when host send LISTEN R3 command with ID=00.
SRQ=1:Device can transmit data to Host.
SRQ=0:Device can’t transmit data to Host.
5. EE(Exception Event status):No use=1.
6. B15:Always be“0”.
SIGNAL PROTOCOL
1. Attn(800us)+Sync(65us):Synchronous signal.
Host out Attn+Sync signals to tell device when to get command code.
2. Data and command code:Data bit is discriminated by pulse code modulation.
* This specification are subject to be changed without notice.
11.6.1995
4
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
3. Tit (200us)signal:If no collision has been detected,
LISTEN command:Device waiting until Tit=“0” then device start to read data in.
TALK command:Device send two bytes data after Tit.
4. Stop bit(“0”).
5. Start bit(“1”).
6. Service Request:When the device has data to report with SRQ=1,it will pull the ADB bus to be low for 300us
after first stop bit of the command send by Host.
COLLISION:
1. Host send one command,but many devices respond to it.
2. Losing device:
a. Device detects “0” at Tit-time before device wants to send start bit.
b. Data line must hold “1” at Tit-time,but device detects “0” by another device send.
c. Device detects“0”while sending“1”.
3. Losing device must give up ADB bus and data is saved.
4. Every devices must have detecting collision ability.
DYNAMIC SAMPLING RATE
When the mouse is moved,the frequence of sampling rate depends on the mouse’s speed.If the mouse is still,the
sampling rate is at low speed(1KHz).It can reduce system power consumption.
DPI
DOTS
SPEED(cm/sec)
SAMPLING RATE
0
--------1KHz
1
2.54
2.5KHz
200
2
5.08
5KHz
4
10.16
10KHz
0
--------1KHz
1
1.5875
2.5KHz
320
2
3.175
5KHz
4
6.35
10KHz
0
--------1KHz
1
1.27
2.5KHz
400
2
2.54
5KHz
4
5.08
10KHz
0
--------1KHz
1
0.907
2.5KHz
560
2
1.814
5KHz
4
3.632
10KHz
Formula:speed=[ ( dots / DPI ) * 2.54 ) ] / Tb.
EX:dot=1,DPI=200 dots/inch,Tb(Time Base)=5ms
speed=[ ( 1 / 200 ) * 2.54 ] / 5ms=2.54 cm/sec
* This specification are subject to be changed without notice.
11.6.1995
5
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
ABSOLUTE MAXIMUM RATINGS
Temperature under bias
Storage temperature
Input voltage
Output voltage
0°C to 70°C
-65°C to 150°C
-0.3V to +6.0V
-0.3V to +6.0V
DC ELECTRICAL CHARACTERISTICS
(TA = 0°C~150°C, VDD = 5.0V±5%, VSS = 0V )
Parameter
Input High Voltage
Input Low Voltage
Output High Voltage
Output Low Voltage
Clock Input High Voltage
Clock Input Low Voltage
Input Leakage Current
for input pin
Pull-high current
Pull-down current
Operating supply current
Sym.
Min.
Typ.
Max.
Unit
Condition
VIH
VIL
VOH
VOL
VIHX
VILX
IIL1
2.0
2.4
3.5
-
-
0.8
0.4
1.5
±10
V
V
V
V
V
V
µA
I PH
IPD
ICC
-50
20
-
-100
50
-
-240
120
4
uA Pull-high active, input pin at VSS
uA Pull-down active input pin at VDD
mA RESET=HIGH, Fosc=3.58MHz
VIN=VDD,VSS
VIN=VDD,VSS
IOH=-12.0mA
IOH=12.0mA
OSCI
OSCI
VIN=VDD,VSS
AC ELECTRICAL CHARACTERISTICS
(TA = 0°C~70°C, VDD = 5.0V±5%, VSS = 0V )
Parameter
Attention signal time
Sync pulse time
From first stop bit to start bit.
Service request time
Reset time
Bit cell time
Bit”0” low time
Bit”1” low time
DLED low time
Sym.
SPEC
Min.
Typ.
Max.
Unit
Attn
Sync
Tit
Tsrq
Tres
Tcyc
T0
T1
DLED
800±3%
65±3%
200±30%
300±30%
3
100±30%
65±30%
35±30%
-
550
150
290
2.15
23
100
65
35
-
2150
286
315
-
µs
µs
µs
µs
ms
µs
µs
µs
µs
* This specification are subject to be changed without notice.
11.6.1995
6
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
WAVE FORM
LISTEN COMMAND:
Host out control status to device.
TALK COMMAND
1. Device has data to send.
2. Host is polling device.
3. Service Request
* This specification are subject to be changed without notice.
11.6.1995
7
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
APPLICATION CIRCUIT
DIST
DIN
LLED
DOUT
VDD
OSCI
RESET
VSS
OSCO
VDD
X1
DLED
X2
LOCK
R
Y1
M
Y2
* This specification are subject to be changed without notice.
11.6.1995
8
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
DIST
DIN
LLED
DOUT
VDD
OSCI
RESET OSCO
VSS
VDD
X1
DLED
X2
LOCK
R
Y1
M
Y2
* This specification are subject to be changed without notice.
11.6.1995
9