Background technology
Along with the development of multimedia information technology, touch-screen is owing to its good man-machine interaction is rapidly developed, and is widely used in Industry Control, multimedia teaching, electronic game, the fields such as requesting song and digital home of ordering dishes.
According to realizing principle, touch-screen roughly can be divided into: resistive touch screen, capacitive touch screen, infrared touch panel and surface wave touch-screens etc., wherein therefore resistive touch screen has obtained using more widely because cost is lower and can detect the touch action of any object.Resistive touch screen is the complex thin film structure of multilayer, by one deck glass or organic glass as basic unit, its surface scribbles the transparency conducting layer of tin indium oxide (ITO), be stamped one deck outside surface cure process, smooth scratch resistant plastic layer on it, the inside surface of described plastic layer also scribbles one deck conductive layer (ITO or nickel gold), and a large amount of tiny septum pellucidums are arranged between two conductive layers, and they separate insulation from naming a person for a particular job.When finger or other foreign objects contact touch-screen, originally the two conductive layers of isolating mutually forms contact in the position, touch point, resistance changes, the correspondent voltage value also changes, produce the touch signal of X and Y both direction, be converted to through mould/number (A/D) and be sent to controller behind the digital pulse signal and handle.
Fig. 1 is the touch signal treating apparatus of touch-screen in the prior art, mainly comprise controller 101, its input signal is provided by touch signal detecting unit 100, the click action of 100 pairs of touch-screens of described touch signal detecting unit detects, and the generation detection signal, the detection signal of 101 pairs of inputs of described controller is handled accordingly.General, if described detection signal is significant level (as a logic high), then described controller 101 is judged to be click action with it, and operates accordingly, for example calculated touch location, call corresponding handling procedure etc.
But in fact, less when touch pressure in the use of resistive touch screen, when being in the critical conditions that triggers the edge, cause the instability of detection signal easily.Because the controller of prior art is often directly handled touch signal, therefore some unsure states can be judged to be " click " action, thereby make controller carry out corresponding handling procedure, cause maloperation.Fig. 2 shows the synoptic diagram of touch signal, and logic high is the significant level of touch signal among Fig. 2, among Fig. 2 in the Phase duration of logic high longer, be the click action in the reality; And Phase I is the short pulse of several successive, and Phase I is independent short pulse, and it is too small or touch the non-steady state of too short formation of duration all to belong to touch pressure, is not actual click action.But the controller of prior art tends to Phase I and Phase I are judged to be a plurality of and single click action respectively, causes maloperation.
About resistive touch screen, more detailed descriptions can also be 200810045812.2 Chinese patent application with reference to disclosed application number.
Summary of the invention
The problem that the present invention solves provides a kind of touch signal treating apparatus and disposal route, improves the accuracy of detection of touch signal, avoids maloperation.
For addressing the above problem, the invention provides a kind of touch signal treating apparatus, comprising:
Invalid signals filtering unit with the invalid signals filtering in the detection signal of input, produces and touches confirmation signal;
Signal processing unit receives described touch confirmation signal, and it is handled.
Optionally, described invalid signals filtering unit comprises: signal receiving end receives described detection signal; The significant level time detector detected the duration of the significant level of described detection signal, produce and touch confirmation signal, if the described duration more than or equal to Preset Time then for touching confirmation signal; Signal output part is exported described touch confirmation signal.
Optionally, described invalid signals filtering unit also comprises A/D converter, and the detection signal that described signal receiving end is received is converted into digital signal, and transfers to described significant level time detector.
Optionally, described significant level time detector is a timer, and the duration of the significant level of described detection signal is carried out timing.
Optionally, the significant level of described detection signal is logic high or logic low.
Optionally, described timer is a digital counter.
Optionally, described signal processing unit is a controller, and described touch confirmation signal is handled.
Optionally, described invalid signals filtering collection of units is formed in the described controller.
For addressing the above problem, the invention provides a kind of touch signal disposal route, comprising:
With the invalid signals filtering in the detection signal, produce and touch confirmation signal;
Described touch confirmation signal is handled.
Optionally, described filtering process comprises: the significant level duration to detection signal is carried out timing, if the duration of described significant level then is to touch confirmation signal more than or equal to Preset Time, otherwise for touching invalid signals.
Optionally, the significant level of described detection signal is logic high or logic low.
Compared with prior art, the present invention has the following advantages:
In the technique scheme, carry out pre-service,, improved the accuracy of detection of touch signal, avoided maloperation invalid signals filtering wherein by touch detection signal to input.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, the specific embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization under the situation of intension of the present invention.Therefore the present invention is not subjected to the restriction of following public embodiment.
In the prior art, controller is directly handled touching detection signal often, it is judged as the action of " click " or " not clicking ", but in fact, owing to reason such as touch pressure is less, tend to cause the instability of detection signal, thereby non-steady state is judged as click action, cause maloperation.The present invention at first carries out pre-service to touching detection signal, and the interference of filtering non-steady state has improved the accuracy of detection of touch signal, avoids maloperation.
Fig. 3 shows the synoptic diagram of the touch signal treating apparatus of embodiment of the present invention.As shown in Figure 3, mainly comprise invalid signals filtering unit 201 and signal processing unit 202.The input signal of described invalid signals filtering unit 201 is provided by touch signal detecting unit 200, the touch action of 200 pairs of touch-screens of described touch signal detecting unit detects, and generation relevant detection signal, described invalid signals filtering unit 201 will be after the invalid signals filtering in the detection signal produces and touches confirmation signal, and transfers to described signal processing unit 202 and handle.
Fig. 4 shows the synoptic diagram of the touch signal treating apparatus of the embodiment of the invention.As shown in Figure 4, mainly comprise invalid signals filtering unit 201 and signal processing unit 202.Wherein, described invalid signals filtering unit 201 comprises: signal receiving end 201a, receive the detection signal that touch signal detecting unit 200 generates, if described detection signal is a simulating signal, in a preferred embodiment, can increase a mould/number conversion unit at described signal receiving end 201a, as A/D converter, be digital pulse signal with analog signal conversion; Significant level time detector 201b detected the duration of the significant level of described detection signal, produce and touch confirmation signal, if the described duration more than or equal to Preset Time then for touching confirmation signal; Signal output part 201c exports described touch confirmation signal.Described signal processing unit 202 is in the present embodiment corresponding to controller 202a, identical with the controller 101 in the touch signal treating apparatus of prior art shown in Figure 1, its input signal is described touch confirmation signal, is click action then, operates accordingly; If the touch invalid signals does not then respond.Because the invalid signals in the described detection signal has removed after filtration and handled, so short undesired signal of duration can not transfer to described controller 202a, avoided maloperation.
Described significant level time detector 201b is used for timing is carried out in the touch detection signal pulse of input.When the detection signal of input was inactive level, described significant level time detector 201b resetted, and output signal is reset to the touch invalid signals; When the detection signal of input when being significant level, described significant level time detector 201b picks up counting, and output signal remains the touch invalid signals in the timing course, when timing to Preset Time, output touches confirmation signal.
The time detector of significant level described in present embodiment 201b is a timer, is preferably digital counter, as 8,16 or 32 s' digital counter.Described digital counter is the level triggers formula, begins counting when the input significant level, resets during the input inactive level.Need to prove, present embodiment can be by adjusting described digital counter the counting upper limit and the frequency of clock signal adjust described Preset Time, change described Preset Time according to actual needs, thus the interference of short touch detection signal pulse of filtering.In addition, because at different resistive touch screens, the duration of the significant level of the touch signal that " click " action is corresponding has difference, therefore, the concrete numerical value that does not have described Preset Time in the present embodiment limits, and can set according to actual needs in concrete the application.
Fig. 5 is the synoptic diagram of input/output signal of the touch signal treating apparatus of present embodiment.The top of Fig. 5 is input signal, the bottom is corresponding output signal, wherein, the significant level of the detection signal of input is a logic high, inactive level is a logic low, the significant level of output signal (promptly touching confirmation signal) is a logic high, and inactive level (promptly touching invalid signals) is a logic low.
As shown in Figure 5, the detection signal of importing before Phase IV is an inactive level, and described digital counter resets, and comprise that each meter digital is reset to zero, and output signal is reset to logic low.
Still with reference to figure 5, enter Phase IV, one short significant level pulse appears, described digital counter begins counting, output signal remains logic low in the process of counting, because the pulse width of significant level is less in the Phase IV, inactive level has not appearred in limited time also reaching on the default counting, described digital counter is resetted once more, each meter digital is reset to zero, and output signal still remains logic low, also comprises two other significant level pulse in the Phase IV, but because the duration is short, so output signal remains logic low.
Still with reference to figure 5, enter stage V, the detection signal of input is long significant level pulse, described digital counter begins counting, and to the default counting upper limit, output touches confirmation signal, it in the present embodiment logic high, after described controller receives described touch confirmation signal, it is judged to be " click " action, and operates accordingly.After the stage V, the detection signal of input is an inactive level, and described digital counter resets, and its output signal also is reset to logic low.
Still with reference to figure 5, enter stage VI, the detection signal of input is the short pulse of an independent significant level, and is similar with Phase IV, because its duration is shorter, and the digital counter and the no show counting upper limit, therefore, output signal remains logic low.
In the input detection signal shown in Figure 5, because the duration of pulse of the significant level of Phase IV and stage VI is shorter, therefore, the output signal of described digital counter correspondence all is to touch invalid signals, i.e. logic low.Accordingly, what described controller 202a received in this two stages all is to touch invalid signals, can not cause maloperation.
Need to prove, when counting up on the default counting, described digital counter prescribes a time limit in the present embodiment, if the detection signal of input still is a significant level, then the output signal of described digital counter still remains and touches confirmation signal (being logic high), detection signal until input is an inactive level, it is reset to touches invalid signals (being logic low).In this case, because the pulse width of described touch confirmation signal is bigger, described controller 202a is judged to be it " long pressing " action, and carries out corresponding operation.
The significant level of input and output signal shown in Figure 5 all is a logic high, inactive level all is a logic low, in other embodiments of the invention, the significant level of the detection signal of input can be logic low, and inactive level can be logic high.Accordingly, timing unit resets when detection signal is logic high, picks up counting during for logic low.In addition, the significant level of output signal also can change according to practical application, can be logic high as the touch invalid signals of exporting, and touching confirmation signal accordingly is logic low.
The invalid signals filtering unit 201 and the controller 202a of the touch signal treating apparatus in the present embodiment shown in Fig. 4 are separate, be equivalent to outside the controller of prior art, increase the hardware module of corresponding timing unit, in other embodiments of the invention, described invalid signals filtering unit 201, promptly significant level time detector 201b wherein can be integrated in the controller, improves the integrated level of system.
The foregoing description is to realize in other embodiments of the invention, can also carrying out corresponding pretreatment operation by the timer of software to touching the pre-service of detection signal by the hardware module that increases the touch signal treating apparatus before controller.Controller is after receiving the significant level that touches detection signal, do not judge at once and operate, but trigger a software timer duration of this significant level is carried out timing, only when width is more than or equal to Preset Time in its arteries and veins, just be judged to be click action, and operate accordingly.
Need to prove that the foregoing description is to be example with the resistive touch screen, it is touched detection signal carry out pre-service, prevent the interference that short labile pulse dashes.In fact, the technical program can also be used for the touch-screen of other types, as capacitive touch screen, infrared touch panel and surface wave touch-screens, its significant level pulse width that touches detection signal is carried out timing and invalid signals is carried out filtering, prevent the maloperation that short pulse causes of crossing that non-steady state causes.
In sum, technique scheme is by carrying out pre-service to touching detection signal, only just be judged to be the touch confirmation signal during more than or equal to Preset Time, thereby improved the accuracy of detection of touch signal, avoided maloperation when duration of the significant level of detection signal.
Though the present invention with preferred embodiment openly as above; but it is not to be used for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize the method and the technology contents of above-mentioned announcement that technical solution of the present invention is made possible change and modification; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment did, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.