CN116414256A - Touch detection circuit, touch detection method and touch display device - Google Patents

Touch detection circuit, touch detection method and touch display device Download PDF

Info

Publication number
CN116414256A
CN116414256A CN202310282737.6A CN202310282737A CN116414256A CN 116414256 A CN116414256 A CN 116414256A CN 202310282737 A CN202310282737 A CN 202310282737A CN 116414256 A CN116414256 A CN 116414256A
Authority
CN
China
Prior art keywords
touch
data
circuit
reading
sensors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310282737.6A
Other languages
Chinese (zh)
Inventor
王浩
康世振
卢泽华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202310282737.6A priority Critical patent/CN116414256A/en
Publication of CN116414256A publication Critical patent/CN116414256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04164Connections between sensors and controllers, e.g. routing lines between electrodes and connection pads
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a touch detection circuit, a touch detection method and touch display equipment, wherein a data reading circuit in the touch detection circuit reads original touch data and reference touch data of a plurality of touch sensors from a data memory so as to enable a first data processing circuit to determine touch values of the plurality of touch sensors. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit determines at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmits the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.

Description

Touch detection circuit, touch detection method and touch display device
Technical Field
The present disclosure relates to the field of touch display technologies, and in particular, to a touch detection circuit, a touch detection method, and a touch display device.
Background
A touch display device (e.g., a smart phone) generally includes a processor, a touch display driver integration (touch and display driver integrated, TDDI) chip, and a display screen. The TDDI chip not only can receive display data transmitted by the processor to drive the display screen to display images, but also can acquire touch data corresponding to clicking operation when the clicking operation of a target object (such as a finger) on the display screen is detected. The TDDI chip can process the acquired touch data so as to determine the position information of the clicking operation. And then, the TDDI chip can report the position information to the processor so that the processor can respond to the clicking operation to execute the corresponding processing operation.
In the related art, a software algorithm may be stored in advance in the TDDI chip. After touch data is acquired, the TDDI chip can run the software algorithm to determine the position information corresponding to the clicking operation.
However, the frequency of reporting the position information by the TDDI chip set in the touch display device is higher, for example, the frequency may be 120 hertz (Hz), 240Hz or 360Hz, and the speed of determining the position information by the software algorithm is slower, so that the TDDI chip cannot report the position information to the TDDI chip in time.
Disclosure of Invention
The application provides a touch detection circuit, a touch detection method and touch display equipment, which can solve the problem that a TDDI chip cannot report position information to the TDDI chip in time through a software algorithm when touch detection is performed in the related technology. The technical scheme is as follows:
in one aspect, a touch detection circuit is provided, and is applied to a touch display device, the touch detection circuit includes: a data reading circuit, a first data processing circuit, a comparison circuit and a second data processing circuit;
the data reading circuit is connected with a data memory in the touch display device and is used for reading original touch data and reference touch data from the data memory, the original touch data are generated based on data acquired by a plurality of touch sensors in the touch display device during touch detection, and the reference touch data are generated based on data acquired by the plurality of touch sensors during no touch operation;
the first data processing circuit is connected with the data reading circuit and is used for determining a touch value of each touch sensor in the plurality of touch sensors based on a difference value of the original touch data and the reference touch data;
The comparison circuit is connected with the first data processing circuit and is used for comparing the touch control values of the plurality of touch control sensors to determine at least one alternative touch control sensor from the plurality of touch control sensors, and the touch control value of each alternative touch control sensor is larger than that of an adjacent touch control sensor;
the second data processing circuit is respectively connected with the comparing circuit and the processor of the touch display device, and is used for determining at least one target touch sensor with a touch value larger than a touch threshold value from the at least one alternative touch sensor, and transmitting the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response.
Optionally, the data reading circuit includes: a first reading sub-circuit and a second reading sub-circuit;
the first reading sub-circuit is respectively connected with the data memory and the first data processing circuit and is used for reading the original touch data from the data memory;
the second reading sub-circuit is respectively connected with the data memory and the first data processing circuit and is used for reading the reference touch data from the data memory.
Optionally, the touch detection circuit further includes: a first-in first-out (first in first out, FIFO) buffer and a second FIFO buffer;
the first FIFO buffer is respectively connected with the first reading sub-circuit and the first data processing circuit and is used for buffering original touch data read by the first reading sub-circuit so as to be read by the first data processing circuit;
the second FIFO buffer is respectively connected with the second reading sub-circuit and the first data processing circuit and is used for buffering the reference touch data read by the second reading sub-circuit so as to be read by the first data processing circuit.
Optionally, the touch detection circuit further includes: an arbitration control circuit;
the arbitration control circuit is respectively connected with the data memory, and the first reading sub-circuit and the second reading sub-circuit are used for controlling the first reading sub-circuit and the second reading sub-circuit to alternately read touch data from the data memory.
Optionally, the first data processing circuit comprises a subtractor and the comparison circuit comprises a comparator.
Optionally, the touch detection circuit further includes: a cache control circuit;
The buffer control circuit is respectively connected with the second data processing circuit and the processor and is used for buffering the position information and the touch value of the at least one target touch sensor, transmitting the touch threshold value to the second data processing circuit and transmitting the reading parameter to the data reading circuit;
the data reading circuit is used for reading the original touch data and the reference touch data from the data memory based on the reading parameters;
wherein the read parameters include: the data amount of the original touch data and the reference touch data, and the reading addresses of the original touch data and the reference touch data.
Optionally, the cache control circuit includes: a cache sub-circuit and a control sub-circuit;
the buffer sub-circuit is respectively connected with the processor and the second data processing circuit and is used for buffering the position information and the touch value of the at least one target touch sensor;
the control sub-circuit is respectively connected with the data reading circuit and the second data processing circuit, and is used for transmitting the touch threshold value to the second data processing circuit and transmitting the reading parameter to the data reading circuit.
Optionally, the touch detection circuit further includes: a third FIFO buffer and a data write circuit;
the third FIFO buffer is respectively connected with the first data processing circuit and the data writing circuit and is used for buffering touch control values of the plurality of touch control sensors for the data writing circuit to read;
the data writing circuit is connected with the data memory and used for writing touch values of the touch sensors into the data memory.
Optionally, the second data processing circuit is further configured to: after the at least one target touch sensor is determined, an interrupt instruction is sent to the processor, wherein the interrupt instruction is used for indicating the processor that the touch detection circuit has completed touch detection operation.
Optionally, the processor and the data memory, the processor and the cache control circuit, and the data memory and the data reading circuit are all connected through an advanced high-performance bus (advanced high performance bus, AHB).
In another aspect, a touch detection method is provided, which is applied to the touch detection circuit according to the above aspect, and the touch detection circuit includes: a data reading circuit, a first data processing circuit, a comparison circuit and a second data processing circuit; the method comprises the following steps:
The data reading circuit reads original touch data and reference touch data from a data memory of the touch display device, wherein the original touch data is generated based on data acquired by a plurality of touch sensors in the touch display device during touch detection, and the reference touch data is generated based on data acquired by the plurality of touch sensors during no touch operation;
the first data processing circuit determines a touch value of each touch sensor of the plurality of touch sensors based on a difference value of the original touch data and the reference touch data;
the comparison circuit compares the touch values of the plurality of touch sensors to determine at least one alternative touch sensor from the plurality of touch sensors, wherein the touch value of each alternative touch sensor is larger than the touch value of the adjacently arranged touch sensors;
the second data processing circuit determines at least one target touch sensor from the at least one alternative touch sensor, and transmits the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response.
In still another aspect, a touch display device is provided, including: the touch detection circuit comprises a processor, a data memory, a plurality of touch sensors and the touch detection circuit.
Optionally, the processor is a central processing unit (central processing unit, CPU), and the touch detection circuit includes a TDDI chip.
Optionally, the touch display device further includes: a filter;
the filter is respectively connected with the plurality of touch sensors and the data memory, and is used for filtering original touch data generated by data acquired by the plurality of touch sensors during touch detection, and transmitting the filtered original touch data to the data memory for storage by the data memory.
The beneficial effects that this application provided technical scheme brought include at least:
the application provides a touch detection circuit, a touch detection method and touch display equipment. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit can determine at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmit the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each hardware circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a touch display device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of another touch display device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a touch detection circuit according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a touch detection module according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another touch detection circuit according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another touch detection circuit according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a comparison circuit for obtaining a touch value according to an embodiment of the present application;
fig. 8 is a flow chart of a touch detection method provided in the embodiment of the present application;
fig. 9 is a flowchart of another touch detection method according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a touch display device according to an embodiment of the present application, and referring to fig. 1, the touch display device includes: the touch detection circuit 10, the touch module 20, the data memory 30, and the processor 40. The touch module 20 includes a plurality of touch sensors (not shown in fig. 1) arranged in an array.
The touch display device is capable of acquiring touch signals by a plurality of touch sensors in the touch module 20 when performing touch detection. The touch signals collected by the touch sensors can be stored in the data memory 30 as original touch data after being processed (e.g. analog-to-digital converted) for being read by the touch detection circuit 10. The data memory 30 may also store reference touch data of the plurality of touch sensors. The reference touch data may be generated based on touch signals acquired by the plurality of touch sensors when no touch operation is performed.
The touch sensors in the touch module 20 can periodically collect touch signals, and periodically store the collected touch signals to the data memory 30. For example, the plurality of touch sensors in the touch module 20 may be capacitive touch sensors, and the signal values of the touch signals collected by the plurality of touch sensors may be capacitance values.
The touch detection circuit 10 is capable of detecting whether there is a touch operation (e.g., a click operation) for the touch display device based on the original touch data and the reference touch data of the plurality of touch sensors, and determining a touch position of the touch operation when the touch operation is detected. The touch detection circuit 10 can report the detected touch position to the processor 40 for the processor 40 to perform a touch response.
Optionally, as shown in fig. 2, the touch display device may further include: a filter 50. The filter 50 is connected to the touch module 20 and the data memory 30, respectively. The filter 50 is configured to filter original touch data of the plurality of touch sensors in the touch module 20, and transmit the filtered original touch data to the data memory 30 for storage in the data memory 30.
It can be understood that the touch signals collected by the plurality of touch sensors contain a lot of random noise, so that the signal-to-noise ratio of the original touch data is small. By filtering the original touch data generated based on the touch signal, noise in the original touch data can be effectively reduced, and then the signal-to-noise ratio of the original touch data is improved.
In this embodiment, the touch detection circuit 10 and the touch module 20 may be integrally disposed in a touch panel of the touch display device. The touch panel may be a liquid crystal display (liquid crystal display, LCD) panel, or may be an organic light-emitting diode (OLED) panel or other types of panels.
In the LCD touch panel, both the touch module 20 and the display module of the touch display device are printed on the glass substrate. The touch module can be arranged On the LCD panel In two modes, namely In-cell and On-cell. In-cell refers to a method of embedding the touch module 20 into a plurality of display pixels included In the display module. On-cell refers to a method of embedding the touch module 20 between a color filter substrate and a polarizer in an LCD panel. A driving circuit (e.g., TDDI chip) for driving the touch module 20 and the display module to operate is provided in the LCD panel. The driving circuit not only can receive the display data transmitted by the processor 40 to drive the display module to display an image, but also can perform touch detection based on the touch signal collected by the touch module 20, and report the touch detection result, for example, the coordinate position of the detected touch point (i.e. touch point) to the processor 40. Alternatively, the driving circuit may report the coordinate positions of the plurality of touch points to the processor 40 at the same time.
In the OLED panel, the display module and the touch module 20 are driven and controlled by different driving circuits due to the limitation of the manufacturing process. The driving circuit for driving the touch module 20 may be disposed on the OLED panel in such a manner that a chip is directly bonded to a glass (COG).
It can be appreciated that, in the two touch panels, the touch module 20 includes a larger number of touch sensors. For example, when the display screen of the touch display device is a High Definition (HD) screen, the touch module 20 may include 576 touch sensors arranged in an array. When the display screen of the touch display device is a full high definition (full high definition, FHD) screen, the touch module 20 includes a greater number of touch sensors.
Alternatively, the touch display device may be any product or component having a touch display function, such as a Virtual Reality (VR) device, a liquid crystal display device, a mobile phone, a tablet computer, a television, or a navigator. The processor 40 may be a central processing unit (central processing unit, CPU) and the touch detection circuit 10 may include a TDDI chip. The data memory 30 may be a random access memory (random access memory, RAM), for example, a static random access memory (static random access memory, SRAM).
In the related art, the driving circuit for driving the touch module 20 may include a CPU core. The CPU core may run a binary file (i.e., a program file or algorithm) generated by code compilation to process raw touch data collected by the plurality of touch sensors and report touch detection results to the processor 40. It will be appreciated that, to ensure that the processor 40 is able to respond to the touch operation in time, the frequency of the driving circuit reporting the touch detection result is generally high, for example, the frequency of the driving circuit reporting the touch detection result may be 120Hz or 240Hz. Therefore, the algorithm running in the driving circuit needs to have high accuracy and real-time. If the algorithm can not meet the real-time performance, the drive circuit is easy to have the problem of missing report or false report in the touch detection process.
In order to avoid the problem of missing report or false report of the driving circuit in the touch detection process, the solution in the related art is to simplify the algorithm or increase the running speed of the CPU core in the driving circuit. However, the reduced algorithm may result in lower accuracy of the touch detection result reported by the driving circuit, and the method for improving the running speed of the CPU core may result in higher power consumption of the driving circuit.
Fig. 3 is a schematic structural diagram of a touch detection circuit provided in an embodiment of the present application, which can be applied to a touch display device, for example, the touch display device shown in fig. 1 or fig. 2. Referring to fig. 3, the touch detection circuit 10 includes: a data reading circuit 110, a first data processing circuit 120, a comparison circuit 130 and a second data processing circuit 140.
As shown in fig. 3, the data reading circuit 110 is connected to the data memory 30 in the touch display device, and is configured to read the original touch data and the reference touch data from the data memory 30. The original touch data is generated based on data acquired by a plurality of touch sensors in the touch display device during touch detection, and the reference touch data is generated based on data acquired by the plurality of touch sensors during non-touch operation. The first data processing circuit 120 is connected to the data reading circuit 110, and is configured to determine a touch value of each of the plurality of touch sensors based on a difference between the original touch data and the reference touch data.
The comparing circuit 130 is connected to the first data processing circuit 120, and is configured to compare touch values of a plurality of touch sensors, so as to determine at least one candidate touch sensor from the plurality of touch sensors, where the touch value of each candidate touch sensor is greater than the touch value of an adjacent touch sensor.
The second data processing circuit 140 is respectively connected to the comparing circuit 130 and the processor 40 of the touch display device, and is configured to determine at least one target touch sensor with a touch value greater than the touch threshold from the at least one candidate touch sensor, and transmit the position information and the touch value of the at least one target touch sensor to the processor 40 for the processor 40 to perform touch response.
In the embodiment of the application, when the touch display device performs touch detection, a plurality of touch sensors in the touch display device can collect touch signals. The touch signals collected by the touch sensors can be stored in the data memory 30 as original touch data after being processed. The original touch data collected by the touch sensors at a certain moment may be referred to as one frame of touch data, and one frame of original touch data may include signal values of a plurality of touch signals collected by the touch sensors. The data storage may detect in advance whether a touch operation exists in the touch device based on signal values of touch signals acquired by the plurality of touch sensors.
For example, if the data storage 30 detects that the signal values of the touch signals collected by at least one touch sensor of the plurality of touch sensors are all greater than or equal to a preset threshold value, it may be determined that the touch operation exists in the touch display device when the plurality of touch sensors collect the frame of original touch data. If the data storage 30 detects that the signal values of the touch signals collected by the touch sensors are smaller than the preset threshold value, it can be determined that no touch operation exists when the touch sensors collect the frame of original touch data, and the frame of original touch data is determined to be a frame of alternative touch data.
After the data storage 30 acquires the continuous multi-frame candidate touch data, a frame of reference touch data can be determined based on the multi-frame continuous candidate touch data. That is, one frame of reference touch data is generated by the data memory 30 based on a plurality of frames of continuous original touch data acquired by a plurality of touch sensors in a touch-free operation. Alternatively, the data memory 30 may determine the average of consecutive multi-frame candidate touch data as one frame of reference touch data. The signal value of the touch signal corresponding to each touch sensor in the frame reference touch data is determined based on the average value of the signal values of the touch signals acquired by the touch sensors in the multi-frame alternative touch data.
It can be understood that the original multi-frame touch data collected by the touch sensors in the case of no touch operation is subject to the temperature of the environment where the touch display device is located, and dynamically changes according to the external interference of the touch display device and the influence of interference factors such as the charge and discharge states of the touch display device. Therefore, in order to ensure the accuracy of the reference touch data of one frame determined by the memory, the processor may correct the reference touch data of the previous frame determined by the processor based on the average value of the continuous original touch data of multiple frames determined at present, so as to obtain the reference touch data of one frame at the current moment. This correction process may also be referred to as tracking of the reference touch data.
Optionally, the processor may correct the reference touch data of the previous frame by using a weighted average method, so as to obtain reference touch data of a frame at the current time. In addition, in the process of correcting the reference touch data of the previous frame, the weighting coefficient of the reference touch data of the previous frame can be dynamically adjusted based on the interference factor suffered by the touch display device at the current moment.
For example, the weighting coefficient of the reference touch data of the previous frame may be 0.7, and the weighting coefficient of the average value of the original touch data of the continuous multiple frames determined at the current moment is 0.3. When the touch display device is in a charging state, the weighting coefficient of the reference touch data of the previous frame can be adjusted from 0.7 to 0.55, and the weighting coefficient of the average value of the continuous multi-frame original touch data determined at the current moment is adjusted from 0.3 to 0.45 because the charging noise generated in the charging state is large. Therefore, the dynamic adjustment of the weighting coefficient can be realized, and further, the reference touch control data determined at the current moment is ensured to be more accurate.
For example, if the touch module 20 includes 6×10 touch sensors arranged in an array, and the touch sensors are capacitive touch sensors, in one frame of original touch data, signal values (i.e. capacitance values) of touch signals collected by the 60 touch sensors may be as shown in table 1. In the reference touch data of one frame, the signal values of the touch signals corresponding to the 60 touch sensors may be as shown in table 2.
TABLE 1
Figure BDA0004139108490000091
Figure BDA0004139108490000101
TABLE 2
2041 2040 2020 2092 2058 2091
2031 2093 2033 2064 2043 2061
2026 2048 2088 2000 2088 2090
2076 2023 2047 2003 2039 2019
2100 2040 2040 2021 2018 2075
2019 2071 2018 2045 2063 2035
2072 2056 2097 2013 2062 2042
2020 2076 2041 2001 2033 2016
2099 2100 2084 2073 2080 2082
2080 2096 2062 2035 2100 2062
It can be understood that, when the data reading circuit 110 reads the touch data, the signal values of the touch signals collected by the plurality of touch sensors in one frame of original touch data can be read according to a preset reading sequence, and the signal values of the touch signals collected by the plurality of touch sensors in one frame of reference touch data can be sequentially read. The reading order may be determined based on an arrangement order of the plurality of touch sensors in the touch module 20. Based on this, the data reading circuit 110 can also sequentially output, to the first data processing circuit 120, signal values of touch signals collected by the plurality of touch sensors in one frame of original touch data and signal values of touch signals corresponding to the plurality of touch sensors in one frame of reference touch data according to a reading sequence.
The first data processing circuit 120 is capable of determining a touch value of each of the plurality of touch sensors based on a difference between the frame of original touch data and the frame of reference touch data after receiving the original touch data and the reference touch data. The touch value of each touch sensor may refer to a difference between a signal value of a touch signal acquired by the touch sensor in the frame of original touch data and a signal value of a touch signal corresponding to the touch sensor in the frame of reference touch data.
For example, if the touch module 20 includes 6×10 touch sensors arranged in an array, and the first data processing circuit 120 receives a frame of original touch data as shown in table 1 and a frame of reference touch data as shown in table 2, the touch value of each touch sensor obtained after the first data processing circuit 120 processes the original touch data and the reference touch data may be shown in table 3.
TABLE 3 Table 3
-7 1 43 5 -11 31
14 -3 28 18 -12 26
-2 24 5 275 -8 19
-5 28 1 565 10 24
-6 14 -10 532 9 -10
0 9 -10 252 7 -4
10 -7 28 41 13 96
0 -4 21 9 16 506
-28 -3 14 -1 17 538
-28 -2 13 -6 10 174
Referring to table 3, at the current touch detection time, the touch values of the touch sensors are different, and there is a large difference.
After determining the touch values of the plurality of touch sensors, the first data processing circuit 120 can output the touch values of the plurality of touch sensors to the comparison circuit 130 for comparison by the comparison circuit 130. The comparison circuit 130 can compare touch values of the plurality of touch sensors to determine at least one alternative touch sensor among the plurality of touch sensors. The touch value of each alternative touch sensor is larger than that of the adjacent touch sensor. The touch sensor adjacent to each touch sensor refers to the touch sensor adjacent to the touch sensor in the row direction and the column direction in the touch module.
The comparison circuit 130 can compare the touch values of each touch sensor with the touch values of a plurality of touch sensors adjacent to the touch sensor according to the arrangement order of the plurality of touch sensors in the touch module 20 after receiving the touch values of the plurality of touch sensors.
Optionally, the touch module 20 may include a first area, a second area, and a third area. The first area may be a corner area of the touch module 20 (i.e. an area where a vertex of the touch module 20 is located), the second area may be a border area of the touch module 20, and the third area may be a center area of the touch module 20 except the corner area and the border area. Among the plurality of touch sensors arranged in an array, the number of adjacent touch sensors arranged in different areas of the touch module 20 is different. For example, referring to fig. 4, the touch sensors arranged in the first area may have 2 adjacent touch sensors, the touch sensors arranged in the second area may have 3 adjacent touch sensors, and the touch sensors arranged in the third area may have 4 adjacent touch sensors.
For example, as shown in fig. 4, in the touch sensors arranged in the array, for the touch sensor a1 located in the central area, the comparison circuit 130 needs to compare the touch values of the touch sensors b1, c1 and d1 adjacent thereto. For the touch sensor a2 located in the corner area, the comparing circuit 130 is required to compare the touch values of the touch sensors b2 and c2 adjacent thereto. For the touch sensor a3 located at the edge 1 in the edge area, the comparing circuit 130 needs to compare the touch values of the touch sensors b3, d3 and e3 adjacent thereto. For the touch sensor a4 located at the edge 2 in the edge area, the comparing circuit 130 needs to compare the touch values of the touch sensors e4, d4 and c4 adjacent thereto.
In this embodiment, if the comparison circuit 130 determines that the touch value of a certain touch sensor is greater than the touch value of an adjacent touch sensor, the touch sensor may be used as an alternative touch sensor. The comparison circuit 130 may set the touch value of a touch sensor to 0 if it is determined that the touch value of the touch sensor is not greater than the touch value of at least one adjacent touch sensor. For example, the comparison circuit 130 compares the touch values of the plurality of touch sensors shown in table 3, and then obtains the touch values shown in table 4.
TABLE 4 Table 4
0 0 43 0 0 31
14 0 0 0 0 0
0 0 0 0 0 0
0 28 0 565 0 24
0 0 0 0 0 0
0 0 0 0 0 0
10 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 538
0 0 0 0 0 0
After determining the at least one alternative touch sensor, the comparison circuit 130 can transmit the touch value of the at least one alternative sensor to the second data processing circuit 140. The second data processing circuit 140 can determine an alternative touch sensor having a touch value greater than a touch threshold value as a target touch sensor from among the at least one alternative sensor. The touch threshold may be a fixed value stored in the second data processing circuit 140 in advance.
It can be appreciated that the probability that the position of each alternative touch sensor on the touch screen is a touch point is positively correlated with the touch value of the alternative touch sensor. That is, the larger the touch value of the alternative touch sensor, the higher the probability that the position of the alternative touch sensor on the touch screen is a touch point. Accordingly, the second data processing circuit 140 may determine the position of the at least one target touch sensor on the touch panel as the touch position of the touch operation on the touch panel. Thus, after the second data processing circuit 140 transmits the position information and the touch value of the at least one target touch sensor to the processor 40, the processor 40 can directly perform touch response based on the position information and the touch value of the at least one target touch sensor. The position information of each target touch sensor may include coordinate values of the target touch sensor on the touch panel.
In the embodiment of the present application, the processor 40 performing the touch response may refer to that the processor 40 performs a response operation corresponding to the touch operation in response to the touch operation. For example, the touch display device may be a mobile phone, and after the touch detection circuit 10 detects a touch operation of a shutdown control of the mobile phone by a user, the processor 40 may perform the shutdown operation in response to the touch operation.
For example, if the second data processing circuit 140 receives the touch values of 8 candidate touch sensors shown in table 4 and the preset touch threshold is 500, referring to table 5, the second data processing circuit 140 may determine 2 target touch sensors among the 8 candidate touch sensors.
TABLE 5
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 565 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 538
0 0 0 0 0 0
Referring to table 5, the touch values of the 2 target touch sensors are 565 and 538, respectively. Referring to fig. 4, if the upper left vertex of the plurality of touch modules arranged in the touch module 20 is taken as the origin, the row direction in which the plurality of touch sensors are arranged is taken as the horizontal axis, and the column direction is taken as the vertical axis, the coordinates of the 2 target touch sensors determined by the second data processing circuit 140 may be (4, 4) and (6, 9), respectively. That is, coordinates of a touch point of a touch operation on the touch panel may be (4, 4) and (6, 9).
It may be appreciated that, if the second data processing circuit 140 detects that there is no alternative touch sensor with a touch value greater than the touch threshold value in the at least one alternative touch sensor, it may determine that there is no touch operation currently in the touch display device. Thus, the touch detection result reported by the second data processing circuit 140 to the processor 40 may include only indication information, where the indication information is used to indicate that the touch detection circuit 10 of the processor 40 does not detect the touch operation currently. In addition, the second data processing circuit 140 may report only the detection result including the indication information to the processor when the touch value of at least one alternative sensor transmitted by the comparison circuit 130 is not received.
It can be further appreciated that, compared to the method of performing touch detection by a software algorithm in the prior art, the touch detection circuit 10 provided in the present application can implement touch detection through a plurality of hardware circuits therein. Because the performance and efficiency of the hardware circuit for touch detection are higher than those of the software algorithm, the touch detection circuit 10 can quickly and accurately perform touch detection on touch data acquired by a plurality of touch sensors, and timely report the touch detection result to the processor 40. Moreover, since the touch detection circuit 10 provided by the application does not need to increase the operation speed of the CPU core in the touch detection circuit, the power consumption of the touch detection circuit 10 can be effectively reduced.
In summary, the embodiment of the present application provides a touch detection circuit, where a data reading circuit in the touch detection circuit can read original touch data and reference touch data of a plurality of touch sensors from a data memory, so that a first data processing circuit determines touch values of the plurality of touch sensors. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit can determine at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmit the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each hardware circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.
Fig. 5 is a schematic structural diagram of another touch detection circuit provided in the embodiment of the present application, and as shown in fig. 5, a data reading circuit 110 in the touch detection circuit 10 includes a first reading sub-circuit 111 and a second reading sub-circuit 112.
As shown in fig. 5, the first read sub-circuit 111 is connected to the data memory 30 and the first data processing circuit 120, respectively. The first reading sub-circuit 111 is used for reading original touch data from the data memory 30. The second read sub-circuit 112 is connected to the data memory 30 and the first data processing circuit 120, respectively. The second reading sub-circuit 112 is used for reading the reference touch data from the data memory 30.
In the embodiment of the application, when the touch display device performs touch detection, a plurality of touch sensors in the touch display device can collect touch signals. The touch signals collected by the touch sensors can be stored in the data memory 30 as original touch data after being processed. The original touch data collected by the touch sensors at a certain moment may be referred to as one frame of touch data, and one frame of original touch data may include signal values of a plurality of touch signals collected by the touch sensors. The signal values of the touch signals collected by the plurality of touch sensors can indicate whether the touch display device has touch operation currently. For example, if the data memory 30 determines that the signal values of the touch signals collected by the touch sensors in the touch module 20 are all smaller than the preset threshold, it may be determined that no touch operation exists when the touch sensors collect the frame of original touch data, and the frame of original touch data is used as the candidate touch data.
The data memory 30 also stores a plurality of touch sensor data. The reference touch data may be determined based on multiple frames of successive alternative touch data. For example, the data memory 30 may determine the average of successive multi-frame candidate touch data as one frame of reference touch data. The signal value of the touch signal corresponding to each touch sensor in the frame reference touch data is determined based on the average value of the signal values of the touch signals acquired by the touch sensors in the multi-frame alternative touch data.
In this embodiment of the present application, when the first reading sub-circuit 111 reads the original touch data from the data memory 30, the signal values of the touch signals collected by the plurality of touch sensors in one frame of original touch data can be read according to a preset reading sequence. The second reading sub-circuit 112 can also read signal values of touch signals corresponding to a plurality of touch sensors in one frame of reference touch data according to a preset reading sequence when the reference touch data is read from the data memory 30. Wherein. The reading order may be determined based on an arrangement order of the plurality of touch sensors in the touch module 20. Based on this, the first reading sub-circuit 111 and the second reading sub-circuit 112 can sequentially output the signal values of the touch signals collected by the plurality of touch sensors in one frame of original touch data and the signal values of the touch signals corresponding to the plurality of touch sensors in one frame of reference touch data to the first data processing circuit 120 according to the reading sequence.
Optionally, as shown in fig. 5, the touch detection circuit 10 may further include: a first FIFO buffer 151 and a second FIFO buffer 152.
Referring to fig. 5, the first FIFO buffer 151 is respectively connected to the first reading sub-circuit 111 and the first data processing circuit 120, and is configured to buffer the original touch data read by the first reading sub-circuit 111 for reading by the first data processing circuit 120. The second FIFO buffer 152 is connected to the second reading sub-circuit 112 and the first data processing circuit 120, and is configured to buffer the reference touch data read by the second reading sub-circuit 112 for reading by the first data processing circuit 120.
In this embodiment, the first FIFO buffer 151 and the second FIFO buffer 152 have a data buffering function, so that a frame of original touch data read by the first reading sub-circuit 111 can be transmitted to the first FIFO buffer 151 for buffering and then output to the first data processing circuit 120. The frame of original touch data read by the second reading sub-circuit 112 may be first transferred to the second FIFO buffer 152 for buffering, and then output to the first data processing circuit 120. Thus, the situation that the touch data is lost when the first reading sub-circuit 111 and the second reading sub-circuit 112 transmit the touch data to the first data processing circuit 120 can be avoided, and the reliability of touch data transmission is further ensured.
Alternatively, as shown in fig. 5, the first data processing circuit 120 may include a subtractor N1, and the comparison circuit 130 may include a comparator N2.
In this embodiment of the present application, after receiving a frame of original touch data and a frame of reference touch data, the subtractor N1 may calculate a difference between the frame of original touch data and the frame of reference touch data, so as to determine a touch value of each of the plurality of touch sensors. The touch value of each touch sensor may refer to a difference between a signal value of a touch signal acquired by the touch sensor in the frame of original touch data and a signal value of a touch signal corresponding to the touch sensor in the frame of reference touch data. For each touch sensor in the plurality of touch sensors, the subtractor N1 can sequentially receive the signal value of the touch signal collected by each touch sensor in the frame of original touch data and the data of the touch signal corresponding to the touch sensor in the reference touch data, so as to sequentially calculate the touch value of each touch sensor.
When the subtractor N1 reads the touch data from the first FIFO buffer 151 and the second FIFO buffer 152, the first reading sub-circuit 111 and the second reading sub-circuit 112 may continue to write the touch data into the first FIFO buffer 151 and the second FIFO buffer 152, that is, the first FIFO buffer 151 and the second FIFO buffer 152 may output the touch data while writing the touch data. Therefore, the transmission efficiency of touch data can be effectively improved.
After determining the touch values of the plurality of touch sensors, the subtractor N1 can sequentially output the touch values of the plurality of touch sensors to the comparator N2 for comparison by the comparator N2. After receiving the touch values of the plurality of touch sensors, the comparator N2 can compare the touch value of each touch sensor with the touch values of the plurality of touch sensors adjacent to the touch sensor according to the arrangement sequence of the plurality of touch sensors in the touch module 20, so as to determine at least one alternative touch sensor among the plurality of touch sensors. The touch value of each alternative touch sensor is larger than that of the adjacent touch sensor.
It can be understood that, when the comparator N2 compares the touch values of each touch sensor, the comparison needs to be performed based on the touch values of a plurality of touch sensors adjacent to the touch sensor, so that the comparator N1 needs to continuously update the addresses of the touch sensors to be compared in the comparison process, thereby determining a plurality of touch sensors adjacent to the touch sensor and further comparing the touch values of the touch sensors. Thus, the reliability of the comparator N2 in comparison can be ensured.
Optionally, as shown in fig. 5, the touch detection circuit 10 may further include: an arbitration control circuit 160. The arbitration control circuit 160 is respectively connected to the data memory 30, the first reading sub-circuit 111 and the second reading sub-circuit 112, and is used for controlling the first reading sub-circuit 111 and the second reading sub-circuit 112 to alternately read touch data from the data memory.
In the embodiment of the present application, since there is only one communication link for transmitting touch data between the data memory 40 and the data reading circuit 110, the arbitration control circuit 160 can control the first reading sub-circuit 111 and the second reading sub-circuit 112 in the data reading circuit 110 to alternately read touch data from the data memory 30 in order to ensure that the data reading circuit 110 can sequentially read the initial touch data and the reference touch data.
It can be understood that, when the first reading sub-circuit 111 reads a frame of original touch data, signal values (hereinafter simply referred to as original values) of touch signals collected by a plurality of touch sensors in the frame of original touch data are sequentially read. The second reading sub-circuit 112 also sequentially reads signal values (hereinafter simply referred to as reference values) of a plurality of touch signals corresponding to the plurality of touch sensors when reading one frame of reference touch data. The arbitration control circuit 160 can control the first reading sub-circuit 111 and the second reading sub-circuit 112 to read the signal value of the touch signal of each touch sensor of the plurality of touch sensors from the data memory 30. Also, for each touch sensor traversed, the arbitration control circuit 160 may control the first reading sub-circuit 111 and the second reading sub-circuit 112 to alternately read the original value and the reference value of the touch sensor.
For example, referring to fig. 4, the arbitration control circuit 160 may control the first reading sub-circuit 111 to read the original value of the touch sensor a2 in the original touch data, and then control the second reading sub-circuit 112 to read the reference value of the touch sensor a2 in the reference touch data. After that, the arbitration control circuit 160 may control the first reading sub-circuit 111 to read the original value of the touch sensor c2 in the original touch data, and then control the second reading sub-circuit 112 to read the reference value of the touch sensor c2 in the reference touch data.
Optionally, as shown in fig. 5, the touch detection circuit further includes: cache control circuitry 170. The buffer control circuit 170 is respectively connected to the second data processing circuit 140 and the processor 40, and is configured to buffer the position information and the touch value of at least one target touch sensor, and transmit the touch threshold to the second data processing circuit 140 and the read parameter to the data reading circuit 110. The data reading circuit 110 is configured to read the original touch data and the reference touch data from the data memory 30 based on the reading parameters. Wherein, the reading parameters include: the data amount of the original touch data and the reference touch data, and the read addresses of the original touch data and the reference touch data.
The data amount of the original touch data may refer to a size of a storage space occupied by an original value included in one frame of the original touch data, and the data amount of the reference touch data may refer to a size of a storage space occupied by a reference value included in one frame of the reference touch data. The read address of the original touch data may refer to the storage address of the plurality of original values in the data memory 30 in the frame of the original touch data, and the read address of the reference touch data may refer to the storage address of the plurality of reference values in the data memory 30 in the frame of the reference touch data.
In this embodiment, after determining at least one target touch sensor, the second data processing circuit 140 can transmit the touch value and the position information of the at least one target touch sensor to the cache control circuit 170 for caching, so that the processor 40 can read and perform touch response. In addition, the buffer control circuit 170 can control the operation state of the touch detection circuit 10 in addition to transmitting various parameters required in the process of reading the touch data to the data reading circuit 110. For example, the buffer control circuit 170 can control the start-up, clearing, interrupt clearing, recording read/write states, and the like of the touch detection circuit 10. The clearing of the touch detection circuit 10 is to clear the touch data stored in the data memory 30. The interrupt clearing refers to an interrupt clearing operation of a certain register (e.g., the first FIFO register 151) in the touch detection circuit 10. Recording the read-write state may refer to recording the operating state of the data reading circuit 110 in the touch detection circuit.
Since the buffer control circuit 170 can control the working states of the devices in the touch detection circuit 10, the processor 40 can monitor the operation process of the devices in the touch detection circuit 10 by accessing the buffer control circuit 170.
Optionally, referring to fig. 5, the cache control circuit 170 includes: a cache sub-circuit 171 and a control sub-circuit 172.
The buffer sub-circuit 171 is connected to the processor 40 and the second data processing circuit 140, respectively, and the buffer sub-circuit 171 is configured to buffer the position information and the touch value of at least one target touch sensor. The control sub-circuit 172 is connected to the data reading circuit 110 and the second data processing circuit 140, respectively, and the control sub-circuit 172 is configured to transmit the read parameter to the data reading circuit 110 and to transmit the touch threshold to the second data processing circuit 140.
Wherein the read parameter and touch threshold may be written in advance by a developer to the control sub-circuit 172. The control sub-circuit 172 may control the operation state of the touch detection circuit 10 (e.g., control the touch detection circuit 10 to start operation) in addition to transmitting the read parameter to the data reading circuit 110 and transmitting the touch threshold to the second data processing circuit 140. After determining that each device in the touch detection circuit 10 is in an operating state, the control sub-circuit 172 may transmit parameters (e.g., read parameters) required in the touch detection process to each device.
Optionally, as shown in fig. 6, the touch detection circuit 10 may further include: the third FIFO buffer 180 and the data write circuit 190. The third FIFO buffer 180 is connected to the first data processing circuit 120 and the data writing circuit 190, respectively, and is configured to buffer touch values of a plurality of touch sensors for reading by the data writing circuit 190. The data writing circuit 190 is connected to the data memory 30, and is used for writing touch values of a plurality of touch sensors into the data memory 30.
In this embodiment, after determining the touch values of the plurality of touch sensors, the first data processing circuit 120 may also write the touch values of the plurality of touch sensors into the third FIFO buffer 180 for the third FIFO buffer 180 to buffer. Correspondingly, the data writing circuit 190 can read the touch values of the third FIFO buffer 180, and write the touch values of the touch sensors into the data memory 30 for the data memory 30 to store. Thus, other devices (e.g., control sub-circuit 172) in touch detection circuit 10 and processor 40 may be facilitated to read, thereby determining the progress of operation of data reading circuit 110. The touch values of the touch sensors may be stored in the memory 30 as a frame of target touch data.
The data writing circuit 190 may also be used as a data reading circuit, and the first reading sub-circuit 111 and the second reading sub-circuit 112 may read touch values of a plurality of touch sensors stored in the memory 30 at the same time, and transmit the read touch values to the comparing circuit 190 through the third FIFO buffer for comparison by the comparing circuit 130. The data writing circuit 190, the first reading sub-circuit 111 and the second reading sub-circuit 112 may read in a column-by-column manner when reading one frame of target touch data from the memory 30. The column-by-column reading refers to that at the same time, the data writing circuit 190, the first reading sub-circuit 111 and the second reading sub-circuit 112 simultaneously read touch values of 3 adjacent columns in one frame of target touch data from the memory 30. Thus, the comparison circuit 130 can conveniently compare each touch value of one frame of target touch data with the adjacent touch value, so as to rapidly determine at least one alternative touch sensor.
For example, referring to fig. 7, for a frame of target touch data in the memory 30, the first reading sub-circuit 111 may read the i-th column touch value in the frame of target touch data, the second reading sub-circuit 112 may read the i+1th column touch value in the frame of target touch data, and the data writing circuit 190 may read the i+2th column touch value in the frame of target touch data. Wherein i is an integer greater than 0.
Optionally, the second data processing circuit 140 in the touch detection circuit 10 may further be configured to: after determining the at least one target touch sensor, an interrupt instruction is sent to the processor 40. The interrupt instruction is used for indicating that the touch detection circuit 10 of the processor 40 has completed the touch detection operation.
In this embodiment, after receiving the interrupt instruction, the processor 40 may read the position information and the touch value of the at least one target touch sensor from the cache control circuit 170, and determine the touch point of the touch operation based on the position information and the touch value of the target touch sensor, so as to perform the touch response. And, if at least one target touch sensor is not determined from the plurality of touch sensors, the second data processing circuit 140 may determine that the touch display device responds that there is no touch operation currently. Accordingly, the second data processing circuit 140 may also send an interrupt response instruction to the processor 40, where the interrupt response instruction is used to instruct the processor 40 that the touch detection circuit 10 does not detect the touch operation in the current touch detection, and the processor 40 does not need to perform the touch response.
Alternatively, the AHB connection may be made between the processor 40 and the data memory 30, between the processor 40 and the cache control circuit 170, and between the data memory 30 and the data read circuit 110.
In the AHB communication protocol, a device capable of actively performing an access operation may be referred to as a master, and an accessed device may be referred to as a slave. For example, in the touch display device, the processor 40, the first read sub-circuit 111 and the second read sub-circuit 112 in the data read circuit 110, the data write circuit 190 may be referred to as a master station, and the data memory 30 and the buffer control circuit 170 may be referred to as a slave station. The arbitration control circuit 160 in the touch detection circuit 10 can connect each master station with the slave station corresponding to the master station through the AHB, and control each master station to access the corresponding slave station according to the priority. For example, data write circuit 190 may have a higher priority than processor 40. The master data write circuit 190 may first access the slave data store 40 to write a plurality of touch values of the touch sensor to the data store 30. The processor 40 may then access the data memory 30 to read the touch values of the plurality of touch sensors stored in the data memory 30.
It is understood that the plurality of circuits included in the touch detection circuit 10 are all hardware circuits, and the hardware circuits may be digital circuits.
In summary, the embodiment of the present application provides a touch detection circuit, where a data reading circuit in the touch detection circuit can read original touch data and reference touch data of a plurality of touch sensors from a data memory, so that a first data processing circuit determines touch values of the plurality of touch sensors. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit can determine at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmit the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each hardware circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.
Fig. 8 is a flowchart of a touch detection method according to an embodiment of the present application, where the method is applied to a touch detection circuit, for example, the method may be applied to the touch detection circuit shown in fig. 3. As shown in fig. 3, the touch detection circuit 10 includes: a data reading circuit 110, a first data processing circuit 120, a comparison circuit 130 and a second data processing 140 circuit. As shown in fig. 8, the method includes:
step 101, the data reading circuit reads original touch data and reference touch data from a data memory of the touch display device.
In the embodiment of the application, when the touch display device performs touch detection, a plurality of touch sensors in the touch display device can collect touch signals. The touch signals collected by the touch sensors can be stored in the data memory 30 as original touch data after being processed. The original touch data collected by the touch sensors at a certain moment may be referred to as one frame of touch data, and one frame of original touch data may include signal values of a plurality of touch signals collected by the touch sensors. The data storage may detect in advance whether a touch operation exists in the touch device based on signal values of touch signals acquired by the plurality of touch sensors.
For example, if the data storage 30 detects that the signal values of the touch signals collected by at least one touch sensor of the plurality of touch sensors are all greater than or equal to a preset threshold value, it may be determined that the touch operation exists in the touch display device when the plurality of touch sensors collect the frame of original touch data. If the data storage 30 detects that the signal values of the touch signals collected by the touch sensors are smaller than the preset threshold value, it can be determined that no touch operation exists when the touch sensors collect the frame of original touch data, and the frame of original touch data is determined to be a frame of alternative touch data.
After the data storage 30 acquires the continuous multi-frame candidate touch data, a frame of reference touch data can be determined based on the multi-frame continuous candidate touch data. That is, one frame of reference touch data is generated by the data memory 30 based on a plurality of frames of continuous original touch data acquired by a plurality of touch sensors in a touch-free operation. Alternatively, the data memory 30 may determine the average value of the successive multi-frame candidate touch data as one frame of reference touch data. The signal value of the touch signal corresponding to each touch sensor in the frame reference touch data is determined based on the average value of the signal values of the touch signals acquired by the touch sensors in the multi-frame alternative touch data.
When the data reading circuit 110 reads the touch data, it can read the signal values of the touch signals collected by the plurality of touch sensors in one frame of original touch data according to a preset reading sequence, and sequentially read the signal values of the touch signals collected by the plurality of touch sensors in one frame of reference touch data. The reading order may be determined based on an arrangement order of the plurality of touch sensors in the touch module 20. Based on this, the data reading circuit 110 can also sequentially output, to the first data processing circuit 120, signal values of touch signals collected by the plurality of touch sensors in one frame of original touch data and signal values of touch signals corresponding to the plurality of touch sensors in one frame of reference touch data according to a reading sequence.
Step 102, the first data processing circuit determines a touch value of each of the plurality of touch sensors based on a difference between the original touch data and the reference touch data.
The touch value of each touch sensor may refer to a difference between a signal value of a touch signal acquired by the touch sensor in one frame of original touch data and a signal value of a touch signal corresponding to the touch sensor in one frame of reference touch data.
Step 103, the comparison circuit compares touch values of the plurality of touch sensors to determine at least one candidate touch sensor from the plurality of touch sensors.
In this embodiment, after determining the touch values of the plurality of touch sensors, the first data processing circuit 120 can output the touch values of the plurality of touch sensors to the comparing circuit 130 for the comparing circuit 130 to compare. The comparison circuit 130 can compare touch values of the plurality of touch sensors to determine at least one alternative touch sensor among the plurality of touch sensors. The touch value of each alternative touch sensor is larger than that of the adjacent touch sensor. The touch sensor adjacent to each touch sensor refers to the touch sensor adjacent to the touch sensor in the row direction and the column direction in the touch module.
After receiving the touch values of the plurality of touch sensors, the comparison circuit 130 can compare the touch value of each touch sensor with the touch values of a plurality of touch sensors adjacent to the touch sensor according to the arrangement order of the plurality of touch sensors in the touch module 20. In the comparison process, if the comparison circuit 130 determines that the touch value of a certain touch sensor is greater than the touch value of an adjacent touch sensor, the touch sensor may be used as an alternative touch sensor. The comparison circuit 130 may set the touch value of a touch sensor to 0 if it is determined that the touch value of the touch sensor is not greater than the touch value of at least one adjacent touch sensor.
Step 104, the second data processing circuit determines at least one target touch sensor from the at least one alternative touch sensor, and transmits the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response.
After determining the at least one alternative touch sensor, the comparison circuit 130 can transmit the touch value of the at least one alternative sensor to the second data processing circuit 140. The second data processing circuit 140 can determine an alternative touch sensor having a touch value greater than a touch threshold value as a target touch sensor from among the at least one alternative sensor. The touch threshold may be a fixed value stored in the second data processing circuit 140 in advance.
It can be appreciated that the probability that the position of each alternative touch sensor on the touch screen is a touch point is positively correlated with the touch value of the alternative touch sensor. That is, the larger the touch value of the alternative touch sensor, the higher the probability that the position of the alternative touch sensor on the touch screen is a touch point. Accordingly, the second data processing circuit 140 may determine the position of the at least one target touch sensor on the touch panel as the touch position of the touch operation on the touch panel. Thus, after the second data processing circuit 140 transmits the position information and the touch value of the at least one target touch sensor to the processor 40, the processor 40 can directly perform touch response based on the position information and the touch value of the at least one target touch sensor. The position information of each target touch sensor may include coordinate values of the target touch sensor on the touch panel.
In this embodiment, the touch response of the processor 40 may refer to that the processor 40 responds to a touch operation and executes a response operation corresponding to the touch operation. For example, the touch display device may be a mobile phone, and after the touch detection circuit 10 detects a touch operation of a shutdown control of the mobile phone by a user, the processor 40 may perform the shutdown operation in response to the touch operation.
It may be appreciated that, if the second data processing circuit 140 detects that there is no alternative touch sensor with a touch value greater than the touch threshold value in the at least one alternative touch sensor, it may determine that there is no touch operation currently in the touch display device. Thus, the touch detection result reported by the second data processing circuit 140 to the processor 40 may include only indication information, where the indication information is used to indicate that the touch detection circuit 10 of the processor 40 does not detect the touch operation currently. In addition, the second data processing circuit 140 may report only the detection result including the indication information to the processor when the touch value of at least one alternative sensor transmitted by the comparison circuit 130 is not received.
It can be further appreciated that, compared to the method of performing touch detection by a software algorithm in the prior art, the touch detection circuit 10 provided in the present application can implement touch detection through a plurality of hardware circuits therein. Because the performance and efficiency of the hardware circuit for touch detection are higher than those of the software algorithm, the touch detection circuit 10 can quickly and accurately perform touch detection on touch data acquired by a plurality of touch sensors, and timely report the touch detection result to the processor 40. Moreover, since the touch detection circuit 10 provided by the application does not need to increase the operation speed of the CPU core in the touch detection circuit, the power consumption of the touch detection circuit 10 can be effectively reduced.
In summary, the embodiment of the application provides a touch detection method, which is applied to a touch detection circuit, and a data reading circuit in the touch detection circuit can read original touch data and reference touch data of a plurality of touch sensors from a data memory, so that a first data processing circuit can determine touch values of the plurality of touch sensors. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit can determine at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmit the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each hardware circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.
Fig. 9 is a flowchart of another touch detection method according to an embodiment of the present application, where the method is applied to a touch detection circuit, for example, the method may be applied to the touch detection circuit shown in fig. 3, 5 or 6. As shown in fig. 3, the touch detection circuit 10 includes: a data reading circuit 110, a first data processing circuit 120, a comparison circuit 130 and a second data processing 140 circuit. As shown in fig. 5, the data reading circuit 110 includes: a first read sub-circuit 111 and a second read sub-circuit 112. As shown in fig. 9, the method includes:
In step 201, the first reading sub-circuit reads the original touch data from the data memory.
In the embodiment of the application, when the touch display device performs touch detection, a plurality of touch sensors in the touch display device can collect touch signals. The touch signals collected by the touch sensors can be stored in the data memory 30 as original touch data after being processed. The original touch data collected by the touch sensors at a certain moment may be referred to as one frame of touch data, and one frame of original touch data may include signal values of a plurality of touch signals collected by the touch sensors.
When the original touch data is read from the data memory 30, the first reading sub-circuit 111 can read signal values of touch signals acquired by a plurality of touch sensors in one frame of original touch data according to a preset reading sequence. Wherein. The reading order may be determined based on an arrangement order of the plurality of touch sensors in the touch module 20. Based on this, the first reading sub-circuit 111 can also sequentially output the signal values of the touch signals collected by the plurality of touch sensors in one frame of original touch data to the first data processing circuit 120 according to the reading sequence.
Step 202, the second reading sub-circuit reads the reference touch data from the data memory.
In the embodiment of the present application, the data memory 30 may further store reference touch data. The reference touch data may be generated based on data acquired by the plurality of touch sensors when no touch operation is performed. For example, the data memory 30 may determine the average value of the original touch data acquired at the time of the continuous multi-frame touchless operation as one frame of reference touch data. The signal value of the touch signal corresponding to each touch sensor in the reference touch data is determined based on the average value of the signal values of the touch signals acquired by the touch sensors in the multi-frame original touch data. Based on this, the second reading sub-circuit 112 in the data reading circuit is capable of reading the reference touch data from the data memory 30.
When the second reading sub-circuit 112 reads the reference touch data from the data memory 30, the signal values of the touch signals collected by the touch sensors in one frame of original touch data can be read according to a preset reading sequence. Based on this, the second reading sub-circuit 112 can sequentially output the signal values of the touch signals corresponding to the plurality of touch sensors in one frame of reference touch data to the first data processing circuit 120 according to the reading sequence.
Optionally, as shown in fig. 5, the touch detection circuit 10 may further include: an arbitration control circuit 160. The arbitration control circuit 160 can control the first reading sub-circuit 111 and the second reading sub-circuit 112 to alternately read touch data from the data memory 30.
In the embodiment of the present application, since there is only one communication link for transmitting touch data between the data memory 40 and the data reading circuit 110, the arbitration control circuit 160 can control the first reading sub-circuit 111 and the second reading sub-circuit 112 in the data reading circuit 110 to alternately read touch data from the data memory 30 in order to ensure that the data reading circuit 110 can sequentially read the initial touch data and the reference touch data.
It can be understood that, when the first reading sub-circuit 111 reads a frame of original touch data, the original values of the touch sensors in the frame of original touch data are sequentially read. The second reading sub-circuit 112 also reads the reference values of the plurality of touch sensors in sequence when reading one frame of reference touch data. The arbitration control circuit 160 can control the first reading sub-circuit 111 and the second reading sub-circuit 112 to read the signal value of the touch signal of each touch sensor of the plurality of touch sensors from the data memory 30. Also, for each touch sensor traversed, the arbitration control circuit 160 may control the first reading sub-circuit 111 and the second reading sub-circuit 112 to alternately read the original value and the reference value of the touch sensor.
For example, referring to fig. 4, the arbitration control circuit 160 may control the first reading sub-circuit 111 to read the original value of the touch sensor a2 in the original touch data, and then control the second reading sub-circuit 112 to read the reference value of the touch sensor a2 in the reference touch data. After that, the arbitration control circuit 160 may control the first reading sub-circuit 111 to read the original value of the touch sensor c2 in the original touch data, and then control the second reading sub-circuit 112 to read the reference value of the touch sensor c2 in the reference touch data.
Optionally, as shown in fig. 5, the touch detection circuit 10 may further include: a first FIFO buffer 151 and a second FIFO buffer 152, as shown in fig. 8, the method further comprises:
in step 203, the first FIFO buffer buffers the original touch data read by the first reading sub-circuit for reading by the first data processing circuit.
In this embodiment, the first FIFO buffer 151 has a data buffering function, so that a frame of original touch data read by the first reading sub-circuit 111 can be transmitted to the first FIFO buffer 151 for buffering and then output to the first data processing circuit 120. Therefore, the situation that the original touch data is lost when the first reading sub-circuit 111 transmits the original touch data to the first data processing circuit 120 can be avoided, and the reliability of the transmission of the original touch data is further ensured.
In step 204, the second FIFO buffer buffers the reference touch data read by the second reading sub-circuit for the first data processing circuit to read.
The second FIFO buffer 152 operates on the same principle as the first FIFO buffer 151, and thus the implementation of step 204 may be described with reference to step 203.
In step 205, the first data processing circuit determines a touch value of each of the plurality of touch sensors based on a difference between the original touch data and the reference touch data.
The touch value of each touch sensor may refer to a difference between a signal value of a touch signal acquired by the touch sensor in one frame of original touch data and a signal value of a touch signal corresponding to the touch sensor in one frame of reference touch data.
Alternatively, as shown in fig. 5 and 6, the first data processing circuit 120 may include a subtractor N1. After receiving a frame of original touch data and a frame of reference touch data, the subtractor N1 can calculate a difference value between the frame of original touch data and the frame of reference touch data, so as to determine a touch value of each touch sensor in the plurality of touch sensors. The touch value of each touch sensor may refer to a difference between a signal value of a touch signal acquired by the touch sensor in the frame of original touch data and a signal value of a touch signal corresponding to the touch sensor in the frame of reference touch data. For each touch sensor in the plurality of touch sensors, the subtractor N1 can sequentially receive the signal value of the touch signal collected by each touch sensor in the frame of original touch data and the signal value of the touch signal corresponding to the touch sensor in the reference touch data, so as to sequentially calculate the touch value of each touch sensor.
In step 206, the comparing circuit compares the touch values of the plurality of touch sensors to determine at least one candidate touch sensor from the plurality of touch sensors.
In this embodiment, after determining the touch values of the plurality of touch sensors, the first data processing circuit 120 can output the touch values of the plurality of touch sensors to the comparing circuit 130 for the comparing circuit 130 to compare. The comparison circuit 130 can compare touch values of the plurality of touch sensors to determine at least one alternative touch sensor among the plurality of touch sensors. The touch value of each alternative touch sensor is larger than that of the adjacent touch sensor. The touch sensors adjacent to each touch sensor refer to touch sensors arranged adjacent to the touch sensor in the row direction and the column direction in the touch module.
The comparison circuit 130 can compare the touch values of each touch sensor with the touch values of a plurality of touch sensors adjacent to the touch sensor according to the arrangement order of the touch sensors in the touch module 20 after receiving the touch values of the plurality of touch sensors. In the comparison process, if the comparison circuit 130 determines that the touch value of a certain touch sensor is greater than the touch value of an adjacent touch sensor, the touch sensor may be used as an alternative touch sensor. The comparison circuit 130 may set the touch value of a touch sensor to 0 if it is determined that the touch value of the touch sensor is not greater than the touch value of at least one adjacent touch sensor.
Alternatively, as shown in fig. 5 and 6, the comparison circuit 130 may include a comparator N2. The comparator N2 is capable of comparing the touch value of each touch sensor with the touch values of a plurality of touch sensors adjacent to the touch sensor, so as to determine at least one alternative touch sensor among the plurality of touch sensors.
In step 207, the second data processing circuit determines at least one target touch sensor from the at least one alternative touch sensor, and transmits the position information and the touch value of the at least one target touch sensor to the cache control circuit.
After determining the at least one alternative touch sensor, the comparison circuit 130 can transmit the touch value of the at least one alternative sensor to the second data processing circuit 140. The second data processing circuit 140 can determine an alternative touch sensor having a touch value greater than a touch threshold value as a target touch sensor from among the at least one alternative sensor.
It can be appreciated that the probability that the position of each alternative touch sensor on the touch screen is a touch point is positively correlated with the touch value of the alternative touch sensor. That is, the larger the touch value of the alternative touch sensor, the higher the probability that the position of the alternative touch sensor on the touch screen is a touch point. Accordingly, the second data processing circuit 140 may determine the position of the at least one target touch sensor on the touch panel as the touch position of the touch operation on the touch panel. The position information of each target touch sensor may include coordinate values of the target touch sensor on the touch panel.
Optionally, referring to fig. 5 and 6, the touch detection circuit 10 may further include: cache control circuitry 170. After determining at least one target touch sensor, the second data processing circuit 140 may transmit the position information and the touch value of the at least one target touch sensor to the cache control circuit 170.
Step 208, the buffer control circuit buffers the position information and the touch value of at least one target touch sensor, and transmits the touch threshold to the second data processing circuit, and transmits the read parameter to the data reading circuit.
The data amount of the original touch data may refer to a size of a storage space occupied by an original value included in one frame of the original touch data, and the data amount of the reference touch data may refer to a size of a storage space occupied by a reference value included in one frame of the reference touch data. The read address of the original touch data may refer to the storage address of the plurality of original values in the data memory 30 in the frame of the original touch data, and the read address of the reference touch data may refer to the storage address of the plurality of reference values in the data memory 30 in the frame of the reference touch data.
In this embodiment, after determining at least one target touch sensor, the second data processing circuit 140 can transmit the touch value and the position information of the at least one target touch sensor to the cache control circuit 170 for caching, so that the processor 40 can read and perform touch response. In addition, the buffer control circuit 170 can control the operation state of the touch detection circuit 10 in addition to transmitting various parameters required in the process of reading the touch data to the data reading circuit 110. For example, the buffer control circuit 170 can control the start-up, clearing, interrupt clearing, recording read/write states, and the like of the touch detection circuit 10. The clearing of the touch detection circuit 10 is to clear the touch data stored in the data memory 40. The interrupt clearing refers to an interrupt clearing operation of a certain register (e.g., the first FIFO register 151) in the touch detection circuit 10. Recording the read-write state may refer to recording the operating state of the data reading circuit 110 in the touch detection circuit.
Since the buffer control circuit 170 can control the working states of the devices in the touch detection circuit 10, the processor 40 can monitor the operation process of the hardware in the touch detection circuit 10 by accessing the buffer control circuit 170.
Optionally, referring to fig. 5, the cache control circuit 170 includes: a cache sub-circuit 171 and a control sub-circuit 172. The buffer sub-circuit 171 is configured to buffer the position information and the touch value of at least one target touch sensor. The control sub-circuit 172 is configured to transmit the read parameter to the data read circuit 110 and to transmit the touch threshold to the second data processing circuit 140.
Wherein the read parameter and touch threshold may be written in advance by a developer to the control sub-circuit 172. The control sub-circuit 172 may control the operation state of the touch detection circuit 10 (e.g., control the touch detection circuit 10 to start operation) in addition to transmitting the read parameter to the data reading circuit 110 and transmitting the touch threshold to the second data processing circuit 140. After determining that each device in the touch detection circuit 10 is in an operating state, the control sub-circuit 172 may transmit parameters (e.g., read parameters) required in the touch detection process to each device.
Step 209, the second data processing circuit sends an interrupt instruction to the processor after determining at least one target touch sensor.
In the embodiment of the present application, the second data processing circuit 140 may send an interrupt instruction to the processor 40 after determining at least one target touch sensor. The interrupt instruction is used to instruct the processor 40 that the touch detection circuit 10 has completed the touch detection operation. After receiving the interrupt command, the processor 40 may read the position information and the touch value of the at least one target touch sensor from the cache control circuit 170, and determine a touch point of the touch operation based on the position information and the touch value of the target touch sensor, so as to perform a touch response.
And, if at least one target touch sensor is not determined from the plurality of touch sensors, the second data processing circuit 140 may determine that the touch display device responds that there is no touch operation currently. Accordingly, the second data processing circuit 140 may also send an interrupt response instruction to the processor 40, where the interrupt response instruction is used to instruct the processor 40 that the touch detection circuit 10 does not detect the touch operation in the current touch detection, and the processor 40 does not need to perform the touch response.
In step 210, the third FIFO buffer buffers touch values of the plurality of touch sensors for the data writing circuit to read.
In this embodiment, after determining the touch values of the plurality of touch sensors, the first data processing circuit 120 may also write the touch values of the plurality of touch sensors into the third FIFO buffer 180 for the third FIFO buffer 180 to buffer.
Step 211, the data writing circuit writes the touch values of the plurality of touch sensors into the data memory.
In the embodiment of the present application, the data writing circuit 190 can read the touch values of the third FIFO buffer 180, and write the touch values of the touch sensors into the data memory 30 for the data memory 30 to store. Thus, other devices (e.g., control sub-circuit 172) in touch detection circuit 10 and processor 40 may be facilitated to read, thereby determining the progress of operation of data reading circuit 110.
Alternatively, the AHB connection may be made between the processor 40 and the data memory 30, between the processor 40 and the cache control circuit 170, and between the data memory 30 and the data read circuit 110.
In the AHB communication protocol, a device capable of actively performing an access operation may be referred to as a master, and an accessed device may be referred to as a slave. For example, in the touch display device, the processor 40, the first read sub-circuit 111 and the second read sub-circuit 112 in the data read circuit 110, the data write circuit 190 may be referred to as a master station, and the data memory 30 and the buffer control circuit 170 may be referred to as a slave station. The arbitration control circuit 160 in the touch detection circuit 10 can connect each master station with the slave station corresponding to the master station through the AHB, and control each master station to access the corresponding slave station according to the priority. For example, data write circuit 190 may have a higher priority than processor 40. The master data write circuit 190 may first access the slave data store 40 to write a plurality of touch values of the touch sensor to the data store 30. The processor 40 may then access the data memory 30 to read the touch values of the plurality of touch sensors stored in the data memory 30.
It can be understood that the sequence of the steps of the touch detection method provided in the embodiment of the present application may be appropriately adjusted, and the steps may be deleted according to circumstances. For example, the step 208 may be deleted according to the situation that the second data processing circuit does not need to send an interrupt instruction to the processor, and the processor may actively access the cache control circuit to detect whether the touch detection circuit completes the touch detection. Alternatively, the steps 210 and 211 may be deleted as appropriate. Still alternatively, step 210 may be performed prior to step 206 or in synchronization with step 206. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present application, and thus will not be repeated.
In summary, the embodiment of the application provides a touch detection method, which is applied to a touch detection circuit, and a data reading circuit in the touch detection circuit can read original touch data and reference touch data of a plurality of touch sensors from a data memory, so that a first data processing circuit can determine touch values of the plurality of touch sensors. The comparison circuit can compare touch values of the plurality of touch sensors to determine an alternative touch sensor from the plurality of touch sensors. The second data processing circuit can determine at least one target touch sensor with a touch value larger than a touch threshold value from the alternative touch sensors, and transmit the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response. Because each hardware circuit in the touch detection circuit can rapidly and accurately carry out touch detection on touch data acquired by a plurality of touch sensors, the speed of reporting a touch detection result to a processor can be ensured to be faster and more accurate.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (14)

1. A touch detection circuit, characterized in that is applied to touch display device, the touch detection circuit includes: a data reading circuit, a first data processing circuit, a comparison circuit and a second data processing circuit;
the data reading circuit is connected with a data memory in the touch display device and is used for reading original touch data and reference touch data from the data memory, the original touch data are generated based on data acquired by a plurality of touch sensors in the touch display device during touch detection, and the reference touch data are generated based on data acquired by the plurality of touch sensors during no touch operation;
The first data processing circuit is connected with the data reading circuit and is used for determining a touch value of each touch sensor in the plurality of touch sensors based on a difference value of the original touch data and the reference touch data;
the comparison circuit is connected with the first data processing circuit and is used for comparing the touch control values of the plurality of touch control sensors to determine at least one alternative touch control sensor from the plurality of touch control sensors, and the touch control value of each alternative touch control sensor is larger than that of an adjacent touch control sensor;
the second data processing circuit is respectively connected with the comparing circuit and the processor of the touch display device, and is used for determining at least one target touch sensor with a touch value larger than a touch threshold value from the at least one alternative touch sensor, and transmitting the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response.
2. The touch detection circuit of claim 1, wherein the data reading circuit comprises: a first reading sub-circuit and a second reading sub-circuit;
the first reading sub-circuit is respectively connected with the data memory and the first data processing circuit and is used for reading the original touch data from the data memory;
The second reading sub-circuit is respectively connected with the data memory and the first data processing circuit and is used for reading the reference touch data from the data memory.
3. The touch detection circuit of claim 2, further comprising: a first-in first-out FIFO buffer and a second FIFO buffer;
the first FIFO buffer is respectively connected with the first reading sub-circuit and the first data processing circuit and is used for buffering original touch data read by the first reading sub-circuit so as to be read by the first data processing circuit;
the second FIFO buffer is respectively connected with the second reading sub-circuit and the first data processing circuit and is used for buffering the reference touch data read by the second reading sub-circuit so as to be read by the first data processing circuit.
4. The touch detection circuit of claim 2, further comprising: an arbitration control circuit;
the arbitration control circuit is respectively connected with the data memory, and the first reading sub-circuit and the second reading sub-circuit are used for controlling the first reading sub-circuit and the second reading sub-circuit to alternately read touch data from the data memory.
5. The touch detection circuit according to any one of claims 1 to 4, wherein the first data processing circuit comprises a subtractor and the comparison circuit comprises a comparator.
6. The touch detection circuit according to any one of claims 1 to 4, further comprising: a cache control circuit;
the buffer control circuit is respectively connected with the second data processing circuit and the processor and is used for buffering the position information and the touch value of the at least one target touch sensor, transmitting the touch threshold value to the second data processing circuit and transmitting the reading parameter to the data reading circuit;
the data reading circuit is used for reading the original touch data and the reference touch data from the data memory based on the reading parameters;
wherein the read parameters include: the data amount of the original touch data and the reference touch data, and the reading addresses of the original touch data and the reference touch data.
7. The touch detection circuit of claim 6, wherein the cache control circuit comprises: a cache sub-circuit and a control sub-circuit;
The buffer sub-circuit is respectively connected with the processor and the second data processing circuit and is used for buffering the position information and the touch value of the at least one target touch sensor;
the control sub-circuit is respectively connected with the data reading circuit and the second data processing circuit, and is used for transmitting the touch threshold value to the second data processing circuit and transmitting the reading parameter to the data reading circuit.
8. The touch detection circuit according to any one of claims 1 to 4, further comprising: a third FIFO buffer and a data write circuit;
the third FIFO buffer is respectively connected with the first data processing circuit and the data writing circuit and is used for buffering touch control values of the plurality of touch control sensors for the data writing circuit to read;
the data writing circuit is connected with the data memory and used for writing touch values of the touch sensors into the data memory.
9. The touch detection circuit of any one of claims 1 to 4, wherein the second data processing circuit is further configured to:
After the at least one target touch sensor is determined, an interrupt instruction is sent to the processor, wherein the interrupt instruction is used for indicating the processor that the touch detection circuit has completed touch detection operation.
10. The touch detection circuit according to any one of claims 1 to 4, wherein the processor and the data memory, the processor and the cache control circuit, and the data memory and the data reading circuit are all connected by an advanced high-performance bus AHB.
11. A touch detection method, applied to the touch detection circuit according to any one of claims 1 to 10, the touch detection circuit comprising: a data reading circuit, a first data processing circuit, a comparison circuit and a second data processing circuit; the method comprises the following steps:
the data reading circuit reads original touch data and reference touch data from a data memory of the touch display device, wherein the original touch data is generated based on data acquired by a plurality of touch sensors in the touch display device during touch detection, and the reference touch data is generated based on data acquired by the plurality of touch sensors during no touch operation;
The first data processing circuit determines a touch value of each touch sensor of the plurality of touch sensors based on a difference value of the original touch data and the reference touch data;
the comparison circuit compares the touch values of the plurality of touch sensors to determine at least one alternative touch sensor from the plurality of touch sensors, wherein the touch value of each alternative touch sensor is larger than the touch value of the adjacently arranged touch sensors;
the second data processing circuit determines at least one target touch sensor from the at least one alternative touch sensor, and transmits the position information and the touch value of the at least one target touch sensor to the processor for the processor to perform touch response.
12. A touch display device, the touch display device comprising: a processor, a data memory, a plurality of touch sensors, and a touch detection circuit as claimed in any one of claims 1 to 10.
13. The touch display device of claim 12, wherein the processor is a central processing unit CPU and the touch detection circuit comprises a touch display driver integrated TDDI chip.
14. The touch display device of claim 12, further comprising: a filter;
the filter is respectively connected with the plurality of touch sensors and the data memory, and is used for filtering original touch data generated by data acquired by the plurality of touch sensors during touch detection, and transmitting the filtered original touch data to the data memory for storage by the data memory.
CN202310282737.6A 2023-03-21 2023-03-21 Touch detection circuit, touch detection method and touch display device Pending CN116414256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310282737.6A CN116414256A (en) 2023-03-21 2023-03-21 Touch detection circuit, touch detection method and touch display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310282737.6A CN116414256A (en) 2023-03-21 2023-03-21 Touch detection circuit, touch detection method and touch display device

Publications (1)

Publication Number Publication Date
CN116414256A true CN116414256A (en) 2023-07-11

Family

ID=87052545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310282737.6A Pending CN116414256A (en) 2023-03-21 2023-03-21 Touch detection circuit, touch detection method and touch display device

Country Status (1)

Country Link
CN (1) CN116414256A (en)

Similar Documents

Publication Publication Date Title
JP6466518B2 (en) System and method for improved processing of touch sensor data
US9293119B2 (en) Method and apparatus for optimizing display updates on an interactive display device
CN1261879C (en) Method for display data without interruption
TWI528169B (en) Memory power savings in idle display case
JP4630744B2 (en) Display device
US20160077667A1 (en) Scan method for a touch panel and touch device
CN110069170B (en) Touch screen point reporting rate processing method and device, electronic equipment and readable storage medium
CN105700668A (en) Method for processing data collected by touch screen and terminal equipment
US20110148801A1 (en) Touch panel region of interest reporting scheme
EP3333679B1 (en) Touch control driving method, touch control driving apparatus and touch control display apparatus
US20150193062A1 (en) Method and apparatus for buffering sensor input in a low power system state
US8045828B2 (en) Apparatus for processing images, and method and computer program product for detecting image updates
WO2014149672A1 (en) Optimized adaptive thresholding for touch sensing
US20210149540A1 (en) Device and method for proximity sensing for display panel
JP2023522267A (en) TOUCH DATA PROCESSING METHOD, APPARATUS, DEVICE AND STORAGE MEDIUM
CN110658935B (en) Data detection method and device, storage medium and touch device
CN101393498B (en) Image processing process for touch screen positioning
CN116414256A (en) Touch detection circuit, touch detection method and touch display device
CN116339531B (en) Touch control system control method and electronic equipment
CN111240529A (en) Touch scanning method and device, chip, storage medium and display device
KR20180091364A (en) System-on-chip comprising a cpu operating as a debug host and method of operation thereof
US20230057083A1 (en) Hot page detection by sampling tlb residency
US20210358135A1 (en) Feature detection, sorting, and tracking in images using a circular buffer
JP6840994B2 (en) Circuit equipment, electro-optic equipment, electronic devices, mobile objects and error detection methods
US20220244804A1 (en) Touch signal processing method and related touch device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination