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.
EM85000
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
APPLE DESKTOP BUS MOUSE CONTROLLER
PIN ASSIGNMENTS
DISC
LLED
VDD
RESET
VSS
X1
X2
EM85000
1
2
3
4
5
6
7
R
8
M
9
18
17
16
15
14
13
12
11
10
DIN
DOUT
OSCI
OSCO
VDD
DLED
LOCK
Y1
Y2
* This specification are subject to be changed without notice.
11.6.1995
1
Page 2
APPLE DESKTOP BUS MOUSE CONTROLLER
PIN DESCRIPTIONS
SymbolI/OFunction
DISCIH=discharge mode,L=non-discharge mode.(internal pull low)
LLEDOTrackball lock led display.
V
DD
RESETILow active for chip reset.
V
SS
X1,X2IHorizontal direction status for x counter data.
RIRight mouse key. (internal pull high)
MIMain mouse key. (internal pull high)
Y1,Y2IVertical direction status for y counter data.
LOCKIOptional trackball key lock button to lock /M key. (internal pull high)
DLEDOActive low to turn on photo LEDs.
OSCOOCrystal clock output.
OSCIICrystal clock input.
DOUTOTransmit data to Host.(open drain)
DINIReceive data or command from Host.
-+5v power.
-GND.
EM85000
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.
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.
COMMANDS
* This specification are subject to be changed without notice.
11.6.1995
2
Page 3
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 AddressDevice TypeAddressing Example
0ReservedExtended
1AppliancesExtended
2Encoded DeviceMovableKeyboard address for initial address.
3Relative DeviceMovableMouse address for initial address.
- - - -B15 ~ B8B7~B0
3B- - - - ----FFSelf Test.
3B- - - - A3 A2 A1 A0 FEDevice will change to new address(A0~A3)if no collision
3B- - - - A3 A2 A1 A0 FDDevice will change to new address(A0~A3)if no collision
3B0 1 - 1 A3 A2 A1 A0 00IF no collision has been detected,device will change to
3B---- - - - - 012 counts/dot for X/Y axis.
3B- - - - ----021 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.
EM85000
APPLE DESKTOP BUS MOUSE CONTROLLER
has been detected.
and /Mkey is pressed.
new address (A0~A3)and set (or clear)SRQ depend on B13(R3).
B15 B14 B13B12 B11B10B9B8B7B6B5B4B3B2B1B0
MY6Y5Y4Y3Y2Y1Y0RX6X5X4X3X2X1X0
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 B13B12B11 B10B9B8B7B6B5B4B3B2B1B0
0 EESRQ 1 A3A2 A1A0D7D6D5 D4D3 D2 D1D0
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
Page 5
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.
* This specification are subject to be changed without notice.
11.6.1995
5
Page 6
APPLE DESKTOP BUS MOUSE CONTROLLER
ABSOLUTE MAXIMUM RATINGS
Temperature under bias0°C to 70°C
Storage temperature-65°C to 150°C
Input voltage-0.3V to +6.0V
Output voltage-0.3V to +6.0V
DC ELECTRICAL CHARACTERISTICS
(T
0°C~150°C, VDD = 5.0V±5%, V
A =
ParameterSym.Min.Typ.Max.UnitCondition
= 0V )
SS
EM85000
Input High VoltageV
Input Low VoltageV
Output High VoltageV
Output Low VoltageV
Clock Input High Voltage V
Clock Input Low VoltageV
Input Leakage CurrentI
IH
IL
OH
OL
IHX
ILX
IL1
2.0--VVIN=VDD,V
--0.8VVIN=VDD,V
SS
SS
2.4--VIOH=-12.0mA
--0.4VIOH=12.0mA
3.5--VOSCI
--1.5VOSCI
--±10µAVIN=VDD,V
SS
for input pin
Pull-high currentI
Pull-down currentI
Operating supply currentI
PH
PD
CC
-50-100-240uAPull-high active, input pin at V
2050120uAPull-down active input pin at V
--4mARESET=HIGH, Fosc=3.58MHz
AC ELECTRICAL CHARACTERISTICS
(T
0°C~70°C, VDD = 5.0V±5%, V
A =
ParameterSym.SPECMin.Typ.Max.Unit
Attention signal timeAttn800±3%550-2150µs
Sync pulse timeSync65±3%--286µs
From first stop bit to start bit.Tit200±30%150--µs
Service request timeTsrq300±30%290-315µs