CN1086236C - Automatic testing device of computer mouse optical coupling input signal - Google Patents

Automatic testing device of computer mouse optical coupling input signal Download PDF

Info

Publication number
CN1086236C
CN1086236C CN97118964A CN97118964A CN1086236C CN 1086236 C CN1086236 C CN 1086236C CN 97118964 A CN97118964 A CN 97118964A CN 97118964 A CN97118964 A CN 97118964A CN 1086236 C CN1086236 C CN 1086236C
Authority
CN
China
Prior art keywords
signal
output
circuit
digital
decline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN97118964A
Other languages
Chinese (zh)
Other versions
CN1213797A (en
Inventor
郑文平
王明坤
郭芳钿
许绩贺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Holtek Semiconductor Inc
Original Assignee
Holtek Semiconductor Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Holtek Semiconductor Inc filed Critical Holtek Semiconductor Inc
Priority to CN97118964A priority Critical patent/CN1086236C/en
Publication of CN1213797A publication Critical patent/CN1213797A/en
Application granted granted Critical
Publication of CN1086236C publication Critical patent/CN1086236C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention relates to an automatic detection device of computer mouse optical coupling input signals. The present invention is a signal detection circuit which is mainly composed of a decision circuit, an upper/ lower digital counter, a digital/analog converter, a comparator, etc. When output signals of a photoelectric crystal change, correspondingly generated voltage values trace input corrugated states to obtain voltage output of digital signals. The present invention improves a defect that circuits in the prior art are extra complicated, and avoids that when the voltage of input signals is extra high or low, correct input signals can not be detected.

Description

Computer mouse light lotus root is closed the input signal automatic detection device
The present invention relates to a kind of computer mouse light lotus root and close the input signal automatic detection device, it mainly is signal testing circuit, particularly a kind of the need because of using the different optical element to adjust the mouse designs of input resistance with the design of simplification testing circuit, and avoids detecting wrong input signal.
General mouse commonly used, photoelectric crystal was judged as conducting or the mode of ending can be consulted Fig. 1 when it moved, Figure 1 shows that using mouse light lotus root always closes input signal testing circuit figure, establish a comparer 4 at the input end of mouse, one input end of this comparer 4 is connected in the output terminal of photoelectric crystal 1, this input end connects a resistance 2 and a NMOS element 3 simultaneously, uses the size of regulating resistance value, and is too high with the output voltage of avoiding photoelectric crystal 1.Another input end of this comparer then connects a fixed reference potential 5 (Vref), and this reference voltage 5 is judges photoelectric crystal conducting or the level that ends.When circuit working, if an input voltage of comparer 4 is higher than fixed reference potential 5, then represent photoelectric crystal 1 conducting, promptly comparer 4 is output as " HIGH ".If an input voltage of comparer 4 is lower than reference voltage 5, represent that then photoelectric crystal 1 ends, comparer 4 is output as " LOW ".Yet, when the disadvantage of this kind technology is that the input signal voltage when photoelectric crystal is too high or too low, can't detect correct input signal.In addition, when using different photovalves, the mouse reference voltage level just must change thereupon, therefore, uses inconvenience and easily produces wrong signal.
See also Fig. 2, Fig. 2 is the automatic reference voltage testing circuit of disclosed mouse figure, by diagram as can be known, the mode that this circuit produces automatic reference voltage (Vref) is very complicated, owing to must produce a precision, dc voltage value accurately, the digital analog converter that two groups of simulations multiplexer and divider resistance tandems are formed in its circuit must use the circuit of precision, and a large amount of latch units, control and arithmetic logic circuit have been used for trying to achieve reference voltage (Vref), the integrated circuit cost is improved, and circuit design is also comparatively complicated.
At above-mentioned defective, the inventor be concentrate on studies, test and a reasonable idea is proposed, the splendid computer mouse light lotus root of intention is closed the input signal automatic detection device, by following the trail of the waveform that input voltage changes, that is detect the variable condition of its waveform slope, and the conducting of judging photoelectric crystal with end, use the analog signal treatment circuit owing to reduce, not only reduce the circuit use cost, also simplified circuit design; Moreover, because the DC voltage reference value (Vref) of a precision must be provided, more can reduce circuit cost, and can't detect the defective of correct input signal can avoid the signal voltage of photoelectric crystal input too high or too low the time, increase the fiduciary level that detects signal.
For making the present invention there is further understanding, existing in conjunction with the accompanying drawings technical scheme of the present invention detailed description the in detail as the back:
Fig. 1 closes input signal testing circuit figure for mouse light lotus root commonly used.
Fig. 2 is mouse reference voltage testing circuit figure commonly used.
Fig. 3 is the circuit block diagram of first embodiment of the invention.
Fig. 4 is a decision circuit block scheme in the first embodiment of the invention.
Fig. 5 is the circuit block diagram of second embodiment of the invention.
See also Fig. 3, Fig. 3 is the circuit block diagram of first embodiment of the invention, photoelectric crystal 1 output one signal commonly used among the figure is connected in signal testing circuit 10 of the present invention, its junction is an input endpoint 11, this input endpoint 11 is connected with resistance 2 and NMOS element 3 in addition, use the adjusting resistance sizes, too high with the output voltage of avoiding photoelectric crystal 1, this is the general technology of using always.This signal testing circuit 10 is provided with a comparer 50, the non-inverting input of this comparer 50 connects the analog signal of this photoelectric crystal 1 output, tie point is an input endpoint 11, the reverse input end of this comparer 50 then connects the analog signal that a digital/analog converter 40 is exported, and this comparer 50 is compared two analog signals to produce rising/decline signal (U/D).This rising/decline signal connects a decision circuit 20 on the one hand to judge the input state of photoelectric crystal 1.On the other hand, in the rising/decline signal connection one/following counter 30, rising/decline the signal that is detected can be converted to the digital signal output that a count number increases or reduces, be connected to digital/analog converter 40 afterwards and digital signal is converted to analog signal, wherein go up/following counter 30 is connected with a clock signal (clock) in addition with decision circuit 20, use cooperate control decision circuit 20 and on/duty of following counter 30.The device of first embodiment of the invention promptly be by on this/variation that the action of the counting of following counter 30 is followed the trail of voltage waveforms via this digital/analog converter 40 again, after a period of time, if the state major part is last number (increase), can learn that its input state is that voltage rises.Otherwise, if state, represents then that input state is that voltage descends for continuing number (minimizing) down.So, utilize the state of its rising/decline, and judge that photoelectric crystal is conducting or cut-off state.
On the other hand, the input signal one of this comparer 50 is the output signal V of photoelectric crystal 1 +An and output signal V by digital/analog converter 40 -, two signal V +, V -Compare to obtain an output valve.Below explain in two kinds of situation:
1. as signal V +>V -The time be output as " HIGH ", this output packet contains two kinds of meanings, the firstth, detect/numerical value that following counter is counted is not enough, the essential continuation up counted.Second is the logic basis of using as detected state.
2. as signal V +<V -The time be output as " LOW ", this output packet contains two kinds of meanings, the firstth, detect/numerical value that following counter is counted is too big, essential counter-rotating is down counted.Second is the logic basis of using as detected state.
Like this, detection mode of the present invention promptly is to learn the slope variation of institute's input signal waveform according to the state of following the trail of, and the variation of slope can obtain the output voltage values wished to get thus.
See also Fig. 4, Fig. 4 is the circuit block diagram of decision circuit in the first embodiment of the invention, mainly disclosed a decision circuit 20, the input signal of this decision circuit 20 is a rising/decline signal (U/D) and a clock signal (clock), after this two signal is imported this decision circuit 20, connect a front and back signal comparator circuit 21, state with input signal before and after detecting is (rise, rise), (rise, fall), (falls, rise) or (fall, fall).Output afterwards connects a sequential logical circuit 22 to change time sequence status at different comparison states, the output of this sequential logical circuit 22 then connects a state output circuit 24, can produce the control circuit that mouse is given in output " HIGH " or " LOW " at different state values, so finish the decision circuit 20 in the first embodiment of the invention.
The dicision rules that further describes decision circuit among this case embodiment is as follows:
1 if the combined accumulated that is detected decline/decline in the signal tandem of risings/decline signal reaches secondary, and then decision circuit is promptly exported " LOW ", otherwise maintenance result of determination last time still.
2 if the combined accumulated that is detected rising/rising in the signal tandem of risings/decline signal reaches secondary, and then decision circuit is promptly exported " HIGH ", otherwise maintenance result of determination last time still.
3 in accumulation, and the combination of rising/decline or decline/rising does not influence accumulation results, but rising/rising and decline/decline can influence accumulation results, and the effect of the accumulation of cancelling out each other is arranged.For example: in accumulation, if detected once decline/decline, then rising/rising occurs as if elder generation before decline/decline for the second time occurs, then cumulative number can subtract into zero by a decline/decline; Otherwise, also same to the accumulation of rising/rising.
Other sees also Fig. 5.Fig. 5 is the circuit block diagram of second embodiment of the invention.It is to be used to handle two signals (the first signal X as shown in the figure that the difference of the second embodiment of the invention and first embodiment is in second embodiment 1And the second signal X 2), be a pair of signal testing circuit 60, wherein the first signal X 1For the output signal of photoelectric crystal 1 one of is connected in this pair signal testing circuit 60 signal input multiplexer 66, another input end of this signal input multiplexer 66 is the second signal X 2, so multiplex's mode is made in two inputs and can be saved a comparer and a digital/analog converter.The output of signal input multiplexer 66 is connected to the non-inverting input of a comparer 50 again, the reverse input end of comparer 50 then connects the output of a digital/analog converter 65, this comparer 50 is done one with two input signals and is relatively exported a rising/decline signal, this rising/decline signal is connected to a pair of signal decision circuit 61 on the one hand, be connected with simultaneously on the other hand on first signal/following counter 62 and second signal on/following counter 63.Wherein, this pair signal decision circuit 61 is mainly judged the input state of two photoelectric crystals by rising/dropping signal tandem, and is connected with the first clock pulse CK 1And the second clock pulse CK 2, via exporting the first output signal (X after the condition judgement again 1') and the second output signal (X 2').On this first signal/following counter 62 and second signal on/following counter 63 uses same rising/decline signal tandems, but under time-multiplex, obtain other rising/decline signal separately, and distinctly keep correct on/following counting number, its principle is identical with first embodiment, the digital signal output of this two counter connects a counting signal multiplexer 64, with two digital signal multiplex (MUX)s is single output digital signal, this digital signal is connected in digital/analog converter 65 afterwards, digital signal is converted to analog signal, like this, second embodiment of the invention is to change and judge that two photoelectric crystals are conducting or cut-off state in order to the waveform slope that detects two input states.
The enforcement that relates to two signal decision circuits 61 of explanation must be proposed in addition especially, the difference of this pair signal decision circuit and decision circuit shown in Figure 4 is that its clock signal of decision circuit of Fig. 4 is one group, this pair signal decision circuit 61 then is two groups of clock signals, its mode of connection is that the decision circuit with Fig. 4 copies as two groups, utilize the time-multiplex mode simultaneously, rising/decline signal tandem is judged, produce the two-digit signal, the conducting or the cut-off state of respectively corresponding two photoelectric crystals, and become two signal decision circuits 60.
Moreover at second embodiment of the invention, two signal processing modes that can contrast two signal testing circuits expand to four or above signal testing circuit with two signals, for example handle the X of mouse 1, X 2, Y 1And Y 2Detect signals (or more than) Deng four, meaning is that signal input multiplexer and counting signal multiplexer are four (or more than) signal input modes, other is provided with on four (or more than)/following counter and four signals (or more than) decision circuit etc., and, the quantity of element circuitry reaches the increase of embodiment by changing.
By above explanation as can be known, the present invention improves the too numerous and diverse defective of circuit of common technology significantly, can simplify circuit design, when using different photovalve, then must not change reference voltage level again, to save the change of circuit, moreover, follow the trail of the waveform slope variation pattern owing to adopt, can avoid using the high precision element to increase circuit cost to produce a direct current magnitude of voltage.And, when input signal voltage is too high or too low, also can detect correct input signal.The use effect of the embodiment of the invention is splendid, is the important invention on the industry in fact.
In sum, the present invention has possessed creativeness and novelty, and all variations of being done in claim scope of the present invention all belong to the scope that claim of the present invention is protected with improvement.

Claims (6)

1, a kind of computer mouse optically-coupled input signal automatic detection device, this device includes:
One comparer, the one end connects the signal of mouse photoelectric crystal output, and the other end then connects the analog signal that a digital/analog converter is exported, and two signals is compared, so as to producing rising/decline signal;
One decision circuit is linked to this comparer, with reception rising/decline signal, and the receive clock signal, the digital signal of the exporting corresponding photoelectric crystal conducting or ending so as to judging the state that signal is imported;
On one/and following counter, be linked to this comparer, so as to producing the digital signal output that a count number increases/subtracts;
One digital/analog converter is linked on this/following counter, and output is connected with this comparer, so that digital signal is converted to analog signal;
Wherein, on this/following counter and this decision circuit be connected with the clock status signal.
2, automatic testing device of computer mouse optical coupling input signal as claimed in claim 1, wherein this decision circuit can include:
One front and back signal comparator circuit, the judgement of making comparisons in order to receive rising/decline signal and clock signal;
One sequential logical circuit is connected in this front and back signal comparator circuit, in order to produce different sequential signals;
One state output circuit is linked to this sequential logical circuit and clock signal, to produce required output.
3, a kind of automatic testing device of computer mouse optical coupling input signal can detect the dual input signal, and this device includes:
One signal input multiplexer, the output terminal of two photoelectric crystals of connection mouse turns to single signal output in order to the input multiplex (MUX) with two signals;
One comparer is linked to this signal input multiplexer, so as to producing rising/decline signal;
A pair of signal decision circuit is to receive rising/decline signal and clock signal and the digital signal that produces two corresponding photoelectric crystal conductings or end;
On two signals/and following counter, the receive clock signal also cooperates rising/decline signal, to produce the digital signal output that count number increases/subtracts;
One counting signal multiplexer links on this two signal/following counter, so as to being single output digital signal with two digital signal multiplex (MUX)s;
One digital/analog converter links this counting signal multiplexer, and output is connected with this comparer, in order to digital signal is converted to analog signal.
4, automatic testing device of computer mouse optical coupling input signal as claimed in claim 3, wherein this pair signal decision circuit is formed by two groups of single signal decision circuitry, and single signal decision circuit includes:
One front and back signal comparator circuit, the judgement of making comparisons in order to receive rising/decline signal and clock signal;
One sequential logical circuit is connected in this front and back signal comparator circuit, in order to produce different sequential signals;
One state output circuit is linked to this sequential logical circuit and clock signal, to produce required output.
5, a kind of automatic testing device of computer mouse optical coupling input signal can detect four groups or above input signal state, and this device includes:
One signal input multiplexer, the output terminal of at least four photoelectric crystals of connection mouse turns to single signal output in order to the input multiplex (MUX) with at least four group signals;
One comparer is linked to this signal input multiplexer, so as to producing rising/decline signal;
The signal decision circuit of at least four groups receives risings/decline signal and clock signal and the digital signal that produces the correspondence photoelectric crystal conducting of at least four groups or end;
On the signal of at least four groups/and following counter, the receive clock signal also cooperates rising/decline signal, to produce the digital signal output that count number increases/subtracts;
One counting signal multiplexer links on the signal of this four group/following counter at least, is single output digital signal so as to the digital signal multiplex (MUX) with at least four groups;
One digital/analog converter links this counting signal multiplexer, and output is connected with this comparer, in order to digital signal is converted to analog signal.
6, a kind of automatic testing device of computer mouse optical coupling input signal as claimed in claim 5, wherein the decision circuit of this at least four group is formed by the single signal decision circuit of four groups at least, and single signal decision circuit includes:
One front and back signal comparator circuit, the judgement of making comparisons in order to receive rising/decline signal and clock signal;
One sequential logical circuit is connected in this front and back signal comparator circuit, in order to produce not sequential signal;
One state output circuit is linked to this sequential logical circuit and clock signal, to produce required output.
CN97118964A 1997-10-06 1997-10-06 Automatic testing device of computer mouse optical coupling input signal Expired - Fee Related CN1086236C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN97118964A CN1086236C (en) 1997-10-06 1997-10-06 Automatic testing device of computer mouse optical coupling input signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN97118964A CN1086236C (en) 1997-10-06 1997-10-06 Automatic testing device of computer mouse optical coupling input signal

Publications (2)

Publication Number Publication Date
CN1213797A CN1213797A (en) 1999-04-14
CN1086236C true CN1086236C (en) 2002-06-12

Family

ID=5175090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN97118964A Expired - Fee Related CN1086236C (en) 1997-10-06 1997-10-06 Automatic testing device of computer mouse optical coupling input signal

Country Status (1)

Country Link
CN (1) CN1086236C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101019093B (en) * 2005-09-27 2010-07-28 埃派克森微电子有限公司 Circuit and process for photo coupling detection

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0251618A2 (en) * 1986-06-23 1988-01-07 Xerox Corporation Optical mouse
EP0260836A2 (en) * 1986-09-19 1988-03-23 Summagraphics Corporation Method and apparatus for calibrating an electro-optical mouse

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0251618A2 (en) * 1986-06-23 1988-01-07 Xerox Corporation Optical mouse
EP0260836A2 (en) * 1986-09-19 1988-03-23 Summagraphics Corporation Method and apparatus for calibrating an electro-optical mouse

Also Published As

Publication number Publication date
CN1213797A (en) 1999-04-14

Similar Documents

Publication Publication Date Title
DE3519800A1 (en) INPUT / OUTPUT CONTROL CIRCUIT ARRANGEMENT WITH OVERCURRENT PROTECTION
EP2080334A1 (en) Device for sensing a fault current in a field bus system
CN100373131C (en) Phase demodulating circuit for incremeutal rotary encoder
CN101034114A (en) Over and behind voltage testing circuit
CN107026566B (en) Ripple modulation determines turn-on time power supply unit and its control circuit and control method
DE102013206124A1 (en) Differential interface for communication between devices in a battery management and battery protection system
CN1086236C (en) Automatic testing device of computer mouse optical coupling input signal
DE19811095B4 (en) Sensor device and method for data transmission with such a sensor device
DE3519807A1 (en) INTELLIGENT INPUT / OUTPUT SYSTEM
CN108347233A (en) A kind of multistage input logic decision circuitry
DE102004031278B4 (en) Device for detecting the connection of peripheral devices to a host system
DE3519862C2 (en) Transmission method and input / output module for an input / output system of a programmable process control device
EP0920603B1 (en) Circuit for intrinsically safe detection of the binary signals of a transmitter
DE19758101C2 (en) Electronic device for monitoring a switching device in an electrical system
CN208923813U (en) A kind of undervoltage lockout circuit with dynamic filter function
CN216121906U (en) Automatic switching device for double-circuit power supply
CN2283839Y (en) Multichannel temp. measuring device with low cost
CN1616973A (en) Light control electronic switch type automatic function selecting universal meter
CN2572672Y (en) Digital value input circuit
CN1080942C (en) Self-adaptive weighing differential protection method for bus
EP1179921B1 (en) Activity detection in a hub coupled to a pluality of nodes
CN1306705C (en) Failure protective circuit
EP1649435B1 (en) Circuit arrangement comprising a multi-wire line for supplying current and emitting signals
EP1791257B1 (en) Method and apparatus for data transmission using analog signals
CN208028864U (en) A kind of multistage input logic decision circuitry

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C53 Correction of patent for invention or patent application
COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: HETAI SEMICONDUCTOR CO., LTD. TO: SHENGQUN SEMICONDUCTOR CO., LTD.

CP03 Change of name, title or address

Address after: No. three, No. two, research road, Hsinchu Science Industrial Park, Taiwan

Applicant after: Shengqun Semiconductor Co., Ltd.

Address before: No. five, No. two, research road, Hsinchu Science Industrial Park, Taiwan

Applicant before: Hetai Semiconductor Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee