Touch detection method, touch detection circuit, touch driving chip and electronic equipment
By performing the first touch scanning and multi-frame timing scanning in the hardware monitoring mode, the data gap problem during the mode switching of the touch device is solved, and higher touch detection accuracy and fast response are achieved, and power consumption is reduced.
Patent Information
- Application Number
- CN202510700195.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-07-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the data gap caused by circuit environment differences during mode switching results in detection errors, affecting the accuracy and reliability of touch detection.
When the electronic device switches to the hardware monitoring mode, the first touch scanning is immediately performed to obtain the touch reference data, and a multi-frame timing scanning is performed in the hardware monitoring mode to obtain the touch detection data, ensuring that the difference between the two is calculated in the same circuit environment and avoiding the data gap caused by mode differences.
Improves the accuracy and response speed of touch detection, reduces misjudgment, improves detection rate and accuracy, and reduces power consumption.
Smart Images

Figure CN120233908A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of touch display, and particularly relates to a touch detection method, a touch detection circuit, a touch control driving chip and an electronic device. Background Art
[0002] Currently, most electronic devices have both display functions and touch functions. To implement image display, in an image frame period, a display driving module respectively selects thin film transistors of corresponding row pixel units via a plurality of gate lines. To implement touch detection, in a touch frame period, a touch control driving module detects changes in capacitance values via a plurality of sensing lines (Rx lines) to obtain position information. Among various touch types, the touch driving mode can be divided into Active mode (activation mode) and HW (Hardware) Monitor mode (hardware monitoring mode). In the hardware monitoring mode, most circuits are in a sleep state, and it is determined whether there is a touch input through a simple touch scan. In the activation mode, the position of the touch input is detected, the touch gesture is determined, and corresponding actions are executed.
[0003] Generally, in the activation mode, the touch control driving module performs cross-capacitance and self-capacitance interaction scans, and the MCU (Microcontroller Unit) obtains raw data and performs operations such as a reporting point algorithm, with relatively high power consumption. In the hardware monitoring mode, circuits other than those only supporting touch scan and determining whether to report a point are powered down and enter a low-power state. Due to the circuit environment differences between the two modes, there is a certain drop in the capacitance values of the touch scan in the two modes, such that in the hardware monitoring mode, it may exit the low-power state after only scanning one frame. As Figure 1 , it shows a schematic diagram of an abnormal scan process when switching touch modes in the prior art. In the activation mode, multi-frame periodic scans are performed. When switching modes, the raw data of the last frame scan in the activation mode is used as the touch reference data (base), and after switching to the hardware monitoring mode, the capacitance value of each frame of touch scan is used as the touch detection data (touch raw data). Then the difference between the two is diff = touch raw data - base. When diff is greater than a set touch threshold, it is determined that there is a touch, and at this time, the hardware monitoring mode is exited. Due to the circuit environment differences between the two modes, there is a certain drop between the raw data obtained from the first frame scan in the hardware monitoring mode and the touch reference data. At this time, diff may be greater than the threshold, resulting in the situation that the hardware monitoring mode switches to the activation mode after only scanning one frame, causing a malfunction. Therefore, currently, when the touch device switches modes, it is prone to detection errors due to the data drop caused by the circuit differences. Summary of the Invention
[0004] To solve the above technical problems, the present application provides a touch detection method, a touch detection circuit, a touch control driving chip, and an electronic device to solve the problems in the prior art.
[0005] According to one aspect of the present invention, there is provided a touch detection method applied to an electronic device. The electronic device includes a display unit and a touch control unit. The touch detection method includes: when it is detected that the electronic device switches from the activation mode to the hardware monitoring mode, a first touch scan is performed on the touch control unit to obtain original data as touch reference data; after the first touch scan ends, a multi-frame second touch scan is performed on the touch control unit in a timed scan manner, and the original data obtained each time is used as touch detection data; each time, the difference between the touch detection data and the touch reference data is used to determine whether there is a touch action, and when a touch action is detected, the electronic device is switched to the activation mode. The electronic device detects the touch position in the activation mode and detects whether there is a touch action in the hardware monitoring mode.
[0006] Optionally, the scan time of one frame of the first touch scan is less than the scan time of one frame of the second touch scan.
[0007] Optionally, the original data is the capacitance value under self-capacitance scan.
[0008] Optionally, in the hardware monitoring mode, only one frame of the first touch scan is performed, and the original data of one frame of the first touch scan is used as the touch reference data.
[0009] Optionally, in the hardware monitoring mode, continuous multi-frame first touch scans are performed, and the average value of the original data of the continuous multi-frame first touch scans is used as the touch reference data.
[0010] Optionally, the scan frequency of the first touch scan is greater than the scan frequency of the second touch scan.
[0011] Optionally, each time using the difference between the touch detection data and the touch reference data to determine whether there is a touch action includes: determining that there is a touch action when the difference is greater than a set touch threshold; determining that there is no touch action when the difference is not greater than the set touch threshold.
[0012] According to another aspect of the present invention, there is provided a touch detection circuit applied to an electronic device, where the electronic device includes a display unit and a touch control unit. Among them, the touch detection circuit includes: a touch driving unit that, when detecting that the electronic device switches from the activation mode to the hardware monitoring mode, performs a first touch scan on the touch control unit to obtain original data as touch reference data; a timer that, after the first touch scan ends, generates periodic clock pulses to cause the touch driving unit to generate driving pulses according to the clock pulses, and performs multiple-frame second touch scans on the touch control unit in a timed scan manner according to multiple driving pulses, and uses the original data obtained each time as touch detection data; a digital circuit that determines whether there is a touch action based on the difference between the touch detection data and the touch reference data each time, and when detecting a touch action, causes the electronic device to switch to the activation mode. Among them, the electronic device detects the touch position in the activation mode and detects whether there is a touch action in the hardware monitoring mode.
[0013] Optionally, the scanning time for the touch driving unit to perform one frame of the first touch scan is less than the scanning time for performing one frame of the second touch scan.
[0014] Optionally, the touch driving unit includes: a driving unit that performs self-capacitance scanning on the touch control unit in the hardware monitoring mode; a sensing unit that obtains and processes the original data, where the original data is a capacitance value. Among them, after the first touch scan ends, the driving unit wakes up the timer to generate the clock pulses.
[0015] According to another aspect of the present invention, there is provided a touch driving chip for driving the touch screen of an electronic device, where the touch driving chip includes the above touch detection circuit.
[0016] According to another aspect of the present invention, there is provided an electronic device including a touch control unit and a display unit, where the touch control unit includes a touch screen and the above touch detection circuit.
[0017] The touch detection method, touch detection circuit, touch control driving chip and electronic device provided by the present invention obtain touch reference data and touch detection data after the electronic device switches to the hardware monitoring mode, so that the acquisition of both types of data is in the same mode, avoiding the impact of mode differences on the data drop, making the calculation result of the difference between the two more accurate, and improving the accuracy of touch detection. Moreover, immediately after the electronic device switches to the hardware monitoring mode, the first touch scan is started to obtain touch reference data, without waiting for the timing loop to wake up and scan, which speeds up the response speed and improves the detection rate and accuracy. And after the first touch scan ends, the timing loop starts to work and the second touch scan is performed regularly, so that the first touch scan and the second touch scan can be clearly distinguished, and the acquisition of touch reference data will not affect the normal second touch scan in the hardware monitoring mode. Then, when there is a touch action, the touch detection data can be clearly detected, and the response speed is increased.
[0018] Further, the time of one frame of the first touch scan is significantly shorter than the time of one frame of the second touch scan. Therefore, after switching to the hardware monitoring mode, the touch reference data can be quickly obtained, and the reference can be quickly detected and judged, without affecting the subsequent detection of touch actions.
[0019] Further, at least one frame of the first touch scan can be performed before the normal second touch scan. When one frame of the first touch scan is performed, the judgment reference can be quickly obtained, and the response speed is increased. And when multiple frames of the first touch scan are performed, the accuracy of the touch reference data can be improved, and the touch detection accuracy can be improved. In addition, the scan frequency of the first touch scan can be greater than the scan frequency of the second touch scan, reducing the power consumption while accelerating the touch response speed.
[0020] It should be noted that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present invention. Description of the Drawings
[0021] Figure 1 Shows a schematic diagram of the abnormal scan process when the touch control mode is switched in the prior art; Figure 2 Shows a schematic flowchart of the touch detection method according to an embodiment of the present invention; Figure 3 Shows a schematic diagram of the scan process of the touch detection method according to the first embodiment of the present invention; Figure 4 Shows a schematic diagram of the scan process of the touch detection method according to the second embodiment of the present invention; Figure 5 Shows a schematic circuit diagram of the touch detection circuit according to an embodiment of the present invention. Detailed Embodiments
[0022] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0023] An electronic device is generally a touch display integrated device, having both touch and display functions, that is, including a touch unit and a display unit. The touch unit usually includes a touch driving unit and a plurality of excitation electrodes and sensing electrodes that are crisscrossed horizontally and vertically. The touch driving unit is connected to the excitation electrodes of all columns via the scanning lines TX1 to TXm, and is used to provide excitation signals in a scanning manner, so that in one touch frame period, excitation signals are sequentially provided to the excitation electrodes of different columns. The sensing lines RX1 to RXn are connected to the sensing electrodes of all rows, so as to receive the sensing signals of the corresponding rows. Wherein, m and n are natural numbers. For the mutual capacitance scanning mode, for example, the capacitance value at the intersection of the driving electrode and the sensing electrode is obtained to determine whether a touch action occurs at this point. For the self-capacitance scanning mode, for example, the capacitance value between the sensing electrode and the power ground is obtained to determine whether a touch action occurs.
[0024] Figure 2 A schematic flowchart of a touch detection method according to an embodiment of the present invention is shown.
[0025] As Figure 2 shown, after detecting that the electronic device enters the hardware monitoring mode, the touch detection method of this embodiment acquires touch reference data and touch detection data, so that the two are in the same circuit working environment, avoiding touch misjudgment caused by data drop due to environmental differences. This method specifically includes steps S101 - S103.
[0026] In step S101, when it is detected that the electronic device switches from the active mode to the hardware monitoring mode, a first touch scan is performed on the touch unit to obtain raw data as touch reference data.
[0027] In this step, continuously detect the working mode of the electronic device. When it meets certain trigger conditions, switch from the active mode to the hardware monitoring mode. The trigger conditions are set according to actual requirements. For example, it can be that no touch action is detected on the touch screen within a certain period of time. Then, when it meets the trigger conditions, perform a mode switch. When switching to the hardware monitoring mode, immediately perform the first touch scan without waiting for the wake-up of the timer, so as to complete the fast scan after the mode switch. The first touch scan is performed for at least one frame. When only one frame of the first touch scan is performed, use the raw data of one frame of the first touch scan as the touch reference data (base). When multiple consecutive frames of the first touch scan are performed in the hardware monitoring mode, use the average value of the raw data of multiple consecutive frames of the first touch scan as the touch reference data (base).
[0028] In step S102, after the first touch scan ends, perform multiple frames of second touch scans on the touch unit in a timed scan manner, and use the raw data obtained each time as touch detection data.
[0029] In this step, after the first touch scan ends, officially start the timed scan in the hardware monitoring mode. At this time, according to the wake-up of the timer, perform multiple frames of second touch scans on the touch unit periodically, that is, perform one frame of second touch scan every fixed time. The raw data obtained from each scan is used as touch detection data (touch raw data). The raw data obtained in this step and step S101 are both, for example, capacitance values under self-capacitance scanning. Thus, both the touch reference data and the touch scan data are obtained in the same working mode (hardware monitoring mode), and their circuit working environments are the same, without a large gap between the data. The first touch scan does not need to wait for the wake-up of the timing loop, while the second touch scan requires the excitation of the clock pulse of the timer. The timing time can be set according to needs, so as to maintain a low power consumption. Moreover, the acquisition of the touch reference data is very fast, the touch detection response speed is fast, maintaining a very fast response speed on the basis of ensuring low power consumption, and the data detection is accurate.
[0030] In step S103, each time judge whether there is a touch action based on the difference between the touch detection data and the touch reference data, and when a touch action is detected, switch the electronic device to the active mode.
[0031] In this step, the difference diff between the touch detection data and the touch reference data is used to determine whether there is a touch action, that is, diff=touch raw data-base. This step specifically includes: determining that there is a touch action when the difference is greater than the set touch threshold; determining that there is no touch action when the difference is not greater than the set touch threshold. Taking the touch threshold as touchthreshold, when diff>touch threshold, it is considered that there is a touch action, and it is necessary to switch to the activation mode, otherwise continue the second touch scan. Since the two data for the difference calculation are obtained under the same working mode, there is no data gap caused by the circuit working environment, thereby avoiding misjudgment. In this embodiment, the acquisition of raw data is accurate and the touch detection accuracy is high.
[0032] Further, in this embodiment, the scanning time of a frame of the first touch scan is less than the scanning time of a frame of the second touch scan. That is, at least one frame of the first touch scan is quickly performed just after entering the hardware monitoring mode, and the duration of one frame of the first touch scan is very short, so that the touch reference data can be quickly acquired, and the acquisition of subsequent touch detection data is not affected. Once a touch action occurs, the touch detection data with obvious changes can be immediately detected, thereby improving the response speed. In addition, it can also be set so that the scanning frequency of the first touch scan is greater than the scanning frequency of the second touch scan, for example, by acquiring the touch reference data through multiple frames of fast first touch scans to increase the accuracy. The scanning frequency of the second touch scan can be, for example, 10Hz-40Hz, and the scanning frequency of the first touch scan can be, for example, 200Hz-300Hz. The scanning frequency in the activation mode needs to be greater than the scanning frequency of the second touch scan in the hardware monitoring mode, and the scanning frequency of the first touch scan can be greater than, equal to, or slightly less than the scanning frequency in the activation mode. Here, the scanning frequency of the first touch scan is greater than the scanning frequency in the activation mode as an example.
[0033] Figure 3 A schematic diagram of a scanning process of a touch detection method according to a first embodiment of the present invention is shown.
[0034] like Figure 3As shown, in this embodiment, multi-frame touch scanning (Active scan) is performed in the active mode, and then it switches to the hardware monitoring mode (HW Monitor mode) after reaching the trigger condition. Immediately perform and only perform one frame of the first touch scan in the hardware monitoring mode, and use the raw data of one frame of the first touch scan as the touch reference data base (base = Fast HW Monitor scan raw data). Then, multi-frame second touch scans (HW Monitor scan) are performed regularly at the same time interval, and the raw data of each frame is used as the touch detection data respectively, and then it is operated with the touch reference data to determine whether there is a touch action.
[0035] Figure 4 FIG. shows a schematic diagram of the scanning process of the touch detection method according to the second embodiment of the present invention.
[0036] As Figure 4 shown, this embodiment is similar to Figure 3 the embodiment. The difference is that in this embodiment, continuous multi-frame first touch scans are performed in the hardware monitoring mode, and the average value of the raw data of continuous multi-frame first touch scans is used as the touch reference data. The scanning frequency of continuous multi-frame first touch scans is greater than the scanning frequency of continuous multi-frame second touch scans. And the scanning time of each frame of the first touch scan is less than the scanning time of each frame of the second touch scan. Here, the scanning time can be understood as the width of the pulse in the figure.
[0037] Figure 5 FIG. shows a schematic circuit diagram of the touch detection circuit according to the embodiment of the present invention.
[0038] As Figure 5 shown, a touch detection circuit 200 is further provided, which is applied to an electronic device. The electronic device includes a display unit and a touch control unit. The touch detection circuit 200 includes a timer 220, a touch driving unit 210, and a digital circuit 230. The touch driving unit 210 further includes a driving unit 211 and a sensing unit 212. The touch detection circuit 200 is used to execute the touch detection method described in the above embodiment.
[0039] Specifically, when the touch driving unit 210 detects that the electronic device switches from the active mode to the hardware monitoring mode, it performs a first touch scan on the touch control unit (the electrodes corresponding to the touch screen in the touch control unit) to obtain the original data as the touch reference data. After the first touch scan ends, the timer 220 generates periodic clock pulses, causing the touch driving unit to generate driving pulses according to the clock pulses, and performing multiple-frame second touch scans on the touch control unit (the electrodes corresponding to the touch screen in the touch control unit) in a timed scan manner based on the multiple driving pulses, using the original data obtained each time as the touch detection data. The digital circuit 230 determines whether there is a touch action based on the difference between the touch detection data and the touch reference data each time, and switches the electronic device to the active mode when a touch action is detected. The electronic device detects the touch position in the active mode and detects whether there is a touch action in the hardware monitoring mode. The scan time for the touch driving unit 210 to perform one frame of the first touch scan is less than the scan time for performing one frame of the second touch scan. Moreover, the driving unit 211 performs self-capacitance scanning on the touch control unit in the hardware monitoring mode; while the sensing unit 212 obtains and processes the original data, and the original data is the capacitance value. And after the first touch scan ends, the driving unit 211 wakes up the timer 220 to generate clock pulses.
[0040] In addition, the present invention further provides a touch driving chip, which is generally connected to the touch screen of an electronic device for driving the touch screen of the electronic device, and the touch driving chip includes the above-mentioned touch detection circuit and other circuits such as a power supply. The touch detection circuit is used to execute the touch detection method mentioned above. Thus, the touch detection circuit can perform the first touch scan and the second touch scan on the touch screen in the same mode.
[0041] Furthermore, the present invention further provides an electronic device, which includes a touch control unit and a display unit, and the touch control unit includes a touch screen and the above-mentioned touch detection circuit. For example, the touch detection circuit is integrated inside the touch driving chip.
[0042] In summary, the touch detection method, touch detection circuit, touch driver chip and electronic device provided by the present invention obtain touch reference data and touch detection data after the electronic device is switched to the hardware monitoring mode, so that the acquisition of the two types of data is in the same mode, avoiding the impact of the mode difference on the data, making the calculation result of the difference between the two more accurate, and improving the accuracy of touch detection. Moreover, when the electronic device switches to the hardware monitoring mode, the first touch scan is immediately started to obtain the touch reference data without waiting for the timing loop to wake up the scan, which speeds up the response speed and improves the detection rate and accuracy. After the first touch scan is completed, the timing loop starts to work and the second touch scan is performed regularly, so that the first touch scan and the second touch scan can be clearly distinguished, and the acquisition of the touch reference data will not affect the normal second touch scan in the hardware monitoring mode. Then, when there is a touch action, the touch detection data can be clearly detected, and the response speed is accelerated.
[0043] It should be noted that the numerical values in this article are only used for exemplary description. In other embodiments of the present invention, other numerical values can also be used to implement this solution. The specific settings should be reasonable according to the actual situation, and the present invention is not limited to this.
[0044] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.
[0045] It should also be understood that the terms and expressions used herein are for descriptive purposes only, and one or more embodiments of this specification should not be limited to these terms and expressions. The use of these terms and expressions does not mean to exclude any equivalent features of the illustrations and descriptions (or parts thereof), and it should be recognized that various modifications that may exist should also be included in the scope of the claims. Other modifications, changes and substitutions may also exist. Accordingly, the claims should be deemed to cover all such equivalents.
Claims
1. A touch detection method, applied to an electronic device, the electronic device comprising a display unit and a touch control unit, wherein, The touch detection method includes: When it is detected that the electronic device switches from the activation mode to the hardware monitoring mode, a first touch scan is performed on the touch unit to obtain original data as touch reference data. After the first touch scan ends, multiple frames of second touch scans are performed on the touch unit in a timed scan manner, and the original data obtained each time is used as touch detection data. Each time, the difference between the touch detection data and the touch reference data is used to determine whether there is a touch action, and when a touch action is detected, the electronic device is switched to the activation mode. Wherein, the electronic device detects the touch position in the activation mode and detects whether there is a touch action in the hardware monitoring mode.
2. The touch detection method according to claim 1, wherein, The scan time of one frame of the first touch scan is less than the scan time of one frame of the second touch scan.
3. The touch detection method according to claim 1, wherein, The original data is the capacitance value under self-capacitance scan.
4. The touch detection method according to claim 1, wherein, In the hardware monitoring mode, only one frame of the first touch scan is performed, and the original data of one frame of the first touch scan is used as the touch reference data.
5. The touch detection method according to claim 1, wherein, In the hardware monitoring mode, multiple consecutive frames of the first touch scan are performed, and the average value of the original data of multiple consecutive frames of the first touch scan is used as the touch reference data.
6. The touch detection method according to claim 1, wherein, The scan frequency of the first touch scan is greater than the scan frequency of the second touch scan.
7. The touch detection method according to claim 1, wherein, Each time, using the difference between the touch detection data and the touch reference data to determine whether there is a touch action includes: Determining that there is a touch action when the difference is greater than a set touch threshold. Determining that there is no touch action when the difference is not greater than the set touch threshold.
8. A touch detection circuit is applied to an electronic device, where the electronic device includes a display unit and a touch control unit. Among them, The touch detection circuit includes: A touch driving unit, which performs a first touch scan on the touch unit when it is detected that the electronic device switches from the activation mode to the hardware monitoring mode, to obtain original data as touch reference data. A timer, after the first touch scan ends, generates periodic clock pulses, enabling the touch driving unit to generate driving pulses according to the clock pulses, and performing multiple frames of second touch scans on the touch unit in a timed scan manner according to multiple driving pulses, and using the original data obtained each time as touch detection data. A digital circuit, each time using the difference between the touch detection data and the touch reference data to determine whether there is a touch action, and when a touch action is detected, switching the electronic device to the activation mode. Wherein, the electronic device detects the touch position in the activation mode and detects whether there is a touch action in the hardware monitoring mode.
9. The touch detection circuit according to claim 8, wherein, The scan time for the touch driving unit to perform one frame of the first touch scan is less than the scan time for performing one frame of the second touch scan.
10. The touch detection circuit according to claim 8, wherein, The touch driving unit includes: A driving unit, which performs self-capacitance scan on the touch unit in the hardware monitoring mode. A sensing unit, which acquires and processes the original data, and the original data is the capacitance value. Wherein, after the first touch scan ends, the driving unit wakes up the timer to generate the clock pulses.
11. A touch driving chip for driving the touch screen of an electronic device, wherein, The touch driving chip includes the touch detection circuit according to any one of claims 8-10.
12. An electronic device includes a touch unit and a display unit, wherein, The touch unit includes a touch screen and a touch detection circuit according to any one of claims 8-10.
Citation Information
Patent Citations
Awakening method and system for touch screen terminal
CN101702106A
Scan method and system for touch screen, touch screen and touch screen device
CN105739757A
Gesture recognition method and device and electronic equipment
CN108227997A
Control method and touch display system
CN108664163A
Touch key scanning circuit, low power mode exiting method, and device
WO2021197199A1