Summary of the invention
Weak point in view of above-mentioned prior art the object of the present invention is to provide anti-error circuits for triggering of a kind of handset touch panel and method, solves mobile phone false triggering circuit cost problem of higher in the prior art.
In order to achieve the above object, the present invention has taked following technical scheme:
The anti-error circuits for triggering of a kind of handset touch panel wherein, comprising:
Be used to transmit and receive infrared ray, and produce the infrared detection module of control signal corresponding according to the ultrared frequency that receives;
Be used for judging whether the microprocessor of release touch-screen according to said control signal;
The signal output part of said infrared detection module is connected with said microprocessor.
The anti-error circuits for triggering of described handset touch panel, wherein, said infrared detection module comprises:
The phase-locked loop circuit ATD that is used for outputting oscillation signal;
Be used for that said oscillator signal is amplified the driving infrared-emitting diode and launch ultrared triode;
Be used to launch ultrared infrared-emitting diode;
Be used to receive the ultrared infrared receiving diode of reflection unit reflection;
The operational amplifier that the signal that is used for that infrared receiving diode is received amplifies,
Said phase-locked loop circuit ATD also is used for the frequency output control signal corresponding according to the signal of operational amplifier output;
The Rt port of the base stage of said triode and said phase-locked loop circuit ATD, collector electrode is connected grounded emitter with the negative pole of said infrared-emitting diode; The positive pole of said infrared-emitting diode connects high level;
The plus earth of said infrared receiving diode, negative pole is connected with the reverse input end of said operational amplifier; The positive input ground connection of said operational amplifier, output is connected with the IN port of said phase-locked loop circuit ATD, and the OUT port of said phase-locked loop circuit ATD is connected with the signal output part of said infrared detection module.
The anti-error circuits for triggering of described handset touch panel is characterized in that, said infrared detection module also comprises: be used to control the oscillation module of the frequency of said oscillator signal, said oscillation module comprises first resistance and first electric capacity; One end of said first resistance is connected with the base stage of the Rt port of said phase-locked loop circuit ATD and triode, and the other end is connected with an end of said first electric capacity, the other end ground connection of said first electric capacity.
The anti-error circuits for triggering of described handset touch panel is characterized in that, between the reverse input end of said infrared receiving diode and operational amplifier, are provided with second resistance.
The implementation method of the anti-error circuits for triggering of a kind of described handset touch panel is characterized in that described method comprises:
S1, by the infrared ray of infrared detection module emission predeterminated frequency;
S2, said infrared detection module detect whether receive infrared ray, as do not have the then signal output part output high level of infrared detection module, if any then carrying out step S3;
S3, judge by said infrared detection module whether the ultrared frequency that receives is predeterminated frequency, as not being the signal output part output high level of then infrared detection module, the signal output part output low level of infrared detection module then in this way;
S4, said microprocessor receive the high level of signal output part output, release touch-screen then, and mobile phone can normally use; Said microprocessor receives the low level of signal output part output, then pins touch-screen, prevents the mobile phone false triggering.
Compared to prior art; The anti-error circuits for triggering of a kind of handset touch panel provided by the invention and its implementation; Wherein, Said circuit comprises: be used to transmit and receive infrared ray, and according to the ultrared frequency that receives produce control signal corresponding the infrared detection module, be used for judging whether the microprocessor of release touch-screen according to said control signal, the signal output part of said infrared detection module is connected with said microprocessor.The present invention detects principle according to infrared reflection; Utilize the infrared detection module to receiver annex object detection; Judge whether mobile phone is in hand-held conversation; Thereby make mobile phone be in screen locking/non-screen locking state, its compatibility is good, anti-interference by force, cost is low, it is few to take the GPIO resource, has good marketing property.
Embodiment
The present invention provides the anti-error circuits for triggering of a kind of handset touch panel and its implementation, and is clearer, clear and definite for making the object of the invention, technical scheme and effect, below develops simultaneously embodiment to further explain of the present invention with reference to accompanying drawing.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also Fig. 1; It is for the structured flowchart of the anti-error circuits for triggering of a kind of handset touch panel of the present invention; As shown in the figure; It comprises infrared detection module 11, microprocessor 12, and the signal output part of said infrared detection module 11 is connected (can be connected on the interrupt interface of microprocessor in the present embodiment) with said microprocessor 12.
Wherein, said infrared detection module 11 is used to transmit and receive infrared ray, and produces control signal corresponding according to the ultrared frequency that receives, and said microprocessor 12 is used for judging whether the release touch-screen according to said control signal.
Please consult Fig. 2 in the lump, it is the circuit theory diagrams of infrared detection module in the preferred embodiment of the anti-error circuits for triggering of handset touch panel of the present invention.As shown in the figure; In the present embodiment; Said 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 said triode T1 links to each other with the Rt port (resistance timed ports) of said phase-locked loop circuit ATD U2, and collector electrode is connected grounded emitter with the negative pole of said infrared-emitting diode D1; The positive pole of said infrared-emitting diode D1 connects high level; The plus earth of said infrared receiving diode D2, negative pole is connected with the reverse input end of said operational amplifier U1; The positive input ground connection of said operational amplifier U1; Output is connected with the IN port (input port) of said phase-locked loop circuit ATD U2, and the OUT port (output port) of said phase-locked loop circuit ATD U2 is connected with the signal output part of said infrared detection module.
Said phase-locked loop circuit ATD U2 is used for outputting oscillation signal, and triode T1 mainly plays amplification, is used for said oscillator signal is amplified driving infrared-emitting diode D1, and said infrared-emitting diode D1 is used to launch infrared ray; Said infrared receiving diode D2 and infrared-emitting diode D1 are a pair of infrared tube; Be used to receive the infrared ray (being that the infrared ray that D1 sends passes through the infrared ray that the object back reflection is returned) of reflection, said phase-locked loop circuit ATD U2 also is used for the frequency output control signal corresponding (being high level or low level signal) according to the signal of operational amplifier U1 output.
In the embodiment of the invention, infrared detection module 11 also comprises the oscillation module of the frequency that is used to control said oscillator signal, and said oscillation module comprises first resistance R 6 and first capacitor C 3; One end of said first resistance R 6 is connected with the Rt port of said phase-locked loop circuit ATD U2 and the base stage of triode T1, and the other end is connected with an end of said first capacitor C 3, the other end ground connection of said first capacitor C 3.
Please continue to consult Fig. 2; Between the reverse input end of said infrared receiving diode D2 and operational amplifier U1, be provided with second resistance R 3; Between the reverse input end of operational amplifier U1 and second resistance R 3, be in series with second capacitor C 2, and between the reverse input end of operational amplifier U1 and output, be in series with the 3rd resistance R 5.
In the embodiment of the invention, it is the integrated chip of LM567 that said phase-locked loop circuit ATD U2 adopts model, 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.Then comprise a current control oscillator (CC0), a phase discriminator and a feedback filter in the phase-locked loop.The 1st pin of said phase-locked loop circuit ATD U2 is that output filter capacitor pin (Ofil), the 2nd pin are LPF output pin (Lfil); The 3rd pin is input pin (IN); The 4th pin is power pin (VDD), and the 5th pin is a regularly pin (Rt) of resistance, and the 6th pin is a 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 said LM567 chip is through the 3rd capacitor C 5 ground connection; The 2nd pin is through the 4th capacitor C 6 ground connection; The 3rd pin is connected with the output of operational amplifier U1 through the 5th capacitor C 4, the 7th pin ground connection, and the 8th pin is connected with the signal output part of said infrared detection module.
See also Fig. 2, Fig. 4 and Fig. 5, in the practical implementation process, when the user used mobile phone, receiver was during near ear, and D2 receives the infrared ray that people's ear (perhaps face) reflects, and is as shown in Figure 4; Leave ear and work as mobile phone, when not having object near the receiver, D2 does not receive the outwards infrared ray of emission of infrared-emitting diode D1, and is as shown in Figure 5.
Below the operation principle of the anti-error circuits for triggering of handset touch panel 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, through the centre frequency of first resistance R 6 and first capacitor C, 3 control phase-locked loop circuit ATD U2.By the 5th pin outputting oscillation signal of phase-locked loop circuit ATD U2, this signal promotes the outside reflected infrared ray of infrared-emitting diode D1 after amplifying through triode T1.At this moment; If the user uses mobile phone; Receiver is during near ear; D2 just can receive the infrared ray that people's ear (perhaps face) reflects, and inputs to the 3rd pin of phase-locked loop circuit ATD U2 then after the process operational amplifier U1 amplification, and the signal frequency that receives owing to infrared receiving diode D2 is consistent with the frequency that infrared-emitting diode D1 exports (to be the signal frequency of infrared receiving diode D2 reception and the centre frequency unanimity of phase-locked loop circuit ATD U2 internal voltage controlled oscillator; We claim that the frequency of infrared-emitting diode D1 output is a predeterminated frequency; Down together), handle the back through its 8th pin output low level through phase-locked loop circuit ATD U2 internal circuit, said low level is passed through signal output part and is connected with said microprocessor 12; Microprocessor (can be through software) pins touch-screen, prevents the mobile phone false triggering.
In the embodiment of the invention; When mobile phone leaves ear; When not having object near the receiver; When D2 did not receive the infrared ray of the outside emission of infrared-emitting diode D1, the 3rd pin of said phase-locked loop circuit ATD U2 did not have the signal input, and this moment, the 8th pin of phase-locked loop circuit ATD U2 was a high level.And; Receive the infrared signal or the interference signal of other frequencies as infrared receiving diode D2; Because it is inconsistent with the centre frequency of phase-locked loop circuit ATD U2 internal voltage controlled oscillator, after phase-locked loop circuit ATD U2 inter-process, make its 8th pin output high level, state high level and pass through signal output part and be connected with said microprocessor 12; Microprocessor release touch-screen, mobile phone can normally use.
Wherein, the above-mentioned anti-error circuits for triggering of handset touch panel of the present invention, the also corresponding implementation method that the anti-error circuits for triggering of a kind of handset touch panel of the present invention are provided of the embodiment of the invention, as shown in Figure 6, described method comprises:
S1, by the infrared ray of infrared detection module emission predeterminated frequency;
S2, said infrared detection module detect whether receive infrared ray, as do not have the then signal output part output high level of infrared detection module, if any then carrying out step S3;
S3, judge by said infrared detection module whether the ultrared frequency that receives is predeterminated frequency, as not being the signal output part output high level of then infrared detection module, the signal output part output low level of infrared detection module then in this way;
S4, said microprocessor receive the high level of signal output part output, release touch-screen then, and mobile phone can normally use; Said microprocessor receives the low level of signal output part output, then pins touch-screen, prevents the mobile phone false triggering.
In sum; The anti-error circuits for triggering of a kind of handset touch panel provided by the invention and its implementation; Wherein, Said circuit comprises and is used to transmit and receive infrared ray, and according to the ultrared frequency that receives produce control signal corresponding the infrared detection module, be used for judging whether the microprocessor of release touch-screen according to said control signal, the signal output part of said infrared detection module is connected with said microprocessor.The present invention detects principle according to infrared reflection; Utilize the infrared detection module to receiver annex object detection; Judge whether mobile phone is in hand-held conversation; Thereby make mobile phone be in screen locking/non-screen locking state, its compatibility is good, anti-interference by force, cost is low, it is few to take the GPIO resource, has good marketing property.
It is understandable that, concerning 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.