Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of mobile phone touch screen anti-mistriggering circuit and method, solve the higher problem of mobile phone false triggering circuit cost in prior art.
In order to achieve the above object, the present invention has taked following technical scheme:
A kind of mobile phone touch screen anti-mistriggering circuit wherein, comprising:
For transmitting and receiving infrared ray, and produce the infrared detection module of corresponding control signal according to the ultrared frequency received;
For judge whether the microprocessor of release touch-screen according to described control signal;
The signal output part of described infrared detection module is connected with described microprocessor.
Described mobile phone touch screen anti-mistriggering circuit, wherein, described infrared detection module comprises:
Phase-locked loop circuit ATD for outputting oscillation signal;
For described oscillator signal is amplified and drives infrared-emitting diode to launch ultrared triode;
For launching ultrared infrared-emitting diode;
For receiving the ultrared infrared receiving diode of reflection unit reflection;
The operational amplifier amplified for the signal that infrared receiving diode is received,
Described phase-locked loop circuit ATD is also exported corresponding control signal for the frequency of the signal according to operational amplifier output;
The Rt port of the base stage of described triode and described phase-locked loop circuit ATD, collector electrode is connected with the negative pole of described infrared-emitting diode, grounded emitter; The positive pole of described infrared-emitting diode connects high level;
The plus earth of described infrared receiving diode, negative pole is connected with the reverse input end of described operational amplifier; The positive input ground connection of described operational amplifier, output is connected with the IN port of described phase-locked loop circuit ATD, and the OUT port of described phase-locked loop circuit ATD is connected with the signal output part of described infrared detection module.
Described mobile phone touch screen anti-mistriggering circuit, is characterized in that, described infrared detection module also comprises: for the oscillation module of the frequency of controlling described oscillator signal, described oscillation module comprises the first resistance and the first electric capacity; One end of described the first resistance is connected with the base stage of the Rt port of described phase-locked loop circuit ATD and triode, and the other end is connected with an end of described the first electric capacity, the other end ground connection of described the first electric capacity.
Described mobile phone touch screen anti-mistriggering circuit, is characterized in that, is provided with the second resistance between the reverse input end of described infrared receiving diode and operational amplifier.
A kind of implementation method of described mobile phone touch screen anti-mistriggering circuit, is characterized in that, described method comprises:
S1, by the infrared ray of infrared detection module emission predeterminated frequency;
S2, described infrared detection module detect whether receive infrared ray, as there is no the signal output part output high level of infrared detection module, if any carrying out step S3;
Whether S3, the ultrared frequency received by the judgement of described infrared detection module are predeterminated frequency, if be not the signal output part output high level of infrared detection module, and the signal output part output low level of infrared detection module in this way;
S4, described microprocessor receive the high level of signal output part output, release touch-screen, and mobile phone can normally use; Described microprocessor receives the low level of signal output part output, pins touch-screen, prevents the mobile phone false triggering.
Compared to prior art, a kind of mobile phone touch screen anti-mistriggering circuit provided by the invention and its implementation, wherein, described circuit comprises: for transmitting and receiving infrared ray, and according to the ultrared frequency received produce the infrared detection module of corresponding control signal, for judge whether the microprocessor of release touch-screen according to described control signal, the signal output part of described infrared detection module is connected with described microprocessor.The present invention detects principle according to infrared reflection, utilize the infrared detection module to receiver annex object detection, judge that whether mobile phone is in hand-held conversation, thereby make mobile phone in screen locking/non-screen lock state, its compatibility is good, anti-interference by force, cost is low, it is few to take the GPIO resource, has good marketing.
Embodiment
The invention provides a kind of mobile phone touch screen anti-mistriggering circuit and its implementation, clearer, clear and definite for making purpose of the present invention, technical scheme and effect, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, it is for the structured flowchart of a kind of mobile phone touch screen anti-mistriggering circuit of the present invention, as shown in the figure, it comprises infrared detection module 11, microprocessor 12, the signal output part of described infrared detection module 11 is connected (can be connected in the present embodiment, on the interrupt interface of microprocessor) with described microprocessor 12.
Wherein, described infrared detection module 11 is for transmitting and receiving infrared ray, and produces corresponding control signal according to the ultrared frequency received, and described microprocessor 12 is for judging whether the release touch-screen according to described control signal.
See also Fig. 2, the circuit theory diagrams of infrared detection module in its preferred embodiment that is mobile phone touch screen anti-mistriggering circuit of the present invention.As shown in the figure, in the present embodiment, described infrared detection module 11 comprises phase-locked loop circuit ATD U2, triode T1, infrared-emitting diode D1, infrared receiving diode D2 and operational amplifier U1, the base stage of described triode T1 is connected with the Rt port (resistance timed ports) of described phase-locked loop circuit ATD U2, collector electrode is connected with the negative pole of described infrared-emitting diode D1, grounded emitter; The positive pole of described infrared-emitting diode D1 connects high level; The plus earth of described infrared receiving diode D2, negative pole is connected with the reverse input end of described operational amplifier U1; The positive input ground connection of described operational amplifier U1, output is connected with the IN port (input port) of described phase-locked loop circuit ATD U2, and the OUT port (output port) of described phase-locked loop circuit ATD U2 is connected with the signal output part of described infrared detection module.
Described phase-locked loop circuit ATD U2 is for outputting oscillation signal, and triode T1 mainly plays amplification, and for described oscillator signal is amplified and drives infrared-emitting diode D1, described infrared-emitting diode D1 is for launching infrared ray; Described infrared receiving diode D2 and infrared-emitting diode D1 are a pair of infrared tube, for the infrared ray (being that the infrared ray that D1 sends passes through the infrared ray that the object back reflection is returned) that receives reflection, described phase-locked loop circuit ATD U2 also exports corresponding control signal (being high level or low level signal) for the frequency of the signal according to operational amplifier U1 output.
In the embodiment of the present invention, infrared detection module 11 also comprises the oscillation module of the frequency for controlling described oscillator signal, and described oscillation module comprises the first resistance R 6 and the first capacitor C 3; One end of described the first resistance R 6 is connected with the base stage of triode T1 with the Rt port of described phase-locked loop circuit ATD U2, and the other end is connected with an end of described the first capacitor C 3, the other end ground connection of described the first capacitor C 3.
Please continue to consult Fig. 2, be provided with the second resistance R 3 between the reverse input end of described infrared receiving diode D2 and operational amplifier U1, be in series with the second capacitor C 2 between the reverse input end of operational amplifier U1 and the second resistance R 3, and be in series with the 3rd resistance R 5 between the reverse input end of operational amplifier U1 and output.
In the embodiment of the present invention, described phase-locked loop circuit ATD U2 adopts the integrated chip that model is LM567, is provided with phase-locked loop, quadrature phase wave detector (quadrature phase detector device), amplifier and an output transistor in it, as shown in Figure 3.Comprise a current control oscillator (CC0), a phase discriminator and a feedback filter in phase-locked loop.The 1st pin of described phase-locked loop circuit ATD U2 is that output filter capacitor pin (Ofil), the 2nd pin are low-pass filtering output pin (Lfil), the 3rd pin is input pin (IN), the 4th pin is power pin (VDD), the 5th pin is regularly pin (Rt) of resistance, the 6th pin is regularly pin (Ct) of capacitance-resistance, the 7th pin is ground pin (GND), and the 8th pin is output pin (Out).
In the specific implementation, the 1st pin of described LM567 chip is by the 3rd capacitor C 5 ground connection, the 2nd pin is by the 4th capacitor C 6 ground connection, the 3rd pin is connected with the output of operational amplifier U1 by the 5th capacitor C 4, the 7th pin ground connection, the 8th pin is connected with the signal output part of described infrared detection module.
Refer to Fig. 2, Fig. 4 and Fig. 5, in specific implementation process, when the user uses mobile phone, during the close ear of receiver, D2 receives the infrared ray that people's ear (or face) reflects, as shown in Figure 4; Leave ear and work as mobile phone, while near receiver, there is no object, D2 does not receive the outwards infrared ray of emission of infrared-emitting diode D1, as shown in Figure 5.
Below the operation principle of mobile phone touch screen anti-mistriggering circuit of the present invention is elaborated, please in the lump with reference to top accompanying drawing 1,2,3,4,5:
In infrared detection module 11, control the centre frequency of phase-locked loop circuit ATD U2 by the first resistance R 6 and the first capacitor C 3.By the 5th pin outputting oscillation signal of phase-locked loop circuit ATD U2, this signal, after triode T1 amplifies, promotes the outside reflected infrared ray of infrared-emitting diode D1.Now, if the user uses mobile phone, during the close ear of receiver, D2 just can receive the infrared ray that people's ear (or face) reflects, then after amplifying, operational amplifier U1 inputs to the 3rd pin of phase-locked loop circuit ATD U2, the signal frequency received due to infrared receiving diode D2 is consistent with the frequency of infrared-emitting diode D1 output, and (centre frequency that is the signal frequency of infrared receiving diode D2 reception and phase-locked loop circuit ATD U2 internal voltage controlled oscillator is consistent, we claim that the frequency of infrared-emitting diode D1 output is predeterminated frequency, lower same), after processing, passes through phase-locked loop circuit ATD U2 internal circuit its 8th pin output low level, described low level is connected with described microprocessor 12 by signal output part, microprocessor (can be to pass through software) pins touch-screen, prevent the mobile phone false triggering.
In the embodiment of the present invention, when mobile phone leaves ear, while near receiver, there is no object, when D2 does not receive the infrared ray of the outside emission of infrared-emitting diode D1, the 3rd pin of described phase-locked loop circuit ATD U2 does not have the signal input, and now the 8th pin of phase-locked loop circuit ATD U2 is high level.And, when infrared receiving diode D2 receives infrared signal or the interference signal of other frequencies, because the centre frequency of itself and phase-locked loop circuit ATD U2 internal voltage controlled oscillator is inconsistent, make its 8th pin output high level after phase-locked loop circuit ATD U2 inter-process, stating high level is connected with described microprocessor 12 by signal output part, microprocessor release touch-screen, mobile phone can normally use.
Wherein, above-mentioned mobile phone touch screen anti-mistriggering circuit of the present invention, the embodiment of the present invention is the corresponding implementation method that a kind of mobile phone touch screen anti-mistriggering circuit of the present invention is provided also, and as shown in Figure 6, described method comprises:
S1, by the infrared ray of infrared detection module emission predeterminated frequency;
S2, described infrared detection module detect whether receive infrared ray, as there is no the signal output part output high level of infrared detection module, if any carrying out step S3;
Whether S3, the ultrared frequency received by the judgement of described infrared detection module are predeterminated frequency, if be not the signal output part output high level of infrared detection module, and the signal output part output low level of infrared detection module in this way;
S4, described microprocessor receive the high level of signal output part output, release touch-screen, and mobile phone can normally use; Described microprocessor receives the low level of signal output part output, pins touch-screen, prevents the mobile phone false triggering.
In sum, a kind of mobile phone touch screen anti-mistriggering circuit provided by the invention and its implementation, wherein, described circuit comprises for transmitting and receiving infrared ray, and according to the ultrared frequency received produce the infrared detection module of corresponding control signal, for judge whether the microprocessor of release touch-screen according to described control signal, the signal output part of described infrared detection module is connected with described microprocessor.The present invention detects principle according to infrared reflection, utilize the infrared detection module to receiver annex object detection, judge that whether mobile phone is in hand-held conversation, thereby make mobile phone in screen locking/non-screen lock state, its compatibility is good, anti-interference by force, cost is low, it is few to take the GPIO resource, has good marketing.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection range of the appended claim of the present invention.