CN114465613A - High-speed low-power-consumption capacitive touch detection circuit, method and chip - Google Patents

High-speed low-power-consumption capacitive touch detection circuit, method and chip Download PDF

Info

Publication number
CN114465613A
CN114465613A CN202210088944.3A CN202210088944A CN114465613A CN 114465613 A CN114465613 A CN 114465613A CN 202210088944 A CN202210088944 A CN 202210088944A CN 114465613 A CN114465613 A CN 114465613A
Authority
CN
China
Prior art keywords
current source
current
touch
output
detection
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.)
Pending
Application number
CN202210088944.3A
Other languages
Chinese (zh)
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.)
Shenzhen Keen Microelectronics Co ltd
Original Assignee
Shenzhen Keen Microelectronics Co ltd
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 Shenzhen Keen Microelectronics Co ltd filed Critical Shenzhen Keen Microelectronics Co ltd
Priority to CN202210088944.3A priority Critical patent/CN114465613A/en
Publication of CN114465613A publication Critical patent/CN114465613A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/26Measuring inductance or capacitance; Measuring quality factor, e.g. by using the resonance method; Measuring loss factor; Measuring dielectric constants ; Measuring impedance or related variables
    • G01R27/2605Measuring capacitance
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/34Analogue value compared with reference values
    • H03M1/38Analogue value compared with reference values sequentially only, e.g. successive approximation type

Abstract

The invention discloses a high-speed low-power-consumption capacitive touch detection circuit, a method and a chip. The invention adopts a successive approximation mode to carry out capacitance touch detection, improves the detection speed and the detection precision, reduces the detection power consumption, simultaneously realizes quick multi-channel and multi-time detection, can carry out touch intensity detection by configuring different touch thresholds, and also has the touch sliding detection function.

Description

High-speed low-power-consumption capacitive touch detection circuit, method and chip
Technical Field
The invention relates to the technical field of integrated circuits, in particular to a high-speed low-power-consumption capacitive touch detection circuit, a method and a chip.
Background
The key is the simplest, direct and quick method for man-machine interaction. At present, mechanical keys are conventionally used, but the mechanical keys have the problems of short service life and low speed, and with the development of electronic technology, technicians are always looking for substitutes of the mechanical keys.
Because the touch keys have the advantages of simplicity and delicacy, the product looks more fashionable and is easier to obtain the favor of current customers, and more products adopt the touch keys to replace mechanical keys. The capacitive touch has the advantages of sensitive response, low cost, strong interference resistance and the like, the technology is more and more mature, the application of the capacitive touch is very common, and the capacitive touch is widely applied to devices such as mobile phones, computer peripherals, household appliances and industrial control.
As shown in the capacitive touch PCB diagram of FIG. 1, a proper touch PAD area and a surrounding ground line are drawn when the PCB is laid according to the requirement of capacitance, and a parasitic capacitance C exists between the humidity touch PAD and the groundp0When a human finger approaches or touches the touch PAD, an additional parasitic capacitance C to ground is addedf0Due to Cf0Has a small capacitance value of Cp0Is about Cf0100 times of the total weight of the powder. In order to accurately detect Cf0We need to add a detection circuit. The following two methods are commonly used for detection:
1. clock oscillation type detection: as shown in FIG. 2, the external capacitor Cp ' is charged by a current source I0 ', when the voltage reaches the inversion voltage Vt of the inverter (INV0), the inverter inverts, the signal is sent to the NMOS transistor after the time delay unit to discharge the charge on PAD, then the inverter inverts again when the voltage is lower than the inversion voltage Vt of the inverter (INV0), the signal turns off the NMOS transistor after the time delay unit, and the external capacitor Cp ' continues to be charged. In the cycle, the square wave signal CLK is generated, the clock counter counts CLK, the clock number of CLK is locked when the timer is full, and the clock value V1 when no external touch exists is obtained after multiple times of counting locking. When there is a finger approaching or touching the touch PAD, the external capacitance becomes (Cp '+ Cf'), and since the external capacitance becomes large, the CLK frequency becomes slow, which results in the clock value V2 in the same timer time. Considering the ambient environment variation factor and noise, we set a threshold Vth 1; when (V1-V2> Vth1), it is determined that there is a touch key.
2. Charge-carrying detection: as shown in fig. 3, the external capacitor Cp "is charged by PMOS (P0"), PAD0 "is charged to Vref1 voltage given appropriate charging time, P0" is closed, then transfer gate S0 "is opened, charge on Cp" is carried to Cv ", PAD 0" is equal to PAD1 "voltage given appropriate charging time, transfer gate S0" is closed, P0 "is opened to PAD0 is charged to Vref1 voltage again, and the process is repeated until Comparator (CMP) flips, when PAD 1" is greater than Vref2(Vref1> Vref2), and the carry counter result is locked, and carry number V3 is obtained after multiple locking; when a finger approaches or touches the touch PAD, the external capacitance becomes (Cp "+ Cf"), and the external capacitance becomes large, so that the conveying frequency becomes small, and a conveying frequency value V4 is obtained; a threshold Vth2 is also set; when (V3-V4> Vth2), it is determined that there is a touch key.
From the two capacitive touch detections mentioned above, due to Cp0Is about Cf0100 times of the above, considering the ambient environment variation factor and noise, the values of Vth1 and Vth2 are at least greater than 5, so in order to obtain a stable touch value, the clock oscillation type detection needs to oscillate at least 1000 clocks to obtain a reliable touch result, and the charge transport type detection also needs to reach 1000 or more transport times. This makes the single detection cycle longer, which leads to several disadvantages: (1) the touch module is in a working state for a longer time, and the power consumption of the chip is higher in the same intermittent time; (2) the multi-channel detection is not facilitated, and if a plurality of touch detection modules are needed in more touch detection keys, the cost and the power consumption of the chip are increased; (3) because the difference value generated by touch is small, multi-level strength touch is difficult to realize, and the fine effect cannot be achieved in the conventional touch strip or sliding touch.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a high-speed low-power-consumption capacitive touch detection circuit, a method and a chip.
In a first aspect, the high-speed low-power-consumption capacitive touch detection circuit comprises a touch module and a successive approximation module, wherein the touch module comprises a charging power supply module and a comparison trigger module, the charging power supply module is respectively connected with an input side of the comparison trigger module and an external touch PAD, and an output side of the comparison trigger module is connected with the successive approximation module.
Further, the charging power supply module comprises a first current source, a second current source, a third current source and a fourth current source, wherein a first capacitor and a first resistor are connected in parallel to the output end of the first current source, the first resistor is connected in series between the first current source and the second current source, a second capacitor and a second resistor are connected in parallel to the output end of the second current source, the second resistor is connected in series between the second current source and the third current source, the output end of the third current source is connected with a third capacitor, the output end of the fourth current source is connected with a fourth capacitor, and the negative electrodes of the first capacitor, the second capacitor, the third capacitor and the fourth capacitor are all grounded.
Further, the charging power supply module further comprises a first NOMS tube, a second NOMS tube and a third NOMS tube, wherein the drain electrode of the first NOMS tube is connected with the output end of the first current source, the grid electrode of the first NOMS tube is connected with the grid electrode of the second NOMS tube and the grid electrode of the third NOMS tube, the drain electrode of the second NOMS tube is connected with the output end of the third current source, the drain electrode of the third NOMS tube is connected with the output end of the fourth current source, and the source electrode of the first NOMS tube, the source electrode of the second NOMS tube and the source electrode of the third NOMS tube are all grounded.
Further, the first NOMS tube, the second NOMS tube and the third NOMS tube share the same RST reset signal.
Furthermore, the comparison triggering module comprises a first comparator, a second comparator and a DFF trigger, wherein a non-inverting input terminal of the first comparator is connected with a third current source output terminal, an output terminal of the first comparator is connected with a D terminal of the DFF trigger, a non-inverting input terminal of the second comparator is connected with a fourth current source output terminal, an output terminal of the second comparator is connected with a CK terminal of the DFF trigger, and inverting input terminals of the first comparator and the second comparator are both connected with a reference voltage.
In a second aspect, a high-speed low-power capacitive touch detection method is based on the high-speed low-power capacitive touch detection circuit of the first aspect, and includes:
sequentially carrying out successive approximation calculation according to the first current source current control bit to obtain a first current source output current value;
obtaining an external capacitance reference value according to the output current value of the first current source;
the method comprises the steps of obtaining an external capacitance detection value of an external touch PAD in a detection process, calculating an external capacitance difference value between the external capacitance detection value and an external capacitance reference value, and judging that a finger touches if the external capacitance difference value is larger than a touch threshold value.
Further, the air conditioner is provided with a fan,
the detection is intermittent detection, and the detection period comprises sleep time and working time;
the successive approximation calculation times are determined by the current control bit width of the first current source, and the successive approximation calculation starts from the highest bit of the current control bit of the first current source until the last bit of the current control bit of the first current source is finished.
Further, the successive approximation calculation is sequentially performed according to the first current source current control bit to obtain a first current source output current value, specifically:
the successive approximation module sets the RST reset signal to be 1 so as to clear the charging node potentials of the first current source, the third current source and the fourth current source;
the successive approximation module sets the RST reset signal to be 0, configures the current control bit of the first current source to be 1, and starts to charge the charging nodes of the current sources;
if the charging speed of the charging node where the third current source is located is higher than that of the charging node where the fourth current source is located, the output of the first comparator is 1, and if the charging speed of the charging node where the third current source is located is lower than that of the charging node where the fourth current source is located, the output of the first comparator is 0;
the method comprises the steps that a DFF trigger locks an output result of a first comparator, and a successive approximation module configures the output result of the first comparator to a current bit controlled by a first current source;
and repeating the steps until the last bit of the first current source current control bit to obtain a complete first current source current output value.
Further, still include:
comparing the external capacitance difference value with a plurality of touch thresholds of different levels to judge the touch intensity;
when a plurality of touch PADs are arranged in a crossed mode, the relative positions of the touch PADs are distinguished according to the proportion of the external capacitance difference values of the touch PADs, and therefore touch sliding is achieved.
In a third aspect, a high-speed low-power capacitive touch detection chip includes the high-speed low-power capacitive touch detection circuit of the first aspect.
The invention has the beneficial effects that: the capacitance touch detection is carried out by adopting a successive approximation mode, so that the detection speed and the detection precision are improved, the detection power consumption is reduced, meanwhile, the rapid multi-channel and multi-time detection is realized, the touch intensity detection can be carried out by configuring different touch thresholds, and the touch sliding detection function is also realized.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a diagram of a capacitive touch PCB provided in the background of the invention;
FIG. 2 is a schematic diagram of a clock oscillation type detection circuit according to the background art of the present invention;
FIG. 3 is a schematic diagram of a charge-carrying detection circuit according to the background of the invention;
fig. 4 is a block diagram of a high-speed low-power capacitive touch detection circuit according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of a high-speed low-power capacitive touch detection circuit according to an embodiment of the present invention;
fig. 6 is a timing diagram of a high-speed low-power capacitive touch detection circuit according to an embodiment of the present invention;
fig. 7 shows an output current value of the first current source I1 of the high-speed low-power capacitive touch sensing circuit according to the first embodiment of the present invention;
fig. 8 is a schematic diagram of a low power consumption detection period of a high-speed low power consumption capacitive touch detection circuit according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a high-speed low-power capacitive touch detection circuit according to an embodiment of the present invention, in which two touch PADs are arranged in a crossed manner;
fig. 10 is a flowchart of a high-speed low-power capacitive touch detection method according to a second embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
Example one
As shown in fig. 4, a high-speed low-power-consumption capacitive touch detection circuit includes a touch module and a successive approximation module, where the touch module includes a charging power module and a comparison trigger module, the charging power module is connected to an input side of the comparison trigger module and an external touch PAD, respectively, and an output side of the comparison trigger module is connected to the successive approximation module.
As shown in fig. 5, the charging power supply module includes a first current source I1, a second current source I2, a third current source I3 and a fourth current source I4, an output terminal of the first current source I1 is connected in parallel with a first capacitor C1 and a first resistor R1, the first resistor R1 is connected in series between the first current source I1 and the second current source I2, an output terminal of the second current source I2 is connected in parallel with a second capacitor C2 and a second resistor R2, the second resistor R2 is connected in series between the second current source I2 and the third current source I3, an output terminal of the third current source I3 is connected with a third capacitor C3, an output terminal of the fourth current source I4 is connected with a fourth capacitor C4, and cathodes of the first capacitor C1, the second capacitor C2, the third capacitor C3 and the fourth capacitor C4 are all grounded.
The output end of the first current source I1 is further connected to the touch PAD external capacitors Cp 0-Cpn, the first current source I1 is mainly used for charging the external capacitors Cp 0-Cpn, the magnitude of the output current is determined by the result of successive approximation calculation performed by the detection circuit, and the output currents of the second current source I2, the third current source I3 and the fourth current source I4 are set currents and are equal. The first capacitor C1 is a variable capacitor, the first resistor R1 is a variable resistor, the first capacitor C1 and the first resistor R1 can be configured according to external environmental noise to filter different noise bands, and the second capacitor C2, the third capacitor C3 and the fourth capacitor C4 are standard capacitors of the detection circuit and are equal to each other.
Furthermore, the charging power supply module further comprises a first NOMS tube N1, a second NOMS tube N2 and a third NOMS tube N3, a drain of the first NOMS tube N1 is connected with an output end of the first current source I1, a gate of the first NOMS tube N1 is connected with a gate of the second NOMS tube N2 and a gate of the third NOMS tube N3, a drain of the second NOMS tube N2 is connected with an output end of the third current source I3, a drain of the third NOMS tube N3 is connected with an output end of the fourth current source I4, and a source of the first NOMS tube N1, a source of the second NOMS tube N2 and a source of the third NOMS tube N3 are all grounded. The first NOMS tube N1, the second NOMS tube N2 and the third NOMS tube N3 share the same RST reset signal.
Further, the comparison trigger module comprises a first comparator CMP1, a second comparator CMP2 and a DFF flip-flop, wherein a non-inverting input terminal of the first comparator CMP1 is connected with an output terminal of the third current source I3, an output terminal of the first comparator CMP1 is connected with a D terminal of the DFF flip-flop, a non-inverting input terminal of the second comparator CMP2 is connected with an output terminal of the fourth current source I4, an output terminal of the second comparator CMP2 is connected with a CK terminal of the DFF flip-flop, and inverting input terminals of the first comparator CMP1 and the second comparator CMP2 are both connected with a reference voltage VREF. The trigger module further comprises a timing generator for generating a trigger signal.
Specifically, the capacitance touch detection circuit sequentially performs successive approximation calculation according to the first current source current control bit in the detection process, and the calculation times are determined by the current control bit width of the first current source, namely, from the highest bit of the first current source current control bit to the end of the last bit of the first current source current control bit. Firstly, a RST reset signal is set to be 1 through a successive approximation module, so that a first NOMS tube N1, a second NOMS tube N2 and a third NOMS tube N3 are all opened, the charging node potentials of a first current source I1, a third current source I3 and a fourth current source I4 are cleared, namely the potentials of the three points A, B, C are cleared, all control bits of the first current source I1 are 0, and the output current of the first current source I1 is 0.
Then, the RST reset signal is set to 0 by the successive approximation module, the current control bit of the first current source I1 is configured to be 1, and the charging nodes of the current sources start to be charged, i.e., A, B, C three points are charged. When the RST reset signal is set to 0 for the first time, the output current of the first current source I1 is set to 1/2 full scale, and when the RST reset signal is set to 0 for the nth time, the output current value of the first current source I1 is determined by the previous successive approximation calculation result.
Since the fourth current source I4 and the fourth capacitor C4 are fixed values, the charging node a of the fourth current source I4 charges from 0 to the reference voltage VREF for a fixed time, and when the charging voltage at point a reaches the reference voltage VREF, the second comparator CMP2 flips to output 1, i.e., the Bit _ clk clock generates a rising edge, and inputs the rising edge to the DFF flip-flop clock terminal. In the charging process, when the charging speed of the third current source I3 for charging the node B is slower than that of the charging node a, the second comparator CMP2 preferably flips the output 1, at this time, the first comparator CMP1 outputs 0, and the DFF flip-flop locks the output result of the first comparator CMP1, that is, the data locked by the DFF flip-flop is 0 at this time; when the charging speed of the charging node B of the third current source I3 is faster than that of the charging node a, the first comparator CMP1 preferably flips the output 1, so when the second comparator CMP2 flips the output 1, the first comparator CMP1 also outputs 1, and the DFF flip-flop locks the output result of the first comparator CMP1, that is, the data locked by the DFF flip-flop is 1 at this time.
After the DFF flip-flop locks the output result of the first comparator CMP1, the successive approximation module configures the data locked by the DFF flip-flop to the current bit controlled by the first current source I1.
Then from the firstAnd repeating the steps from the next bit of the current source control bit, namely the next highest bit, and so on until the last bit of the first current source control bit, and finally obtaining the complete output current value of the first current source. In the detection process, when the successive approximation calculation is performed for the (n-1) th time (n is more than or equal to 2), the output current of the first current source I1 is In-1At this time, if the output of the first comparator CMP1 is 1, the output current of the first current source I1 is:
Figure BDA0003488656290000081
if the output of the first comparator CMP1 is 0, the output current of the first current source I1 is: is composed of
Figure BDA0003488656290000082
Taking the current control bit width of the first current source as bit 16 as an example, the RST reset timing and the current control bit are shown in FIG. 6, and the detection circuit controls the most significant bit D of the bit from the first current source I1[15]At first, the RST reset signal is set to 1 by the successive approximation module to clear the potential at the point A, B, C, and the output of the first current source I1 is 0. The RST reset signal is set to 0 by the successive approximation module, and the highest bit D of the control bits of the first current source I1 is controlled[15]Set to 1 so that the output current of the first current source I1 is
Figure BDA0003488656290000091
Charging A, B, C, locking the output result of the first comparator CMP1 by the DFF trigger according to the charging speed, and configuring the output result to the highest bit D of the first current source control bit by the successive approximation module[15]. Then the RST reset signal is set to 1 again, the potential of the A, B, C three points is reset again, the RST reset signal is set to 0 through a successive approximation module after a period of time, and the current of the first current source I1 is controlled to be next high-order D[14]Setting 1, if the result of the DFF flip-flop locking during the first successive approximation calculation is 1, the output current of the first current source I1 at this time is:
Figure BDA0003488656290000092
namely, it is
Figure BDA0003488656290000093
If the result of the DFF flip-flop latch is 0 in the first successive approximation calculation, the output current level of the first current source I1 at this time is:
Figure BDA0003488656290000094
Figure BDA0003488656290000095
namely, it is
Figure BDA0003488656290000096
As shown in fig. 7. The A, B, C nodes are charged again, the DFF trigger locks the output result of the first comparator CMP1 according to the charging speed, and the successive approximation module configures the output result to the next higher bit D of the first current source control bit[14]
By analogy, the first current source I1 successively latches the current control bit to 1, and latches the DFF result accordingly until the last bit of the current control bit of the first current source I1, such as the current control bit D from the first current source I1[15]~D[0]And setting 1 one by one, and finally obtaining the complete output current value of the first current source I1.
After the output current value of the first current source is obtained, the external capacitance value can be obtained through conversion, and the calculation formula is as follows:
i1/i4=(Cp+C1)/C4
in the formula i1For the current output value of the first current source, i4Is the current output value of the fourth current source, CpIs an external capacitance value, C1Is a first capacitance value, C4Is a fourth capacitance value.
In the detection process, the external capacitance value is different when the touch of the human hand and the touch of the human hand are not performed. Through multiple detections, the reference value of the external capacitance is D when no human hand touches the capacitorvSetting a touch threshold DthWhen the detected value of the external capacitance becomes DfIf the external capacitance difference (D) between the external capacitance detection value and the external capacitance reference valuef-Dv) Touch threshold DthThis indicates that a hand touch is detected.
The invention adopts a successive approximation method, and the detection circuit can quickly detect the external capacitance value, for example, when the bit width of the current control bit of the first current source I1 is 16, the detection circuit provided by the invention can complete one-time detection only by 16 times of charging and discharging. Assuming that the current of the fourth current source I4 is 2uA, the capacitance of the fourth capacitor C4 is 1pF, and the reference voltage VREF is 2V, according to the capacitance charging formula: the charging time can be obtained by (I × t)/C:
t=(U*C)/I=(2V*1pF)/2uA=1uS
that is, the first charging time is 1uS, and the RST high level time is set to 0.25uS, the time required for completing the first touch detection is:
16*(1+0.25)=20uS
all single touch detection can be completed only by 20us, and the detection speed is high and the time consumption is short. In the single touch detection, only 20us is needed, the human body reaction time is assumed to be about 0.1s, the detection circuit is set to perform touch detection once every 20ms, and if an external touch channel has 16 touch channels, the time required for detecting all the 16 touch channels is as follows:
16*20=320us
in which the detection time only occupies the interval period
Figure BDA0003488656290000101
And the human body was touched 5 times (0.1s/20ms) to confirm whether or not there was a human hand. Therefore, the method has the advantages of high detection speed and short time when multi-channel detection is carried out.
Further, the high-speed low-power-consumption capacitive touch detection circuit adopts intermittent detection, a detection period can be set, as shown in fig. 8, the whole detection period is divided into working time and sleep time, when no operation is detected within a certain time, the circuit enters a sleep state, and the working time of the next period is detected until the completion of one period, so that the function of low-power-consumption detection is realized. For example, assuming that the operating current of the on-time detection circuit is 1mA, the standby power consumption of the sleep-time detection circuit is 2uA, and if the cycle time is 20ms and the single detection time is 20us as described above, the average current is:
Iavg=[1mA*20uS+(20ms-20us)*2uA]/20ms≈3uA
the on time is increased by 20uS for every additional touch channel, and the detection circuit is only increased by (1mA by 20uS)/20ms, i.e. 1uA of average current. In the practical application process, the sleep time and the working time can be adjusted according to the application requirements so as to achieve the most appropriate standby power consumption and realize low-power consumption processing.
Further, the detection circuit can set a plurality of touch thresholds D with different levelsth0,Dth1,Dth2...DthnDetecting the value D of the external capacitancefAnd an external capacitance reference value DvDifference in external capacitance (D) betweenf-Dv) Comparing with multiple touch thresholds when the external capacitance is different (D)f-Dv) When the touch intensity falls within a certain touch threshold range, the touch intensity of the touch can be judged to be the level corresponding to the touch threshold range.
Furthermore, when a plurality of touch PADs are arranged in a crossed mode, the relative positions of the touch PADs can be distinguished according to the proportion of the external capacitance change values of the touch PADs. For example, as shown in FIG. 9, two touch PADs are arranged in a cross manner, and when no finger touches the touch PAD, the detection circuit detects the corresponding external capacitance reference value Dv0And Dv1When the detected value of the external capacitance becomes Df0And Df1First, according to the difference (D) of external capacitancesf-Dv) And touch threshold DthDetecting whether touch occurs, and then according to (D)f0-Dv0) And (D)f1-Dv1) The relative positions of the two touch PADs are distinguished according to the proportional sizes of the touch PADs, so that the touch sliding function is realized.
Example two
As shown in fig. 10, a high-speed low-power capacitive touch detection method, based on the high-speed low-power capacitive touch detection circuit in the first embodiment, includes the steps of:
s1: sequentially carrying out successive approximation calculation according to the first current source current control bit to obtain a first current source output current value;
specifically, successive approximation calculation is sequentially performed according to the current control bit of the first current source, and the calculation times are determined by the current control bit width of the first current source, namely, from the highest bit of the current control bit of the first current source to the end of the last bit of the current control bit of the first current source. Firstly, a RST reset signal is set to be 1 through a successive approximation module, so that a first NOMS tube N1, a second NOMS tube N2 and a third NOMS tube N3 are all opened, the charging node potentials of a first current source I1, a third current source I3 and a fourth current source I4 are cleared, namely the potentials of the three points A, B, C are cleared, all control bits of the first current source I1 are 0, and the output current of the first current source I1 is 0.
The RST reset signal is set to 0 by the successive approximation module, the current control bit of the first current source I1 is configured to be 1, and the charging nodes of the current sources are charged, that is, three points A, B, C are charged. When the RST reset signal is set to 0 for the first time, the output current of the first current source I1 is set to 1/2 full scale, and when the RST reset signal is set to 0 for the nth time, the output current value of the first current source I1 is determined by the previous successive approximation calculation result.
Since the fourth current source I4 and the fourth capacitor C4 are fixed values, the charging node a of the fourth current source I4 charges from 0 to the reference voltage VREF for a fixed time, and when the charging voltage at point a reaches the reference voltage VREF, the second comparator CMP2 flips to output 1, i.e., the Bit _ clk clock generates a rising edge, and inputs the rising edge to the DFF flip-flop clock terminal. In the charging process, when the charging speed of the third current source I3 for charging the node B is slower than that of the charging node a, the second comparator CMP2 preferably flips the output 1, at this time, the first comparator CMP1 outputs 0, and the DFF flip-flop locks the output result of the first comparator CMP1, that is, the data locked by the DFF flip-flop is 0 at this time; when the charging speed of the charging node B of the third current source I3 is faster than that of the charging node a, the first comparator CMP1 preferably flips the output 1, so when the second comparator CMP2 flips the output 1, the first comparator CMP1 also outputs 1, and the DFF flip-flop locks the output result of the first comparator CMP1, that is, the data locked by the DFF flip-flop is 1 at this time.
After the DFF flip-flop locks the output result of the first comparator CMP1, the successive approximation module configures the data locked by the DFF flip-flop to the current bit controlled by the first current source I1.
And then, repeating the steps from the next bit of the first current source control bit, namely the next highest bit, and so on until the last bit of the first current source control bit, and finally obtaining the complete output current value of the first current source. In the detection process, when the successive approximation calculation is carried out for the (n-1) th time (n is more than or equal to 2), the output current of the first current source I1 is In-1At this time, if the output of the first comparator CMP1 is 1, the output current of the first current source I1 is:
Figure BDA0003488656290000121
if the output of the first comparator CMP1 is 0, the output current of the first current source I1 is: is composed of
Figure BDA0003488656290000122
Taking the current control bit width of the first current source as bit 16 as an example, the RST reset timing and the current control bit are shown in FIG. 6, and the detection circuit controls the most significant bit D of the bit from the first current source I1[15]At first, the RST reset signal is set to 1 by the successive approximation module to clear the potential at the point A, B, C, and the output of the first current source I1 is 0. The RST reset signal is set to 0 by the successive approximation module, and the highest bit D of the control bits of the first current source I1 is controlled[15]Set to 1 so that the output current of the first current source I1 is
Figure BDA0003488656290000123
Charging A, B, C, locking the output result of the first comparator CMP1 by the DFF trigger according to the charging speed, and configuring the output result to the highest bit D of the first current source control bit by the successive approximation module[15]. Then RST reset signal is set to 1 again, A, B, CThe electric potentials of the three points are reset again, after a period of time, the RST reset signal is set to be 0 through the successive approximation module, and the current of the first current source I1 is controlled to be the next high position D[14]Setting 1, if the result of the DFF flip-flop locking at the time of the first successive approximation calculation is 1, the output current of the first current source I1 at this time is:
Figure BDA0003488656290000131
namely, it is
Figure BDA0003488656290000132
If the result of the DFF flip-flop latch is 0 in the first successive approximation calculation, the output current level of the first current source I1 at this time is:
Figure BDA0003488656290000133
Figure BDA0003488656290000134
namely, it is
Figure BDA0003488656290000135
As shown in fig. 7. The A, B, C three points are charged again, the DFF trigger locks the output result of the first comparator CMP1 according to the charging speed, and the successive approximation module configures the output result to the next higher bit D of the first current source control bit[14]
By analogy, the first current source I1 successively latches the current control bit to 1, and latches the DFF result accordingly until the last bit of the current control bit of the first current source I1, such as the current control bit D from the first current source I1[15]~D[0]And setting 1 one by one, and finally obtaining the complete output current value of the first current source I1.
S2: obtaining an external capacitance reference value according to the output current value of the first current source;
specifically, after obtaining the output current value of the first current source, the external capacitance value may be obtained by conversion, and the calculation formula is:
i1/i4=(Cp+C1)/C4
in the formula i1Is a first current sourceCurrent output value, i4Is the current output value of the fourth current source, CpIs an external capacitance value, C1Is a first capacitance value, C4Is a fourth capacitance value.
S3: acquiring an external capacitance detection value of an external touch PAD in a detection process, calculating an external capacitance difference value between the external capacitance detection value and an external capacitance reference value, and if the external capacitance difference value is larger than a touch threshold value, judging that a finger touches the external touch PAD;
specifically, the external capacitance value is different between a touch by a human hand and a touch by no human hand. Through multiple detections, the reference value of the external capacitance is D when no human hand touches the capacitorvSetting a touch threshold DthWhen the detected value of the external capacitance becomes DfIf the external capacitance difference (D) between the external capacitance detection value and the external capacitance reference valuef-Dv) Touch threshold DthThis indicates that a hand touch is detected.
The invention adopts a successive approximation method, and can quickly detect the external capacitance value, for example, when the bit width of the current control bit of the first current source I1 is 16, the detection method provided by the invention can complete one detection only by 16 charging and discharging. Assuming that the current of the fourth current source I4 is 2uA, the capacitance of the fourth capacitor C4 is 1pF, and the reference voltage VREF is 2V, according to the capacitance charging formula: the charging time can be obtained by (I × t)/C:
t=(U*C)/I=(2V*1pF)/2uA=1uS
that is, the first charging time is 1uS, and the RST high level time is set to 0.25uS, the time required for completing the first touch detection is:
16*(1+0.25)=20uS
all single touch detection can be completed only by 20us, and the detection speed is high and the time consumption is short. In the single touch detection, only 20us is needed, the human body reaction time is assumed to be about 0.1s, the touch detection is set to be performed every 20ms, and if an external touch channel has 16 touch channels, the time required for detecting all the 16 touch channels is as follows:
16*20=320us
in which the detection time only occupies the interval period
Figure BDA0003488656290000141
And the human body was touched 5 times (0.1s/20ms) to confirm whether or not there was a human hand. Therefore, the method has the advantages of high detection speed and short time when multi-channel detection is carried out.
Further, the high-speed low-power-consumption capacitive touch detection method adopts intermittent detection, and can set a detection period, as shown in fig. 8, the whole detection period is divided into working time and sleep time, when no operation is detected within a certain time, the detection circuit enters a sleep state, and the working time of the next period is detected until the completion of one period, so as to realize the function of low-power-consumption detection. For example, assuming that the operating current of the on-time detection circuit is 1mA, the standby power consumption of the sleep-time detection circuit is 2uA, and if the cycle time is 20ms and the single detection time is 20us as described above, the average current is:
Iavg=[1mA*20uS+(20ms-20us)*2uA]/20ms≈3uA
the on time is increased by 20uS for every additional touch channel, and the detection circuit is only increased by (1mA by 20uS)/20ms, i.e. 1uA of average current. In the practical application process, the sleep time and the working time can be adjusted according to the application requirements so as to achieve the most appropriate standby power consumption and realize low-power consumption processing.
Further, a plurality of touch thresholds D of different levels may be setth0,Dth1,Dth2...DthnDetecting the value D of the external capacitancefAnd an external capacitance reference value DvDifference in external capacitance (D) betweenf-Dv) Comparing with multiple touch thresholds when the external capacitance is different (D)f-Dv) When the touch intensity falls within a certain touch threshold range, the touch intensity of the touch can be judged to be the level corresponding to the touch threshold range.
Furthermore, when a plurality of touch PADs are arranged in a crossed mode, the relative positions of the touch PADs can be distinguished according to the proportion of the external capacitance change values of the touch PADs. For example, as shown in FIG. 9, two touch PADs are placed across without finger contactWhen the PAD is touched, the detection circuit detects the corresponding external capacitance reference value Dv0And Dv1When the detected value of the external capacitance becomes Df0And Df1First, according to the difference (D) of external capacitancesf-Dv) And touch threshold DthDetecting whether touch occurs, and then according to (D)f0-Dv0) And (D)f1-Dv1) The relative positions of the two touch PADs are distinguished according to the proportional sizes of the touch PADs, so that the touch sliding function is realized.
EXAMPLE III
A high-speed low-power-consumption capacitive touch detection chip comprises the high-speed low-power-consumption capacitive touch detection circuit.
For a brief description, the chip provided by the embodiment of the present invention may refer to the corresponding content in the foregoing embodiments.
The invention adopts a successive approximation mode to carry out capacitance touch detection, improves the detection speed and the detection precision, reduces the detection power consumption, simultaneously realizes quick multi-channel and multi-time detection, can carry out touch intensity detection by configuring different touch thresholds, and also has the touch sliding detection function.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. The high-speed low-power-consumption capacitive touch detection circuit is characterized by comprising a touch module and a successive approximation module, wherein the touch module comprises a charging power supply module and a comparison trigger module, the charging power supply module is respectively connected with an input side of the comparison trigger module and an external touch PAD, and an output side of the comparison trigger module is connected with the successive approximation module.
2. The high-speed low-power-consumption capacitive touch detection circuit according to claim 1, wherein the charging power module comprises a first current source, a second current source, a third current source and a fourth current source, the first current source output end is connected in parallel with a first capacitor and a first resistor, the first resistor is connected in series between the first current source and the second current source, the second current source output end is connected in parallel with a second capacitor and a second resistor, the second resistor is connected in series between the second current source and the third current source, the third current source output end is connected with a third capacitor, the fourth current source output end is connected with a fourth capacitor, and the first capacitor negative electrode, the second capacitor negative electrode, the third capacitor negative electrode and the fourth capacitor negative electrode are all grounded.
3. The high-speed low-power-consumption capacitive touch detection circuit according to claim 2, wherein the charging power supply module further comprises a first NOMS transistor, a second NOMS transistor and a third NOMS transistor, a drain of the first NOMS transistor is connected to the output end of the first current source, a gate of the first NOMS transistor is connected to a gate of the second NOMS transistor and a gate of the third NOMS transistor, a drain of the second NOMS transistor is connected to the output end of the third current source, a drain of the third NOMS transistor is connected to the output end of the fourth current source, and a source of the first NOMS transistor, a source of the second NOMS transistor and a source of the third NOMS transistor are all grounded.
4. The high speed low power capacitive touch sensing circuit of claim 3, wherein the first NOMS transistor, the second NOMS transistor, and the third NOMS transistor share a same RST reset signal.
5. The high-speed low-power-consumption capacitive touch detection circuit according to claim 2, wherein the comparison trigger module comprises a first comparator, a second comparator and a DFF flip-flop, a non-inverting input terminal of the first comparator is connected to the third current source output terminal, an output terminal of the first comparator is connected to a D terminal of the DFF flip-flop, a non-inverting input terminal of the second comparator is connected to the fourth current source output terminal, an output terminal of the second comparator is connected to a CK terminal of the DFF flip-flop, and inverting input terminals of the first comparator and the second comparator are both connected to a reference voltage.
6. A high-speed low-power capacitive touch detection method is based on the high-speed low-power capacitive touch detection circuit of any one of claims 1 to 5, and comprises the following steps:
sequentially carrying out successive approximation calculation according to the first current source current control bit to obtain a first current source output current value;
acquiring an external capacitance reference value according to the output current value of the first current source;
the method comprises the steps of obtaining an external capacitance detection value of an external touch PAD in a detection process, calculating an external capacitance difference value between the external capacitance detection value and an external capacitance reference value, and judging that a finger touches if the external capacitance difference value is larger than a touch threshold value.
7. A high-speed low-power capacitive touch sensing method according to claim 6,
the detection is intermittent detection, and the detection period comprises sleep time and working time;
the successive approximation calculation times are determined by the current control bit width of the first current source, and the successive approximation calculation starts from the highest bit of the current control bit of the first current source until the last bit of the current control bit of the first current source is finished.
8. The method according to claim 7, wherein successive approximation calculation is performed in sequence according to the first current source current control bit to obtain a first current source output current value, specifically:
the successive approximation module sets the RST reset signal to be 1 so as to clear the charging node potentials of the first current source, the third current source and the fourth current source;
the successive approximation module sets the RST reset signal to be 0, configures the current control bit of the first current source to be 1, and starts to charge the charging nodes of the current sources;
if the charging speed of the charging node where the third current source is located is higher than that of the charging node where the fourth current source is located, the output of the first comparator is 1, and if the charging speed of the charging node where the third current source is located is lower than that of the charging node where the fourth current source is located, the output of the first comparator is 0;
the method comprises the steps that a DFF trigger locks an output result of a first comparator, and a successive approximation module configures the output result of the first comparator to a current bit controlled by a first current source;
and repeating the steps until the last bit of the first current source current control bit to obtain a complete first current source current output value.
9. The high-speed low-power capacitive touch sensing method of claim 6, further comprising:
comparing the external capacitance difference value with a plurality of touch thresholds of different levels to judge the touch intensity;
when a plurality of touch PADs are arranged in a crossed mode, the relative positions of the touch PADs are distinguished according to the proportion of the external capacitance difference values of the touch PADs, and therefore touch sliding is achieved.
10. A high-speed low-power capacitive touch detection chip, comprising the high-speed low-power capacitive touch detection circuit of any one of claims 1 to 5.
CN202210088944.3A 2022-01-25 2022-01-25 High-speed low-power-consumption capacitive touch detection circuit, method and chip Pending CN114465613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210088944.3A CN114465613A (en) 2022-01-25 2022-01-25 High-speed low-power-consumption capacitive touch detection circuit, method and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210088944.3A CN114465613A (en) 2022-01-25 2022-01-25 High-speed low-power-consumption capacitive touch detection circuit, method and chip

Publications (1)

Publication Number Publication Date
CN114465613A true CN114465613A (en) 2022-05-10

Family

ID=81411149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210088944.3A Pending CN114465613A (en) 2022-01-25 2022-01-25 High-speed low-power-consumption capacitive touch detection circuit, method and chip

Country Status (1)

Country Link
CN (1) CN114465613A (en)

Similar Documents

Publication Publication Date Title
JP5352905B2 (en) Semiconductor device and touch sensor using the same
CN106598370B (en) Touch detection circuit and touch control device thereof
KR101488008B1 (en) Control circuit and control method for touch panel
JP4727754B1 (en) Capacitive touch panel
US20090225044A1 (en) Determining touch on keys of touch sensitive input device
US20130113756A1 (en) Method and device for sensing capacitance change and recording medium in which program for executing method is recorded thereon, and method and device for sensing touch using method and recording medium in which program for executing method is recorded thereon
US20230120634A1 (en) Nano-power capacitance-to-digital converter
CN109274363B (en) Key judging system of capacitive touch key
CN105278776A (en) Capacitance voltage information sensing circuit and related anti-noise touch control circuit thereof
US20180106844A1 (en) Capacitive sensing
CN216819821U (en) High-speed low-power-consumption capacitive touch detection circuit and chip
CN108777574A (en) A kind of capacitance touch button circuit
CN111399679A (en) Capacitance detection device
CN110084082B (en) Electronic equipment, fingerprint identification device and finger touch detection circuit thereof
CN101847070B (en) Capacitance change detection module taking electric signal change time as detection target
CN114465613A (en) High-speed low-power-consumption capacitive touch detection circuit, method and chip
CN114204918A (en) Oscillator
CN112305413A (en) Reference clock loss detection circuit and detection method
US20230122233A1 (en) Nano-power architecture enhancements
CN208723872U (en) A kind of capacitance touch button circuit
US9030246B2 (en) Semiconductor device
CN217541955U (en) Touch detection circuit without external capacitor and touch device
CN112986691A (en) Sensing circuit and method for calculating capacitance value by using sensing circuit with inverter
CN109073692B (en) Capacitance detection circuit, touch detection device and terminal equipment
US20110017525A1 (en) Method and apparatus for sensing proximity touch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination