Capacitive touch detection circuits, chips and electronic devices
By designing a capacitive touch detection circuit that does not rely on LDO and using the oscillation module and counting module, the problem of high power consumption of the existing capacitive detection circuit is solved, and an oscillation signal with a frequency independent of the power supply voltage is realized, which reduces power consumption and improves The detection accuracy is improved.
Patent Information
- Application Number
- CN202110497087.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-07
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-05-07
AI Technical Summary
Existing relaxation oscillator type capacitance detection circuits consume large amounts of power, which affects the battery life of electronic devices.
A capacitive touch detection circuit is designed, including an oscillation module and a counting module. The oscillation module generates an oscillation signal through a comparator, a charge and discharge unit and an oscillation control unit. The oscillation frequency has nothing to do with the power supply voltage, and a stable voltage is provided through the reference voltage module and buffer module. Reference voltage avoids the use of LDO circuit, thereby reducing power consumption.
It is realized that the frequency of the oscillation signal is related to the size of the detection capacitor and has nothing to do with the power supply voltage, which reduces the circuit power consumption and improves the anti-interference ability and detection accuracy.
Smart Images

Figure CN113258916B
Abstract
Description
Technical Field
[0001] The present application relates to the field of capacitance detection technology, and in particular to a capacitance touch detection circuit, a chip and an electronic device. Background Art
[0002] Capacitive touch buttons are a widely used non-contact button. Compared with traditional mechanical buttons, capacitive buttons have the advantages of sensitive response, long life, stable performance, etc., so they are widely used in the operation panels of various electronic products.
[0003] The existing capacitive touch button detection structures mainly include the following: relaxation oscillator capacitance detection, successive approximation capacitance detection, integral differential capacitance detection, and capacitance digital detection. Each structure has its own advantages and disadvantages.
[0004] As one of the commonly used detection structures, the relaxation oscillator capacitance detection structure has been widely used in various electronic products. One of the existing relaxation oscillator detection structures is to use a Schmitt trigger to form an oscillator, and to realize detection by charging and discharging an external capacitor. Specifically, when charged to a high threshold voltage VTH, the Schmitt trigger flips, outputs 0, and discharges the external capacitor; when discharged to the low threshold voltage VTL of the Schmitt trigger, the Schmitt trigger flips again, outputs 1, and recharges the capacitor; repeatedly, the Schmitt trigger outputs a square wave signal. The capacitance value of the external capacitor is proportional to the output frequency of the Schmitt trigger. Within a certain period of time, the frequency is counted, and the count value is proportional to the value of the external capacitor. The chip pin is connected to the external capacitor to touch the button. When the hand touches the button, it will cause the capacitance value of the touch button to change, so that the count value changes accordingly, so that the touch action can be judged by the count value difference.
[0005] In order to make the output frequency of the oscillator independent of the power supply voltage, most of the prior art requires adding an LDO (Low Dropout Regulator) circuit to the capacitance detection circuit to provide a stable power supply. The LDO circuit provides a reference voltage to the oscillator on the one hand, and supplies power to the oscillator itself on the other hand. However, adding the LDO circuit increases the power consumption of the entire capacitance detection circuit.
[0006] How to further reduce the power consumption of the relaxation oscillator type capacitance detection circuit is a problem that needs to be solved urgently. Summary of the invention
[0007] In view of this, the present application provides a capacitive touch detection circuit, a chip and an electronic device to solve the problem of high power consumption of the existing capacitive touch detection circuit.
[0008] A capacitive touch detection circuit provided by the present application includes: an oscillation module and a counting module, wherein the oscillation module is used to output an oscillation signal; the oscillation module includes: a comparator, a charge and discharge unit, and an oscillation control unit; the first input end of the comparator is connected to a capacitance detection end, the second input end is connected to a first reference voltage through a first switch, and is connected to a second reference voltage through a second switch, wherein the first reference voltage is greater than the second reference voltage; the oscillation control unit is connected to the output end of the comparator, and is used to output an oscillation signal according to the output signal of the comparator to control the on and off states of the first switch and the second switch; the charge and discharge unit is used to form a positive feedback charge and discharge control between the output end and the first input end of the comparator, so that the voltage at the first input end of the comparator oscillates between the first reference voltage and the second reference voltage.
[0009] Optionally, it also includes: a reference voltage module, connected to the power supply voltage, used to convert the power supply voltage and output the first reference voltage and the second reference voltage.
[0010] Optionally, the oscillation frequency of the oscillation signal varies with the size of the detected capacitance, but has nothing to do with the size of the power supply voltage.
[0011] Optionally, the reference voltage module includes: a second resistor, a third resistor and a fourth resistor connected in series between the power supply voltage and the ground; the connection end of the second resistor and the third resistor serves as a first reference voltage output end for outputting the first reference voltage; the connection end of the third resistor and the fourth resistor serves as a second reference voltage output end for outputting the second reference voltage.
[0012] Optionally, the reference voltage module further includes: a first capacitor, one end of which is connected to the first reference voltage output terminal and the other end is grounded; and a second capacitor, one end of which is connected to the second reference voltage output terminal and the other end is grounded.
[0013] Optionally, it also includes: a buffer module, used to stabilize the first reference voltage and the second reference voltage respectively and then output them.
[0014] Optionally, the buffer module includes: a first operational amplifier, a second operational amplifier, a third capacitor and a fourth capacitor; the output terminal of the first operational amplifier is connected to the negative input terminal, and the positive input terminal is connected to the first reference voltage; the output terminal of the second operational amplifier is connected to the negative input terminal, and the positive input terminal is connected to the second reference voltage.
[0015] Optionally, the oscillation control unit uses the comparator output signal as a first control signal, and outputs a second control signal that is inverted with respect to the first control signal.
[0016] Optionally, the oscillation control unit includes: a NAND gate, a first inverter, and a second inverter; one input end of the NAND gate is connected to the output end of the comparator, and the other input end is used to input an enable control signal, and the output end of the NAND gate is connected to the first inverter; the output end of the first inverter serves as the output end of the oscillation module to output an oscillation signal, and the oscillation signal also serves as the first control signal; the output end of the first inverter is also connected to the input end of the second inverter, and the output end of the second inverter is used to output the second control signal.
[0017] Optionally, the charge and discharge unit includes: a first resistor connected in series between an output terminal of the first inverter / an output terminal of the comparator and the capacitance detection terminal.
[0018] Optionally, the capacitance detection end is a welding pad, and the capacitance detection end is used to connect to a sensitivity adjustment capacitor and a sensing plate.
[0019] Optionally, the sensitivity adjustment capacitor and the sensing plate are both arranged on a circuit board outside the capacitive touch detection circuit.
[0020] Optionally, it further includes: a counting module connected to the output end of the oscillation module, for counting the oscillation signal.
[0021] The present application also provides a chip, comprising the capacitive touch detection circuit as described in any one of the above items.
[0022] The present application provides an electronic device, comprising: a capacitive touch detection circuit as described in any one of the above items.
[0023] The output frequency of the oscillation module of the capacitive touch detection circuit of the present application is only related to the charge and discharge resistance of the charge and discharge unit and the capacitance value of the detection end, and has nothing to do with the power supply voltage. Therefore, no matter how the power supply voltage changes, the output frequency cycle is stable, the entire circuit does not require LDO power supply, and the circuit power consumption can be reduced.
[0024] Furthermore, the power supply voltage passes through a reference voltage module and a buffer module with a low-pass filtering function to provide an interference-resistant reference voltage to the positive input terminal of the comparator, so the circuit has a strong anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1is a structural schematic diagram of a capacitive touch detection circuit according to an embodiment of the present application;
[0027] Figure 2 is a structural schematic diagram of a capacitive touch detection circuit according to an embodiment of the present application;
[0028] Figure 3 1 is a timing diagram of a capacitive touch detection process according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] As described in the background art, in the prior art, in order to make the output frequency of the oscillator independent of the power supply voltage, it is necessary to add an LDO circuit to the circuit structure, which leads to increased power consumption and reduced battery life of the electronic device.
[0030] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0031] Please refer to Figure 1 , is a schematic diagram of the structure of a capacitive touch detection circuit according to an embodiment of the present invention.
[0032] In this embodiment, the capacitive touch detection circuit includes: an oscillation module 110 and a counting module 120, wherein the oscillation module 110 is used to output an oscillation signal whose frequency varies with the detection capacitance but is independent of the power supply voltage, and the counting module 120 is used to count the oscillation signal.
[0033] The oscillation module 110 includes a comparator CMP, a charge and discharge unit 112 and an oscillation control unit 111 .
[0034] The first input terminal of the comparator CMP is connected to the capacitance detection terminal PAD, and the second input terminal is connected to the first reference voltage VH through the first switch SA, and is connected to the second reference voltage VL through the second switch SB, and the first reference voltage VH is greater than the second reference voltage VL. In this embodiment, the first input terminal is a negative input terminal, and the second input terminal is a positive input terminal.
[0035] The capacitance detection terminal PAD is a pad of the chip where the capacitance touch detection circuit is located, which is used to connect to the outside, specifically, to be welded to a circuit board and connected to a sensing electrode on the circuit board. When a user performs a touch operation, the sensing capacitance Csensor between the sensing electrode and the ground changes, which causes the total capacitance value between the capacitance detection terminal and the ground to change. The sensing electrode can be a wire on a circuit board.
[0036] In this embodiment, the capacitance detection terminal PAD is also connected to a sensitivity adjustment capacitor Cx for adjusting the sensitivity of the touch detection. The capacitance of the sensitivity adjustment capacitor Cx is usually 0-50 pf.
[0037] The oscillation control unit 111 is connected to the output terminal of the comparator CMP, and is used to output an oscillation control signal according to the output signal of the comparator CMP to control the on-off state of the first switch SA and the second switch SB. The oscillation control unit 111 also includes a control terminal, which is used to input an oscillation enable signal EN to control the enable state of the oscillation module 110.
[0038] Specifically, when EN=1, the oscillation control unit 111 is enabled and outputs an oscillation control signal following the output signal of the comparator CMP. Specifically, the oscillation control signal includes a first control signal DOUT and a second control signal DOUT_B; the first control signal DOUT is used to control the on and off of the first switch SA, and the second control signal DOUT_B is used to control the on and off of the second switch SB. The first control signal DOUT and the second control signal DOUT_B are inverted signals, so that at the same moment, only one of the first switch SA and the second switch SB is turned on.
[0039] The charge and discharge unit 112 is used to form a positive feedback charge and discharge control between the output terminal and the first input terminal of the comparator CMP, so that the voltage of the first input terminal of the comparator CMP oscillates between the first reference voltage VH and the second reference voltage VL. In this embodiment, the first control signal DOUT output by the oscillation control unit 111 and the output of the comparator CMP are in-phase signals. In this embodiment, the charge and discharge unit 112 is connected between the output terminal of the first control signal DOUT and the first input terminal of the comparator CMP, and when DOUT is at a high level, the capacitance between the capacitance detection terminal PAD and the ground is charged; when DOUT is at a low level, the capacitance between the capacitance detection terminal PAD and the ground is discharged. In other embodiments, the charge and discharge unit 112 can also be connected between the output terminal of the comparator CMP and the first input terminal of the comparator CMP.
[0040] In one embodiment, when EN=0, the first control signal DOUT=0 (low level), the second control signal DOUT_B=1 (high level), the second input terminal (positive input terminal) of the comparator CMP is connected to the second reference voltage VL; the capacitance detection terminal PAD is discharged to 0 through the charge and discharge unit 112, and the counter 120 does not count. When the comparator CMP is enabled and EN=1, the voltage at the capacitor detection terminal PAD is less than VL, the comparator CMP output signal turns to a high level, DOUT=1, DOUT_B=0, the switch SA is turned on, SB is turned off, and the positive input terminal of the comparator is connected to the first reference voltage VH; because DOUT=1, the charge and discharge unit 112 charges the capacitor detection terminal PAD, so that the voltage at the PAD terminal increases from VL to VH, the comparator CMP output signal flips again, the comparator CMP positive input terminal switches to the second reference voltage VL, the PAD terminal discharges, and when the voltage at the PAD terminal is less than VL, the comparator CMP output flips again; the cycle is repeated, so that the PAD terminal voltage oscillates between VL and VH, the comparator CMP outputs a square wave oscillation signal, and then the oscillation control unit 111 outputs a first control signal DOUT with the same frequency as the PAD terminal voltage. The first control signal DOUT is also used as the output signal of the oscillation module 110, and the counter 120 counts the first control signal DOUT.
[0041] When the user performs a touch operation, the size of the touch capacitance Csensor between the capacitance detection terminal PAD and the ground changes, which in turn changes the charge and discharge rate of the PAD terminal, changes the voltage change frequency of the PAD terminal, and finally changes the frequency of the first control signal DOUT. The count value of the counter 120 changes, thereby detecting the touch operation.
[0042] In this embodiment, the capacitive touch detection circuit further includes a reference voltage module 130, which is connected to the power supply voltage VDD and is used to convert the power supply voltage VDD and output the first reference voltage VH and the second reference voltage VL. Furthermore, a buffer module 140 is connected between the reference voltage module 130 and the oscillation module 110, and the buffer module 140 is used to stabilize the first reference voltage VH and the second reference voltage VL and output them. In other embodiments, the reference voltage module 130 can also be directly connected to the oscillation module 110.
[0043] In this embodiment, the reference voltage module 130 includes a second resistor R2, a third resistor R3, and a fourth resistor R4 connected in series between the power supply voltage VDD and the ground terminal; the connection end of the second resistor R2 and the third resistor R3 is used as a first reference voltage VH output terminal for outputting the first reference voltage VH; the connection end of the third resistor R3 and the fourth resistor R4 is used as a second reference voltage VL output terminal for outputting the second reference voltage VL. The second resistor, the third resistor R3, and the fourth resistor R4 are used as voltage divider resistors, and the first reference voltage Second reference voltage The first reference voltage VH and the second reference voltage VL can be adjusted by adjusting the size of the second resistor R2, the third resistor R3 and the fourth resistor R4. The second resistor R2, the third resistor R3 and the fourth resistor R4 can be respectively composed of one or more resistors connected in series and / or in parallel, and the second resistor R2, the third resistor R3 and the fourth resistor R4 are only used as equivalent illustrations, and their actual specific structures are not limited.
[0044] Furthermore, in order to avoid the influence of noise caused by fluctuations in the power supply voltage VDD, in this embodiment, the reference voltage module 110 further includes: a first capacitor C1, one end of which is connected to the output end of the first reference voltage VH and the other end is grounded; a second capacitor C2, one end of which is connected to the output end of the second reference voltage VL and the other end is grounded. The first capacitor C1, the second capacitor C2, the second resistor R2, the third resistor R3 and the fourth resistor R4 form a low-pass filter to filter out high-frequency interference for the output first reference voltage VH and the second reference voltage VL.
[0045] The buffer module 140 includes: a first operational amplifier OP1, a second operational amplifier OP2, a third capacitor C3 and a fourth capacitor C4; the output terminal of the first operational amplifier OP1 is connected to the negative input terminal, and the positive input terminal is connected to the first reference voltage VH; the output terminal of the second operational amplifier OP2 is connected to the negative input terminal, and the positive input terminal is connected to the second reference voltage VL. In addition, a third capacitor C3 is connected in series between the output of the first operational amplifier OP1 and the ground, serving as a capacitive load of the first operational amplifier OP1; a fourth capacitor C4 is connected in series between the output of the second operational amplifier OP2 and the ground, serving as a capacitive load of the second operational amplifier OP2. The buffer module 140 composed of the first operational amplifier OP1, the second operational amplifier OP2, the third capacitor C3 and the fourth capacitor C4 provides driving capability for the circuit, while stabilizing the first reference voltage VH and the second reference voltage VL.
[0046] The power supply voltage VDD passes through the reference voltage module 130 and the buffer module 140 with low-pass filtering function to provide an anti-interference reference voltage to the positive input terminal of the comparator CMP, so the anti-interference ability of this circuit is relatively strong.
[0047] Please refer to Figure 2 , is a schematic diagram of the structure of a capacitive touch detection circuit according to an embodiment of the present invention.
[0048] In this embodiment, the charge and discharge unit 112 of the oscillation module 110 includes a first resistor R1. The first resistor R1 may be composed of one or more resistors connected in series and / or in parallel. The first resistor R1 is only used as an equivalent illustration and does not limit its actual specific structure.
[0049] The oscillation control unit 111 further includes: a NAND gate NAND, a first inverter INV1, and a second inverter INV2; one input end of the NAND gate NAND is connected to the output end of the comparator CMP, and the other input end is used to input the enable control signal EN, and the output end of the NAND gate NAND is connected to the first inverter INV1; the output end of the first inverter INV1 is used to output the first control signal DOUT, and also serves as the output end of the oscillation module 110, and the first control signal DOUT also serves as the oscillation signal output by the oscillation module 110; the output end of the first inverter INV1 is also connected to the input end of the second inverter INV2, and the output end of the second inverter INV2 is used to output the second control signal DOUT_B, and the second control signal DOUT_B is an inverted signal of the first control signal DOUT.
[0050] When EN=0 (low level), the oscillation control unit 111 is in a non-starting state, the NAND gate NAND outputs a high level, and after passing through the first inverter INV1, the first control signal DOUT=0 (low level) and the second control signal DOUT_B=1 (high level) are output, the first switch SA is controlled to be disconnected, the second switch SB is controlled to be turned on, and the positive input terminal of the comparator CMP is connected to the second reference voltage VL. At this time, the capacitance detection terminal PAD is discharged to a voltage of 0 through the first resistor R1, and the counter 120 does not count.
[0051] When EN=1 (high level), the oscillation control unit 111 is in the startup state, at which time the comparator CMP outputs a high level, DOUT=1, DOUT_B=0, the first switch SA is turned on, the second switch SB is turned off, and the positive input terminal of the comparator CMP is connected to the first reference voltage VH; since DOUT=1 is a high level, the capacitance detection terminal PAD is charged. During the charging process, the comparator CMP continuously outputs 1, and when the voltage of the capacitance detection terminal PAD rises to VH, the comparator CMP output flips to 0.
[0052] When the output of the comparator CMP flips to 0, DOUT = 0, DOUT_B = 1, the capacitor detection terminal PAD enters the discharge process, and the positive input terminal of the comparator CMP is connected to the second reference voltage VL through the second switch SB. During the discharge process, the comparator CMP continues to output 0. When the voltage of the capacitor detection terminal PAD drops to VL, the comparator CMP output flips to 1 and returns to the charging process.
[0053] This cycle repeats itself, and the comparator CMP outputs a square wave. The oscillation control unit 111 outputs the same square wave signal DOUT. The counter 120 counts the number of oscillation cycles of DOUT within a specified measurement time as capacitance sampling data.
[0054] Since the oscillation period T = k*C total , k is the oscillation coefficient, which is related to the charge and discharge resistance R1 and the voltage swing VL-VH. Measurement time T Meas The oscillation count is N.
[0055]
[0056] C total is the total capacitance between the PAD terminal and ground, including the sensing capacitor C sensor As well as other parasitic capacitances, and sensitivity adjustment capacitance Cx. total The change of will change the oscillation frequency. When there is a touch, C sensor becomes larger, resulting in C total becomes larger, resulting in a smaller oscillation frequency, and thus a smaller count value N, thereby determining whether there is a touch operation.
[0057] By taking the derivative of the above formula (1), we get:
[0058]
[0059]
[0060] From formula (3), we can see that the change rate of the count value N is With the total capacitance C total The higher the change rate of the count value N, the higher the sensitivity of touch detection. total Negatively correlated, so C total The smaller the inherent capacitance in the circuit, the larger the dN, and the higher the sensitivity. From the above formula, we can get that the change rate of the count value N is related to C total is proportional to the rate of change.
[0061] Touch capacitance C total =C ins +dCtotal , C ins is the inherent parasitic capacitance between the capacitance detection terminal PAD and the ground, dC total is the capacitance change caused by touch, dC total =dC sensor . The inherent parasitic capacitance C ins Size, adjust the sensitivity.
[0062] In some embodiments, the inherent capacitance C between the capacitance detection terminal PAD and the ground ins Usually includes: parasitic capacitance C between the negative input port of comparator CMP and ground PAD The negative input port is usually connected to an electrostatic discharge structure (ESD), and there is a parasitic capacitance C ESD , when the external sensitivity adjustment capacitor Cx is connected, the total capacitance C total =C x +C PAD +C ESD +C sensor , the counting value change rate:
[0063]
[0064] It can be seen from formula (4) that the PAD parasitic capacitance C PAD 、ESD parasitic capacitance C ESD The smaller the size, the higher the sensitivity of the chip. And the parasitic capacitance between the PAD and the power supply VDD and the ground should be the smallest, so as to improve the anti-interference ability, so here it is necessary to select the smallest size pad as the capacitance detection terminal PAD. In some embodiments, the size of the PAD can be 60μm*60μm.
[0065] When the circuit structure is determined, C ESD and C PAD The value is fixed. After the internal parasitic capacitance is minimized, the detection sensitivity can be adjusted by the external sensitivity adjustment capacitor Cx. The smaller Cx is, the greater the sensitivity is. The advantage of this is that more weight is given to the external capacitor to adjust the sensitivity.
[0066] In the process of data processing through digital circuits, the percentage of capacitance change is Compare with the touch threshold, when the capacitance change exceeds the touch threshold, it is judged that a touch operation has occurred. Judging by the percentage of capacitance change can ensure that the measurement result is not affected by factors such as measurement time, oscillation swing, charge and discharge current, and the sensitivity is only related to related.
[0067] Due to the oscillation period of the oscillation signal DOUT and the total capacitance C totalThe oscillation period is related to the charge and discharge time of the total capacitance Cx, so the oscillation period can be derived based on the charge and discharge time of the total capacitance Cx.
[0068] The capacitor charging voltage formula is: Where V(t) is the capacitor plate voltage at time t, V0 is the power supply voltage, τ = R1*C total Generally speaking, the touch capacitance Cx is much larger than the parasitic capacitance of the internal comparator CMP port, so C1≈Cx, so τ≈Rx*Cx.
[0069] The above formula can be rearranged to obtain:
[0070]
[0071] The voltage on the capacitance detection terminal PAD changes from Rise to The time is the oscillation clock power-on period T1, then according to formula (5), it can be deduced that:
[0072]
[0073] Among them, R=R2+R3+R4.
[0074] The time it takes for the voltage on the capacitor detection terminal PAD to drop from VH to VL, that is, the power-down period of the oscillation clock, is T2.
[0075]
[0076] The complete clock cycle is:
[0077]
[0078] Therefore, the clock oscillation period can be adjusted by adjusting the value of the charge and discharge resistor R1.
[0079] Since the parasitic capacitance of the capacitance detection end is much smaller than the sensitivity adjustment capacitance Cx, C total ≈Cx.
[0080] It can be seen from the above oscillator period formula (8) that the output frequency of the oscillation module 110 is only related to the resistance and capacitance values, and has nothing to do with the power supply voltage VDD. Therefore, as the power supply voltage VDD of the battery power supply decreases, the output frequency period is stable. The entire circuit does not need LDO power supply, which can reduce circuit power consumption.
[0081] Please refer to Figure 3 , is a timing diagram of a capacitive touch detection process according to an embodiment of the present invention.
[0082] Among them, PH1, PH2 and PH3 are three stages of the complete process of one detection.
[0083] PH1 is a detection preparation stage, during which the enable control EN signal of the oscillation control unit 111 is 0, and the oscillation module 110 is in a closed state. First, the comparator CMP is turned on to put the comparator CMP in a working state to establish a stable output.
[0084] PH2 is the capacitance detection stage, in which the enable control EN signal is 1, the oscillation module 110 oscillates and outputs a stable square wave signal DOUT to the counter 120, and the digital part counts the number of square waves N. After the comparator CMP is stable, the oscillation module 110 is started to prevent the output oscillation signal DOUT from jumping.
[0085] PH3 is the data processing stage of the detection. In this stage, the enable control EN signal remains at 1, but the digital part no longer receives the count value N of the output signal of the oscillation module 110 .
[0086] After the data processing is completed, the comparator CMP output is low, the oscillator EN is 0, the oscillation module 110 outputs a low level, and the entire detection process is completed.
[0087] An embodiment of the present invention further provides a chip, in which the capacitive touch detection circuit as described in any of the above embodiments is formed.
[0088] An embodiment of the present invention further provides an electronic device, comprising a capacitive touch detection circuit as described in any of the above embodiments. The detection accuracy of the capacitive touch detection circuit is improved, which can improve the accuracy of touch control of the electronic device. The electronic device can be a mobile phone, tablet computer, laptop computer, smart door lock, etc. with a touch control function.
[0089] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structural or equivalent process transformations made using the contents of the specification and drawings of the present application, such as the mutual combination of technical features between the embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A capacitive touch detection circuit, characterized in that: include: An oscillation module, used for outputting an oscillation signal; A reference voltage module is connected to the power supply voltage and is used to convert the power supply voltage to output a first reference voltage and a second reference voltage; the oscillation module includes: A comparator, a charge and discharge unit, and an oscillation control unit; The first input terminal of the comparator is connected to the capacitance detection terminal, the second input terminal is connected to a first reference voltage through a first switch, and is connected to a second reference voltage through a second switch, the first reference voltage is greater than the second reference voltage; The oscillation control unit is connected to the output end of the comparator, and is used to output an oscillation control signal according to the output signal of the comparator, so as to control the on-off state of the first switch and the second switch; The charge and discharge unit is used to form a positive feedback charge and discharge control between the output terminal and the first input terminal of the comparator, so that the voltage of the first input terminal of the comparator oscillates between the first reference voltage and the second reference voltage; The reference voltage module includes: a first capacitor, a second capacitor, a second resistor, a third resistor and a fourth resistor connected in series between a power supply voltage and a ground terminal; a connection end of the second resistor and the third resistor is used as a first reference voltage output terminal for outputting the first reference voltage; a connection end of the third resistor and the fourth resistor is used as a second reference voltage output terminal for outputting the second reference voltage; one end of the first capacitor is connected to the first reference voltage output terminal, and the other end is grounded; one end of the second capacitor is connected to the second reference voltage output terminal, and the other end is grounded; The oscillation control unit also includes a control terminal for inputting an enable control signal. When the enable control signal is 1, the oscillation control unit is enabled and outputs an oscillation control signal following the output signal of the comparator; the oscillation control signal includes a first control signal and a second control signal; the first control signal is used to control the on and off of the first switch, and the second control signal is used to control the on and off of the second switch, and the first control signal and the second control signal are inverted signals.
2. The capacitive touch detection circuit according to claim 1, characterized in that: The oscillation frequency of the oscillation signal varies with the size of the detected capacitance, but has nothing to do with the size of the power supply voltage.
3. The capacitive touch detection circuit according to claim 1, characterized in that: Also includes: The buffer module is used to stabilize the first reference voltage and the second reference voltage respectively and then output them.
4. The capacitive touch detection circuit according to claim 3, characterized in that: The buffer module includes: a first operational amplifier, a second operational amplifier, a third capacitor and a fourth capacitor; the output end of the first operational amplifier is connected to the negative input end, and the positive input end is connected to the first reference voltage; the output end of the second operational amplifier is connected to the negative input end, and the positive input end is connected to the second reference voltage.
5. The capacitive touch detection circuit according to claim 1, characterized in that: The oscillation control unit uses the comparator output signal as the first control signal, and outputs the second control signal which is inverted with the first control signal.
6. The capacitive touch detection circuit according to claim 5, characterized in that: The oscillation control unit includes: a NAND gate, a first inverter, and a second inverter; one input end of the NAND gate is connected to the output end of the comparator, and the other input end is used to input the enable control signal, and the output end of the NAND gate is connected to the first inverter; the output end of the first inverter serves as the output end of the oscillation module to output an oscillation signal, and the oscillation signal also serves as the first control signal; the output end of the first inverter is also connected to the input end of the second inverter, and the output end of the second inverter is used to output the second control signal.
7. The capacitive touch detection circuit according to claim 6, characterized in that: The charging and discharging unit includes: a first resistor connected in series between the output end of the first inverter / the output end of the comparator and the capacitance detection end.
8. The capacitive touch detection circuit according to claim 1, characterized in that: The capacitance detection end is a welding pad, and the capacitance detection end is used to connect to a sensitivity adjustment capacitor and a sensing plate.
9. The capacitive touch detection circuit according to claim 8, characterized in that: The sensitivity adjustment capacitor and the sensing plate are both arranged on a circuit board outside the capacitive touch detection circuit.
10. The capacitive touch detection circuit according to claim 1, characterized in that: Also includes: A counting module is connected to the output end of the oscillation module and is used for counting the oscillation signal.
11. A chip, characterized in that: The invention comprises a capacitive touch detection circuit as claimed in any one of claims 1 to 10.
12. An electronic device, characterized in that: include: A capacitive touch detection circuit as claimed in any one of claims 1 to 10.
