Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Please refer to Fig. 1 a and Fig. 1 b, Fig. 1 a for first embodiment of the invention provide in the synoptic diagram of a capacitance detection circuit 10a, and the synoptic diagram of the capacitance detection circuit 10b that Fig. 1 b provides for second embodiment of the invention.Capacitance detection circuit 10a comprises an artificial capacitor circuit for detecting 200, a Wave-wide regulation controlled electric (pulse width modulation, PWM) revolution word circuit 300a, and a self-recision counter (self-calibration counter) 500a; Capacitance detection circuit 10b comprises an artificial capacitor circuit for detecting 200, a Wave-wide regulation controlled electric revolution word circuit 300b, and a self-recision counter 500b. Capacitance detection circuit 10a and 10b all utilize artificial capacitor circuit for detecting 200 to detect the sense capacitance C of a panel 20
SENSE, and convert the capacitance that detects to a Wave-wide regulation controlled electric control signal PWM.As previously mentioned, sense capacitance C
SENSEThe stray capacitance C that comprises panel 20 itself
PANELAnd the touching capacitor C that causes because of touch action
FINGERThe Wave-wide regulation controlled electric control signal PWM that Wave-wide regulation controlled electric revolution word circuit 300a and 300b all can transmit artificial capacitor circuit for detecting 200 is converted to a digital measurement count value N
SENSE, its structure and running will have a detailed description in the instructions subsequent content.
In the capacitance detection circuit 10a of first embodiment of the invention, self-recision counter 500a comprises an input range corrector 400 and a digital control current source 700.According to the measuration meter numerical value of N
SENSEValue, input range corrector 400 exportable digital signal D corresponding to touch action
NTo late-class circuit (a for example digital signal processor).Simultaneously, capacitance detection circuit 10a also can store and judge the electric capacity reconnaissance range, and produces according to this charging current I that a corresponding scope conversion ratio K exports to adjust digital control current source 700
M, and then adjust the wide time span of whole ripple so that optimized electric capacity reconnaissance range to be provided.
In the capacitance detection circuit 10b of second embodiment of the invention, self-recision counter 500b comprises an input range corrector 400 and a digital control oscillator (digital controloscillator) 800.According to the measuration meter numerical value of N
SENSEValue, input range corrector 400 exportable digital signal D corresponding to touch action
NTo late-class circuit (a for example digital signal processor).Simultaneously, capacitance detection circuit 10b also can store and judge the electric capacity reconnaissance range, and adjusts according to this frequency signal CK of digital control oscillator 800 outputs, and then adjusts whole sampling frequency so that optimized electric capacity reconnaissance range to be provided.
Please refer to Fig. 2, Fig. 2 is the synoptic diagram of artificial capacitor circuit for detecting 200 in the embodiment of the invention.Artificial capacitor circuit for detecting 200 comprises switch QN1~QN3 and a comparator C MP.Switch QN1 operates according to the Wave-wide regulation controlled electric control signal PWM that comparator C MP produces, and switch QN2 and QN3 operate according to frequency signal SG2 and SG3 respectively, wherein the responsibility cycle of Wave-wide regulation controlled electric control signal PWM (duty cycle) is decided by a detecting voltage VRAMP, and frequency signal SG2 and SG3 tool opposite phase.Switch QN1~QN3 can be metal-oxide-semiconductor (MOS) (metal-oxide-semiconductor, MOS) transistor switch, or the element of other tool similar functions, and the embodiment of Fig. 2 explains with nmos transistor switch.According to the Wave-wide regulation controlled electric control signal PWM that its control end receives, switch QN1 optionally receives charging current I with its first end
MBe sent to its second end.The first end of switch QN2 is coupled to the second end of switch QN1, and the second end is coupled to panel 20, can control charging current I according to the frequency signal SG2 that its control end receives
MThe charge path of counter plate 20.The first end of switch QN3 is coupled to panel 20, the second ends and is coupled to a negative bias VSS, can come according to the frequency signal SG3 that its control end receives the discharge path of control panel 20.Comparator C MP receives a reference voltage V at its first input end
REF, its second input end is coupled to the second end of switch QN1, and its output terminal is coupled to the control end of switch QN1.
Charging current I
MCan be provided by digital control current source 700, its value is capable of regulating, capacitance detection circuit 10a as shown in Figure 1a; Perhaps, charging current I
MCan be provided by certain power supply, its value is for fixing the capacitance detection circuit 10b shown in Fig. 1 b.When Wave-wide regulation controlled electric control signal PWM and frequency signal SG2 tool noble potential, charging current I
MCan come counter plate 20 chargings, detecting voltage V by switch QN1 and the QN2 of conducting
RAMPAccurate position also promote thereupon.As detecting voltage V
RAMPValue surpass a reference voltage V
REFThe time, the Wave-wide regulation controlled electric control signal PWM of comparator C MP output can switch to electronegative potential by noble potential, and then closing switch QN1.Then, frequency signal SG3 can switch to noble potential, and the capacitor memory energy of panel 20 can be discharged to negative bias VSS by the switch QN3 of conducting.If with T
ONRepresent the time (also being the ON time of switch QN1) of Wave-wide regulation controlled electric control signal PWM tool noble potential within a cycle, the charging process of panel 20 can be represented by following formula:
I
M*T
ON=C
SENSE*V
REF=(C
FINGER+C
PANEL)*V
REF
Also be T
ON=(C
FINGER+ C
PANEL)/I
M(1)
Please refer to Fig. 3 a and Fig. 3 b, Fig. 3 a is the synoptic diagram of Wave-wide regulation controlled electric revolution word circuit 300a in the first embodiment of the invention, and Fig. 3 b is the synoptic diagram of Wave-wide regulation controlled electric revolution word circuit 300b in the second embodiment of the invention.The Wave-wide regulation controlled electric revolution word circuit 300a of the first embodiment comprises a phasing unit 310 and a totalizer 320.Phasing unit 310 can produce tool certain trigger starting point and a frequency f
CLKFrequency signal CK.Totalizer 320 can receive the Wave-wide regulation controlled electric control signal PWM that artificial capacitor circuit for detecting 200 transmits, and when being triggered by frequency signal CK the value of detecting Wave-wide regulation controlled electric control signal PWM, if Wave-wide regulation controlled electric control signal PWM tool noble potential, totalizer can be with the measuration meter numerical value of N of output
SENSEAdd 1.The Wave-wide regulation controlled electric revolution word circuit 300b of the second embodiment comprises a totalizer 320.Totalizer 320 can receive the frequency signal CK that Wave-wide regulation controlled electric control signal PWM that artificial capacitor circuit for detecting 200 transmits and self-recision counter 500b transmit, and when being triggered by frequency signal CK the value of detecting Wave-wide regulation controlled electric control signal PWM, if Wave-wide regulation controlled electric control signal PWM tool noble potential, totalizer can be with the measuration meter numerical value of N of output
SENSEAdd 1.
Please refer to Fig. 4 a and Fig. 4 b, Fig. 4 a is the synoptic diagram when Wave-wide regulation controlled electric revolution word circuit 300a operates in the first embodiment of the invention, and Fig. 4 b is the synoptic diagram when Wave-wide regulation controlled electric revolution word circuit 300b operates in the second embodiment of the invention.Fig. 4 a and Fig. 4 b have shown detecting voltage V
RAMP, Wave-wide regulation controlled electric control signal PWM and frequency signal CK waveform, and measuration meter numerical value of N
SENSEValue.Because panel 20 itself has stray capacitance C unavoidablely
PANELEven when touching not occuring, the Wave-wide regulation controlled electric control signal PWM of artificial capacitor circuit for detecting 200 outputs can correspond to a basic count value N
BASELINEWhen touching occured, the Wave-wide regulation controlled electric control signal PWM of artificial capacitor circuit for detecting 200 outputs can correspond to a measuration meter numerical value of N
SENSEBasic count value N
BASELINEWith the measuration meter numerical value of N
SENSEAs follows:
Can obtain the actual count value Δ N of corresponding practical touch behavior according to formula (2) and formula (3), its value is as follows:
Shown in formula (1), (T for example of the gate time when each, inherent switch QN1 opened in cycle
ON, T
ON1~T
ON3), its length is decided by the time length that whether the touching behavior occurs and the touching behavior occurs.Shown in formula (3), the measuration meter numerical value of N
SENSEWith charging current I
MBe inversely proportional to, and the trigger rate f of frequency signal CK
CLKBe directly proportional.The present invention adjusts electric capacity reconnaissance range (have and be described in more detail) according to actual count value Δ N in the instructions subsequent content, wherein the capacitance detection circuit 10a of the first embodiment adjusts charging current I by self-recision counter 500a
MValue to change gate time T
ON1~T
ON3(shown in Fig. 4 a), and then adjust the electric capacity reconnaissance range; The capacitance detection circuit 10b of the second embodiment adjusts frequency cycle of signal CK so that frequency f by self-recision counter 500b
CLK1~f
CLK3Differ from one another (shown in Fig. 4 b), and then adjust the electric capacity reconnaissance range.
Please refer to Fig. 5 a and Fig. 5 b, Fig. 5 a is the synoptic diagram of self-recision counter 500a in the first embodiment of the invention, and Fig. 5 b is the synoptic diagram of self-recision counter 500b in the second embodiment of the invention.The input range corrector 400 of self-recision counter 500a and 500b all comprises a subtracter 410, a comparer 420, a maximal value buffer 430, a minimum value buffer 440, a range adjustment circuit 450, and a counter 460.
The measuration meter numerical value of N that subtracter 410 can transmit Wave-wide regulation controlled electric revolution word circuit 300a or 300b
SENSEDeduct basic count value N
BASELINE, and then obtain corresponding to the actual count value Δ N of touch action.Maximal value buffer 430 and minimum value buffer 440 are interior maximum count value N among resulting all results when having respectively previous electric capacity detecting
MAXWith least count value N
MIN, maximum count value N
MAXWith least count value N
MINBetween be the predetermined reconnaissance range of present electric capacity.Comparer 420 can and before be stored in the maximum count value N of maximal value buffer 430 with present actual count value Δ N
MAXMake comparisons, and and before be stored in least count value N in the minimum value buffer 440
MINMake comparisons; If the scope of actual count value Δ N is equivalent to predetermined reconnaissance range, this moment, range adjustment circuit 450 meetings come control figure control current source 700 or digital control oscillator 800 according to actual count value Δ N; If the scope of actual count value Δ N is greater than predetermined reconnaissance range, this moment, range modulator 450 meetings be multiplied by a scope conversion ratio K (K<1) with actual count value Δ N, came control figure control current source 700 (to increase charging current I according to scope conversion ratio K again
MValue) or digital control oscillator 800 (frequency of reducing work frequency signal CK); If the scope of actual count value Δ N is less than predetermined reconnaissance range, this moment, range modulator 450 meetings be multiplied by a scope conversion ratio K (K>1) with actual count value Δ N, came control figure control current source 700 (reducing the value of charging current IM) or digital control oscillator 800 (increasing the frequency of frequency signal CK) according to scope conversion ratio K again.On the other hand, the present invention can utilize counter 460 to set an adjustment cycle T
AdjIf, for example with adjustment cycle T
AdjBe made as 100, range modulator 450 just can be adjusted after whenever receiving 100 actual count value Δ N, so can avoid changing too continually the electric capacity reconnaissance range.
Please refer to Fig. 6 a~Fig. 6 c, Fig. 6 a~Fig. 6 c is the synoptic diagram during self-recision counter 500a and 500b running in the embodiment of the invention.In the embodiment shown in Fig. 6 a~Fig. 6 c, suppose maximum count value N
MAXWith least count value N
MINBe respectively 1023 and 0, T
TOUCHDuring the representative generation touching behavior.In the embodiment shown in Fig. 6 a, because actual count value Δ N is in preset range, range modulator 450 can be come control figure control current source 700 or digital control oscillator 800 according to present actual count value Δ N.In the embodiment shown in Fig. 6 b, the scope of supposing actual count value Δ N is 116~749, also namely in available reconnaissance range 0~115 and 750~1023 interval all can't utilize, this moment, range modulator 450 meetings be amplified to 0~1023 with the scope of former actual count value Δ N, and then optimized electric capacity reconnaissance range is provided.In the embodiment of Fig. 6 c, the scope of supposing actual count value Δ N is 0~1682, also be former reconnaissance range and can't comprise 1024~1682 interval, this moment, range modulator 450 can be contracted to the scope of former actual count value Δ N 0~1023 and then optimized electric capacity reconnaissance range is provided.
Please refer to Fig. 7, Fig. 7 is the synoptic diagram of digital control current source 700 in the embodiment of the invention.Digital control current source 700 comprises two transistor switch QPL and QPR, a capacitor C
IN, a reference current source I
M, and a matrix current adjustment circuit 750.Transistor switch QPL and QPR can be the element of PMOS transistor switch or other tool similar functions, and its On current is respectively by I
MAnd I
M' represent.
Matrix current adjustment circuit 750 comprises the current mirror that a plurality of transistor switch QP1~QPn form, and can distinguish the On current I of replica transistor switch QPL
MSo that the current value of different multiples to be provided, couple the addition electric current to capacitor C by interrupteur SW 1~SWn respectively again
INIn other words, electric current I
M' in one part of current provided by transistor switch QPR, other parts then are the On current I of transistor switch QP1~QPn replica transistor switch QPL
MThe rear current value that provides adds up.Transistor switch QP1~QPn can be the element of PMOS transistor switch or other tool similar functions.The running of interrupteur SW 1~SWn is controlled by range modulator 400, and the number of actuating switch SW1~SWn is more, electric current I
M' value larger: if the scope of actual count value Δ N less than preset range, the number that the present invention can reduce actuating switch SW1~SWn is to reduce charging current I
M' value, so the duration of charging of electric capacity can lengthen, and therefore can increase gate time to amplify the electric capacity reconnaissance range; If the scope of actual count value Δ N is greater than preset range, the present invention can increase the number of actuating switch SW1~SWn to improve charging current I
M' value, so the duration of charging of electric capacity can shorten, and therefore can reduce gate time to dwindle the electric capacity reconnaissance range.
In sum, if the input range value of electric capacity produces change because of factors such as humidity, temperature, external environment condition, processing procedure or component ageings, to such an extent as in the time of can't effectively using present electric capacity reconnaissance range, the present invention can adjust and upgrades the electric capacity reconnaissance range according to the change of electric capacity input value, allow the electric capacity reconnaissance range maintain in the optimum linear interval of circuit, the accuracy that therefore can improve touch panel.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.