Digital filter, touch display panel, filtering method and touch detection method

By using a K-order integrator and extractor in the digital filter to integrate and extract the input sample signal, M integrated signals are generated, which solves the problem of limiting the number of input sample signals and achieves freer detection duration adjustment and detection efficiency. promote.

CN118819342APending Publication Date: 2024-10-22BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411039404.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing digital filters have limitations on the number of input sample signals, which limits the duration of touch detection, making it difficult to improve detection efficiency without changing the sampling period.

Method used

A digital filter including a K-order integrator and decimator is designed. By integrating and decimating the input sample signal, M integrated signals are generated and passed to downstream components to generate output sample signals, eliminating the need for input. Limitation on the number of sample signals.

Benefits of technology

Without changing downstream components, integration can be performed based on any integer input sample signal greater than or equal to M, which improves the efficiency of touch detection, reduces detection time, and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819342A_ABST
    Figure CN118819342A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a digital filter, a touch display panel, a filtering method and a touch detection method, and belongs to the technical field of electronics. The digital filter comprises an integrator, an extractor and a downstream assembly, the output end of the integrator is connected with the input end of the extractor, and the output end of the extractor is connected with the input end of the downstream assembly; the integrator is a K-order integrator and is used for integrating input sample signals in an input sample sequence to sequentially obtain M integral signals, each integral signal in the M integral signals is the sum of a first sub integral signal and a second sub integral signal, the first sub integral signal is obtained by multiplying a K-order integral result by M, and the second sub integral signal is obtained by multiplying a K-order integral result by M; the second sub integral signal is obtained by multiplying the integral result of the (K-1) th order by A. According to the invention, the limitation on the number of input sample signals is eliminated, and the efficiency of touch detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a digital filter, a touch display panel, a filtering method, and a touch detection method. Background Art

[0002] In order to determine the touch event that occurred on the touch display panel, the controller in the touch display panel usually sends a detection signal of a known frequency to the touch array, and measures the feedback signal of the touch array within a certain period of time, and then compares the change of the feedback signal with the detection signal to determine the occurrence time and location of the touch event on the touch display panel. In order to better perform touch detection, it is usually necessary to filter the noise of the feedback signal of the touch array through a digital filter.

[0003] In the related art, the feedback signal of the touch array can be sampled, quantized, and encoded to obtain multiple input sample signals, and the input sample signals are input into a digital filter, and the output sample signals are obtained after passing through the digital filter, that is, the feedback signal after filtering out the noise. However, the digital filter provided by the related art has certain restrictions on the number of input sample signals. Only when the number of input sample signals meets the restriction conditions can the digital filter obtain an output sample signal, which also limits the time length of the controller to perform touch detection. Summary of the invention

[0004] The present application provides a digital filter, a touch display panel, a filtering method and a touch detection method, which can eliminate the limitation on the number of input sample signals and improve the efficiency of touch detection. The technical solution is as follows:

[0005] In one aspect, a digital filter is provided, the digital filter comprising an integrator, a decimator, and a downstream component, wherein the output end of the integrator is connected to the input end of the decimator, and the output end of the decimator is connected to the input end of the downstream component;

[0006] The integrator is a K-order integrator, used for integrating the input sample signal in the input sample sequence to obtain M integrated signals in sequence, each integrated signal of the M integrated signals is the sum of a first sub-integral signal and a second sub-integral signal, the first sub-integral signal is obtained by multiplying the K-th order integrated result by M, the second sub-integral signal is obtained by multiplying the K-1-th order integrated result by A, M is an integer, A is a positive integer less than M, and K is an integer greater than 1;

[0007] The extractor is used to extract the M integrated signals respectively to obtain M extracted signals;

[0008] The downstream component is used to generate an output sample signal based on the M extracted signals.

[0009] Optionally, the integrator includes K integral components, a first multiplier, a second multiplier and a first adder;

[0010] The K integration components are cascaded in sequence, and the input end of the first integration component among the K integration components is used to receive the input sample signal, the output end of the Kth integration component among the K integration components is connected to the input end of the first multiplier, the output end of the K-1th integration component among the K integration components is connected to the input end of the second multiplier, the output ends of the first multiplier and the second multiplier are respectively connected to the input end of the first adder, and the output end of the first adder is used to connect to the extractor;

[0011] The multiplier of the first multiplier is M, and the multiplier of the second multiplier is A.

[0012] Optionally, the integrator includes three integration components, each of which includes an adder and a delay device;

[0013] The first input end of the adder serves as the input end of the integration component, the output end of the adder is connected to the input end of the delay device, the output end of the delay device is connected to the second input end of the adder, and the output end of the delay device also serves as the output end of the integration component.

[0014] Optionally, the M integrated signals are obtained based on P input sample signals, where P is any integer greater than or equal to M;

[0015] The M integrated signals include a first integrated signal and a second integrated signal, wherein the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals;

[0016] The first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals; or, the first integrated signal is obtained before the second integrated signal, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals; T is a value obtained by dividing P by M.

[0017] On the other hand, a touch display panel is provided. The touch display panel includes a controller and a touch array. The controller includes the above-mentioned digital filter.

[0018] On the other hand, a filtering method is provided, which is applied to the above digital filter, and the method comprises:

[0019] Integrating the input sample signal in the input sample sequence by the integrator in the digital filter to obtain M integrated signals in sequence, wherein each integrated signal in the M integrated signals is the sum of a first sub-integral signal and a second sub-integral signal, wherein the first sub-integral signal is obtained by multiplying a K-th order integrated result by M, and the second sub-integral signal is obtained by multiplying a K-1-th order integrated result by A, wherein M is an integer, A is a positive integer less than M, and K is an integer greater than 1;

[0020] The M integrated signals are respectively extracted by the extractor in the digital filter to obtain M extracted signals;

[0021] An output sample signal is generated based on the M decimated signals through downstream components in the digital filter.

[0022] Optionally, the M integrated signals are obtained based on P input sample signals, where P is any integer greater than or equal to M;

[0023] The M integrated signals include a first integrated signal and a second integrated signal, wherein the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals;

[0024] The first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals; or, the first integrated signal is obtained before the second integrated signal, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals; T is a value obtained by dividing P by M.

[0025] Optionally, the integrator includes K integral components, a first multiplier, a second multiplier and a first adder;

[0026] In the case where the first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals, the method further includes:

[0027] After each extraction signal is extracted by the extractor, the integrator is reset so that the multipliers of the first multiplier and the second multiplier remain unchanged and the values ​​of the K integral components and the first adder are cleared to zero; wherein the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, and A is the value obtained by taking the modulus of M by P.

[0028] Optionally, the integrator includes K integral components, a first multiplier, a second multiplier and a first adder;

[0029] In the case where the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals, the method further includes:

[0030] After the extractor extracts a decimation signal each time, the multiplier of the second multiplier is updated, and the multiplier of the first multiplier, the K integral components and the values ​​of the first adder remain unchanged;

[0031] Among them, the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, when the extractor extracts for the first time, A is the value obtained by taking the modulus of M by P, and when the extractor is not extracting for the first time, A is the value obtained by taking the modulus of M by the sum of the multiplier of the second multiplier at the last extraction and the multiplier of the second multiplier at the first extraction.

[0032] On the other hand, a touch detection method is provided, which is applied to a controller in the above touch display panel, and includes:

[0033] Sending a detection signal of a target frequency to the touch control array, and receiving a feedback signal sent by the touch control array within a detection time period, wherein the feedback signal includes a signal of the target frequency;

[0034] Sampling, quantizing, and encoding the feedback signal to obtain an input sample sequence, wherein the input sample sequence includes a plurality of input sample signals;

[0035] Inputting the input sample sequence into the digital filter so that the digital filter generates an output sample signal according to the filtering method;

[0036] Based on the output sample signal and the detection signal, the occurrence time and the occurrence position of the touch event on the touch display panel are determined.

[0037] On the other hand, a touch detection device is provided. The device includes a transceiver module, a signal preprocessing module, an input module and a touch event determination module.

[0038] The transceiver module is used to send a detection signal of a target frequency to the touch control array, and receive a feedback signal sent by the touch control array within a detection time period, wherein the feedback signal includes a signal of the target frequency;

[0039] The signal preprocessing module is used to sample, quantize and encode the feedback signal to obtain an input sample sequence, wherein the input sample sequence includes multiple input sample signals;

[0040] The input module is used to input the input sample sequence into the digital filter, so that the digital filter generates an output sample signal according to the above filtering method;

[0041] The touch event determination module is used to determine the occurrence time and occurrence position of the touch event on the touch display panel based on the output sample signal and the detection signal.

[0042] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by the controller, the steps of the above touch detection method are implemented.

[0043] On the other hand, a computer program product is provided. The computer program product stores computer instructions. When the computer instructions are executed by the controller, the steps of the above touch detection method are implemented.

[0044] The technical solution provided by this application can at least bring the following beneficial effects:

[0045] Without modifying the more complex downstream components and the sampling period, the integrator in the digital filter can integrate the input sample signal in the input sample sequence to obtain M integral signals in sequence, and each of the M integral signals is the sum of the result of the K-th order integral multiplied by M and the result of the K-1-th order integral multiplied by A, where A is a positive integer less than M. Under normal circumstances, the integral signal is the K-th order integral result, so after the integral signal obtained in the present application is divided by M, the integral signal is equivalent to adding the product of the K-1-th order integral result and A / M to the K-th order integral result. It can be seen that the integrator of the present application is equivalent to integrating a non-integer input sample signal. In this way, the integrator can obtain M integral signals based on any integer number of input sample signals greater than or equal to M. That is, the restriction on the number of input sample signals can be eliminated, so that the touch detection duration can be adjusted more freely, and then the touch detection efficiency can be improved by setting a smaller detection duration. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 is a schematic diagram of a sampling signal including a completeness period provided in an embodiment of the present application;

[0048] Figure 2 is a structural schematic diagram of a digital filter provided in an embodiment of the present application;

[0049] Figure 3 is a structural schematic diagram of another digital filter provided in an embodiment of the present application;

[0050] Figure 4 It is a structural schematic diagram of an integral component provided in an embodiment of the present application;

[0051] Figure 5 is a structural schematic diagram of another digital filter provided in an embodiment of the present application;

[0052] Figure 6 is a structural schematic diagram of a touch display panel provided in an embodiment of the present application;

[0053] Figure 7 is a flow chart of a filtering method provided in an embodiment of the present application;

[0054] Figure 8 is a flow chart of a touch detection method provided in an embodiment of the present application;

[0055] Fig. 9 It is a structural schematic diagram of a touch detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0057] Before explaining in detail the digital filter, touch display panel, filtering method and touch detection method provided in the embodiments of the present application, the application scenarios involved in the embodiments of the present application are first introduced.

[0058] With touch technology, users can operate the host by simply touching the icons or text on the touch display panel with their fingers or other touch screen tools, making human-computer interaction more straightforward. Touch technology has greatly facilitated users, and touch display panels have become a very attractive new multimedia interactive device. When users operate the touch display panel, the controller in the touch display panel needs to determine the time and location of the touch event on the touch display panel, that is, to perform touch detection, and then pass the relevant information to the host. The host performs corresponding operations based on this information to meet user needs.

[0059] At present, in order to determine the touch event that occurred on the touch display panel, the controller in the touch display panel usually sends a detection signal of a known frequency to the touch array, and measures the feedback signal of the touch array within a certain period of time. Compared with the detection signal sent by the controller, the feedback signal may have some signal attenuation (the attenuation of the signal is caused by the touch event that occurred on the touch display panel), but the two have the same frequency. After receiving the feedback signal, the controller compares the change of the feedback signal compared to the detection signal to determine the time and location of the touch event on the touch display panel.

[0060] Since there are many circuit devices in the touch display panel, these circuit devices may generate some noise such as radio frequency signals when working, so the feedback signal received by the controller will inevitably contain noise. Therefore, in order to better perform touch detection, after receiving the feedback signal, the touch display panel will also filter the feedback signal through the internal digital filter to remove the noise.

[0061] In the related art, the controller will first sample, quantize and encode the feedback signal received within a certain detection time to obtain an input sample sequence, and input the input sample sequence to the digital filter, and then obtain an output sample signal after filtering the noise through the digital filter. The digital filter provided by the related art includes an integrator, an extractor and a downstream component. In one case, when the input sample sequence enters the integrator, when the integrator outputs the integration result of N (N is usually an integer greater than or equal to 2) input sample signals, the extractor extracts once to obtain an extraction signal, and then the integrator is reset, and when the integrator outputs the integration result of N input sample signals again, the extractor extracts again. This cycle is repeated until the integrator can no longer output the integration result of N input sample signals. In another case, when the input sample sequence enters the integrator, when the integrator outputs the integration result of N integer multiples of input sample signals, the extractor extracts once to obtain an extraction signal. Because the downstream component can only generate an output sample signal after the extractor obtains M extraction signals. Therefore, in the first case, the integrator is reset after each extraction by the extractor. In order to obtain an output sample signal, the integrator needs to output M integration results, each of which is obtained by integrating N input sample signals. At this time, the number of input sample signals used by the integrator is at least N×M. In the second case, the integrator is not reset after each extraction by the extractor. In order to obtain an output sample signal, the integrator needs M integration results, which are obtained by integrating N, 2N...MN input sample signals in sequence. At this time, the number of input sample signals used by the integrator is also at least N×M. Therefore, the number of input sample signals included in the input sample sequence is also at least N×M.

[0062] However, when sampling the feedback signal, the sampling period is a fixed value (assuming it is T) determined by the hardware and is not easy to change. Therefore, in order to obtain an input sample sequence that meets the conditions, the detection time is at least N×M×T. In other words, in order to obtain a suitable number of input sample signals, the controller in the related art has certain restrictions on the detection time.

[0063] In addition, when the input sample sequence input to the digital filter contains one or several complete signal cycles of the feedback signal (such as Figure 1 For ease of understanding, Figure 1 Only the feedback signal is sampled), the downstream components of the digital filter usually get better output sample signals. However, since the sampling period is fixed, that is, the time interval between two input sample signals is fixed, it is difficult to achieve that the input sample sequence input to the digital filter contains one or several complete signal cycles of the feedback signal in order to meet the number requirements of the input sample signal.

[0064] Based on this, the embodiment of the present application provides a digital filter, a touch display panel, a filtering method, and a touch detection method. The more complex downstream components in the digital filter are not modified. The downstream components still need the extractor to output M extracted signals before generating an output sample signal. However, the integrator in the digital filter provided in the embodiment of the present application can integrate the input sample sequence containing any integer number of input sample signals greater than or equal to M, and obtain M integrated signals in sequence. The extractor still extracts the M integrated signals separately and transmits the extracted signals to the downstream components, and the downstream components finally generate an output sample signal. In this way, the restriction that the number of input sample signals included in the input sample sequence is at least N×M is eliminated. It only needs that the number of input sample signals included in the input sample sequence is greater than or equal to M. Without changing the sampling period, it is equivalent to reducing the detection time, so the efficiency of touch detection can be improved.

[0065] It should be noted that the application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that, with the evolution of application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0066] Next, the digital filter provided in the embodiment of the present application is explained in detail.

[0067] Please refer to Figure 2 , Figure 2 1 is a schematic diagram of a digital filter structure provided by an embodiment of the present application. The digital filter comprises an integrator 1, an extractor 2 and a downstream component 3, wherein the output terminal 1b of the integrator 1 is connected to the input terminal 2a of the extractor 2, and the output terminal 2b of the extractor 2 is connected to the input terminal 3a of the downstream component 3.

[0068] Among them, the integrator 1 is a K-order integrator, which is used to integrate the input sample signal in the input sample sequence to obtain M integrated signals in sequence, each of which is the sum of the first sub-integral signal and the second sub-integral signal, the first sub-integral signal is obtained by multiplying the K-order integration result by M, and the second sub-integral signal is obtained by multiplying the K-1-order integration result by A, where M is an integer, A is a positive integer less than M, and K is an integer greater than 1. The extractor 2 is used to extract the M integrated signals respectively to obtain M extracted signals. The downstream component 3 is used to generate an output sample signal based on the M extracted signals.

[0069] like Figure 2As shown, the input terminal 1a of the integrator 1 is used to receive an input sample sequence, and usually receives an input sample signal at a fixed interval, that is, the time interval between every two input sample signals in the input sample sequence is the same.

[0070] The value of M is usually determined when designing the downstream component 3 , that is, the value of M is determined by the downstream component 3 and is the number of extracted signals required for the downstream component 3 to generate an output sample signal.

[0071] For each integrated signal, the extractor 2 selects an input sample signal contained in the integrated signal as an extracted signal. This can reduce the sampling rate of the signal, thereby reducing the amount of data that the downstream components need to process, reducing the computational complexity, and improving the efficiency of the entire digital filter system. The embodiment of the present application does not limit the structure of the extractor 2.

[0072] The downstream component 3 can be implemented by different types of multi-input single-output filters, and the downstream component 3 can include one or several different types of filters. The filtering frequencies of these filters can be designed according to actual application requirements, which is not limited in the embodiments of the present application.

[0073] For example, it is assumed that the input sample sequence needs to be filtered for noise. The noise is high-frequency clutter generated by some electronic devices during operation, which are some high-frequency signals in the input sample sequence. Therefore, the downstream component 3 can be implemented by a multi-input single-output low-pass filter, for example, a multi-input single-output FIR low-pass filter, a multi-input single-output IIR (Infinite Impulse Response Filter) low-pass filter, etc.

[0074] In addition, the downstream components may also include some additional digital signal processing components, such as filtering compensation components, amplifiers, etc.

[0075] In the embodiment of the present application, each integrated signal obtained by the integrator in the digital filter is the sum of the result of the K-th order integration result multiplied by M and the result of the K-1-th order integration result multiplied by A. Under normal circumstances, the integrated signal is the K-th order integration result, so after the integrated signal obtained in the embodiment of the present application is divided by M, the integrated signal is equivalent to adding the product of the K-1-th order integration result and A / M to the K-th order integration result. It can be seen that the integrator of the embodiment of the present application is equivalent to integrating a non-integer input sample signal. In this way, M integrated signals can be obtained based on any integer number of input sample signals greater than or equal to M through the integrator. In other words, after the number M of decimated signals required for the downstream component to generate an output sample signal has been determined, an input sample sequence consisting of any number of input sample signals greater than or equal to M can be input into the digital filter, and after passing through the integrator, M integrated signals can be obtained, and then M decimated signals can be obtained. Therefore, based on the embodiments of the present application, the limitation on the number of input sample signals being at least N (N is generally an integer greater than or equal to 2 in the prior art) × M can be eliminated without modifying complex downstream components, so that those skilled in the art can more freely select the number of input sample signals included in the input sample sequence according to the needs of actual applications, and the application prospects are broad.

[0076] like Figure 3 As shown, in some embodiments, the integrator 1 includes K integration components 11, a first multiplier 12, a second multiplier 13 and a first adder 14; each integration component in the K integration components 11 is cascaded in sequence, and the input end of the first integration component in the K integration components 11 is used to receive an input sample signal, the output end of the Kth integration component in the K integration components 11 is connected to the input end of the first multiplier 12, the output end of the K-1th integration component in the K integration components 11 is connected to the input end of the second multiplier 13, the output ends of the first multiplier 12 and the second multiplier 13 are respectively connected to the input end of the first adder 14, and the output end of the first adder 14 is used to connect to the extractor 2.

[0077] The multiplier of the first multiplier 12 is M, and the multiplier of the second multiplier 13 is A.

[0078] It should be noted that the structure of the integrator 1 is not limited to Figure 3 As shown, the integrator 1 can also be implemented by more or fewer components to complete the functions described above, and the embodiments of the present application are not limited to this.

[0079] In some embodiments, the integrator 1 includes three integration components, each of which includes an adder and a delay device. Figure 4As shown, in each integral component, the first input end of the adder 41 serves as the input end of the integral component, the output end of the adder 41 is connected to the input end of the delay device 42, the output end of the delay device 42 is connected to the second input end of the adder 41, and the output end of the delay device 42 also serves as the output end of the integral component.

[0080] For example, Figure 5 As shown, the integrator 1 may include a first integration component 111, a second integration component 112, and a third integration component 113. The first integration component 111 includes a second adder 1111 and a first delay 1112. The second integration component 112 includes a third adder 1121 and a second delay 1122. The third integration component 113 includes a fourth adder 1131 and a third delay 1132. The output end of the second delay 1122 is connected to the input end of the second multiplier 13 as the output end of the second integration component 112; the output end of the third delay 1132 is connected to the input end of the first multiplier 12 as the output end of the third integration component 113.

[0081] In some embodiments, the above-mentioned M integrated signals are obtained based on P input sample signals, where P is any integer greater than or equal to M; the above-mentioned integrator 1 integrates the input sample signals in the input sample sequence, and there are two implementation methods for the process of sequentially obtaining M integrated signals, which are introduced below respectively.

[0082] In a first implementation, the M integrated signals include a first integrated signal and a second integrated signal, and the first integrated signal and the second integrated signal are integrated signals obtained by any two adjacent operations of the integrator; wherein the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals, and the first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals, where T is a value obtained by dividing P by M.

[0083] For ease of explanation, it is assumed that the first integrated signal is obtained before the second integrated signal, the last input sample signal in the first group of input sample signals is recorded as input sample signal 1, and the first input sample signal in the second group of input sample signals is recorded as input sample signal 2. In this implementation, input sample signal 1 and input sample signal 2 are not adjacent in the input sample sequence.

[0084] At the same time, since P is any integer greater than or equal to M, the value obtained by dividing P by M may be an integer or may not be an integer, that is, T may be an integer or may not be an integer. When T is an integer, the first group of input sample signals and the second group of input sample signals both include T complete input sample signals. When T is not an integer, the first group of input sample signals and the second group of input sample signals both include T1 complete input sample signals and a portion of the next adjacent input sample signal, where T1 is the integer part of T, and the number of the portion of the next adjacent input sample signal is the decimal part of T.

[0085] For example, assuming that M is 4 and P is 10, then T is the value obtained by dividing P by M, that is, 5 / 2. That is to say, through the above-mentioned integrator 1, 4 integrated signals can be obtained in sequence, and each integrated signal is obtained by integrating 5 / 2 input sample signals. Assuming that the last 1 / 2 input sample signal in a group of input sample signals corresponding to one integrated signal is a part of x1, and the first input sample signal in a group of input sample signals corresponding to another integrated signal is x2, and these two integrated signals are two adjacent integrated signals among the 4 integrated signals, then x1 and x2 are not adjacent in the input sample sequence.

[0086] In a second implementation, the M integrated signals include a first integrated signal and a second integrated signal, the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, and the first integrated signal is obtained before the second integrated signal; wherein the first integrated signal is obtained by integrating a first group of input sample signals, the second integrated signal is obtained by integrating a second group of input sample signals, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals, and T is the value obtained by dividing P by M.

[0087] In this implementation, through the above-mentioned integrator 1, P input sample signals can be divided into M groups in order and then integrated. The first time is to integrate the first T input sample signals, the second time is to integrate the first 2T input sample signals, and so on. The last time is to integrate MT input sample signals, that is, P input sample signals are integrated.

[0088] For example, assuming that M is 4 and P is 10, then T is the value obtained by dividing P by M, that is, 5 / 2. That is to say, through the above-mentioned integrator 1, 4 integrated signals can be obtained in sequence. The first integrated signal is obtained by integrating the first 5 / 2 input sample signals of the input sample sequence, the second integrated signal is obtained by integrating the first 5 input samples, the third is obtained by integrating the first 15 / 2 input sample signals, and the fourth is obtained by integrating all the input sample signals (that is, 10 input sample signals).

[0089] It should be noted that, in actual application, which of the two implementations described above is completed by the integrator 1 is determined by the downstream component 3. In the technical field of this invention, according to the requirements of the downstream component, the integrator will be reset or not reset after each extraction signal is obtained by the extractor. If the downstream component 3 requires that the integrator 1 is reset and the previous set of input sample signals is not retained after each extraction signal is obtained by the extractor 2, it can be completed by the first implementation method described above. If the downstream component 3 requires that the integrator 1 is not reset and the previous input sample signal is retained after each extraction signal is obtained by the extractor 2, it can be completed by the second implementation method described above.

[0090] In the first implementation, after each extraction signal is extracted by the extractor 2, the integrator 1 needs to be reset, so that the multipliers of the first multiplier and the second multiplier remain unchanged, and the values ​​of other adders and delay devices are cleared. The multiplier of the first multiplier is M, and the multiplier of the second multiplier is the value obtained by taking the modulus of P on M.

[0091] Below Figure 5 The digital filter shown in FIG. 1 is taken as an example to explain the above two implementation methods in detail.

[0092] Figure 5 The integrator 1 in the digital filter shown includes three delay devices. Therefore, assuming that an input sample signal enters the integrator 1 at time t, the input sample signal can reach the first delay device 1112 at time t+1 and affect the output of the first delay device 1112. The input sample signal can reach the second delay device 1122 at time t+2 and affect the output of the second delay device 1122. The input sample signal can reach the third delay device 1132 at time t+3 and affect the output of the third delay device 1132. The outputs of the first delay device 1112, the second delay device 1122, and the third delay device 1132 are denoted as z1, z2, and z3, respectively.

[0093] The following is an example to illustrate the first implementation method:

[0094] Assume that there is an input sample sequence, which includes input sample signals entering at t=1, 2, 3, etc. Figure 5 In the digital filter shown in FIG. 1 , it is assumed that P is 14 and M is 3. As described above, by Figure 5 The integrator 1 in the digital filter shown can obtain three integrated signals in sequence, and each integrated signal is obtained by integrating 14 / 3=4+2 / 3 input sample signals.

[0095] At t=3 (i.e., the number of delays)+4 (i.e., the integer part of 4+2 / 3)=7, the 6th input sample signal in the input sample sequence arrives at the first delay, z1 contains the values ​​of the first 6 input sample signals in the input sample sequence, the 5th input sample signal in the input sample sequence arrives at the second delay, z2 contains the values ​​of the first 5 input sample signals in the input sample sequence, the 4th input sample signal in the input sample sequence arrives at the third delay, z3 contains the values ​​of the first 4 input sample signals in the input sample sequence. At this time, the integrated signal y(t)=z3×M+z2×A output by integrator 1. A is the multiplier of the second multiplier, i.e., the value 2 obtained by taking the modulus of P on M, and the multiplier of the first multiplier is M. Since the first multiplier is added after the third delay in the integrator, the integration result of the input sample signal should essentially be y(t) / M=z3+z2×A / M, that is, the integration signal includes the integration result of the first 4 input sample signals (i.e. z3) and 2 / 3 of the 5th input sample signal (i.e. z2×A / M) in the input sample sequence. And the integration signal is the first integration signal among the 3 integration signals used by the extractor 2, and the extractor 2 triggers the first extraction.

[0096] After the first extraction is completed, the integrator is reset, z1, z2, and z3 are all cleared, and the multipliers of the first multiplier and the second multiplier remain unchanged. Therefore, the 6th input sample signal and the 7th input sample signal in the input sample sequence have no effect on the output of integrator 1. At t=8, the 8th input sample in the input sample sequence enters integrator 1. At t=7 (i.e., the time of the last extraction) + 3 (i.e., the number of delays) + 4 (i.e., the integer part of 4+2 / 3) = 14, the 13th input sample signal in the input sample sequence arrives at the first delay, z1 contains the values ​​of the 8th to 13th input sample signals in the input sample sequence, the 12th input sample signal in the input sample sequence arrives at the second delay, z2 contains the values ​​of the 8th to 12th input sample signals in the input sample sequence, the 11th input sample signal in the input sample sequence arrives at the third delay, and z3 contains the values ​​of the 8th to 11th input sample signals in the input sample sequence. At this time, the integrated signal output by integrator 1 includes the integration results of the 8th to 11th input sample signals and 2 / 3 of the 12th input sample signal in the input sample sequence. And this integrated signal is the second integrated signal among the three integrated signals used by extractor 2, and extractor 2 triggers the second extraction.

[0097] After the second extraction is completed, the integrator is reset again, z1, z2, and z3 are all cleared, and the multipliers of the first multiplier and the second multiplier remain unchanged. Therefore, the 13th input sample signal and the 14th input sample signal in the input sample sequence have no effect on the output of integrator 1. At t=15, the 15th input sample in the input sample sequence enters integrator 1. At t=14 (i.e., the time of the last extraction)+3 (i.e., the number of delays)+4 (i.e., the integer part of 4+2 / 3)=21, the 20th input sample signal in the input sample sequence arrives at the first delay, z1 contains the values ​​of the 15th to 20th input sample signals in the input sample sequence, the 19th input sample signal in the input sample sequence arrives at the second delay, z2 contains the values ​​of the 15th to 19th input sample signals in the input sample sequence, the 18th input sample signal in the input sample sequence arrives at the third delay, and z3 contains the values ​​of the 15th to 18th input sample signals in the input sample sequence. At this time, the integrated signal output by integrator 1 includes the integration results of the 15th to 18th input sample signals and 2 / 3 of the 19th input sample signal in the input sample sequence. And this integration result is the third integrated signal among the three integrated signals used by extractor 2, and extractor 2 triggers the third extraction.

[0098] It should be noted that, during the third extraction, the 20th to 21st input sample signals in the input sample sequence are irrelevant to the output of the integrator 1. Therefore, the input sample sequence may include at least 19 input sample signals (but only 14 input sample signals are actually used in the integrated signal).

[0099] Through the above process, the input sample sequence is integrated to obtain M (3 in the example) integrated signals in sequence.

[0100] From the above example, it can be seen that some input sample signals will be discarded when the integrator is reset, and the M integrated signals are actually obtained based on P input sample signals. Assuming that the number of delays is Q, the extractor 2 is respectively When , a sampling is triggered. In this way, M integral signals can be obtained. Among them, Indicates that the value of P / M is rounded down. For example, if P / M is 3 / 2, then is 1.

[0101] In the second implementation mode described above, after each extraction signal is extracted by the extractor 2, the integrator 1 is not reset, and the multiplier of the second multiplier needs to be updated, and the multiplier of the first multiplier, the values ​​of other adders and delay devices remain unchanged. Among them, when the extractor extracts for the first time, the multiplier of the second multiplier is the value obtained by taking the modulus of P to M, and when the extractor extracts for the non-first time, the multiplier of the second multiplier is the value obtained by taking the modulus of M by the sum of the multiplier of the second multiplier at the last extraction and the multiplier of the second multiplier at the first extraction.

[0102] The second implementation method is described below with an example:

[0103] Assume that there is an input sample sequence, which includes input sample signals entering at t=1, 2, 3, etc. Figure 5 In the integrator 1 of the digital filter shown in the figure, assuming that P is 14 and M is 3, the multiplier of the second multiplier is 14%3=2 (% is the modulo operation). Figure 5 The integrator 1 in the digital filter shown can obtain three integrated signals in sequence, and each integrated signal is obtained by integrating the first 14 / 3=4+2 / 3 input sample signals, the first 2×(4+2 / 3)=9+1 / 3 input sample signals, and 3×(4+2 / 3)=14 input sample signals in the input sample sequence.

[0104] When t=3 (i.e., the number of delay devices) + 4 (i.e., the integer part of 4+2 / 3) = 7, z1 contains the values ​​of the first 6 input sample signals in the input sample sequence, z2 contains the values ​​of the first 5 input sample signals in the input sample sequence, and z3 contains the values ​​of the first 4 input sample signals in the input sample sequence. At this time, the integrated signal output by integrator 1 contains the first 4 input sample signals in the input sample sequence and the integration result of 2 / 3 of the fifth input sample signal, and is the first integrated signal of the three integrated signals used by extractor 2. Extractor 2 triggers the first extraction.

[0105] After the first extraction is completed, the integrator is not reset, the multiplier of the second multiplier is updated to (2+2)%3=1, and the multiplier of the first multiplier, the values ​​of other adders and delay devices remain unchanged. At t=3 (i.e., the number of delay devices)+9 (i.e., the integer part of 9+1 / 3)=12, z1 contains the values ​​of the first 11 input sample signals in the input sample sequence, z2 contains the values ​​of the first 10 input sample signals in the input sample sequence, and z3 contains the values ​​of the first 9 input sample signals in the input sample sequence. At this time, the integrated signal output by integrator 1 contains the first 9 input sample signals in the input sample sequence and the integration result of 1 / 3 of the 10th input sample signal, and the integrated signal is the second integrated signal of the three integrated signals used by extractor 2, and extractor 2 triggers the second extraction.

[0106] After the second extraction is completed, the integrator is not reset, the multiplier of the second multiplier is updated to (1+2)%3=0, and the multiplier of the first multiplier, the values ​​of other adders and delay devices remain unchanged. At t=3 (i.e., the number of delay devices)+14 (i.e., the value of P)=17, z1 contains the values ​​of the first 16 input sample signals in the input sample sequence, z2 contains the values ​​of the first 15 input sample signals in the input sample sequence, and z3 contains the values ​​of the first 14 input sample signals in the input sample sequence. At this time, the integrated signal output by integrator 1 contains the integration result of the first 14 input sample signals in the input sample sequence, and the integrated signal is the third integrated signal of the three integrated signals used by extractor 2, and extractor 2 triggers the third extraction.

[0107] It should be noted that, during the third extraction, the 15th to 17th input sample signals in the input sample sequence are irrelevant to the output of the integrator 1. Therefore, the input sample sequence may include at least 14 input sample signals (the number of input sample signals actually used in the integrated signal is also 14).

[0108] Through the above process, the input sample sequence is integrated to obtain M (3 in the example) integrated signals in sequence.

[0109] From the above example, it can be seen that when the integrator is not reset, the M integrated signals are also obtained based on the P input sample signals. Assuming that the number of delays is Q, the extractor 2 is respectively In this way, M integrated signals can be obtained.

[0110] In the above two implementations, the method for determining the multiplier of the second multiplier is described in detail in the following method embodiments, which will not be elaborated here.

[0111] Based on the above description, Figure 5 In the integrator of the digital filter shown, the integration result of the input sample signal is essentially z3+z2×A / M. Since a first multiplier is added after the third delay device, and the multiplier of the first multiplier is M, it is equivalent to that the output of the integrator 1 has a gain of M times. This gain M can be removed in the downstream component 3.

[0112] Each integral signal obtained by the integrator in the digital filter provided in the embodiment of the present application is the sum of the result of the K-th order integration result multiplied by M and the result of the K-1-th order integration result multiplied by A. In general, the integral signal is the K-th order integration result, so after the integral signal obtained in the embodiment of the present application is divided by M, the integral signal is equivalent to adding the product of the K-1-th order integration result and A / M on the basis of the K-th order integration result. It can be seen that the integrator of the embodiment of the present application is equivalent to integrating a non-integer input sample signal. In this way, M integral signals can be obtained based on any integer number of input sample signals greater than or equal to M through the integrator. In other words, the digital filter does not have a restriction of at least N×M for the number of input sample signals. As long as the number of input sample signals is greater than or equal to M, an output sample signal can be generated. Those skilled in the art can choose the number of input sample signals more freely according to the needs of actual applications, and the application prospects are broad. In addition, whether the downstream component requires the integrator to reset or not reset after each integral signal is obtained, the corresponding implementation method provided in the embodiment of the present application can achieve the purpose of eliminating the above-mentioned limitations.

[0113] Please refer to Figure 6 , Figure 6 6 is a schematic diagram of the structure of a touch display panel provided in an embodiment of the present application. The touch display panel includes a controller 61 and a touch array 62. The controller includes a digital filter ( Figure 6 The digital filter in the figure is just an example).

[0114] Among them, the controller 61 is used to send a detection signal of a target frequency to the touch array 62 and receive a feedback signal sent by the touch array within the detection time; it is also used to sample the feedback signal to obtain an input sample sequence; it is also used to input the input sample sequence into the digital filter provided in the above embodiment; it is also used to determine the occurrence time and location of a touch event on the touch display panel based on the output sample signal and the detection signal. For detailed implementation methods, please refer to the following method embodiments.

[0115] The touch array 62 is used to receive a detection signal of a target frequency sent by the controller 61 and send a feedback signal to the controller 61 within a detection time period.

[0116] In addition, the touch display panel also includes a display screen, which is used to display icons, text and other information that the user needs to touch.

[0117] Next, the filtering method provided in the embodiment of the present application is explained in detail.

[0118] Figure 7 is a flowchart of a filtering method provided in an embodiment of the present application, which is applied to the above-mentioned digital filter. Figure 7 , the method comprises the following steps.

[0119] Step 701: Integrate the input sample signal in the input sample sequence through the integrator in the digital filter to obtain M integrated signals in sequence, each of the M integrated signals is the sum of a first sub-integral signal and a second sub-integral signal, the first sub-integral signal is obtained by multiplying the K-th order integration result by M, and the second sub-integral signal is obtained by multiplying the K-1-th order integration result by A, where M is an integer, A is a positive integer less than M, and K is an integer greater than 1.

[0120] It is also mentioned in the above digital filter embodiment that based on the requirements of downstream components, the integrator integrates the input sample signal in the input sample sequence to obtain M integrated signals in sequence in two ways, which are as follows:

[0121] In a first implementation, the M integrated signals include a first integrated signal and a second integrated signal, and the first integrated signal and the second integrated signal are integrated signals obtained by any two adjacent operations of the integrator; wherein the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals, and the first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals, where T is a value obtained by dividing P by M.

[0122] In some embodiments, the integrator includes K integral components, a first multiplier, a second multiplier and a first adder; when the first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals, the method further includes: after the extractor extracts an extracted signal, resetting the integrator so that the multipliers of the first multiplier and the second multiplier remain unchanged, and the values ​​of the K integral components and the first adder are cleared; wherein the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, and A is the value obtained by taking the modulus of M by P.

[0123] For example, assuming that M is 3 and P is 14, and the downstream component requires the extractor to reset the integrator after each extraction signal, the multiplier A of the second multiplier is 14%3=2 (% is a modulo operation) and remains unchanged.

[0124] In a second implementation, the M integrated signals include a first integrated signal and a second integrated signal, the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, and the first integrated signal is obtained before the second integrated signal; wherein the first integrated signal is obtained by integrating a first group of input sample signals, the second integrated signal is obtained by integrating a second group of input sample signals, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals, and T is the value obtained by dividing P by M.

[0125] In some embodiments, the integrator includes K integration components, a first multiplier, a second multiplier and a first adder; when the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals, the method also includes: after the extractor extracts a sample signal each time, the multiplier of the second multiplier is updated, and the multiplier of the first multiplier, the K integration components and the first adder remain unchanged; wherein the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, when the extractor extracts for the first time, A is the value obtained by taking the modulus of M by P, and when the extractor is not extracting for the first time, A is the value obtained by taking the modulus of M by the sum of the multiplier of the second multiplier at the last extraction and the multiplier of the second multiplier at the first extraction.

[0126] For example, assuming that M is 3 and P is 14, the downstream component requires that the integrator is not reset after each extraction signal is extracted by the extractor, which requires that the multiplier of the second multiplier be updated each time the extractor extracts. Since M is 3, the extractor will perform three extractions. When the extractor extracts for the first time, the multiplier of the second multiplier is 14%3=2 (% is the modulus operation). After the first extraction and before the second extraction, the controller updates the multiplier of the second multiplier to (2+2)%3=1. After the second extraction and before the third extraction, the controller updates the multiplier of the second multiplier to (1+2)%3=0.

[0127] In the second implementation (i.e., when the integrator is not reset), after the input sample sequence enters the digital filter, all input sample signals will be utilized, and the input sample signals obtained through the above step 502 will not be wasted. This avoids the problem of some input sample signals being discarded when the number of input sample signals is not an integer multiple of N (N is usually greater than or equal to 2) × M, thereby improving the overall working efficiency of the controller and reducing useless power consumption.

[0128] Step 702: The M integrated signals are respectively extracted by a decimator in a digital filter to obtain M extracted signals.

[0129] Step 703: Generate an output sample signal based on the M decimated signals through downstream components in the digital filter.

[0130] For other explanations of step 701 , as well as explanations of steps 702 and 703 , reference may be made to the introduction of the above-mentioned digital filter embodiment, which will not be repeated here.

[0131] In the embodiment of the present application, each integrated signal obtained by the integrator in the digital filter is the sum of the result of the K-th order integration result multiplied by M and the result of the K-1-th order integration result multiplied by A. In general, the integrated signal is the K-th order integration result, so after the integrated signal obtained in the embodiment of the present application is divided by M, the integrated signal is equivalent to adding the product of the K-1-th order integration result and A / M on the basis of the K-th order integration result. It can be seen that the integrator in the embodiment of the present application is equivalent to integrating a non-integer input sample signal. In this way, M integrated signals can be obtained based on any integer number of input sample signals greater than or equal to M through the integrator. The M integrated signals are extracted respectively by the extractor in the digital filter, and the extracted signals are passed to the downstream components in the digital filter, and the downstream components can finally generate an output sample signal. In other words, the filtering method has no restriction on the number of input sample signals to be at least N×M. As long as the number of input sample signals is greater than or equal to M, an output sample signal can be generated. Those skilled in the art can freely choose the number of input sample signals according to the needs of actual applications, and the application prospects are broad. In addition, regardless of whether the downstream component of the digital filter requires the integrator to be reset or not after each integrated signal is obtained, the purpose of eliminating the above-mentioned limitation can be achieved through the corresponding implementation method provided in the embodiment of the present application.

[0132] Next, the touch detection method provided in the embodiment of the present application is explained in detail.

[0133] Figure 8 is a flow chart of a touch detection method provided in an embodiment of the present application, which is applied to the controller in the above touch display panel embodiment. Figure 8 , the method comprises the following steps.

[0134] Step 801: sending a detection signal of a target frequency to a touch control array, and receiving a feedback signal sent by the touch control array within a detection time period, wherein the feedback signal includes a signal of the target frequency.

[0135] The target frequency can be set in advance by a person skilled in the art. Since there are many circuit devices in the touch display panel, these circuit devices may generate some clutter such as radio frequency signals when working, which may bring noise to some useful signals in the circuit. In order to facilitate subsequent signal processing, the target frequency is usually set to be significantly different from the frequency of the noise.

[0136] Among them, the detection time can also be set in advance. The detection time determines the efficiency of the controller in touch detection. The detection time can be changed relatively easily after the setting is completed, that is, the detection time can be adjusted according to needs.

[0137] After the touch array receives the detection signal, if a touch event occurs, these detection signals will be attenuated, but the frequency will not change. The touch array will send these attenuated detection signals (still at the target frequency) to the controller again, but due to the influence of noise in the circuit, the signal received by the controller also contains noise. That is, the controller receives the feedback signal sent by the touch array during the detection time, and the feedback signal received by the controller contains the signal of the target frequency and noise.

[0138] Step 802: Sample, quantize, and encode the feedback signal to obtain an input sample sequence, where the input sample sequence includes multiple input sample signals.

[0139] It should be noted that the controller receives and samples the feedback signal at the same time. In addition, the sampling period can be set in advance and is not easy to change after the setting is completed.

[0140] For example, the detection time of the controller is 4s, and the sampling period is 1s. Assuming that the controller starts to receive feedback signals at 9:00, at 9:01, the controller samples the feedback signal that has been received, and then quantizes and encodes it to obtain an input sample signal. At 9:02, the controller samples the feedback signal that has been received again to obtain another input sample signal, and then obtains another input sample signal. Therefore, at 9:04, the controller obtains the last input sample signal. In this way, the controller can obtain the corresponding input sample sequence.

[0141] The number of input sample signals included in the input sample sequence is the value of the detection duration divided by the sampling period. In addition, it can be seen from the above embodiments that in some embodiments, the number of input sample signals included in the input sample sequence is at least P, and the value of P is an integer greater than or equal to M, and the value of M is determined by the downstream components in the digital filter.

[0142] As mentioned above, the detection duration can be changed relatively easily after being set, while the sampling period is not easy to change. Therefore, the number of input sample signals included in the input sample sequence can be indirectly set by setting the detection duration.

[0143] In some embodiments, the detection duration is the product of an integer greater than or equal to M and a sampling period.

[0144] In this way, the number of input sample signals included in the input sample sequence can be at least P, and P is greater than or equal to M, meeting the requirement that the downstream component generates an output sample signal. When the integer greater than or equal to M is selected to be small, such as selecting M+1, M+2, etc., the resulting detection time is short, thereby enabling the controller to improve the efficiency of touch detection.

[0145] In some embodiments, the detection duration is a minimum value that satisfies two conditions: greater than or equal to the product of M and the sampling period, and equal to an integer number of signal periods of the feedback signal.

[0146] As can be seen from the foregoing description, when the input sample sequence input to the digital filter contains one or several complete signal cycles of the feedback signal, the downstream components of the digital filter usually obtain better output sample signals. Therefore, by setting the detection duration to the minimum value that satisfies the two conditions of being greater than or equal to the product of M and the sampling period, and being equal to an integer number of signal cycles of the feedback signal, a better output sample signal can be obtained while maximizing the efficiency of the controller in performing touch detection, which is conducive to improving the accuracy of touch detection.

[0147] Step 803: Input the input sample sequence to the digital filter, so that the digital filter generates an output sample signal according to the above filtering method.

[0148] It can be seen from the above description that in the input sample sequence, the time interval between every two input sample signals input into the digital filter is the same, and the time interval is the above sampling period.

[0149] For a description of the process of obtaining an output sample signal through a digital filter, reference may be made to the above-mentioned digital filter embodiment and the introduction of the above-mentioned filtering method, which will not be repeated here.

[0150] Step 804: Determine the occurrence time and location of the touch event on the touch display panel based on the output sample signal and the detection signal.

[0151] The occurrence time of the touch event refers to when the touch event occurs. For example, if a touch event occurs at 3:30 am on March 30, 2019, the occurrence time of the touch event is 3:30 am on March 30, 2019.

[0152] The occurrence position of the touch event refers to the specific position where the touch event occurs on the display screen of the touch display panel.

[0153] In some embodiments, the output sample signal is compared with the change of the detection signal to determine the occurrence time and location of the touch event on the touch display panel.

[0154] Optionally, if the detection signal is an analog signal, the output sample signal can be converted into the form of an analog signal, and then the location of the defect in the signal waveform of the output sample signal and the magnitude of the signal waveform energy attenuation compared to the detection signal are determined, thereby determining the occurrence time and location of the touch event on the touch display panel.

[0155] Of course, the occurrence time and location of the touch event on the touch display panel may also be determined based on the output sample signal and the detection signal according to other methods, and the embodiments of the present application are not limited to this.

[0156] In the embodiment of the present application, since the integrator in the digital filter for generating the output sample signal can integrate any number of input sample signals greater than or equal to M, and obtain M integrated signals in sequence, the extractor extracts the M integrated signals respectively, and transmits the extracted signals to the downstream component, and the downstream component generates an output sample signal. Therefore, the embodiment of the present application can eliminate the restriction on the number of input sample signals. In addition, since the number of input sample signals included in the input sample sequence only needs to be greater than or equal to M, the detection time only needs to be greater than or equal to the product of M and the sampling period, so the embodiment of the present application can eliminate the restriction on the touch detection time, and by reducing the number of input sample signals, the touch detection time can be reduced, thereby improving the efficiency of the controller for touch detection. At the same time, when the integrator is not reset, since all input samples can be effectively utilized, the useless power consumption of the controller can be reduced. In addition, when the detection time also satisfies the condition that it is equal to an integer number of signal cycles of the feedback signal, the downstream component of the digital filter can obtain a better output sample signal, which is conducive to improving the accuracy of the controller for touch detection.

[0157] Fig. 9 This is a schematic diagram of the structure of a touch detection device provided in an embodiment of the present application. Please refer to Fig. 9 The device includes: a transceiver module 901, a signal preprocessing module 902, an input module 903 and a touch event determination module 904.

[0158] The transceiver module 901 is used to send a detection signal of a target frequency to the touch control array, and receive a feedback signal sent by the touch control array within a detection time period, wherein the feedback signal includes a signal of the target frequency;

[0159] The signal preprocessing module 902 is used to sample, quantize and encode the feedback signal to obtain an input sample sequence, where the input sample sequence includes multiple input sample signals;

[0160] An input module 903 is used to input the input sample sequence into the digital filter so that the digital filter generates an output sample signal according to the above filtering method;

[0161] The touch event determination module 904 is used to determine the occurrence time and location of a touch event on the touch display panel based on the output sample signal and the detection signal.

[0162] In the embodiment of the present application, since the integrator in the digital filter for generating the output sample signal can integrate any number of input sample signals greater than or equal to M, and obtain M integrated signals in sequence, the extractor extracts the M integrated signals respectively to obtain M extracted signals, and transmits the obtained M extracted signals to the downstream component, and the downstream component generates an output sample signal. Therefore, the embodiment of the present application can eliminate the restriction on the number of input sample signals. In addition, since the number of input sample signals only needs to be greater than or equal to M, the detection time only needs to be greater than or equal to the product of M and the sampling period, so the embodiment of the present application can eliminate the restriction on the touch detection time, and by reducing the number of input sample signals, the detection time can be reduced, thereby improving the efficiency of the controller in performing touch detection. In addition, when the detection time also satisfies the condition that it is equal to an integer number of signal cycles of the feedback signal, the downstream component of the digital filter can obtain a better output sample signal, which is conducive to improving the accuracy of the controller in performing touch detection.

[0163] It should be noted that: the touch detection device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when detecting touch events. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the touch detection device provided in the above embodiment and the touch detection method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0164] The present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by the controller, the steps of the touch detection method in the above embodiment are implemented. For example, the computer-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0165] It is worth noting that the computer-readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0166] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.

[0167] That is, in some embodiments, a computer program product is further provided, wherein computer instructions are stored in the computer program product, and when the computer instructions are executed by the controller, the steps of the touch detection method are implemented.

[0168] It should be understood that the "at least one" mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.

[0169] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0170] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A digital filter, characterized in that: The digital filter comprises an integrator, a decimator and a downstream component, wherein the output end of the integrator is connected to the input end of the decimator, and the output end of the decimator is connected to the input end of the downstream component; The integrator is a K-order integrator, used for integrating the input sample signal in the input sample sequence to obtain M integrated signals in sequence, each integrated signal of the M integrated signals is the sum of a first sub-integral signal and a second sub-integral signal, the first sub-integral signal is obtained by multiplying the K-th order integrated result by M, the second sub-integral signal is obtained by multiplying the K-1-th order integrated result by A, M is an integer, A is a positive integer less than M, and K is an integer greater than 1; The extractor is used to extract the M integrated signals respectively to obtain M extracted signals; The downstream component is used to generate an output sample signal based on the M extracted signals.

2. The digital filter according to claim 1, wherein: The integrator includes K integrating components, a first multiplier, a second multiplier and a first adder; The K integration components are cascaded in sequence, and the input end of the first integration component among the K integration components is used to receive the input sample signal, the output end of the Kth integration component among the K integration components is connected to the input end of the first multiplier, the output end of the K-1th integration component among the K integration components is connected to the input end of the second multiplier, the output ends of the first multiplier and the second multiplier are respectively connected to the input end of the first adder, and the output end of the first adder is used to connect to the extractor; The multiplier of the first multiplier is M, and the multiplier of the second multiplier is A.

3. The digital filter according to claim 2, wherein: The integrator includes three integration components, each of which includes an adder and a delay device; The first input end of the adder serves as the input end of the integration component, the output end of the adder is connected to the input end of the delay device, the output end of the delay device is connected to the second input end of the adder, and the output end of the delay device also serves as the output end of the integration component.

4. The digital filter according to any one of claims 1 to 3, characterized in that: The M integrated signals are obtained based on P input sample signals, where P is any integer greater than or equal to M; The M integrated signals include a first integrated signal and a second integrated signal, wherein the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals; The first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals; or, the first integrated signal is obtained before the second integrated signal, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals; T is a value obtained by dividing P by M.

5. A touch display panel, characterized in that: The touch display panel comprises a controller and a touch array, and the controller comprises the digital filter according to any one of claims 1 to 4.

6. A filtering method, characterized in that: The method is applied to the digital filter according to any one of claims 1 to 4, and the method comprises: Integrating the input sample signal in the input sample sequence by the integrator in the digital filter to obtain M integrated signals in sequence, wherein each integrated signal in the M integrated signals is the sum of a first sub-integral signal and a second sub-integral signal, wherein the first sub-integral signal is obtained by multiplying a K-th order integrated result by M, and the second sub-integral signal is obtained by multiplying a K-1-th order integrated result by A, wherein M is an integer, A is a positive integer less than M, and K is an integer greater than 1; The M integrated signals are respectively extracted by the extractor in the digital filter to obtain M extracted signals; An output sample signal is generated based on the M decimated signals through downstream components in the digital filter.

7. The method according to claim 6, characterized in that The M integrated signals are obtained based on P input sample signals, where P is any integer greater than or equal to M; The M integrated signals include a first integrated signal and a second integrated signal, wherein the first integrated signal and the second integrated signal are integrated signals obtained by the integrator at any two adjacent times, the first integrated signal is obtained by integrating a first group of input sample signals, and the second integrated signal is obtained by integrating a second group of input sample signals; The first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals; or, the first integrated signal is obtained before the second integrated signal, the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals; T is a value obtained by dividing P by M.

8. The method according to claim 7, characterized in that The integrator includes K integrating components, a first multiplier, a second multiplier and a first adder; In the case where the first group of input sample signals and the second group of input sample signals do not overlap and both include T input sample signals, the method further includes: After each extraction signal is extracted by the extractor, the integrator is reset so that the multipliers of the first multiplier and the second multiplier remain unchanged and the values ​​of the K integral components and the first adder are cleared to zero; wherein the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, and A is the value obtained by taking the modulus of M by P.

9. The method according to claim 7, characterized in that The integrator includes K integrating components, a first multiplier, a second multiplier and a first adder; In the case where the second group of input sample signals includes the first group of input sample signals, and the number of the second group of input sample signals is T more than the number of the first group of input sample signals, the method further includes: After the extractor extracts a decimation signal each time, the multiplier of the second multiplier is updated, and the multiplier of the first multiplier, the K integral components and the values ​​of the first adder remain unchanged; Among them, the multiplier of the first multiplier is M, the multiplier of the second multiplier is A, when the extractor extracts for the first time, A is the value obtained by taking the modulus of M by P, and when the extractor is not extracting for the first time, A is the value obtained by taking the modulus of M by the sum of the multiplier of the second multiplier at the last extraction and the multiplier of the second multiplier at the first extraction.

10. A touch detection method, characterized in that: The method is applied to the controller in the touch display panel according to claim 5, and the method comprises: Sending a detection signal of a target frequency to the touch control array, and receiving a feedback signal sent by the touch control array within a detection time period, wherein the feedback signal includes a signal of the target frequency; Sampling, quantizing, and encoding the feedback signal to obtain an input sample sequence, wherein the input sample sequence includes a plurality of input sample signals; Inputting the input sample sequence into the digital filter so that the digital filter generates an output sample signal according to the method according to any one of claims 6 to 9; Based on the output sample signal and the detection signal, the occurrence time and the occurrence position of the touch event on the touch display panel are determined.