Capacitive touch chip
By using a single pin integrated control of touch buttons and LED light emission in capacitive touch chips, using subtractors, integrators and threshold comparators, the problems of hardware resource waste and design difficulty in the prior art are solved, and the problem of hardware resources in the prior art is realized. Efficient touch event judgment and LED control improve human-computer interaction experience.
Patent Information
- Application Number
- CN202110989691.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-08-26
AI Technical Summary
Existing capacitive touch chips need to control touch buttons and indicator lights separately, resulting in waste of hardware resources and increased design difficulty.
Design a capacitive touch chip to control touch buttons and LED light emission through a single pin, adopt digital processing module, LED PWM module, subtractor, integrator and threshold comparator, and use SW&RX pin to control external LED light emission and touch The capacitor controls the capacitance, determines touch events through subtraction operations, integration and comparison, and enhances the driving capability of the LED PWM module through push-pull switch circuit.
It realizes saving chip pin resources, avoiding waste of hardware resources, reducing the design difficulty of chip peripheral circuits, and improving the human-computer interaction experience.
Smart Images

Figure CN115729364B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of capacitive touch technology, and in particular to a capacitive touch chip. Background Art
[0002] Capacitive touch technology is now used in a variety of industries, from industrial, automotive and medical devices to everyday consumer applications such as smartphones and tablets. The rapid adoption of this technology is mainly attributed to the ability of touch control to enhance the user experience, reduce the number of mechanical components, increase the life of the device, reduce the size of the device, and increase consumer appeal.
[0003] The current touch key scheme of IoT devices mainly relies on touching the physical keys with fingers. In other words, touching the touch keys with fingers causes the touch capacitor value on the printed circuit board to change, which causes a slight change in the current and voltage on the signal line connected to the touch capacitor. The touch chip collects the changes to implement the corresponding counting and integration operations. The touch process is coordinated with the changes in motor vibration and indicator lights to provide a better human-computer interaction experience. Figure 1 As shown, the touch capacitor is connected to the digital processing module (Digital Core) through the RX pin, the digital processing module is connected to the CPU, the digital processing module is connected to the SW pin through the LED PWM module, the SW pin is connected to the negative pole of the external indicator LED string, and the positive pole of the indicator LED string is connected to the VLED terminal. When a finger touches a physical key, that is, when a finger touches the touch capacitor, the capacitance changes, and the change in capacitance is converted into a voltage value after being processed by the peripheral circuit and enters the chip. The MCU (Microcontroller Unit) module determines and outputs the corresponding result in the form of digital interface signals such as I2C and transmits it to the CPU (central processing unit). The CPU instructs the corresponding module of the system to perform corresponding response actions, such as volume adjustment, key character input, etc. For example, if the effect of a finger touching a physical key requires the LED light to display accordingly, the MCU IC control chip, that is, the touch capacitor chip, will control the LED PWM module to output the corresponding square wave according to the internal program setting, and control the on and off effect of the indicator LED string outside the touch chip, so as to serve as the relevant visual feedback of the effect of the user's finger touching the physical key.
[0004] However, the touch control chips currently on the market require separate chip pins to control the functions of the touch buttons and indicator LED strings that cooperate with each other, such as Figure 1 The RX pin is used to control the touch button, and the SW pin is used to control the LED light string. This is a waste of hardware resources for functions that have inherent logic. Summary of the invention
[0005] Therefore, the technical problem to be solved by the present invention is to provide a capacitive touch chip to realize single pin integrated control of touch buttons and LED lighting, save chip pin resources, avoid waste of hardware resources, and reduce the difficulty of designing chip peripheral circuits.
[0006] Therefore, the present invention provides a capacitive touch chip, including a digital processing module, an LED PWM module connected to the digital processing module, a subtractor, an integrator and a threshold comparator. The LED PWM module controls the external LED to emit light through the SW&RX pins. The SW&RX pins are also used to connect to the external touch capacitor. The subtractor collects the voltage value generated by the change of the touch capacitor through the SW&RX pins and performs a subtraction operation with the output value of the LED PWM module to obtain the voltage change value caused by the touch and outputs it to the integrator. The integrator integrates and accumulates the voltage change value within a preset acquisition time period, accumulates it to the integration time required for the rated voltage value of the touch capacitor, compares it with the touch determination time threshold in the threshold comparator, and outputs the comparison result to the digital processing module. If the integration time value is lower than the threshold, it is considered that a touch event has occurred. If the integration time value exceeds the threshold, it is considered that no touch event has occurred.
[0007] Preferably, the capacitive touch chip further comprises: a push-pull switch circuit arranged between the LED PWM module and the SW&RX pins.
[0008] The push-pull switch circuit includes an NMOS tube and a PMOS tube, the source of the NMOS tube is connected to the output end of the LED PWM module, the drain of the NMOS tube is connected to the VLED power supply, the gate of the NMOS tube is connected to the output end of the LED PWM module through a capacitor, the source of the PMOS tube is grounded, the drain of the PMOS tube is connected to the output end of the LED PWM module, the gate of the PMOS tube is connected to the output end of the LED PWM module through a capacitor, and the output end of the LED PWM module is connected to the SW&RX pins.
[0009] Wherein, the digital processing module is connected to the CPU via an I2C signal transmission interface or a UART signal transmission interface.
[0010] The capacitive touch chip and the capacitive touch chip of the present invention save chip pin resources, avoid waste of hardware resources, and reduce the difficulty of designing chip peripheral circuits by adding a subtractor, an integrator and a threshold comparator, and integrating LED light control and external touch capacitor control through a single pin. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1It is a block diagram of a capacitive touch chip and its LED control architecture in the prior art;
[0012] Figure 2 This is a block diagram of the capacitive touch chip and its LED control architecture according to an embodiment of the present invention;
[0013] Figure 3 for Figure 2 The waveform diagram formed on the signal line when the circuit shown is not touched and is touched;
[0014] Figure 4 This is an example of the capacitive touch chip described in the embodiment of the present invention in actual use. DETAILED DESCRIPTION
[0015] The present invention is described in detail below with reference to the accompanying drawings.
[0016] like Figure 2 As shown, this embodiment provides a capacitive touch chip, including a digital processing module, an LED PWM module connected to the digital processing module, a subtractor, an integrator and a threshold comparator. The LED PWM module controls the external LED to emit light through the SW&RX pins. The SW&RX pins are also used to connect to the external touch capacitor. The subtractor collects the voltage value generated by the change of the touch capacitor through the SW&RX pins and performs a subtraction operation with the output value of the LED PWM module to obtain the voltage change value caused by the touch and outputs it to the integrator. The integrator integrates and accumulates the voltage change value within a preset acquisition time period, accumulates it to the integration time required for the rated voltage value of the touch capacitor, compares it with the touch determination time threshold in the threshold comparator, and outputs the comparison result to the digital processing module. If the integration time value is lower than the threshold, it is considered that a touch event has occurred. If the integration time value exceeds the threshold, it is considered that no touch event has occurred.
[0017] In order to increase the driving capability of the LED PWM module, a push-pull switch circuit can be set between the LED PWM module and the SW&RX pins. Figure 2 As shown, the push-pull switch circuit in this embodiment includes an NMOS tube and a PMOS tube, the source of the NMOS tube is connected to the output end of the LED PWM module, the drain of the NMOS tube is connected to the VLED power supply, the gate of the NMOS tube is connected to the output end of the LED PWM module through a capacitor, the source of the PMOS tube is grounded, the drain of the PMOS tube is connected to the output end of the LED PWM module, the gate of the PMOS tube is connected to the output end of the LED PWM module through a capacitor, and the output end of the LED PWM module is connected to the SW&RX pins.
[0018] The digital processing module controls the LED PWM module output such as Figure 3As shown in the corresponding PWM wave, when the square wave is at a high level, the NMOS tube driven by the high voltage is turned on, and the external LED indicator does not light up; when the square wave is at a low level, the PMOS tube driven by the low voltage is turned on, and the external LED lights up. After increasing the driving capability of the LED PWM module, the LED PWM module feeds the external LED light in the state of a constant current source.
[0019] like Figure 3 As shown in the figure, when the touch capacitor is not touched, the SW&RX pin signal line is a normal constant current PWM signal. When the touch capacitor is touched, the capacitance change will cause a slight change in the current on the SW&RX pin signal line. This change is not enough to cause a visible change in the LED brightness, but the subtractor inside the capacitive touch chip will collect the extra charge caused by the touch and integrate and accumulate it in the integrator.
[0020] As we all know, when a finger touches a capacitive touch button, it can produce a capacitance increase change of about pF~nF level, and the finger touch time is at least in milliseconds. The current of the common touch LED light-emitting diode is mA level. Some small package high-brightness products are generally at a voltage of about 3V, and the voltage of multiple LED series solutions is about 10~30V, which can make the required current reach less than 1mA.
[0021] Based on the above situation, the current change on the signal line when a touch occurs can be estimated:
[0022] Change of charge: Q=△C*U (1)
[0023] The relationship between instantaneous current change and charge is: △I=Q / T (2)
[0024] Arrange the formula: △I=△C*U / T (3)
[0025] According to the empirical value mentioned above, it can be seen that the value of △I is about 10-5~-6A, which can reach about 10% of the LED luminous current. -3~-4 The sensitivity of the chip can be easily reached at 1~10% of A. Among them, Q is the charge, △C is the capacitance change value, △I is the instantaneous current change value, U is the voltage, and T is the time. Therefore, when the touch capacitor is touched, the capacitance change will cause a slight change in the current on the SW&RX pin signal line, which is not enough to cause a visible change in the LED brightness.
[0026] The voltage change value is integrated and accumulated within the set collection time period. When the integration is to the internal collection capacitor, that is, the rated voltage value of the touch capacitor, the required integration time is compared with the touch judgment time threshold. If the obtained value is lower than the threshold, it is considered that a touch event has indeed occurred. If the integral value exceeds the threshold, it is considered that no touch has occurred, or it is a signal disturbance caused by environmental changes. This design is very effective in preventing false reports.
[0027] The determination result of the touch event is given to the digital processing module to process the touch event. On the one hand, it is transmitted to the CPU via the I2C signal transmission interface or the UART signal transmission interface to implement the corresponding response action in the software. At the same time, the touch event result is given to the LED PWM module, and the PWM output is adjusted according to the type of touch time, so that the LED light emission presents different effects, completing the entire process of human-computer interaction.
[0028] This embodiment also provides a capacitive touch chip, which uses the above-mentioned capacitive touch chip. Figure 4 As shown in the figure, the chip is connected to a 3*4 self-capacitive touch key array TOUCH PAD, and each key has an LED for key indication. Each key and its LED are controlled by a pin in GPIO1~12. One of the pins in GPIO1~12 is the SW&RX pin in the above-mentioned capacitive touch chip. An external resistor is connected in series on each pin to convert the current on the line into voltage changes for LED lighting and touch acquisition.
[0029] GPIO14~15 is the communication interface between the chip and the CPU, and you can choose I2C signal transmission interface or UART signal transmission interface.
[0030] GPIO13 is the CPU control chip reset pin.
[0031] VCC is the input power supply of the chip, which is used to provide power for the push-pull switch circuit and the internal operation of the chip;
[0032] VSS is the chip ground pin, which provides the chip with a reference ground voltage and the low-end output voltage after the switch circuit is pushed;
[0033] VREG is the internal logic module power converted from VCC through the internal power supply to charge the touch capacitor.
[0034] When a finger touches a button on the TOUCH PAD, the current on the signal line will change due to the change in touch capacitance, which can be converted into a voltage value through the external resistor connected to the signal line and transmitted to the chip. The incoming signal and the output of the LED PWM module itself are calculated in the subtractor, and the result is the voltage change value caused by the touch. The implementation process is as described in the above-mentioned capacitive touch chip, and will not be repeated here.
[0035] Therefore, the capacitive touch chip provided in this embodiment can simultaneously collect touch signals and power the indicator light, and one chip pin is connected to the capacitive touch and LED light control at the same time. In the absence of touch, the pin routing is a normal constant current PWM signal. When the touch capacitor is touched, the change in capacitance will cause a slight change in the current on the signal line. This change is not enough to cause a visible change in the brightness of the LED. However, the highly sensitive capacitor collector inside the chip will collect and perform integration technology to judge the touch action and guide the CPU to perform the corresponding operation. At the same time, the touch event can control the LED light effect according to the set requirements, achieve an integrated control effect, save chip pin resources, and reduce the complexity of the chip's external design.
[0036] In summary, the capacitive touch chip described in this embodiment saves chip pin resources, avoids waste of hardware resources, and reduces the difficulty of designing chip peripheral circuits by adding a push-pull switch circuit, a subtractor, an integrator, and a threshold comparator, and integrating the LED indicator light and the external touch capacitor through a single pin.
[0037] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A capacitive touch chip, comprising a digital processing module and an LED PWM module connected to the digital processing module, It is characterized in that Also includes: Subtractor, integrator and threshold comparator. The LED PWM module controls the external LED to emit light through the SW&RX pins. The SW&RX pins are also used to connect to the external touch capacitor. The subtractor collects the voltage value generated by the change of the touch capacitor through the SW&RX pins and subtracts it from the output value of the LED PWM module to obtain the voltage change value caused by the touch and outputs it to the integrator. The integrator integrates and accumulates the voltage change value within the preset acquisition time period, accumulates it to the integration time required for the rated voltage value of the touch capacitor, compares it with the touch judgment time threshold in the threshold comparator, and outputs the comparison result to the digital processing module. If the integration time value is lower than the threshold, it is considered that a touch event has occurred. If the integration time value exceeds the threshold, it is considered that no touch event has occurred.
2. The capacitive touch chip according to claim 1, It is characterized in that A push-pull switch circuit is also included which is arranged between the LED PWM module and the SW&RX pins.
3. The capacitive touch chip according to claim 2, It is characterized in that The push-pull switch circuit includes an NMOS tube and a PMOS tube, the source of the NMOS tube is connected to the output end of the LED PWM module, the drain of the NMOS tube is connected to the VLED power supply, the gate of the NMOS tube is connected to the output end of the LED PWM module through a capacitor, the source of the PMOS tube is grounded, the drain of the PMOS tube is connected to the output end of the LED PWM module, the gate of the PMOS tube is connected to the output end of the LED PWM module through a capacitor, and the output end of the LED PWM module is connected to the SW&RX pins.
4. The capacitive touch chip according to any one of claims 1 to 3, It is characterized in that The digital processing module is connected to the CPU via an I2C signal transmission interface or a UART signal transmission interface.
Citation Information
Patent Citations
Touch device and sensing circuit thereof
CN104238841A
Processing method and device of touch event
CN106468973A
Integral capacitor equivalent circuit, LED lighting control chip and control circuit thereof
CN108770133A
Electronic device and driving device and method of LED array
CN110390904A
Capacitance detection circuit, touch chip, touch detection device and electronic equipment
CN111837044A
