Capacitive touch button key detection system

By alternately controlling the switching circuit and the comparison unit, the discharge time of the reference capacitor is accurately determined, solving the problem of low discharge time utilization and improving the sensitivity and scanning efficiency of the touch button.

CN109245753BActive Publication Date: 2024-11-01GUANGZHOU JUSHENGWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811342836.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-13
Publication Date
2024-11-01
Estimated Expiration
2038-11-13

AI Technical Summary

Technical Problem

In existing capacitive touch button technology, the discharge time of the reference capacitor is fixed but it is impossible to accurately determine when it is completed, resulting in low utilization of the discharge time and affecting the key detection accuracy and touch sensitivity.

Method used

By employing an alternating control switching circuit and a comparison unit, the system automatically determines the timing of discharge completion by detecting the charging and discharging state of the reference capacitor, and immediately initiates the next charging cycle after discharge, thereby improving the utilization rate of discharge time.

Benefits of technology

It improves the utilization rate of discharge time by 20% to 50%, reduces waiting time, and improves the scanning time efficiency and sensitivity of touch buttons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109245753B_ABST
    Figure CN109245753B_ABST
Patent Text Reader

Abstract

The invention discloses a key judging system for a capacitive touch key, and relates to the technical field of capacitive touch keys, comprising a switch circuit, a comparison unit, and a signal processing unit; the characteristics are: the comparison unit detects whether a reference reference capacitor Cref has completed charging or discharging; the signal processing unit controls the operation of a corresponding logic switch group according to a charging completion / discharging completion signal output by the comparison unit, and discharges / charges the reference reference capacitor Cref; when the key judging system disclosed by the invention is used, when the function of time-division multiplexing IO is applied, the discharge of the reference reference capacitor Cref is controlled, thereby saving the waiting time for each discharge completion of the reference reference capacitor Cref, and at the same time, the count value of the number of charge and discharge times of the parasitic capacitor of the touch key within a fixed time is increased, thereby improving the effective utilization rate of the touch key scanning time, thereby ultimately improving the touch sensitivity of the touch key, and the utilization rate of the effective time of the actual discharge in this way is increased by 20% to 50%.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of touch keys, and in particular to a key determination system for capacitive touch keys. Background Art

[0002] Capacitive touch buttons are generally divided into two types, one of which is based on an oscillator-type structure; the other is based on a charge-type charging and discharging structure. Figure 1 As shown, the basic principle is, Figure 1 Where Cx is the parasitic capacitance of the touch key. By controlling the first logic control switch SW1 to be closed and the second logic control switch SW2 to be opened, the parasitic capacitance Cx of the touch key is charged. After the charge reaches the power supply voltage VDD, the first logic control switch SW1 is controlled to be opened and the second logic control switch SW2 is controlled to be closed. Then, the charge of the parasitic capacitance Cx of the touch key is transferred to the reference reference capacitor Cref until the voltage on the parasitic capacitance Cx of the touch key is consistent with the voltage on the reference reference capacitor Cref. In this way, the parasitic capacitance Cx of the touch key is charged, the charge is transferred, then charged, and then transferred again until the voltage on the reference reference capacitor Cref reaches the reference voltage Vref output by the comparator. In this way, the charging of the reference reference capacitor Cref for one charging cycle is completed; then the third logic control switch SW3 is controlled to be closed to discharge the charge of the reference reference capacitor Cref. In a charging cycle of the reference reference capacitor Cref, a high-frequency clock is used to count the number of times the reference reference capacitor Cref is charged, that is, the number of times the first logic control switch SW1 and the second logic control switch SW2 are alternately opened and closed. When the hand touches the touch button, the parasitic capacitance Cx of the touch button will increase, and the number of times the reference reference capacitor Cref is charged in a charging cycle will decrease. By recording the number of times the reference capacitor Cref is charged, it is possible to distinguish whether the touch button is touched.

[0003] From the above description, since only the number of times the reference reference capacitor Cref is charged is recorded, the charging time of the reference reference capacitor Cref is not recorded, and since the larger the parasitic capacitance Cx of the touch button and the larger the finger touch capacitance, the greater the capacitance requirement of the reference reference capacitor Cref, and the longer the discharge time of the reference reference capacitor Cref will be. Assuming that the touch button is 10pF, in order to achieve a capacitance detection accuracy of one thousandth, the reference reference capacitor Cref needs to be more than 10nF. For a 10nF capacitor discharge, since it is designed inside the chip, the discharge resistance cannot be too small. Too small will result in a relatively large current, and a large discharge resistance will result in a long discharge time.

[0004] In the prior art, there is no method for determining when the reference reference capacitor Cref is completely discharged and controlling the closing time of the third logic control switch SW3 to be fixed. In order to ensure that the reference reference capacitor Cref is completely discharged, the time setting will be much higher than the actual time when the reference reference capacitor Cref is completely discharged. That is, after the reference reference capacitor Cref is completely discharged, there will be a certain waiting time before the next charging of the reference reference capacitor Cref is performed. The purpose is to ensure that the reference reference capacitor Cref is completely discharged.

[0005] In general applications, there are several touch buttons, which means that there will be times when the touch buttons and other function ports reuse the IO port. A common reuse situation is time-sharing, that is, in a certain period of time, this IO port should be used to push rectangular square waves, perhaps to push some LED lights; but in the next period of time, this IO port also needs to be used as a touch button for key detection. Since some IO ports are time-sharing multiplexed applications, the time allocated to the touch button is limited, so how to reasonably use the limited time to complete more charging or discharging counting statistics has become the key to the design of touch buttons under this structure.

[0006] For optimizing the utilization rate of discharge time in the charge-type charge and discharge structure, a more direct solution is to shorten the discharge time of the reference reference capacitor Cref. However, this may result in the reference reference capacitor Cref not being completely discharged, or not reaching a stable state after discharge, which makes the number of times the reference reference capacitor Cref is charged to the reference voltage Vref in the next charging cycle inaccurate, thereby causing errors in judgment and making it difficult to ensure key judgment accuracy. Summary of the invention

[0007] The capacitive touch key judging system provided by the present invention can effectively optimize the discharge time of the reference capacitor Cref and improve the time utilization rate.

[0008] To achieve the above object, the present invention adopts the following technical solutions:

[0009] A key detection system for a capacitive touch key includes: a switch circuit including a first logic control switch, a second logic control switch and a third logic control switch; the first logic control switch and the second logic control switch alternately present an open and closed state at a certain frequency F1;

[0010] It is characterized by further comprising:

[0011] A comparison unit, wherein a first input terminal is coupled to a reference reference capacitor Cref; the first input terminal is coupled to a power supply terminal through the second logic control switch and the first logic control switch; the first input terminal is coupled to a plurality of touch key terminals through the second logic control switch; the comparison unit detects whether the reference reference capacitor Cref is fully charged or discharged;

[0012] The first logic control switch and the second logic control switch are alternately opened and closed to charge the reference capacitor Cref; the third logic control switch discharges the reference capacitor Cref;

[0013] A signal processing unit, whose input end is connected to the output end of the comparison unit; the signal processing unit controls the switch circuit to charge or discharge the reference capacitor Cref according to the output result of the comparison unit.

[0014] As an improved technical solution, the first input terminal of the comparison unit is coupled to the third logic control switch and then grounded;

[0015] The signal processing unit controls the first logic control switch and the second logic control switch to be alternately opened and closed according to the discharge completion signal output by the comparison unit; and controls the third logic control switch to be closed according to the charge completion signal output by the comparison unit.

[0016] As an improved technical solution, the first input end of the comparison unit is grounded after passing through the second logic control switch and the third logic control switch; the second logic control switch and the third logic control switch are alternately open and closed at a certain frequency F2 to discharge the reference capacitor Cref; the second logic control switch cooperates with the first logic control switch or the third logic control switch in a selective manner;

[0017] The signal processing unit controls the first logic control switch and the second logic control switch to be alternately opened and closed according to the discharge completion signal output by the comparison unit; and controls the second logic control switch and the third logic control switch to be alternately opened and closed according to the charge completion signal output by the comparison unit.

[0018] As an improved technical solution, the comparison unit includes a first comparator and a second comparator, the positive input ends of the first comparator and the second comparator are the first input end of the comparison unit, the negative input end of the first comparator is connected to a charging reference voltage; the negative input end of the second comparator is connected to a discharging reference voltage; the output ends of the first comparator and the second comparator are respectively connected to the input end of the signal processing unit.

[0019] As an improved technical solution, the comparison unit includes a first comparator, a second comparator and an RS trigger; the positive input ends of the first comparator and the second comparator are the first input end of the comparison unit, and the negative input end of the first comparator is connected to a charging reference voltage; the negative input end of the second comparator is connected to a discharging reference voltage; the output ends of the first comparator and the second comparator are respectively connected to the input ends of the RS trigger, and the output end of the RS trigger is connected to the input end of the signal processing unit.

[0020] As an improved technical solution, the first logic control switch is connected in series with a resistor R1; the third logic control switch is connected in series with a resistor R2.

[0021] As an improved technical solution, the frequency F1 and the frequency F2 are square wave signals with fixed frequencies.

[0022] As an improved technical solution, the frequency F1 and the frequency F2 are both variable frequency square wave signals, and the frequency is maintained or increased as time goes by.

[0023] As an improved technical solution, the frequency of the variable frequency square wave signal changes in a step-like or linear manner as time increases.

[0024] As an improved technical solution, the first logic control switch is a PMOS switch tube, the second logic control switch is a transmission gate switch, the third logic control switch is an NMOS switch tube, and a normally closed transmission gate switch is arranged between the first input end of the comparison unit and the reference reference capacitor Cref; a transmission gate switch is arranged between each touch button end and the second logic control switch.

[0025] Beneficial technical effects of the present invention:

[0026] The disadvantages of the prior art are as follows: the discharge of the reference capacitor Cref is completed once in a fixed time, but it is impossible to know when the discharge is completed, and a certain waiting time is required to ensure that the reference capacitor Cref is completely discharged.

[0027] The beneficial effects of the present invention are as follows: the reference reference capacitor Cref is discharged in a cycle, and the key judgment system of the capacitive touch key can judge whether the discharge is completed. When the discharge is completed, the reference reference capacitor Cref is charged for the next time, which saves the waiting time after the discharge is completed in the prior art, and also increases the count value of the number of charge and discharge times of the parasitic capacitance of the touch key within a fixed time, thereby improving the effective utilization rate of the touch key scanning time, and finally improving the touch sensitivity of the touch key. The utilization rate of the effective time of actual discharge is increased by 20% to 50% by adopting this method. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a structural block diagram of a key judgment system of a capacitive touch button in the prior art.

[0029] Figure 2 It is the voltage waveform of the reference capacitor Cref during the charging and discharging process in the prior art.

[0030] Figure 3 1 is a structural block diagram of a capacitive touch key detection system provided in the first embodiment of the present invention.

[0031] Figure 4 1 is a voltage waveform during the charging and discharging process of the reference capacitor Cref provided in the first embodiment of the present invention.

[0032] Figure 5 4 is a structural block diagram of a capacitive touch key detection system provided in the second embodiment of the present invention.

[0033] Figure 6 1 is a voltage waveform during the charging and discharging process of the reference capacitor Cref provided by the second embodiment of the present invention.

[0034] Figure 7 1 is the input and output waveform of the trigger RS ​​provided in the embodiment of the present invention.

[0035] Figure 8 1 is a square wave signal waveform 1 of a charging / discharging variable frequency and its frequency-time curve provided by an embodiment of the present invention.

[0036] Fig. 9 This is a second square wave signal waveform of a variable frequency of charge / discharge and its frequency-time curve provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to more clearly understand the technical solution of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0038] Embodiment 1: Figure 3 As shown, the key detection system of the capacitive touch key includes: a switch circuit, a comparison unit and a signal processing unit.

[0039] The comparison unit includes a first comparator, a second comparator and an RS trigger, wherein the positive input terminals of the first comparator and the second comparator are commonly coupled to a reference reference capacitor Cref through a normally closed transmission gate switch 100; the negative input terminal of the first comparator is coupled to a charging reference voltage VTH_H, and the negative input terminal of the second comparator is coupled to a discharging reference voltage VTH_L; the output terminals of the first comparator and the second comparator are respectively connected to the input terminals of the RS trigger; the output terminal of the RS trigger is connected to the input terminal of the signal processing unit; the first comparator is used to detect whether the reference reference capacitor Cref has completed charging, and the second comparator is used to detect whether the reference reference capacitor Cref has completed discharging.

[0040] The charging reference voltage VTH_H and the discharging reference voltage VTH_L can determine the swing range of the high and low voltages on the reference capacitor Cref. Under the condition that the first comparator and the second comparator can work normally, the charging reference voltage VTH_H can be increased or the discharging reference voltage VTH_L can be reduced, thereby increasing the number of counts for the reference capacitor Cref to complete charging or discharging, thereby improving touch sensitivity.

[0041] The switch circuit includes a first logic control switch SW1 , a second logic control switch SW2 , a third logic control switch SW3 , a resistor R1 , and a resistor R2 .

[0042] The positive inputs of the first comparator and the second comparator are coupled to the power supply terminal VDD through the first logic control switch SW1 and the second logic control switch SW2; the positive inputs of the first comparator and the second comparator are grounded through the second logic control switch SW2 and the third logic control switch SW3; the positive inputs of the first comparator and the second comparator are also coupled to multiple touch keys through the second logic control switch SW2. The resistor R1 is connected in series with the first logic control switch SW1 and is set between the first logic control switch SW1 and the second logic control switch SW2. The function is to limit the current in the charging process to be too large. Because the charge and discharge are completed inside the chip, there is no resistor R1 to limit the current. Although the charging time is shortened, the instantaneous current will be very large, which is easy to cause interference or metal overcurrent and overheating; the resistor R2 is connected in series with the third logic control switch SW3 and is set between the second logic control switch SW2 and the third logic control switch SW3. The function is to prevent the current from being too large during discharge. If there is no resistor R2, the current will be very large when the discharge switch is closed, which may cause the connection to burn out.

[0043] The first logic control switch SW1 and the second logic control switch SW2 are alternately open and closed at a certain frequency F1, and are used to charge the reference reference capacitor Cref; the second logic control switch SW2 and the third logic control switch SW3 are alternately open and closed at a certain frequency F2, and are used to discharge the reference reference capacitor Cref; the second logic control switch SW2 cooperates with the first logic control switch SW1 or the third logic control switch SW3 in a selective manner; the second logic control switch SW2 is a transmission gate switch.

[0044] The signal processing unit uses a high-frequency clock to count the number of charges / discharges of the reference capacitor Cref within a charge / discharge cycle. After obtaining several count values, the signal processing unit performs filtering / deburring / threshold judgment and other operations to finally obtain a judgment signal as to whether there is a key touch action.

[0045] The signal output end of the signal processing unit is respectively connected to the control ends of the first logic control switch SW1, the second logic control switch SW2 and the third logic control switch SW3;

[0046] Since the IO function needs to be multiplexed, a transmission gate switch is required for the IO of each touch button. The metal PAD position is outside the switch. When the touch button is enabled, only one of the multiple channels will be enabled.

[0047] Since the charging process of the reference reference capacitor Cref is consistent with the prior art, it is not described here. The discharging process of the reference reference capacitor Cref is described below:

[0048] When the reference reference capacitor Cref is charged to the charging reference voltage VTH_H, the signal processing unit gives a discharge signal: the first logic control switch SW1 does not work, the second logic control switch SW2 is closed, and the third logic control switch SW3 is opened, and the charge of the reference reference capacitor Cref is transferred to the parasitic capacitor Cx of the touch key until the voltages of the two are consistent; the second logic control switch SW2 is opened, and the third logic control switch SW3 is closed, and the parasitic capacitor Cx of the touch key is discharged by being connected to the ground through the third logic control switch SW3; the charge of the reference reference capacitor Cref is transferred to the parasitic capacitor Cx of the touch key, and the parasitic capacitor Cx of the touch key is discharged again until the reference reference capacitor Cref is discharged to the discharge reference voltage VTH_L.

[0049] The frequency F2 at which the second logic control switch SW2 and the third logic control switch SW3 are alternately turned on and off can ensure that the charge transfer between the reference reference capacitor Cref and the parasitic capacitor Cx of the touch key is completed each time and the discharge of the parasitic capacitor Cx of the touch key is completed.

[0050] The specific working mode of the key judgment system disclosed in the present invention is as follows:

[0051] like Figure 5 As shown, when the output of the first comparator is a rising edge, the RS trigger is triggered and the signal is flipped; when the output of the second comparator is a falling edge, the RS trigger is triggered and the signal is flipped.

[0052] At the beginning of the first charging cycle of the reference reference capacitor Cref, the voltage of the reference reference capacitor Cref is 0, the first comparator outputs a low level, the second comparator outputs a low level, and RS outputs a low level; the signal processing unit gives a charging signal to control the first logic control switch SW1 to open and the second logic control switch SW2 to close, and they are alternately opened and closed at a certain frequency F1. The high-frequency clock count set inside the signal processor counts, and the count value is the number of times the reference reference capacitor Cref is charged; at this time, the third logic control switch SW3 does not work.

[0053] When the voltage of the reference capacitor Cref is charged to the charging reference voltage VTH_H, the first comparator outputs a high level, the second comparator outputs a high level, the RS trigger is triggered, the signal flips, and changes from a high level to a low level. The signal processing unit determines and gives a discharge signal, and controls the second logic control switch SW2 and the third logic control switch SW3 to be alternately opened and closed at a certain frequency F2. The high-frequency clock therein re-counts, and the count value is the number of discharge times of the reference capacitor Cref; at this time, the first logic control switch SW1 does not work.

[0054] When the voltage of the reference reference capacitor Cref is charged to the discharge reference voltage VTH_L, the first comparator outputs a low level, the second comparator outputs a low level, the RS trigger signal flips, from a low level to a high level, the signal processing unit gives a charging signal, controls the first logic control switch SW1 to open, and the second logic control switch SW2 to close, and turns on and off alternately at a certain frequency F1, and the high-frequency clock inside it counts again, and the count value is the number of times the reference reference capacitor Cref is charged;

[0055] The reference capacitor Cref is charged, discharged, recharged, and discharged in sequence.

[0056] The frequency F1 at which the first logic control switch SW1 and the second logic control switch SW2 are alternately turned on and off, and the frequency F2 at which the second logic control switch SW2 and the third logic control switch SW3 are alternately turned on and off, can be a square wave signal with a fixed frequency, or a square wave signal with a variable frequency; when a square wave signal with a variable frequency is used, its frequency is maintained or increased with time, and can be a step-by-step change with time, or a linear change with time; no matter which signal is used, it should be ensured that when the reference reference capacitor Cref is charged, each charge transfer is completed and the parasitic capacitance Cx of the touch key is discharged; when discharging, each charge transfer is completed and the parasitic capacitance Cx of the touch key is discharged.

[0057] In this embodiment, the first logic control switch SW1 is a PMOS switch tube, the source of which is connected to the power supply terminal VDD, the drain of which is connected to one end of the resistor R1, and the gate of which is the control end connected to the signal output end of the signal processing unit; the third logic control switch SW3 is an NMOS switch tube, the source of which is grounded, the drain of which is connected to one end of the resistor R3, and the gate of which is the control end connected to the signal output end of the signal processing unit.

[0058] Embodiment 2: Figure 5 As shown, other parts are the same as those of the first embodiment, except that the positions of the third logic control switch SW3 for discharging the reference base capacitor and the resistor R2 are different, the positive input terminals of the first comparator and the second comparator are coupled to the third logic control switch SW3 and then grounded, and the resistor R2 is connected in series with the third logic control switch SW3.

[0059] The charging process of the reference reference capacitor Cref in this embodiment is the same as that in the first embodiment, and will not be described here; the discharging process of the reference reference capacitor Cref is as follows:

[0060] When the reference reference capacitor Cref is charged to the charging reference voltage VTH_H, the signal processing unit gives a discharge signal, the first logic control switch SW1 does not work, the second logic control switch SW2 does not work, the third logic control switch SW3 is closed, and the reference reference capacitor Cref is grounded through the third logic control switch SW3, and the reference reference capacitor Cref is discharged; until the reference reference capacitor Cref is discharged to the discharge reference voltage VTH_L; the signal processing unit gives a charging signal, and the reference reference capacitor Cref enters the next charge and discharge cycle.

[0061] During the charging process, the third logic control switch SW3 does not work; during the discharging process, the third logic control switch SW3 is always in a closed state, and the first logic control switch SW1 and the second logic control switch SW2 do not work.

[0062] In this embodiment, the voltage waveform of the reference capacitor Cref during the charging and discharging process 1 is as follows: Figure 6shown.

[0063] Compared with the prior art, the judgment system disclosed in the present invention can automatically judge when the reference reference capacitor Cref is discharged and give a charging signal, saving the uncertain waiting time after the discharge is completed in the prior art, and improving the discharge time utilization rate by 20% to 50%.

[0064] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any equivalent replacement, improvement, etc. made within the spirit and principle of the present invention without creative work shall be included in the protection scope of the present invention.

Claims

1. The key judgment system of the capacitive touch button includes: A switch circuit, comprising a first logic control switch, a second logic control switch and a third logic control switch; The first logic control switch and the second logic control switch are alternately open and closed at a certain frequency F1; It is characterized by further comprising: A comparison unit, comprising a first comparator, a second comparator and an RS trigger; the positive input terminals of the first comparator and the second comparator are the first input terminals of the comparison unit, and the first input terminal is coupled to a reference reference capacitor Cref; the first input terminal is coupled to a power supply terminal through the second logic control switch and the first logic control switch; the first input terminal is coupled to multiple touch key terminals through the second logic control switch; the comparison unit detects whether the reference reference capacitor Cref is charged or discharged; the negative input terminal of the first comparator is connected to a charging reference voltage VTH_H; the negative input terminal of the second comparator is connected to a discharging reference voltage VTH_L; the output terminals of the first comparator and the second comparator are respectively connected to the input terminals of the RS trigger, and the output terminal of the RS trigger is connected to the input terminal of the following signal processing unit; the first input terminal is grounded after passing through the second logic control switch and the third logic control switch; The signal processing unit controls the discharge process of the reference reference capacitor Cref as follows: when the reference reference capacitor Cref is charged to the charging reference voltage VTH_H, the signal processing unit gives a discharge signal: the first logic control switch does not work, the second logic control switch is closed, and the third logic control switch is opened, and the charge of the reference reference capacitor Cref is transferred to the parasitic capacitor Cx of the touch key until the voltages of the two are consistent; the second logic control switch is opened, and the third logic control switch is closed, and the parasitic capacitor Cx of the touch key is discharged by connecting to the ground through the third logic control switch; the charge of the reference reference capacitor Cref is transferred to the parasitic capacitor Cx of the touch key again, and the parasitic capacitor Cx of the touch key is discharged again until the reference reference capacitor Cref is discharged to the discharge reference voltage VTH_L; wherein, the signal processing unit controls the second logic control switch and the third logic control switch to be alternately opened and closed at a certain frequency F2 according to the charging completion signal output by the comparison unit.

2. The capacitive touch key detection system according to claim 1, wherein: The first logic control switch is connected in series with a resistor R1; the third logic control switch is connected in series with a resistor R2.

3. The capacitive touch key detection system according to claim 1, wherein: The frequency F1 and the frequency F2 are both square wave signals with fixed frequencies.

4. The capacitive touch key detection system according to claim 1, wherein: The frequency F1 and the frequency F2 are both variable frequency square wave signals, and the frequency is maintained or increased as time goes by.

5. The capacitive touch key detection system as claimed in claim 4, characterized in that: The frequency of the variable frequency square wave signal changes stepwise or linearly as time increases.

6. The capacitive touch key detection system according to claim 1, wherein: The first logic control switch is a PMOS switch tube, the second logic control switch is a transmission gate switch, the third logic control switch is an NMOS switch tube, a normally closed transmission gate switch is arranged between the first input end of the comparison unit and the reference reference capacitor Cref; a transmission gate switch is arranged between each touch button end and the second logic control switch.