Touch sensing input module and its reference point and threshold updating device

By using purely digital logic-controlled reference points and threshold automatic update circuits in the touch sensing input module, frequent update problems caused by environmental changes are solved, update efficiency and reliability are improved, and software costs and energy consumption are reduced.

CN114675757BActive Publication Date: 2024-12-27合肥智芯半导体有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210305119.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-12-27
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

When the environment changes, existing touch sensing input modules need to frequently update the reference points and thresholds, resulting in high software costs and low update efficiency. Especially in scenarios with large environmental changes, the update efficiency of software participation is low.

Method used

The TSI reference point and threshold automatic update circuit is automatically calculated and updated by scanning the main circuit, calculation circuit, reference point update circuit, threshold update circuit and update control circuit, automatically calculate and update reference point and threshold, reduce software participation, and improve Update efficiency.

Benefits of technology

It reduces software costs, improves the update efficiency of reference points and thresholds, reduces the impact of external environment changes on touch sensing, improves the reliability of updates and saves energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114675757B_ABST
    Figure CN114675757B_ABST
Patent Text Reader

Abstract

The present invention discloses a touch sensing input module and a device for updating reference points and threshold values ​​thereof. The updating device comprises: an updating control circuit, which provides an updating ratio and an updating enabling signal; a scanning main circuit, which is used to scan the touch sensing input module to obtain a counting result and generate an updating trigger signal; a calculating circuit, which is connected to the scanning main circuit, and is used to generate an updating request and calculate the reference point updating value, the high threshold updating value, and the low threshold updating value; a reference point updating circuit, which is connected to the calculating circuit, and is used to provide the current reference point and complete the updating of the reference point; a threshold updating circuit, which is connected to the calculating circuit and the scanning main circuit, and is used to provide the current high and low thresholds and complete the updating of the threshold. Thus, the updating device can complete the real-time automatic updating of the reference point and threshold value of the touch sensing input module through the hardware circuit, which can reduce the software cost, reduce the influence of the external environment change on the touch sensing, and improve the updating efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of touch control technology, and in particular to a touch sensing input module and a reference point and threshold updating device thereof. Background Art

[0002] In the general microcontroller MCU (Micro Control Unit), TSI (Touch Sensor Input) can provide highly sensitive and robust capacitive touch sensing detection. In the design of human-computer interaction equipment based on proximity sensing, the TSI module can achieve isolation between operators and electrical equipment. On the basis of enriching the operation mode, it also provides higher safety performance, while avoiding mechanical operation of the equipment, such as physical buttons, reducing the probability of equipment damage, reducing equipment maintenance costs, and extending the service life of the equipment. Therefore, the TSI module has a wide range of applications in consumer, industrial, medical and automotive electronics.

[0003] The TSI module mainly determines whether a touch event occurs by detecting changes in the external capacitance of the TSI channel. When a person touches the external capacitance touch pad of the TSI channel, the capacitance value will change (usually the equivalent capacitance value increases), which in turn changes the TSI internal response clock frequency or charge and discharge time to the capacitance. The number of counts based on this will change. When the final count value exceeds the preset threshold, it is determined that a touch event has occurred, and a TSI channel interrupt or DMA request is generated. TSI needs to scan the same channel multiple times to obtain a counting result, and then compare the counting result with the preset threshold to determine whether a touch event has occurred. When the counting result falls within the threshold range, it means that no touch event has occurred; when the counting result falls outside the threshold range, it means that a touch event has occurred. Among them, the preset threshold is generally centered on the reference point and is set according to the touch change of the external touch capacitor. However, as the external environment of TSI, such as voltage and temperature, changes, the actual reference point and threshold range will also change.

[0004] Commonly used TSI reference point and threshold updates, under the condition that there is no external touch event at present, trigger the TSI hardware circuit scan through software or hardware to obtain a counting result without a touch event, and then use the software to calculate the reference point and threshold range according to the current environmental factors, and update them to the corresponding registers. The entire update process requires software participation. In scenarios with large environmental changes, the software needs to regularly update the TSI reference point and threshold, which is inefficient and will also increase software overhead. Summary of the invention

[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to provide a reference point and threshold updating device for a touch sensing input module, which adopts a TSI reference point and threshold automatic updating circuit controlled by pure digital logic to reduce software costs and improve the updating efficiency of reference points and thresholds.

[0006] A second objective of the present invention is to provide a touch sensing input module.

[0007] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a reference point and threshold updating device for a touch sensing input module, wherein the touch sensing input module includes a capacitor, and the device includes: a scanning main circuit, which is used to perform touch scanning on the touch sensing input module, obtain a counting result of the number of times the capacitor is charged and discharged, and obtain a current high threshold and a current low threshold, and generate an update trigger signal when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold; a calculation circuit, which is connected to the scanning main circuit, is used to obtain the counting result, the update trigger signal, the current reference point, the update ratio, the current high threshold and the current low threshold, and generate an update request according to the update trigger signal, and generate an update request according to the counting result, the current reference point, the update ratio, the current high threshold and the current low threshold according to the update trigger signal. and the update ratio to obtain a reference point update value, and to obtain a high threshold update value and a low threshold update value according to a difference between the current reference point and the reference point update value, the current high threshold and the current low threshold; a reference point update circuit, connected to the calculation circuit, for providing the current reference point, and updating the current reference point to the reference point update value when the update request is received; a threshold update circuit, connected to the calculation circuit and the scanning body circuit, for providing the current high threshold and the current low threshold, and updating the current high threshold and the current low threshold to the high threshold update value and the low threshold update value respectively when the update request is received; the update control circuit, connected to the calculation circuit, for providing the update ratio.

[0008] The reference point and threshold updating device of the touch sensing input module of the embodiment of the present invention obtains the counting result of the scanning main circuit and the update ratio of the update circuit, and the current reference point and the current high threshold and the current low threshold, and uses the digital logic circuit to calculate the reference point update value, the high threshold update value, and the low threshold update value to complete the automatic update of the TSI reference point and threshold circuit. Therefore, the TSI reference point and threshold automatic update circuit controlled by pure digital logic can reduce the cost of software and improve the updating efficiency of the reference point and threshold.

[0009] According to one embodiment of the present invention, the reference point and threshold update device of the touch sensing input module also includes: the reference point update circuit is also used to generate a reference point update completion signal after the reference point update is completed; the threshold update circuit is also used to generate a threshold update completion signal after the threshold update is completed; the calculation circuit is also used to clear the update request according to the reference point update completion signal and the threshold update completion signal.

[0010] According to one embodiment of the present invention, the reference point and threshold update device of the touch sensing input module also includes: the update control circuit is also used to provide an update enable signal; the calculation circuit is specifically used to generate the update request according to the update enable signal and the update trigger signal.

[0011] According to one embodiment of the present invention, the reference point and threshold updating device of the touch sensing input module also includes that the scanning main circuit includes: a scanning trigger subcircuit, which is used to periodically generate a scanning trigger signal to start a touch sensing scanning process; a scanning subcircuit, which is connected to the scanning trigger subcircuit, and is used to perform channel scanning on the touch sensing input module according to the scanning trigger signal and generate a single scanning end signal; a result counter, which is connected to the scanning subcircuit, and is used to obtain the counting result in the single scanning process according to the single scanning end signal when the channel scanning is valid; a result comparator, which is connected to the result counter, and is used to generate the update trigger signal when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold.

[0012] According to one embodiment of the present invention, the threshold updating device in touch sensing also includes: the update calculation circuit includes: a reference point calculation subcircuit, which is respectively connected to the reference point update circuit, the update control circuit and the result counter, and is used to obtain the reference point update value according to the counting result, the current reference point and the update ratio; a threshold calculation subcircuit, which is respectively connected to the reference point calculation subcircuit and the threshold update circuit, and is used to obtain a high threshold update value and a low threshold update value according to the difference between the current reference point and the reference point update value, the current high threshold and the current low threshold; an update request subcircuit, which is respectively connected to the result comparator, the update control circuit, the reference point update circuit and the threshold update circuit, and is used to generate the update request according to the update enable signal and the update trigger signal, and clear the update request according to the reference point update completion signal and the threshold update completion signal.

[0013] According to an embodiment of the present invention, the threshold updating device in touch sensing further includes: the reference point calculation subcircuit includes: an inverter, a first adder, a multiplier, a right shifter, a second adder, a subtractor, a first memory and a second memory, wherein the input end of the inverter is connected to the reference point update circuit to obtain the current reference point, and the output end of the inverter is connected to the first input end of the first adder; the second input end of the first adder is connected to the result counter, the output end of the first adder is connected to the first input end of the multiplier, the second input end of the multiplier is connected to the update control circuit to obtain the update ratio, the output end of the multiplier is connected to the input end of the right shifter, and the output end of the right shifter is connected to the first input end of the second adder. The second adder is connected to the reference point update circuit to obtain the current reference point, and the output of the second adder is connected to the first memory to store the reference point update value in the first memory; the first memory is connected to the first input of the subtractor and the reference point update circuit respectively to provide the reference point update value to the subtractor and the reference point update circuit respectively; the second memory is connected to the reference point update circuit to obtain and store the current reference point, and the second memory is also connected to the second input of the subtractor to provide the subtractor with the current reference point; the output of the subtractor is connected to the threshold calculation subcircuit to provide the difference between the reference point update value and the current reference point to the threshold calculation subcircuit.

[0014] According to an embodiment of the present invention, the apparatus for updating the threshold value in touch sensing further includes: the reference point calculation subcircuit obtains the reference point update value by the following formula:

[0015]

[0016] Among them, Y new is the reference point update value, Y is the current reference point, R is the update ratio, and Q is the counting result.

[0017] According to an embodiment of the present invention, the threshold updating device in touch sensing further includes: the threshold calculation subcircuit includes: a third adder, a fourth adder, a third memory and a fourth memory, wherein a first input end of the third adder is connected to the output end of the subtractor, a second input end of the third adder is connected to the threshold update circuit to obtain the current high threshold, and an output end of the third adder is connected to the third memory to store the high threshold update value in the third memory; the third memory is connected to the threshold update circuit to provide the high threshold update value to the threshold update circuit; a first input end of the fourth adder is connected to the output end of the subtractor, a second input end of the fourth adder is connected to the threshold update circuit to obtain the current low threshold, and an output end of the fourth adder is connected to the fourth memory to store the low threshold update value in the fourth memory; the fourth memory is connected to the threshold update circuit to provide the low threshold update value to the threshold update circuit.

[0018] According to an embodiment of the present invention, the threshold update device in touch sensing further includes: the update request subcircuit includes: a first AND gate, a second AND gate, an update request unit, and a synchronization logic unit, wherein the first input end of the first AND gate is connected to the result comparator to obtain the update trigger signal, the second input end of the first AND gate is connected to the update control circuit to obtain the update enable signal, and the output end of the first AND gate is connected to the update request unit; the first input end of the second AND gate is connected to the reference point update circuit to obtain the reference point update completion signal, the second input end of the second AND gate is connected to the threshold update circuit to obtain the threshold update completion signal, and the output end of the second AND gate is connected to the synchronization logic unit; the synchronization logic unit is used to synchronize the reference point update completion signal and the threshold update completion signal and generate a synchronization completion signal; the update request unit is used to generate the update request when the first AND gate outputs 1, and clear the update request when the synchronization logic unit outputs the synchronization completion signal.

[0019] To achieve the above object, a second embodiment of the present invention provides a touch sensing input module, and a reference point and threshold updating device of the touch sensing input module.

[0020] The touch sensing input module implemented in the present invention can reduce software costs by using the above-mentioned reference point and threshold updating device and a pure digital logic operation circuit, thereby better realizing the automatic updating of TSI reference points and thresholds and improving the updating efficiency.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a structural block diagram of a reference point and threshold updating device of a touch sensing input module according to an embodiment of the present invention;

[0023] Figure 2 is a structural block diagram of a scanning main body circuit of a specific embodiment of the present invention;

[0024] Figure 3 is a block diagram of a calculation circuit according to a specific embodiment of the present invention;

[0025] Figure 4 is a circuit diagram of a reference point and threshold value updating device of a touch sensing input module according to an example of the present invention;

[0026] Figure 5 is a working waveform diagram of a reference point and threshold value updating device of a touch sensing input module according to an embodiment of the present invention;

[0027] Figure 6 4 is a structural block diagram of a touch sensing input module according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0029] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0030] Figure 1 It is a structural block diagram of a reference point and threshold updating device of a touch sensing input module according to an embodiment of the present invention.

[0031] In an embodiment of the present invention, the touch sensing input module includes a capacitor. Figure 1 As shown, the reference point and threshold updating device of the touch sensing input module includes five main parts, namely, a scanning update control circuit 100, a scanning main circuit 200, a calculation circuit 300, a reference point updating circuit 400, and a threshold updating circuit 500.

[0032] See also Figure 1The update control circuit 100 is connected to the calculation circuit 300 to provide an update ratio, wherein the update ratio affects the change range of the reference point affected by the environment and is a user preset value.

[0033] The scanning main circuit 200 is connected to the calculation circuit 300 and the threshold update circuit 500, and is used to perform touch scanning on the touch sensing input module, obtain the counting result of the number of times the capacitor is charged and discharged, and obtain the current high threshold and the current low threshold provided by the threshold update circuit 500, compare the current high threshold and the current low threshold with the counting result, and when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold, generate an update trigger signal and send the update trigger signal to the calculation circuit 300.

[0034] The calculation circuit 300 is connected to the scanning main body circuit 200, the update control circuit 100, the reference point update circuit 400, and the threshold update circuit 500, and is used to obtain the counting result and update trigger signal from the scanning main body circuit 200, obtain the update ratio generated by the update control circuit 100, obtain the current reference point provided by the reference point update circuit 400, obtain the current high threshold and the current low threshold provided by the threshold update circuit 500, and generate an update request according to the update trigger signal, obtain the reference point update value according to the counting result, the current reference point and the update ratio, and obtain the high threshold update value and the low threshold update value according to the difference between the current reference point and the reference point update value, the current high threshold and the current low threshold.

[0035] The reference point update circuit 400 is connected to the calculation circuit 300 and is used to provide a current reference point and update the current reference point to a reference point update value when an update request is received.

[0036] The threshold update circuit 500 is connected to the calculation circuit 300 and the scanning main circuit 200 respectively, and is used to provide the current high threshold and the current low threshold, and when an update request is received, the current high threshold and the current low threshold are updated to the high threshold update value and the low threshold update value respectively.

[0037] Thus, the updating device can realize the automatic updating of the reference point and threshold value of the touch sensing input module through the hardware circuit, which can reduce the software cost, reduce the influence of the external environment change on the touch sensing, and improve the updating efficiency.

[0038] In one embodiment of the present invention, the reference point update circuit 400 is also used to generate a reference point update completion signal after the reference point update is completed; the threshold update circuit 500 is also used to generate a threshold update completion signal after the threshold update is completed; the calculation circuit 300 is also used to clear the update request according to the reference point update completion signal and the threshold update completion signal.

[0039] Therefore, after the reference point and the threshold are updated, unnecessary updates can be avoided by clearing the update request, thereby improving the reliability of the update and saving energy consumption.

[0040] In one embodiment of the present invention, the update control circuit 100 may also be used to provide an update enable signal; and the calculation circuit 300 may specifically be used to generate an update request according to the update enable signal and the update trigger signal.

[0041] Therefore, by setting the update enable signal, external control of the update can be achieved, thereby improving the reliability of the update.

[0042] Figure 2 It is a structural block diagram of a scanning main body circuit of a specific embodiment of the present invention.

[0043] like Figure 2 As shown, the main parts of the scanning main circuit 200 include: a scanning trigger sub-circuit 201, a scanning sub-circuit 202, a result counter 203, and a result comparator 204.

[0044] Among them, the scan trigger subcircuit 201 is used to periodically generate a scan trigger signal to start the touch sensing scan process. The scan subcircuit 202 is connected to the scan trigger subcircuit 201, and is used to perform channel scanning on the touch sensing input module according to the scan trigger signal and generate a single scan end signal. The result counter 203 is connected to the scan subcircuit 202, and is used to obtain the counting result in the single scan process according to the single scan end signal when the channel scan is valid. The result comparator 204 is connected to the result counter 203, and is used to generate an update trigger signal when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold.

[0045] Specifically, the scanning subcircuit 202 is the main circuit for completing the TSI channel scanning. When the trigger signal is valid, the internal circuit completes the TSI channel scanning function. The trigger signal can come from the software or hardware circuit, and a single scan end signal is generated to the result counter 203. The result counter 203 starts counting when the scan trigger is valid, stops the counting function through the single scan end signal given by the scanning subcircuit 202, and sends the counting result to the result comparator 204 and the calculation circuit 300. The result comparator 204 obtains the current high threshold and the current low threshold provided by the threshold update circuit 500, compares the counting result with the current high threshold and the current low threshold, and when the counting result exceeds the threshold range (i.e., not between the current high threshold and the current low threshold), the TSI scan result is that a touch event occurs, and an asynchronous interrupt signal and an asynchronous DMA request signal can be generated to the MCU system; when the counting result does not exceed the threshold range (i.e., between the current high threshold and the current low threshold), the TSI scan result is that no touch event occurs, and the judgment signal that does not exceed the threshold, i.e., the update trigger signal, is sent to the calculation circuit 300.

[0046] Figure 3 It is a structural block diagram of a calculation circuit of a specific embodiment of the present invention.

[0047] like Figure 3 As shown, the specific structural block diagram of the calculation circuit 300 mainly includes: a reference point calculation subcircuit 301, a threshold calculation subcircuit 302, and an update request subcircuit 303.

[0048] Among them, the reference point calculation subcircuit 301 is respectively connected to the reference point update circuit 400, the update control circuit 100 and the result counter 203, and is used to obtain the current reference point of the reference point update circuit 400, the update ratio of the update control circuit 100 and the counting result of the result counter 203, and calculate the reference point update value according to the counting result, the current reference point and the update ratio, and send it to the reference point update circuit 400.

[0049] The threshold calculation subcircuit 302 is connected to the reference point calculation subcircuit 301 and the threshold update circuit 500 respectively, and is used to obtain the difference between the current reference point and the reference point update value output by the reference point calculation subcircuit 301, the current high threshold and the current low threshold of the threshold update circuit 500, and calculate the high threshold update value and the low threshold update value according to the difference between the current reference point and the reference point update value, the current high threshold and the current low threshold, and send the high threshold update value and the low threshold update value to the threshold update circuit 500.

[0050] The update request sub-circuit 303 is connected to the result comparator 204, the update control circuit 100, the reference point update circuit 400 and the threshold update circuit 500 respectively, and is used to obtain the update trigger signal of the result comparator 204, the update enable of the update control circuit 100, the reference point update completion signal of the reference point update circuit 400 and the threshold update completion signal of the threshold update circuit 500, generate an update request according to the update enable signal and the update trigger signal, and send it to the reference point update circuit 400 and the threshold update circuit 500, and generate an update completion signal according to the reference point update completion signal and the threshold update completion signal through the synchronization logic, thereby clearing the update request.

[0051] Figure 4 4 is a circuit diagram of a reference point and threshold value updating device of a touch sensing input module according to an example of the present invention.

[0052] like Figure 4 As shown, the internal specific circuit and working principle of the scanning main circuit 200 in the reference point and threshold value updating circuit diagram of the touch sensing input module have been described in detail above and will not be repeated here.

[0053] As an example, Figure 4As shown, the reference point calculation subcircuit 301 includes: an inverter 1, a first adder 2, a multiplier 3, a right shifter 4, a second adder 5, a subtractor 6, a first memory 7 and a second memory 8. Among them, the input end of the inverter 1 is connected to the reference point update circuit 400 to obtain the current reference point, and the output end of the inverter 1 is connected to the first input end of the first adder 2; the second input end of the first adder 2 is connected to the result counter 203, the first adder 2 adds the reference point inversion value and the counting result, and the output end of the first adder 2 is connected to the first input end of the multiplier 3; the second input end of the multiplier 3 is connected to the update control circuit 100 to obtain the update ratio, and the output end of the multiplier 3 is connected to the input end of the right shifter 4; the right shifter 4 can be a 4-bit right shifter to realize the operation of dividing the update ratio by 16, and the output end of the right shifter 4 is connected to the first input end of the second adder 5; the second input end of the second adder 5 is connected to the reference point update circuit 400 to obtain the update ratio. The current reference point is obtained, the output end of the second adder 5 is connected to the first memory 7 to store the reference point update value in the first memory 7. The function of the first memory 7 is to temporarily store the new reference point. The first memory 7 is connected to the first input end of the subtractor 6 and the reference point update circuit 400 respectively to provide the reference point update value to the subtractor 6 and the reference point update circuit 400 respectively; the second memory 8 is connected to the reference point update circuit 400 to obtain the current reference point and store it. The function of the second memory 8 is to temporarily store the old reference point. The second memory 8 is also connected to the second input end of the subtractor 6 to provide the current reference point to the subtractor 6; the output end of the subtractor 6 is connected to the threshold calculation subcircuit 302 to provide the difference between the current reference point and the reference point update value to the threshold calculation subcircuit 302.

[0054] Specifically, the updating of the reference point may follow the principle of smoothness to reduce noise interference, and the reference point calculation subcircuit 301 may obtain the reference point update value through the following formula:

[0055]

[0056] Among them, Y new is the reference point update value, Y is the current reference point, R is the update ratio, and Q is the counting result. The larger the update ratio R, the larger the update step size, and vice versa. In circuit implementation, the operation of dividing by 16 can be implemented using the above-mentioned right shifter 4.

[0057] like Figure 4As shown, the threshold calculation subcircuit 302 includes: a third adder 9, a fourth adder 10, a third memory 11 and a fourth memory 12, wherein the first input end of the third adder 9 is connected to the output end of the subtractor 6, the second input end of the third adder 9 is connected to the threshold update circuit 500 to obtain the current high threshold, the output end of the third adder 9 is connected to the third memory 11 to store the high threshold update value in the third memory 11; the third memory 11 is connected to the threshold update circuit 500 to provide the high threshold update value to the threshold update circuit 500, the function of the third memory 11 is to temporarily store the new result of the high threshold; the first input end of the fourth adder 10 is connected to the output end of the subtractor 6, the second input end of the fourth adder 10 is connected to the threshold update circuit 500 to obtain the current low threshold, the output end of the fourth adder 10 is connected to the fourth memory 12 to store the low threshold update value to the fourth memory 12, the function of the fourth memory 12 is to temporarily store the new result of the low threshold, and the fourth memory 12 is connected to the threshold update circuit 500 to provide the low threshold update value to the threshold update circuit 500.

[0058] like Figure 4 As shown, the update request subcircuit 303 includes: a first AND gate 13, a second AND gate 14, an update request unit 15, and a synchronization logic unit 16. The first input end of the first AND gate 13 is connected to the result comparator 204 to obtain the update trigger signal, the second input end of the first AND gate 13 is connected to the update control circuit 100 to obtain the update enable signal, and the output end of the first AND gate 13 is connected to the update request unit 15; the first input end of the second AND gate 14 is connected to the reference point update circuit 400 to obtain the reference point update completion signal, the second input end of the second AND gate 14 is connected to the threshold update circuit 500 to obtain the threshold update completion signal, and the output end of the second AND gate 14 is connected to the synchronization logic unit 16; the synchronization logic unit 16 is used to synchronize the reference point update completion signal and the threshold update completion signal and generate a synchronization completion signal; the update request unit 15 is used to generate an update request when the first AND gate 13 outputs 1, and clear the update request when the synchronization logic unit 16 outputs the synchronization completion signal.

[0059] Therefore, the real-time automatic update of TSI reference points and thresholds can be realized by using a pure digital logic operation circuit, which can improve the update efficiency and reduce the software cost.

[0060] Figure 5 It is a waveform diagram of a reference point and threshold updating device of a touch sensing input module during operation according to an embodiment of the present invention.

[0061] like Figure 5As shown, one of the channels is selected for scanning as an example. After receiving the scanning trigger, the scanning main circuit 200 generates a high-frequency scanning clock. After a single scan is completed, the current counting result is judged. If the counting result does not exceed the threshold range ( Figure 5 If the counting results A, B, C, and D indicate that the counting results do not exceed the threshold range), the reference point, the high threshold, and the low threshold are updated; if the counting result is lower than the low threshold or higher than the high threshold (if the touch event causes the counting result to become smaller, the corresponding counting result is lower than the low threshold), an asynchronous interrupt signal is generated. Figure 5 The counting result E indicates that a touch event has occurred, and the scanning main circuit 200 generates an asynchronous interrupt signal to notify the MCU to execute the touch program and clear the asynchronous interrupt signal. The number of scans for a single channel can be configured by a register, and when the number of scans is reached, the channel scan ends. The asynchronous interrupt signal can be cleared by software after a touch event occurs.

[0062] The reference point and threshold updating device of the touch sensing input module in the embodiment of the present invention adopts a pure digital logic operation circuit to complete the automatic update of the reference point and threshold of the touch sensing input module, which can effectively reduce the impact of external environmental changes on TSI scanning, reduce system software overhead and CPU load, and reduce the average power consumption of the system in application. It can better adapt to changes in the external environment and improve the sensitivity of the touch sensing input module.

[0063] Based on the above-mentioned reference point and threshold updating device of the touch sensing input module, the present invention proposes a touch sensing input module.

[0064] like Figure 6 As shown, the touch sensing input module 600 includes the reference point and threshold updating device 60 of the touch sensing input module mentioned above.

[0065] The touch sensing input module of the embodiment of the present invention can effectively reduce the impact of external environmental changes on TSI scanning, reduce system software overhead and CPU load, reduce the average power consumption of the system in application, better adapt to changes in the external environment, and improve the sensitivity of the touch sensing input module through the above-mentioned reference point and threshold update device.

[0066] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0067] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0068] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0069] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0070] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0071] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0072] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0073] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A device for updating reference points and thresholds of a touch sensing input module, characterized in that: The touch sensing input module includes a capacitor, and the device includes: A scanning main circuit, used for performing touch scanning on the touch sensing input module, obtaining a counting result of the number of times the capacitor is charged and discharged, and obtaining a current high threshold and a current low threshold, and generating an update trigger signal when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold; a calculation circuit connected to the scanning main body circuit, configured to obtain the counting result, the update trigger signal, the current reference point, the update ratio, the current high threshold value, and the current low threshold value, and generate an update request according to the update trigger signal, obtain a reference point update value according to the counting result, the current reference point, and the update ratio, and obtain a high threshold value update value and a low threshold value update value according to a difference between the current reference point and the reference point update value, the current high threshold value, and the current low threshold value; a reference point update circuit, connected to the calculation circuit, for providing the current reference point and updating the current reference point to the reference point update value when receiving the update request; a threshold update circuit, connected to the calculation circuit and the scanning main circuit respectively, for providing the current high threshold and the current low threshold, and updating the current high threshold and the current low threshold to the high threshold update value and the low threshold update value respectively when receiving the update request; The update control circuit is connected to the calculation circuit and is used to provide the update ratio, wherein the update ratio affects the variation range of the reference point affected by the environment and is a user preset value.

2. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 1, characterized in that: The reference point update circuit is also used to generate a reference point update completion signal after the reference point update is completed; The threshold updating circuit is also used to generate a threshold updating completion signal after the threshold updating is completed; The calculation circuit is further configured to clear the update request according to the reference point update completion signal and the threshold update completion signal.

3. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 2, characterized in that: The update control circuit is also used to provide an update enable signal; The calculation circuit is specifically configured to generate the update request according to the update enable signal and the update trigger signal.

4. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 3, characterized in that: The scanning main circuit comprises: A scan trigger subcircuit, for periodically generating a scan trigger signal to start a touch sensing scan process; A scanning subcircuit, connected to the scanning trigger subcircuit, configured to perform channel scanning on the touch sensing input module according to the scanning trigger signal and generate a single scanning end signal; A result counter connected to the scanning subcircuit, used for obtaining the counting result in the single scanning process according to the single scanning end signal when the channel scanning is valid; A result comparator is connected to the result counter, and is used for generating the update trigger signal when the counting result is greater than or equal to the current low threshold and less than or equal to the current high threshold.

5. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 4, characterized in that: Update calculation circuit includes: A reference point calculation subcircuit, connected to the reference point update circuit, the update control circuit and the result counter respectively, for obtaining the reference point update value according to the counting result, the current reference point and the update ratio; a threshold calculation subcircuit, connected to the reference point calculation subcircuit and the threshold update circuit respectively, and configured to obtain a high threshold update value and a low threshold update value according to a difference between the current reference point and the reference point update value, the current high threshold and the current low threshold; An update request subcircuit is respectively connected to the result comparator, the update control circuit, the reference point update circuit and the threshold update circuit, and is used to generate the update request according to the update enable signal and the update trigger signal, and to clear the update request according to the reference point update completion signal and the threshold update completion signal.

6. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 5, characterized in that: The reference point calculation subcircuit includes: an inverter, a first adder, a multiplier, a right shifter, a second adder, a subtractor, a first memory and a second memory, wherein: The input end of the inverter is connected to the reference point update circuit to obtain the current reference point, and the output end of the inverter is connected to the first input end of the first adder; The second input terminal of the first adder is connected to the result counter, and the output terminal of the first adder is connected to the first input terminal of the multiplier. The second input terminal of the multiplier is connected to the update control circuit to obtain the update ratio, the output terminal of the multiplier is connected to the input terminal of the right shifter, and the output terminal of the right shifter is connected to the first input terminal of the second adder; The second input end of the second adder is connected to the reference point update circuit to obtain the current reference point, and the output end of the second adder is connected to the first memory to store the reference point update value in the first memory; The first memory is connected to the first input terminal of the subtractor and the reference point update circuit respectively, so as to provide the reference point update value to the subtractor and the reference point update circuit respectively; The second memory is connected to the reference point updating circuit to obtain and store the current reference point, and the second memory is also connected to the second input terminal of the subtractor to provide the current reference point to the subtractor; The output end of the subtractor is connected to the threshold calculation subcircuit to provide the threshold calculation subcircuit with a difference between the reference point update value and the current reference point.

7. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 6, characterized in that: The reference point calculation subcircuit obtains the reference point update value by the following formula: Among them, Y new is the reference point update value, Y is the current reference point, R is the update ratio, and Q is the counting result.

8. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 6, characterized in that: The threshold calculation subcircuit includes: a third adder, a fourth adder, a third memory and a fourth memory, wherein: The first input end of the third adder is connected to the output end of the subtractor, the second input end of the third adder is connected to the threshold update circuit to obtain the current high threshold, and the output end of the third adder is connected to the third memory to store the high threshold update value in the third memory; The third memory is connected to the threshold update circuit to provide the high threshold update value to the threshold update circuit; The first input end of the fourth adder is connected to the output end of the subtractor, the second input end of the fourth adder is connected to the threshold update circuit to obtain the current low threshold, and the output end of the fourth adder is connected to the fourth memory to store the low threshold update value in the fourth memory; The fourth memory is connected to the threshold update circuit to provide the low threshold update value to the threshold update circuit.

9. The device for updating reference points and threshold values ​​of a touch sensing input module according to claim 6, characterized in that: The update request subcircuit includes: a first AND gate, a second AND gate, an update request unit, and a synchronization logic unit, wherein: The first input end of the first AND gate is connected to the result comparator to obtain the update trigger signal, the second input end of the first AND gate is connected to the update control circuit to obtain the update enable signal, and the output end of the first AND gate is connected to the update request unit; The first input end of the second AND gate is connected to the reference point update circuit to obtain the reference point update completion signal, the second input end of the second AND gate is connected to the threshold value update circuit to obtain the threshold value update completion signal, and the output end of the second AND gate is connected to the synchronization logic unit; The synchronization logic unit is used to perform synchronization processing on the reference point update completion signal and the threshold update completion signal, and generate a synchronization completion signal; The update request unit is used to generate the update request when the first AND gate outputs 1, and clear the update request when the synchronization logic unit outputs the synchronization completion signal.

10. A touch sensing input module, characterized in that: The invention comprises a reference point and threshold updating device of a touch sensing input module as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and system for updating benchmark data of capacitive multi-point touch screen

    CN102799321A

  • Reference updating method and system for touch screen as well as touch terminal

    CN102968217A