All in One Mouse Controller
All in One Mouse Controller
All in One Mouse Controller
EM83702
ALL IN ONE MOUSE CONTROLLER
ALL IN ONE MOUSE CONTROLLER
The EM83702 Mouse Controller is specially designed to control mouse device. This single chip can interface
three key-switches and four photo-couple direct to RS-232C. The EM83702 does not need any external power
supply,so the mouse can go without a power line. It is versatile with both microsoft and mouse system.
Debouncing circuit were provided to prevent false entry and to improve the accuracy. In 1200 baud rate non-auto
speed with 200 DPI wheels and photo-couples, the scanning is 650 mm/sec without missing a dot in microsoft
mode,and the scanning speed can up to 770 mm/sec in mouse system mode.
FEATURES
Built-in two zener diode between VDD and VSS, RTS and VDD.
Buit-in noise immunity circuit.
CMOS DIP 16 pins package & SOP 16 pins package.
Low power dissipation.
Use 32.768 kHz crystal or 3.58MHz resonator.
Oscillator circuits on-chip.
Serial output in 1200 baud rate.
Can be powered directly from RS-232C.
Can drive directly to RS-232C.
Three key-switches and four photo-couples inputs.
Both key-in and key-release debounce interval 13 ms.
Through three key-switches input, EM83702 can exert seven different output.
The sampling rate of motion detector is 65 KHz.
APPLICATIONS
PIN ASSIGNMENTS
EM83702A EM83702B
RS 1 16 VDD RS 1 16 VDD
MS 2 15 OPT OPT 2 15 Y2
OSC.IN 3 14 Y2 MS 3 14 Y1
OSC.OUT 4 13 Y1 OSC.IN 4 13 X2
RTS 5 12 X2 OSC.OUT 5 12 X1
RXD 6 11 X1 RTS 6 11 L
VSS 7 10 L RXD 7 10 M
R 8 9 M VSS 8 9 R
D I
OPT E N M
M
T O M
X1 O MULTIPLEXER P/S
E I U COUNTER
T
X2 C S N
I
T E I
O
Y1 O T
N
R Y
Y2
D
L E
B TIMING
M O MODE CONTROLLER
U SELECTOR
R
N
C
E
MS
RS LEVEL-SHIFT RXD
SYSTEM CLOCK
OSC.OUT CIRCUIT
GENERATOR
OSC.IN
RTS
PIN DESCRIPTIONS
Symbol I/O Function
RS I Crystal type select : "0" or floating, select 32.768KHz crystal. "1" select 3.58MHz
resonator.
MS I When this pin is connected to VDD, then EM83702 is assigned to operate
under the microsoft mode only. If the pin is connected to VSS , then EM83702
will operate under the mouse system mode.
However if this pin is "floating", then EM83702 is on the power on initiation
situation and if any one of three buttons is chosen, thence EM83702 will operate
under the mouse mode. And while the whole system is on power on initiation.No
key is chosen then operation will be under microsoft mode.
OSC.IN I A built-in inverter provides oscillation with 32.768 KHz crystal or 3.58MHz
OSC.OUT resonator.
Several counters used to decrease the frequency of oscillation and create 1200 baud
rate, key-switches debounce and photo-couple sensor scanning clock,etc.
RTS I Positive power input.
The signal is sent by mouse driver from computer to the mouse to select
a mode. During the reset time, EM83702 echoes the selected mode to the RXD line
after the reset pulse signal of the RTS line. RXD will send out CD(H) code if
it is under the microsoft mode. RXD will send out two byte C8(H) code if it is under
the mouse system mode in EM83702.
* This specification are subject to be changed without notice. 4.15.1996 2
EM83702
ALL IN ONE MOUSE CONTROLLER
FUNCTION DESCRIPTIONS
A) Operating Mode
Anytime the mouse changes its state, including the key-switches and the photo-couple sensors, EM83702 will
detect the result and transmit to RS-232C. Mouse system transmits the result with five bytes in 1200 baud
rate. Each byte contains 10 bits, one start bit, one stop bit and eight data bits. The first byte represents
the key-switches status. The second byte denote the number counted by the horizontal counter. The third byte
conveys the number accumulated by the vertical counter. If the mouse is moved faster, the photo-couple
sensors detect the change state and output the record, excessive horizontal counter will be transported
through the fourth byte, and vertical counter through the fifth byte. Otherwise, the fourth and fifth byte are zero.
Output bytes arrange:
bit no ...... 7 6 5 4 3 2 1 0
1st byte...... 1 0 0 0 0 L M R*
2nd byte...... H7 H6 H5 H4 H3 H2 H1 H0
3rd byte...... V7 V6 V5 V4 V3 V2 V1 V0
4th byte...... H7 H6 H5 H4 H3 H2 H1 H0
5th byte...... V7 V6 V5 V4 V3 V2 V1 V0
* denotes complement
In microsoft mode, the transmission cycle consists of three bytes. Each byte is divided into one start bit, seven
data bits and two stop bit. The first byte contains L,R switch status and four bits of the two most sig-
nificant bits in horizontal counter and vertical counter. The next byte represents the value accumulated by
horizontal counter, the last byte is the data of the vertical counter. Notice that M key-switch is not active
in the microsoft mode and the vertical data is transmited in 2s complement.
Output byte arrange:
bit no ...... 6 5 4 3 2 1 0
1st byte...... 1 L R V7' V6' H7 H6
2nd byte...... 0 H5 H4 H3 H2 H1 H0
3rd byte...... 0 V5' V4' V3' V2' V1' V0'
Whenever OPT is connected to VDD, the chip will enter buyers testing mode. The X direction output signals
of comparators will present to L and M pin. Pressing R key can toggle the output from X direction to Y
direction.
RXD will send out CD(H) code when RTS rise from low to high under microsoft mode. Under mouse
system mode, when RTS rise from low to high, the RXD pin EM83702 will send out two byte C8(H) code.
15.0 K
TYP. 14.0 K
13.0 K
12.0 K
MIN.
11.0 K
10.0 K
9.0 K
8.0 K
7.0 K
6.0 K
5.0 K
4.0 K
3.0 K
2.0 K
1.0 K
0
10.0M 1.0 2.0 3.0 4.0 5.0
VOLTS (LIN)
2VDD
RTS pin
VSS
VDD
TIMING DIAGRAM
(A) P/S output:
Key in/release
Mouse RXD
Tms Tms
Microsoft RXD
Tmx Tmx
RXD LINE
Data bit no.
0 1 2 3 4 5 6 7 0 1
Ts Td Td Td Td Td Td Td Td Tp
(2) Microsoft
RXD LINE
Data bit no. 0 1 2 3 4 5 6 0 1
Ts Td Td Td Td Td Td Td Tp Tp
RTS
Trd
> <Trb
RXD
> <
two byte "C8" code
Reset code
"C8" Bit no. Ts 0 1 2 3 4 5 6 7 Tp
(2) Microsoft
RTS
> Trd
<
RXD
> <
"CD" code
Reset code Ts 0 1 2 3 4 5 6 7 Tp
"CD" Bit no.
X1 (Y1)
X1(Y1)
Tr Tf
RSAUT
(R,M,L,OPT)
(R,M,L,OPT) INTERNAL SIGNAL
OSC.IN OSC.OUT
RTS
TEST MODE ENABLE RTS
VCC
RXD CONTROL SIGNAL
RXD CONTROL SIGNAL
VCC
X1(X2,Y1,Y2) +
PHASE DIGITAL SIGNAL
4.5R
-
APPLICATION CIRCUIT
Mechanical Mouse
GND
10F
14
12
11
10
VDD 16
15
13
9
Y1
X1
X2
M
Y2
L
OPT
EM83702A
OSC.OUT
OSC.IN
RXD
RTS
VSS
MS
RS
R
3
8
1
4
(3.58MHz)
32768 Hz
RXD
TXD
RTS
Optomechanical Mouse
SG
10F
R
11
14
12
10
9
16
15
13
VDD
Y1
X1
X2
M
Y2
L
OPT
EM83702A
OSC.OUT
OSC.IN
RXD
RTS
VSS
MS
RS
R
3
8
1
4
32768 Hz
(3.58MHz)
RXD
TXD
RTS
Optomechanical Mouse
SG
10F
R
14
12
11
10
16
15
13
2
VDD
Y1
X1
X2
M
Y2
L
OPT
EM83702B
OSC.OUT
OSC.IN
RXD
RTS
VSS
MS
RS
R
9
3
8
1
(3.58MHz)
32768 Hz
RXD
TXD
RTS