CN102727253A - Ultrasonic trackball signal processing method and system - Google Patents

Ultrasonic trackball signal processing method and system Download PDF

Info

Publication number
CN102727253A
CN102727253A CN201210155346XA CN201210155346A CN102727253A CN 102727253 A CN102727253 A CN 102727253A CN 201210155346X A CN201210155346X A CN 201210155346XA CN 201210155346 A CN201210155346 A CN 201210155346A CN 102727253 A CN102727253 A CN 102727253A
Authority
CN
China
Prior art keywords
signal
trace ball
square
road
signals
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.)
Granted
Application number
CN201210155346XA
Other languages
Chinese (zh)
Other versions
CN102727253B (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.)
Edan Instruments Inc
Original Assignee
Edan Instruments 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 Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201210155346.XA priority Critical patent/CN102727253B/en
Publication of CN102727253A publication Critical patent/CN102727253A/en
Application granted granted Critical
Publication of CN102727253B publication Critical patent/CN102727253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The invention relates to an ultrasonic trackball signal processing method and system. The method comprises the following steps of: initializing the system, detecting action of a trackball, and generating two groups and four paths of sinusoidal signals; converting the two groups and four paths of sinusoidal signals into two groups and four paths of square signals; judging whether each path of sinusoidal signal is completely converted into the square signal; recording the states of the square signals and determining the motion direction of the trackball when each path of sinusoidal signal is completely converted into the square signal, wherein the states of the square signals comprise high-level states and low-level states; and outputting the motion direction information data of the trackball to an upper computer, and controlling a cursor to make corresponding motion. According to the ultrasonic trackball signal processing method and system, the signal acquisition stability is guaranteed, and the problems of wrong signal judgment and instability of the output trackball signal are solved; and meanwhile, the extra pulse can be effectively prevented, and the problems that the trackball signal is insensitive and the system is easily halted are solved.

Description

A kind of ultrasonic trace ball signal processing method and system
Technical field
The present invention relates to a kind of trace ball signal processing method and system, relate in particular to a kind of trace ball signal processing method and system that applies on the diasonograph.
Background technology
At present, trace ball is used in armarium in a large number, like diasonograph, Doppler through the cranium appearance etc.; Particularly in diasonograph, trace ball has and important effect as indispensable external equipment, therefore has function-stable, and the well behaved trace ball of signal processing is that diasonograph carries out the basis of image manipulation accurately.
And at present, the trace ball signal processing circuit generally comprises the generation of signal and the collection two large divisions of signal; What existing trace ball signal generating circuit used is pick off, directly signal is exported; What partly use in signals collecting is the circuit of the integrated chip that adds.Fig. 1 is the signal acquisition circuit schematic diagram of prior art; The work process of existing trace ball circuit system is described below: when system starts working with reference to Fig. 1; Supply module 13 is that signal generation unit 11 receives and output unit 12 power supplies with signal; Signal generation unit 11 produces four road signals, i.e. OUTA1 road signal, OUTA2 road signal, OUTB1 road signal and OUTB2 road signal, and signal receives four road signals that receive signal generation units 11 with output unit 12; Receive and output unit 12 output two paths of signals, i.e. DATA road signal and CLCK road signals by signal then; Then DATA road signal and CLCK road signal are connected to host computer, system gets into duty.This signal receives with the function of output unit 12 and accomplishes through integrated chip; The model of common integrated chip comprises TP8452, EC3581 and EM78M612 etc., and its circuit is fixed, so function also is fixed, generally just signal is gathered, and directly signal is exported then.The integrated chip of the middle use of prior art causes track ball function single, and capacity of resisting disturbance is also poor, and in circuit, signal is not handled, and can cause the trace ball operation insensitive like this.But to the function of trace ball, demand is more and more at present, and these integrated chips have satisfied not new demand; And the trace ball poor anti jamming capability of use integrated chip, the deadlock phenomenon appears in unstable properties easily.
Summary of the invention
The technical problem that the present invention solves is: make up a kind of ultrasonic trace ball signal processing method and system.
Technical scheme of the present invention is: a kind of ultrasonic trace ball signal processing method may further comprise the steps: system initialization, the action of trace ball is detected, and produce two groups of four-way sinusoidal signals; Convert two groups of four-way sinusoidal signals into two group of four road square-wave signal; After converting sinusoidal signal into square-wave signal, judge whether to convert each road sinusoidal signal into square-wave signal fully, if do not convert each road sinusoidal signal into square-wave signal fully, then be back to the conversion of signals step; If each road sinusoidal signal converts square-wave signal fully into, then the state to square-wave signal carries out record, confirms the direction of motion of trace ball, and wherein the state of square-wave signal comprises high level state and low level state; Export the direction of motion information data of trace ball to host computer, and the control cursor is made corresponding mobile.
Further technical scheme of the present invention is: when detecting trace ball action is arranged, then produce two groups of four-way sinusoidal signals; When not detecting trace ball action is arranged, then continue the action of trace ball is detected.
Further technical scheme of the present invention is: the direction of motion of confirming trace ball comprises the state that detects four road square-wave signals; Confirm the direction of motion of trace ball according to the state of four road square-wave signals; Wherein two group of four road square-wave signal comprises X group signal and Y group signal; And X group signal comprises X1 road signal and X2 road signal, and Y group signal comprises Y1 road signal and Y2 road signal; X1 road signal deciding trace ball is moved to X axle negative direction to motion of X axle positive direction and X2 road signal deciding trace ball; Y1 road signal deciding trace ball is moved to Y axle negative direction to motion of Y axle positive direction and Y2 road signal deciding trace ball; According to the X1 road signal that detects and the state of X2 road signal; Confirm the direction of motion of trace ball,, confirm the direction of motion of trace ball at the Y axle according to the Y1 road signal that detects and the state of Y2 road signal at the X axle.
Further technical scheme of the present invention is: when confirming the state of square-wave signal, voltage and the threshold voltage of sinusoidal signal compared, when the voltage of sinusoidal signal during greater than threshold voltage, then the state of the square-wave signal of sinusoidal signal correspondence is a high level state; When the voltage of sinusoidal signal during less than threshold voltage, then the state of the corresponding square-wave signal of sinusoidal signal is a low level state.
Technical scheme of the present invention is: make up a kind of ultrasonic trace ball signal processing system, comprise signal generating circuit unit, conversion of signals pre-process circuit unit, conversion of signals judging unit, signal processing circuit unit; Said signal generating circuit unit is used to detect the action of trace ball, and produces the trace ball actuating signal according to the action of detected trace ball, and wherein the trace ball actuating signal is two groups of four-way sinusoidal signals; Said conversion of signals pre-process circuit unit links to each other with said signal generating circuit unit, is used for converting said two groups of four-way sinusoidal signals into two group of four road square-wave signal; Said conversion of signals judging unit links to each other with said conversion of signals pre-process circuit unit, is used to judge whether convert each road sinusoidal signal into square-wave signal fully; Said signal processing circuit unit links to each other with said conversion of signals pre-process circuit unit; Be used for when judgement has converted each road sinusoidal signal into square-wave signal fully; State to square-wave signal carries out record, and confirms the direction of motion of trace ball according to the state of the square-wave signal that writes down.
Further technical scheme of the present invention is: said sinusoidal signal is an analogue signal, and said square-wave signal is a digital signal.
Further technical scheme of the present invention is: said signal generating circuit unit comprises at least four passages; These four passages comprise OUTA1, OUTA2, OUTB1 and OUTB2; Said conversion of signals pre-process circuit unit comprises that at least four input pins are connected with said signal generating circuit unit; Wherein four input pins comprise pin one A, pin two A, pin 3A and pin 4A, and said passage OUTA1 is connected with input pin 1A, and passage OUTA2 is connected with input pin 2A; Passage OUTB1 is connected with input pin 3A, and passage OUTB2 is connected with input pin 4A; Said sinusoidal signal inputs to unitary four pins of conversion of signals pre-process circuit through unitary four passages of signal generating circuit.
Further technical scheme of the present invention is: said conversion of signals pretreatment unit also comprises at least four output pins, and said four output pins comprise pin one Y, pin two Y, pin 3Y and pin 4Y; This pin one Y links to each other with resistance R 1 and capacitor C 1; Link to each other with the X1 pin of signal processing circuit unit then, this pin two Y links to each other with resistance R 2 and capacitor C 2, links to each other with the X2 pin of signal processing circuit unit then; This pin 3Y links to each other with resistance R 3 and capacitor C 3; Link to each other with the X3 pin of signal processing circuit unit then, this pin 4Y links to each other with resistance R 4 and capacitor C 4, links to each other with the X4 pin of signal processing circuit unit then; Said capacitor C 1, capacitor C 2, capacitor C 3 and capacitor C 4 ground connection; Said square-wave signal is failed the people to signal processing circuit unit through output pin.
Further technical scheme of the present invention is: said signal processing circuit unit receives square-wave signal; Square-wave signal is handled; Determine the direction of motion of trace ball, and the direction of motion information of trace ball is exported through the DATA passage of signal processing circuit unit; Said conversion of signals pre-process circuit unit and the equal ground connection of signal processing circuit unit.
Further technical scheme of the present invention is: said conversion of signals pre-process circuit unit can adopt with door, not gate and NOR gate circuit in any one; Said signal processing circuit unit can adopt in single-chip microcomputer, FPGA, CPLD and the DSP circuit any one.
Technique effect of the present invention is: make up a kind of ultrasonic trace ball signal processing method and system; Through the analog sinus signals that produces being converted into the square-wave signal of numeral; Because digital signal is identified than analogue signal more easily; So can guarantee the stability of signals collecting, reduce the problem of trace ball jitter of erroneous judgement and the output of signal; Simultaneously in the trace ball signal processing circuit, increased electric capacity, can effectively prevent extra pulse, solved that the trace ball signal is insensitive, the problem of easy deadlock; Secondly to have a cost lower for the ultrasonic trace ball signal processing circuit of the present invention, and versatility is stronger, functional advantage such as abundant.
Description of drawings
Fig. 1 is existing ultrasonic trace ball signal processing system sketch map.
Fig. 2 is a kind of ultrasonic trace ball signal processing method flow chart of the present invention.
Fig. 3 is a kind of ultrasonic trace ball signal processing system sketch map of the present invention.
Fig. 4 is a kind of ultrasonic trace ball signal processing system electrical block diagram of the present invention.
The specific embodiment
Below in conjunction with specific embodiment, technical scheme of the present invention is further specified.
The present invention provides a kind of ultrasonic trace ball method for processing signals; Concrete grammar is: at first compuscan is powered on and system initialization; Action detects to trace ball by photoelectric sensor; When detecting trace ball action is arranged, then the actuating signal with trace ball receives, and this actuating signal is carried out pretreatment; Wherein the actuating signal of this trace ball is two groups of sinusoidal signals of totally four tunnel, and this four-way sinusoidal signal characterizes four actions of trace ball, promptly trace ball move upward, move downward, to left movement, move right corresponding respectively corresponding signal; Wherein the actuating signal of trace ball being carried out pretreatment comprises and converts sinusoidal signal into square-wave signal; Then this square-wave signal is handled, confirmed the direction of motion of trace ball, according to the direction of motion of the trace ball of confirming the motion of trace ball is controlled simultaneously.
As shown in Figure 2, the specific embodiment of the present invention is: a kind of ultrasonic trace ball signal processing method is provided, comprises the steps:
Step 201: system initialization produces trace ball action sinusoidal signal;
Detailed process is: compuscan is powered on, to each module correspondent voltage is provided; Photoelectric sensor detects the action of trace ball; When photoelectric sensor detects trace ball action is arranged, produce two groups of four-way sinusoidal signals; Be OUTA data set and OUTB data set; Wherein OUTA group data are to characterize the direction of motion of trace ball at the X axle, and then OUTA group data comprise two data OUTA1 and OUTA2, and this OUTA1 representes left and move right, and OUTA2 representes to the right and to left movement; OUTB group data are to characterize the direction of motion of trace ball at the Y axle, and then OUTB group data comprise two data OUTB1 and OUTB2, and then OUTB1 representes to move upward or move downward, and OUTB2 representes to move downward or move upward; Wherein these two groups of four-way sinusoidal signals are analogue signal.
Step 202: convert sinusoidal signal into square-wave signal;
Detailed process is: after producing two groups of four-way sinusoidal signals, convert these two groups of four-way sinusoidal signals into four road square-wave signals, wherein this square-wave signal is a digital signal, that is to say, this mimic sinusoidal signal is converted into the square-wave signal of numeral; I.e. four tunnel analog sinus signals OUTA1 to producing, OUTA2, OUTB1, OUTB2 carries out pretreatment, and signal is carried out analog digital conversion, and is square-wave signal with the sinusoidal signal conversion process;
Step 203: whether convert square-wave signal fully into;
Detailed process is: after converting sinusoidal signal into square-wave signal, need this moment to judge that whether sinusoidal signal converts square-wave signal fully into, may exist problems such as corresponding disappearance or distorted signals because of conversion of signals; When sinusoidal signal converted square-wave signal into fully, then the state to four road square-wave signals carried out record; When sinusoidal signal does not convert square-wave signal into fully, then be back to step 202, continue the offset of sinusoidal signal and change pretreatment, convert square-wave signal fully into until sinusoidal signal.
Step 204: the direction of motion of confirming trace ball;
Detailed process is: after converting sinusoidal signal into square-wave signal, need detect and write down corresponding state to four road square-wave signals; Wherein when each road square-wave signal is detected, have only high level and low level two states, so during the action that each trace ball occurs, all can write down one of four states;
After the state to each road square-wave signal writes down, need to judge the direction of motion of trace ball; Need be through calculating the direction of motion of confirming trace ball; Confirm that the direction of trace ball accomplished by processor; Wherein, This four road square-wave signal is connected with four IO mouths of processor; The input and output mode of four IO mouths is configured to input pattern, detects the state of four road square-wave signals then, when detecting; The detected state of each IO mouth has only two kinds, high level state (for example 3.3 volts of voltages) and low level state (for example 0 volt of voltage).The state of processor for recording four-way sinusoidal signal, and handle.Wherein, four square-wave signals are divided into two groups of data, i.e. X group data and Y group data; And X group data have determined that trace ball is to X axle positive direction or negative direction motion; That is to say and move right or to left movement; Represent to represent to move with X1 to X axle negative direction to motion of X axle positive direction and X2; And Y group data have determined that trace ball is to Y axle positive direction or negative direction motion, that is to say to move upward or move downward, and represent to represent to move to Y axle negative direction to motion of Y axle positive direction and Y2 with Y1; If X1>X2, explain that X1 is a high level, X2 is a low level, then this moment, trace ball was moved to X axle positive direction; If < X2 explains that X1 is a low level to X1, and X2 is a high level, and then this moment, trace ball was moved to X axle negative direction; Same mode, we can confirm the direction of motion of trace ball on the Y axle; More than, can confirm the motion conditions of trace ball in X axle and Y direction through processing to X group data and Y group data; Thereby finally confirm the direction of motion of trace ball.
Step 205: output;
Detailed process is: after the direction of motion of having confirmed trace ball, export the direction of motion information data of trace ball to host computer, after host computer received data, the cursor on the control screen was made corresponding mobile.
Of Fig. 3; The specific embodiment of the present invention is: make up a kind of ultrasonic trace ball signal processing system, comprise signal generating circuit unit 31, conversion of signals pre-process circuit unit 32, conversion of signals judging unit 33, signal processing circuit unit 34 and power supply circuits 35.Said signal generating circuit unit 31 is used to detect the action of trace ball, and produces the trace ball actuating signal according to the action of detected trace ball; Wherein this actuating signal is a sinusoidal signal, and is analogue signal; And the action of trace ball comprise move upward, move downward, to left movement and move right, therefore have two groups altogether four-way sinusoidal signals characterize the directions of motion of trace balls; Said conversion of signals pre-process circuit unit 32 is used for converting this sinusoidal signal into square-wave signal, and wherein this square-wave signal is a digital signal, and is often not accurate enough to the detection of analogue signal because of processor, detects and often can make comparatively accurately digital signal.Said conversion of signals judging unit 33 is used to judge whether convert sinusoidal signal into square-wave signal fully, and when sinusoidal signal converted square-wave signal into fully, then the state to four road square-wave signals carried out record; When sinusoidal signal does not convert square-wave signal into fully, then send a command to conversion of signals pre-process circuit unit 32, square-wave signal is changed fully with sinusoidal signal in control signal conversion pre-process circuit unit 32 then; The state of each road square-wave signal of wherein said four road square-wave signals includes high level and low level; Said signal processing circuit unit 34 is used for confirming according to the state of four road square-wave signals of record the direction of motion of trace ball; Wherein, four square-wave signals are divided into two groups of data, i.e. X group data and Y group data; And X group data have determined that trace ball is to X axle positive direction or negative direction motion; That is to say and move right or to left movement; Represent to represent to move with X1 to X axle negative direction to motion of X axle positive direction and X2; And Y group data have determined that trace ball is to Y axle positive direction or negative direction motion, that is to say to move upward or move downward, and represent to represent to move to Y axle negative direction to motion of Y axle positive direction and Y2 with Y1; If X1>X2, explain that X1 is a high level, X2 is a low level, then this moment, trace ball was moved to X axle positive direction; If < X2 explains that X1 is a low level to X1, and X2 is a high level, and then this moment, trace ball was moved to X axle negative direction; Same mode, we can confirm the direction of motion of trace ball on the Y axle; More than, can confirm the motion conditions of trace ball in X axle and Y direction through processing to X group data and Y group data; Thereby finally confirm the direction of motion of trace ball; After the direction of motion of having confirmed trace ball, export the direction of motion information data of trace ball to host computer, make corresponding mobile by the cursor on the PC control screen then.Said power supply unit 35 is used for each unit is supplied power, so that those unit operate as normal.
As shown in Figure 4, be the circuit diagram of the practical implementation trace ball signal processing of a kind of ultrasonic trace ball signal processing system of the present invention; Comprising: signal generating circuit 41, conversion of signals pre-process circuit 42 and signal processing circuit 43;
Wherein signal generating circuit 41 can adopt but be not limited to the chip of EE_SX1131, RPI_151 or ST230C model, also comprises the peripheral circuit (not shown) that matches with signal generating circuit, and this peripheral circuit mainly comprises resistance etc.Said conversion of signals pre-process circuit 42 can adopt with gate circuits such as door, not gate, XOR gate in any one.Said conversion of signals pre-process circuit 42 can adopt but be not limited to the chip of signals such as 74CS04, SN7404 or 74HC04, wherein also comprises the peripheral circuit that matches with said conversion of signals pre-process circuit 42, mainly comprises resistance and electric capacity; Signal processing circuit 43 can adopt when being not limited to single-chip microcomputer, FPGA, CPLD and DSP etc., wherein also comprises the peripheral circuit that matches with signal processing circuit 43.
As shown in Figure 4, the circuit diagram of this embodiment practical implementation trace ball signal processing; After system powers on; Signal generating circuit 41 is started working; At first detect the action of trace ball, when detecting trace ball action is arranged, produce the actuating signal of trace ball; Promptly produce four-way sinusoidal signal, this four-way sinusoidal signal exports conversion of signals pre-process circuit 42 to by four passages of the OUTA1 in the signal generating circuit, OUTA2, OUTB1 and OUTB2; The 1A of conversion of signals pre-process circuit 42,2A, 3A and 4A pin receive these four sinusoidal signals then, and promptly these four pins are input pin; Wherein the OUTA1 passage links to each other with the 1A pin, and the OUTA2 passage links to each other with the 2A pin, and the OUTB1 pin links to each other with the 3A pin, and the OUTB2 passage links to each other with the 4A pin; After having received this four-way sinusoidal signal, conversion of signals pre-process circuit 42 converts this four-way sinusoidal signal into corresponding four road square-wave signals; Wherein this four road square-wave signal has identical operation principle; The 42 inner enforcements of conversion of signals pre-process circuit are comparator circuit (not shown)s with the circuit essence that sinusoidal signal converts square-wave signal into; A threshold voltage vt is wherein arranged in this comparator circuit; Voltage and this threshold voltage vt of the sinusoidal signal of importing are compared; When the voltage of input sinusoidal signal during greater than this threshold voltage; The output signal is low level (like 0V), and when the voltage of input sinusoidal signal during less than this threshold voltage, the output signal is high level (like 3.3V); When the voltage of input sinusoidal signal during greater than this threshold voltage, the output signal is low level (like 0V); Because this conversion of signals pre-process circuit 42 only produces high-low level, therefore produced square-wave signal, be about to sinusoidal signal and convert square-wave signal into; Then the high-low level that produces is exported by 1Y, 2Y, 3Y and 4Y pin, promptly these four pins are output pin; Be that example describes specifically with one road signal; The voltage of the sinusoidal signal that receives when the 1A pin is during less than threshold voltage vt; Pin one Y output this moment high level then, the voltage of the sinusoidal signal that receives when the 1A pin be during greater than threshold voltage vt, then this moment pin one Y output low level.Therefore can know just have only high level and low level two states from the signal of conversion of signals pre-process circuit 42 outputs, be exactly our needed square-wave signal; Pass through resistance R 1, R2, R3 and R4 respectively from four road square-wave signals of conversion of signals pre-process circuit 42 outputs, these four resistance mainly are that signal is carried out current limliting, can guarantee the needs of the amplitude coincident circuit of electric current like this; Can not cause controller being burnt if do not carry out current limliting person because of electric current is excessive.Be specially; After the pin one Y process resistance R 1 and capacitor C 1 of conversion of signals pre-process circuit 42; Be connected to the X1 pin of signal processing circuit 43, after the pin two Y process resistance R 2 and capacitor C 2 of conversion of signals pre-process circuit 42, be connected to the X2 pin of signal processing circuit 43; After the pin 3Y process resistance R 3 and capacitor C 3 of conversion of signals pre-process circuit 42; Be connected to the Y1 pin of signal processing circuit 43, after the pin 4Y process resistance R 4 and capacitor C 4 of conversion of signals pre-process circuit 42, be connected to the Y2 pin of signal processing circuit 43.Wherein with the capacity earth that connects on each road signalling channel; Can effectively prevent the overshoot of stop signal like this, thereby effectively avoid occurring the phenomenon of extra pulse, wherein the extra pulse phenomenon can cause trace ball the deadlock phenomenon to occur.And the selection of electric capacity is also very important, and the appearance value of electric capacity can not be too big, can not be too little; Capacitance too conference causes from conversion of signals pre-process circuit 42 the top distortion of the square-wave signal of output; And the phenomenon that the too little meeting of capacitance causes effectively preventing extra pulse produces, promptly can't filtering extra pulse signal.The appearance value of the electric capacity of wherein selecting in this circuit is preferably 0.01uF, and other capacitances that are fit to also are fine certainly.After signal processing circuit 43 had received this four road square-wave signal, 43 pairs of these four road square-wave signals of signal processing circuit were handled, and calculated the direction of motion of confirming trace ball; Then by the direction of motion information of the DATA passage output trajectory ball of signal processing circuit; Gather the direction of motion information of this trace ball by the peripheral circuit of signal processing circuit, and the direction of motion information of this trace ball is preserved; Direction of motion information with this trace ball exports host computer to then, is accomplished by host computer the motion of trace ball is controlled; The conversion of signals pre-process circuit 42 of this circuit wherein; The conversion of signals pretreatment is not accomplished through AD converter; But directly accomplish conversion of signals pretreatedly through the IO mouth of Configuration Control Unit, and be input pattern through configuration IO mouth, coming detection signal is high level or low level; Just mimic sinusoidal signal is converted into the square-wave signal of numeral.When controller when detecting four road signals, just can judge signal accurately is high level state or low level state.
The present invention provides a kind of ultrasonic trace ball signal processing method and system; Through the analog sinus signals that produces being converted into the square-wave signal of numeral; Because digital signal is identified than analogue signal more easily; So can guarantee the stability of signals collecting, reduce the problem of trace ball jitter of erroneous judgement and the output of signal; Simultaneously in the trace ball signal processing circuit, increased electric capacity, can effectively prevent extra pulse, solved that the trace ball signal is insensitive, the problem of easy deadlock; Secondly to have a cost lower for the ultrasonic trace ball signal processing circuit of the present invention, and versatility is stronger, functional advantage such as abundant; Solved the single problem of track ball function, because along with the continuous development of medical apparatus and instruments, the function to trace ball has increasing demand clinically.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.

Claims (10)

1. a ultrasonic trace ball signal processing method is characterized in that, may further comprise the steps:
System initialization produces trace ball action sinusoidal signal: system initialization, the action of trace ball is detected, and produce two groups of four-way sinusoidal signals;
Conversion of signals: convert two groups of four-way sinusoidal signals into two group of four road square-wave signal;
Judge whether to convert into fully square-wave signal: after converting sinusoidal signal into square-wave signal, judge whether to convert each road sinusoidal signal into square-wave signal fully,, then be back to the conversion of signals step if do not convert each road sinusoidal signal into square-wave signal fully;
Confirm the direction of motion of trace ball: if each road sinusoidal signal converts square-wave signal fully into, then the state to square-wave signal carries out record, confirms the direction of motion of trace ball, and wherein the state of square-wave signal comprises high level state and low level state;
Signal output: export the direction of motion information data of trace ball to host computer, and the control cursor is made corresponding mobile.
2. according to the said a kind of ultrasonic trace ball signal processing method of claim 1, it is characterized in that, when detecting trace ball action is arranged, then produce two groups of four-way sinusoidal signals; When not detecting trace ball action is arranged, then continue the action of trace ball is detected.
3. according to the said a kind of ultrasonic trace ball signal processing method of claim 2; It is characterized in that; The direction of motion of confirming trace ball comprises the state that detects four road square-wave signals, confirms the direction of motion of trace ball according to the state of four road square-wave signals, and wherein two group of four road square-wave signal comprises that X group signal organizes signal with Y; And X group signal comprises X1 road signal and X2 road signal, and Y group signal comprises Y1 road signal and Y2 road signal; X1 road signal deciding trace ball is moved to X axle negative direction to motion of X axle positive direction and X2 road signal deciding trace ball; Y1 road signal deciding trace ball is moved to Y axle negative direction to motion of Y axle positive direction and Y2 road signal deciding trace ball; According to the X1 road signal that detects and the state of X2 road signal; Confirm the direction of motion of trace ball,, confirm the direction of motion of trace ball at the Y axle according to the Y1 road signal that detects and the state of Y2 road signal at the X axle.
4. according to the said a kind of ultrasonic trace ball signal processing method of claim 1; It is characterized in that; When confirming the state of square-wave signal; The voltage and the threshold voltage of sinusoidal signal are compared, and when the voltage of sinusoidal signal during greater than threshold voltage, then the state of the corresponding square-wave signal of sinusoidal signal is a high level state; When the voltage of sinusoidal signal during less than threshold voltage, then the state of the corresponding square-wave signal of sinusoidal signal is a low level state.
5. a ultrasonic trace ball signal processing system is characterized in that, comprises signal generating circuit unit, conversion of signals pre-process circuit unit, conversion of signals judging unit, signal processing circuit unit;
Said signal generating circuit unit is used to detect the action of trace ball, and produces the trace ball actuating signal according to the action of detected trace ball, and wherein the trace ball actuating signal is two groups of four-way sinusoidal signals;
Said conversion of signals pre-process circuit unit links to each other with said signal generating circuit unit, is used for converting said two groups of four-way sinusoidal signals into two group of four road square-wave signal;
Said conversion of signals judging unit links to each other with said conversion of signals pre-process circuit unit, is used to judge whether convert each road sinusoidal signal into square-wave signal fully;
Said signal processing circuit unit links to each other with said conversion of signals pre-process circuit unit; Be used for when judgement has converted each road sinusoidal signal into square-wave signal fully; State to square-wave signal carries out record, and confirms the direction of motion of trace ball according to the state of the square-wave signal that writes down.
6. according to the said a kind of ultrasonic trace ball signal processing system of claim 5, it is characterized in that said sinusoidal signal is an analogue signal, said square-wave signal is a digital signal.
7. according to the said a kind of ultrasonic trace ball signal processing system of claim 6; It is characterized in that said signal generating circuit unit comprises at least four passages, these four passages comprise OUTA1, OUTA2, OUTB1 and OUTB2; Said conversion of signals pre-process circuit unit comprises that at least four input pins are connected with said signal generating circuit unit; Wherein four input pins comprise pin one A, pin two A, pin 3A and pin 4A, and said passage OUTA1 is connected with input pin 1A, and passage OUTA2 is connected with input pin 2A; Passage OUTB1 is connected with input pin 3A, and passage OUTB2 is connected with input pin 4A; Said sinusoidal signal inputs to unitary four pins of conversion of signals pre-process circuit through unitary four passages of signal generating circuit.
8. according to the said a kind of ultrasonic trace ball signal processing system of claim 7, it is characterized in that said conversion of signals pretreatment unit also comprises at least four output pins, said four output pins comprise pin one Y, pin two Y, pin 3Y and pin 4Y; This pin one Y links to each other with resistance R 1 and capacitor C 1; Link to each other with the X1 pin of signal processing circuit unit then, this pin two Y links to each other with resistance R 2 and capacitor C 2, links to each other with the X2 pin of signal processing circuit unit then; This pin 3Y links to each other with resistance R 3 and capacitor C 3; Link to each other with the X3 pin of signal processing circuit unit then, this pin 4Y links to each other with resistance R 4 and capacitor C 4, links to each other with the X4 pin of signal processing circuit unit then; Said capacitor C 1, capacitor C 2, capacitor C 3 and capacitor C 4 ground connection; Said square-wave signal is failed the people to signal processing circuit unit through output pin.
9. said according to Claim 8 a kind of ultrasonic trace ball signal processing system; It is characterized in that; Said signal processing circuit unit receives square-wave signal; Square-wave signal is handled, determined the direction of motion of trace ball, and the direction of motion information of trace ball is exported through the DATA passage of signal processing circuit unit; Said conversion of signals pre-process circuit unit and the equal ground connection of signal processing circuit unit.
10. according to the said a kind of ultrasonic trace ball signal processing system of claim 5, it is characterized in that, said conversion of signals pre-process circuit unit can adopt with door, not gate and NOR gate circuit in any one; Said signal processing circuit unit can adopt in single-chip microcomputer, FPGA, CPLD and the DSP circuit any one.
CN201210155346.XA 2012-05-18 2012-05-18 Ultrasonic trackball signal processing method and system Active CN102727253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210155346.XA CN102727253B (en) 2012-05-18 2012-05-18 Ultrasonic trackball signal processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210155346.XA CN102727253B (en) 2012-05-18 2012-05-18 Ultrasonic trackball signal processing method and system

Publications (2)

Publication Number Publication Date
CN102727253A true CN102727253A (en) 2012-10-17
CN102727253B CN102727253B (en) 2014-02-12

Family

ID=46984056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210155346.XA Active CN102727253B (en) 2012-05-18 2012-05-18 Ultrasonic trackball signal processing method and system

Country Status (1)

Country Link
CN (1) CN102727253B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268161A (en) * 2013-05-31 2013-08-28 深圳市理邦精密仪器股份有限公司 Trackball, data transmission method and data transmission device for medical equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6312381B1 (en) * 1999-09-14 2001-11-06 Acuson Corporation Medical diagnostic ultrasound system and method
US6468213B1 (en) * 1999-09-14 2002-10-22 Ecton, Inc. Medical diagnostic ultrasound system and method
JP2008084248A (en) * 2006-09-29 2008-04-10 Hitachi Medical Corp Information processor and display method thereof
CN102004597A (en) * 2009-09-02 2011-04-06 中国移动通信集团公司 Terminal and method for operating interface of terminal
CN102221913A (en) * 2011-07-05 2011-10-19 深圳市科羽科技发展有限公司 Track ball device as well as implementation method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6312381B1 (en) * 1999-09-14 2001-11-06 Acuson Corporation Medical diagnostic ultrasound system and method
US6468213B1 (en) * 1999-09-14 2002-10-22 Ecton, Inc. Medical diagnostic ultrasound system and method
JP2008084248A (en) * 2006-09-29 2008-04-10 Hitachi Medical Corp Information processor and display method thereof
CN102004597A (en) * 2009-09-02 2011-04-06 中国移动通信集团公司 Terminal and method for operating interface of terminal
CN102221913A (en) * 2011-07-05 2011-10-19 深圳市科羽科技发展有限公司 Track ball device as well as implementation method and system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨耀模 等: "超声诊断仪轨迹球的修理", 《临床超声医学杂志》, vol. 8, no. 10, 31 October 2006 (2006-10-31), pages 618 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268161A (en) * 2013-05-31 2013-08-28 深圳市理邦精密仪器股份有限公司 Trackball, data transmission method and data transmission device for medical equipment
CN103268161B (en) * 2013-05-31 2016-10-05 深圳市理邦精密仪器股份有限公司 Trace ball, data transmission method for uplink and device for armarium

Also Published As

Publication number Publication date
CN102727253B (en) 2014-02-12

Similar Documents

Publication Publication Date Title
EP3036606B1 (en) Capacitive touch system
CN202171626U (en) Multi-point point-touching touch screen testing machine
CN102707321B (en) Receiving and collecting system and method for transient electromagnetic instrument
CN105954662A (en) Power diode reverse breakdown voltage grading test apparatus
CN104049554A (en) FPGA-based multifunctional input-output module and input-output method
CN105871381B (en) Industrial bus terminal realizing circuit capable of supplying power and decoding method thereof
CN101915727B (en) FPGA-based particle detection statistical system and method
CN104951157A (en) Capacitive touch device and method for detecting active pen and object
WO2020034123A1 (en) Touch control chip, electronic device, and touch control method
CN102727253A (en) Ultrasonic trackball signal processing method and system
CN103793287B (en) Method and system for capturing analog signal cycles
CN104463057A (en) Magnetic card decoding method and device
CN204392210U (en) A kind of code signal change-over circuit
CN104122814A (en) Switching volume acquisition and conversion detection circuit and detection method thereof
CN201607723U (en) Memory write-protection circuit
CN103317513A (en) Networked robot control system based on CPUs
CN101901085A (en) Method for enhancing stability of infrared touch system
CN102288298B (en) Detector simulator device
CN105987801B (en) The abnormal vibrations detection device and its method of a kind of numerically-controlled machine tool
CN204010134U (en) A kind of circuit of realizing magnetic stripe card decoding
KR101033316B1 (en) Capacitive touch detect system
CN102541267B (en) Matrix keyboard circuit, scanning method and device, processor and handheld terminal
CN107329879A (en) Voltage monitoring circuit and voltage monitoring method
CN107132918B (en) Head-control somatosensory mouse
CN205899298U (en) Four ways analog input device based on CIB BUS bus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant