WO2022061832A1 - Touch-control chip, processing method for touch-control detection signal, and electronic device - Google Patents

Touch-control chip, processing method for touch-control detection signal, and electronic device Download PDF

Info

Publication number
WO2022061832A1
WO2022061832A1 PCT/CN2020/118171 CN2020118171W WO2022061832A1 WO 2022061832 A1 WO2022061832 A1 WO 2022061832A1 CN 2020118171 W CN2020118171 W CN 2020118171W WO 2022061832 A1 WO2022061832 A1 WO 2022061832A1
Authority
WO
WIPO (PCT)
Prior art keywords
sampling
touch
detection signal
signal
time interval
Prior art date
Application number
PCT/CN2020/118171
Other languages
French (fr)
Chinese (zh)
Inventor
沈海明
包宇洋
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2020/118171 priority Critical patent/WO2022061832A1/en
Publication of WO2022061832A1 publication Critical patent/WO2022061832A1/en

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

Definitions

  • the embodiments of the present application relate to the field of information technology, and more particularly, to a touch control chip, a method for processing a touch detection signal, and an electronic device.
  • the control detection signal is synchronized with the line scan period of the line synchronization signal of the display layer, so as to reduce the noise influence of the display layer on the touch layer.
  • the line scanning period of the line synchronization signal of the display layer is unstable, the corresponding touch detection signal collected by the touch chip is also unstable, and the demodulation result obtained after sampling and demodulating the touch detection signal includes additional noise.
  • the instability of the line synchronization signal of the display layer brings additional noise to the touch detection of the touch layer, reduces the signal-to-noise ratio of the touch detection system, and affects the result of the touch detection.
  • Embodiments of the present application provide a touch chip, a method for processing a touch detection signal, and an electronic device, which can reduce the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and improve the touch control performance.
  • the signal-to-noise ratio of the detection system can reduce the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and improve the touch control performance.
  • a touch control chip including:
  • a driving circuit for outputting a coding signal to the touch layer of the screen according to the line scanning period of the line synchronization signal of the display layer of the screen;
  • a detection circuit for receiving the detection signal output by the touch control layer
  • a sampling circuit configured to sample the detection signal according to the line scan period to obtain sampled data, wherein the line scan period varies, and the number of sampling points in different line scan periods is a preset value; as well as,
  • a demodulation circuit configured to perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
  • the line scanning period of the line synchronization signal of the display layer is unstable, since the touch detection signals collected in each line scanning period are sampled according to the same number of sampling points in different line scanning periods, the touch detection signal collected in each line scanning period is sampled.
  • the demodulation result obtained from the sampling data of the control detection signal is also stable, which reduces the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and reduces the noise in the detection result. , which improves the signal-to-noise ratio of the touch detection system.
  • the sampling circuit is specifically configured to: from the time of the rising edge of the line synchronization signal in the line scanning period, perform the detection on the detection signal in the line scanning period sampling.
  • the preset value is an integer less than or equal to F1/F2, where F1 is a sampling frequency used for sampling the detection signal, and F2 is an or the frequency of the detection signal.
  • the preset value is the largest integer less than or equal to F1/F2.
  • the sampling circuit is specifically configured to: sample the detection signal within a valid time interval of the line scan period, wherein the valid time interval is the detection signal when there is a touch signal The time interval during which the amplitude of the detection signal changes.
  • touch detection such as capacitance detection of a finger or a pen
  • touch detection usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the touch after canceling the basic capacitance.
  • the process of transferring the amount of charge on the electrode is only in the process of charge transfer, the data collected by the sampling circuit reflects the touch condition on the touch electrodes. Therefore, in the line scan period, the sampling circuit can only collect the valid time interval corresponding to the charge transfer process. data, thereby improving the efficiency of data collection.
  • the sampling circuit is further configured to: according to the same frequency as the sampling frequency in the effective time interval, in the line scanning period other than the effective time interval, inactive In the time interval, a fixed value is filled as the sampling data in the non-valid time interval.
  • a fixed value such as 0 can be filled in the non-valid time interval as sampling data, so there is no noise in the non-valid time interval, thereby reducing the proportion of noise in the entire cycle, which is equivalent to eliminating the noise floor in the detection signal.
  • the sampling circuit is further configured to: splicing the sampled data obtained in multiple line scanning periods; wherein the demodulation circuit is specifically configured to: according to the spliced sampling data Perform quadrature demodulation, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is used for sampling the detection signal. Sampling frequency.
  • a method for processing a touch detection signal including:
  • the detection signal is sampled to obtain sampled data, wherein the line scanning period varies, and the number of sampling points in different line scanning periods is a preset value;
  • the demodulation result obtained based on the sampling data of the detection signals in the line scanning period is obtained. That is, it is stable, thereby reducing the noise impact of the jitter of the horizontal synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and improving the signal-to-noise ratio of the touch detection system.
  • the sampling of the detection signal includes: starting from the time of the rising edge of the line synchronization signal in the line scan period, sampling all the lines in the line scan period The detection signal is sampled.
  • the preset value is an integer less than or equal to F1/F2, where F1 is a sampling frequency used for sampling the detection signal, and F2 is an or the frequency of the detection signal.
  • the preset value is the largest integer less than or equal to F1/F2.
  • the sampling the detection signal includes: sampling the detection signal within a valid time interval of the line scan period, wherein the valid time interval is a touch The time interval during which the amplitude of the detection signal changes.
  • touch detection such as capacitance detection of a finger or a pen
  • touch detection usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the touch after canceling the basic capacitance.
  • the process of transferring the amount of charge on the electrode is only in the process of charge transfer, the data collected by the sampling circuit reflects the touch condition on the touch electrodes. Therefore, in the line scan period, the sampling circuit can only collect the valid time interval corresponding to the charge transfer process. data, thereby improving the efficiency of data collection.
  • the method further includes: according to the same frequency as the sampling frequency in the valid time interval, in the line scanning period, in the non-valid time interval except the valid time interval In the non-valid time interval, a fixed value is filled as the sampled data in the non-valid time interval.
  • a fixed value such as 0 can be filled in the non-valid time interval as sampling data, so there is no noise in the non-valid time interval, thereby reducing the proportion of noise in the entire cycle, which is equivalent to reducing the noise floor in the detection signal.
  • the method further includes: splicing the sampled data obtained in multiple line scanning periods; wherein the performing orthogonal demodulation according to the sampled data includes: according to the splicing The obtained sampling data is subjected to quadrature demodulation, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, and F1 is used for the The sampling frequency at which the detection signal is sampled.
  • an electronic device including the touch control chip in the first aspect or any possible implementation manner of the first aspect.
  • FIG. 1 is a schematic diagram of a screen module.
  • FIG. 2 is a schematic diagram of the relationship among the line synchronization signal, pixel data, display layer noise and touch detection signal.
  • FIG. 3 is a schematic diagram illustrating the influence of the jitter of the horizontal synchronization signal on the touch detection signal.
  • FIG. 4 is a schematic block diagram of a touch control chip according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of sampling timing based on the touch chip shown in FIG. 4 .
  • FIG. 6 is a schematic diagram of sampled data under ideal conditions.
  • FIG. 7 is a schematic diagram of sampling data splicing according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a valid time interval of an embodiment of the present application.
  • FIG. 9 is a schematic diagram of sampling data splicing according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of filling sampling data according to an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a method for processing a touch detection signal according to an embodiment of the present application.
  • the screens of electronic devices are designed to be thinner and thinner, in order to reduce the thickness of the electronic device, or to allow more space in the electronic device to accommodate other internal components within the same thickness.
  • the conversion of the type of the screen from a liquid crystal display (LCD) to an organic light emitting diode (Organic Light Emitting Diode, OLED) display is a typical trend.
  • OLED Organic Light Emitting Diode
  • the basic capacitance of the touch electrodes in the touch layer of the screen increases, and the noise coupled from the display layer to the touch layer increases, which directly affects the performance and sensitivity of touch detection. .
  • Figure 1 shows a schematic diagram of the screen module.
  • the touch layer and the display layer in the screen module are usually two independent and separate systems. In theory, there may be no or little interference between them. However, as today's screens are getting thinner and thinner, the touch electrodes in the touch layer are closer to the system ground, so that the self-capacitance of the touch electrodes to the system ground has increased from about 100pF before to about 500pF now. As a result, the interaction between the touch layer and the display layer cannot be ignored.
  • the signal generated by the display driver chip is transmitted to the display layer of the screen module, and is coupled to the system ground between the touch layer and the display layer through the parasitic capacitance CD of the trace, and then passes through the touch layer.
  • the ground capacitances C sg and C dg of the touch electrodes are coupled to the touch layer, so that display layer noise is formed on the touch layer, and finally coupled to the touch chip, thereby affecting the performance of touch detection.
  • the display driving chip generates a line synchronization signal (referred to as Hsync signal) as a clock to update pixel data (or called display data) of pixels in each row of the display layer. Since the basic capacitance of the touch electrodes of the touch layer becomes larger, when the pixel data of each row of pixels is refreshed, the signal input to the display layer will be coupled from the common cathode between the touch layer and the display layer to the touch electrodes of the touch layer. , and ultimately affect touch detection. That is, there is synchronization between the display layer noise coupled from the display layer to the touch layer and the Hsync signal of the display layer.
  • Hsync signal a line synchronization signal
  • FIG. 2 shows the relationship among the line synchronization signal, the pixel data, the noise of the display layer, and the touch detection signal (hereinafter also referred to as the detection signal for short).
  • the display driver chip uses the Hsync signal as the clock to update the pixel data (or display data) of each row of pixels in the display layer, and the display layer noise is generated when the pixel data is refreshed, so the display layer noise is synchronized with the Hsync signal .
  • the touch coding signal (also referred to as coding signal or driving signal) output during touch detection can be synchronized with the Hsync signal, so that the The detection signal is also synchronized with the Hsync signal, that is, a constant phase difference is maintained, thereby reducing the interference of display layer noise on touch detection to a certain extent.
  • the detection signal is acquired during the low noise period in the line scanning period, and the detection signal is synchronized with the Hsync signal. Based on the detection signal, the user's touch information, such as touch position, touch pressure, etc., can be obtained.
  • the touch coding signal described in the embodiments of the present application refers to the coding signal output by the touch control chip during the touch detection, including the coding signal input to the touch layer; it also includes the output during the touch detection.
  • the display driver chip generates the Hsync signal through the internal RC oscillator circuit. Because the clock of the RC oscillator circuit itself has poor precision and large temperature drift, the generated Hsync signal has jitter, which is manifested in that the line scanning period of the Hsync signal may change slightly, so the display layer noise coupled to the touch layer There is also jitter. When an edge of a certain Hsync signal triggers the sampling circuit in the touch chip to collect the detection signal, the jitter of the line scan period will be transferred from one line scan period to the next line scan period in the time domain and superimposed. The longer the continuous sampling time, the greater the jitter of the collected detection signal.
  • the detection signal When the noise of the display layer coupled from the display layer to the touch layer becomes larger, the detection signal still needs to have a certain signal-to-noise ratio. Synchronization, thereby eliminating the interference of display layer noise on touch detection to a certain extent.
  • the detection signal collected by the touch chip is also unstable, and the demodulation result after sampling and demodulating the detection signal is also unstable.
  • the tuning result jitters within a certain range. In this way, the instability of the line scanning period will bring additional noise to the touch detection, which affects the result of the touch detection.
  • one line synchronization scanning period of the Hsync signal is ideally stable without jitter.
  • the jitter value of the line scanning period in practical applications is ⁇ 10ns, as shown in the first row of FIG. 3 .
  • the sampling circuit in the touch chip is triggered by the rising edge of a certain Hsync signal, and continuously samples the detection signal of 1ms, as shown in the second row of FIG. 3 .
  • the line scanning period is stable, and the sampling circuit samples the detection signal for a total of 100 periods, as shown in the third row of FIG. 3 .
  • the actual sampling period of the sampling circuit is 99.9 to 100.1.
  • the sampling data collected by the sampling circuit is first subjected to quadrature demodulation (also called IQ demodulation or quadrature IQ demodulation) to obtain the demodulation result of the detection signal, and then sent to the The processor performs the calculation of touch coordinates.
  • the last row of FIG. 3 shows the sine signal (Sin signal) used to demodulate the sampled data. Since the cosine signal (Cos signal) and the sine signal are processed in the same way in the embodiment of the present application, the sine signal is used as an example below. describe. In this case, the detection signal has jitter in the time domain but the sinusoidal signal used for quadrature demodulation does not have jitter in the time domain.
  • the demodulation result is also jittered, which is embodied in the jitter of the signal amplitude obtained by demodulation.
  • the jitter of the demodulation result is the noise superimposed on the valid signal.
  • the noise floor of the circuit system is ignored, and it is assumed that no external object touches the touch electrodes to change the amplitude of the detection signal.
  • the present application proposes a solution for processing the detection signal, which can reduce the influence of the Hsync signal of the display layer on the touch detection result and improve the signal-to-noise ratio of the touch detection system .
  • a detailed description will be given below with reference to FIGS. 4 to 11 .
  • FIG. 4 is a schematic block diagram of a touch control chip according to an embodiment of the present application.
  • the touch chip 400 includes a driving circuit 410 , a detection circuit 420 , a sampling circuit 430 and a demodulation circuit 440 .
  • the driving circuit 410 is used for outputting a coding signal to the touch layer of the screen according to the line scanning period of the line synchronization signal of the display layer of the screen.
  • the detection circuit 420 is configured to receive the detection signal output by the touch layer.
  • the sampling circuit 430 is configured to sample the detection signal according to the line scanning period to obtain sampled data.
  • the line scanning period varies, but the number of sampling points in different line scanning periods is equal to a preset value.
  • the demodulation circuit 440 is configured to perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
  • the demodulation result mentioned here refers to the signal amplitude of the detection signal obtained by demodulating the detection signal.
  • the driving circuit 410 outputs the coding signal and the detection circuit 420 receives the corresponding detection signal, which may be performed synchronously.
  • the detection circuit 420 receives the detection signal output from the touch layer.
  • the detection signal carries the user's touch information, such as the capacitance change of the touch electrode caused by the user's touch. After subsequent processing of the detection signal, the user's touch information can be obtained.
  • the line scanning period described here is varied, which means that the line scanning period or the line scanning signal has jitter in the time domain. That is, the output of the line synchronization signal of the display layer is unstable in the time domain, or the line scanning period is unstable in the time domain.
  • the line scanning period is stable in the time domain, and the length of each line scanning period is 10us; and when the line scanning period is unstable in the time domain, its length is 10us ⁇ 10ns, and there is a range of 10ns Vibration within.
  • the number of sampling points corresponding to the sampled data in different line scanning periods may be the same or different.
  • the touch detection signal is based on the touch detection signal.
  • the demodulation result obtained from the sampled data is stable, which reduces the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, reduces the noise in the detection result, and improves the The signal-to-noise ratio of the touch detection system.
  • the number of sampling points in each line scan period is a preset value
  • the preset value is, for example, an integer less than or equal to F1/F2, where F1 is the sampling frequency used for sampling the detection signal , F2 is the frequency of the line synchronization signal or the detection signal.
  • the preset value is the largest integer less than or equal to F1/F2.
  • the sampling circuit 430 may be, for example, an ADC circuit, and the sampling circuit 430 acquires data on each sampling point of the detection signal according to a certain sampling frequency based on the sampling clock. As shown in FIG. 5 , when a certain line synchronization signal is triggered, the sampling circuit 430 will perform continuous sampling for a period of time. Based on the foregoing description, it can be known that when the continuous sampling time is long, the jitter of the line scanning period will be transmitted in turn, so that The detection signal in the next few line scanning periods has obvious jitter in the time domain, which causes the result after quadrature demodulation to follow the jitter.
  • the detection signal is sampled according to a certain sampling frequency.
  • the detection signal in each line scanning period is sampled.
  • the number of sampling points is constantly changing. Since the quadrature demodulated sine signal and cosine signal are generated at a fixed frequency in each sampling length, the jitter of the line scanning period makes the sine signal and cosine signal also jitter relative to the sampled data, so based on the sine signal and cosine
  • the demodulation result obtained after the signal is subjected to quadrature demodulation also follows the jitter. For the valid signal in the detection result, the jitter of the demodulation result is noise.
  • the demodulation result obtained based on the sampling data of the touch detection signal is It is stable, thereby reducing the influence of the line synchronization signal on the touch detection.
  • the sampling circuit 430 samples the detection signal within the line scanning period from the time of the rising edge of the line synchronization signal within the line scanning period.
  • the line scanning period described in the embodiments of the present application takes the period between the rising edges of the pulses of two adjacent line synchronization signals as a line scanning period as an example, as shown in FIG. From the time of the rising edge of the horizontal synchronization signal in the cycle, the detection signal in the horizontal scanning cycle is sampled.
  • the time period of the falling edge of the line synchronization signal in the previous line scanning period can be The detection signal in the line scan period is sampled.
  • This embodiment of the present application does not limit how to divide the line scan period, and the sampling circuit 430 starts sampling the detection signal in the line scan period from the start time of the line scan period.
  • the detection signal is sampled according to the fixed number of sampling points in each line scan period based on the sampling clock 1 , that is, the number of sampling points in each line scanning period is equal to the preset value.
  • the total sampling time does not exceed the duration of a single line scan period, and no sampling is performed if the clock length is less than one sampling point.
  • sampling clock 1 based on the sampling clock 1, sampling starts at the rising edge of the line synchronization signal in each line scan period, and 6 sampling points are sampled in each line scan period according to the sampling frequency until the specified sampling time is reached.
  • the data collected by the sampling circuit 430 is stable. Since each sampling period is synchronized with the line scanning period, the jitter of the detection signal caused by the jitter of the line scanning period is eliminated. In addition, since the sampling time in each line scanning period is less than the duration of the line scanning period, the influence of the jitter of the line scanning period on the detection signal is eliminated, and the influence of the jitter of the line scanning period on the touch detection performance is eliminated.
  • sampling clock 0 in Figure 5 The data obtained based on sampling clock 0 in Figure 5 is the detection signal itself, which can be directly used for subsequent orthogonal demodulation and coordinate calculation; while the data sampled based on sampling clock 1 needs to be further processed before it can be used for subsequent orthogonal solutions. Harmonic Coordinate Calculation.
  • the sampling circuit 430 splices the sampling data obtained in multiple line scanning periods.
  • the demodulation circuit 440 performs quadrature demodulation according to the spliced sample data.
  • the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is the sampling frequency for sampling the detection signal.
  • the collected signal frequency is also 300KHz.
  • the frequencies of the sine signal and the cosine signal used in the subsequent quadrature demodulation are also 300KHz, as shown in FIG. 6 .
  • the signals collected in multiple line scanning periods need to be spliced end to end to form a new signal, followed by quadrature demodulation and the like.
  • the number of sampling points sampled in each line scan cycle based on the sampling clock 1 is 6, and the data collected in each line scan cycle is spliced to obtain the sampling clock shown by the sampling clock 1 ′ and Sampling data 1 that matches this sampling clock.
  • touch detection such as capacitance detection of a finger or an active pen
  • it usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the process of canceling the basic capacitance of the touch electrode.
  • These processes can finally obtain the capacitance change of the touch electrode's capacitance relative to its base capacitance caused by the touch of a finger or an active pen. According to the capacitance change, the touch information of the finger or the active pen can be obtained.
  • the sampling circuit 430 can only collect valid data corresponding to the charge transfer process. Data within the time interval, thereby improving the efficiency of data collection.
  • the improvement of the efficiency of data collection mentioned here refers to using as few sampling points as possible to obtain the signal variation on the touch electrodes, saving the sampling power consumption and the sampling time of the line scanning period, on the other hand, it refers to the touch
  • the corresponding signal change amount on the touch electrode obtained based on the new sampling data formed by splicing the sampling data in the valid time interval is larger.
  • the valid time interval is a time interval in which the amplitude of the detection signal changes when there is a touch signal. That is to say, when the capacitance of the touch electrode changes due to the touch of the finger or the active pen, the interval in which the amplitude of the detection signal changes correspondingly is the valid time interval.
  • the amplitude change mentioned here may mean that the amount of change in the amplitude is greater than 0 or exceeds a certain threshold.
  • the sampling circuit 430 may only sample the detection signal within the valid time interval of the line scanning period.
  • time T0 is an effective time interval. Since the amplitude of the detection signal within the valid time interval will change significantly, the sampling circuit 430 samples the detection signal within the time T0. During the other time periods ⁇ t1 and ⁇ t2, the sampling circuit 430 can also sample, but the collected signals only include the circuit noise floor and other interference signals. In theory, after touching the touch electrodes, within ⁇ t1 and ⁇ t2 The amplitude of the detected signal is basically unchanged.
  • the initial delay of the sampling triggered by the horizontal synchronization signal of a certain horizontal scanning period that is, the trigger signal 2 can be adjusted, so that sampling is only performed within the valid time interval. It can be seen that by adjusting the initial delay of trigger sampling and the number of sampling points, so that only data of a fixed number of sampling points is collected within the valid time interval of the detection signal, the influence of the jitter of the line scanning period on the touch detection can be avoided.
  • the sampling circuit 430 can also splicing the sampling data obtained in the valid time interval of multiple line scanning periods.
  • the demodulation circuit 440 performs quadrature demodulation according to the spliced sample data.
  • the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each valid time interval and 1/F1, and F1 is the sampling frequency for sampling the detection signal in the valid time interval.
  • the data collected in the valid time interval of each line scanning period is spliced to obtain the sample clock 2' as shown in The sampling clock and the sampling data 2 corresponding to the sampling clock.
  • the signal frequency formed by splicing the sampled data in the valid time interval of each line scanning period is 666.67KHz.
  • the frequencies of the sine and cosine signals used for quadrature demodulation need to be adjusted accordingly.
  • the number of sampling points in each line scan period of the sampling clock 2 is reduced, the resulting signal period is shortened, and the effective time interval and the touch electrodes are touched.
  • the amplitude of the detection signal in the effective time interval before and after remains unchanged, which is equivalent to increasing the proportion of the effective signal in the entire period. Therefore, the amplitude of the signal before and after the touch obtained after demodulation changes more.
  • the sampling points can be supplemented in the time period when no data is collected in each line scan period, and the data corresponding to the supplemented sampling points can be set as fixed value, for example set to 0.
  • the sampling circuit 430 may At the same frequency as the sampling frequency of , in each line scan period except the valid time interval in the inactive time interval, fill 0 as the sampling data in the inactive time interval.
  • sampling clock 3' fill 0 in the non-valid time interval of each line scan period as the sampling data in the non-valid time interval, and based on the data collected by the sampling clock 2 in the valid time interval of each line scan period.
  • a sampling clock shown as sampling clock 3' and sampling data 3 conforming to the sampling clock are obtained.
  • sampling data obtained based on sampling clock 3' in the non-valid time interval is 0, indicating that there is no noise, thereby reducing the proportion of noise in the entire cycle, reducing the noise floor of the detection signal.
  • the sampling data obtained based on the sampling clock 1 in the inactive time represents the noise floor of the system, and may also include interference signals of the display layer and other alien crosstalk signals coupled to the system.
  • the final detection result can be closer to the actual detection signal frequency.
  • the sampling clock of the sampling circuit 430 is synchronized with the clock of the line synchronization signal, and each line scanning period always includes an integer number of sampling points, by filling the unsampled time period with sampling data 0, it is possible to The frequency of the processed detection signal is restored to the frequency of the original detection signal.
  • the sampling clock of the touch chip 430 it is difficult for the sampling clock of the touch chip 430 to be specifically synchronized with the display driver chip, so that the main clocks of the two are completely consistent, and it is difficult to include exactly an integer number of sampling points in one line scan period. Only in some special applications, such as the touch display driver integration (Touch Display Driver Integration, TDDI) technology, since the touch chip and the display driver chip are integrated together, the processed The frequency of the detection signal is restored to the frequency of the original detection signal.
  • TDDI Touch Display Driver Integration
  • Table 1 shows the touch detection results obtained when the detection signal processing method according to the embodiment of the present application is adopted. Assuming that the touch detection time is 500us, the touch detection is self-capacitance detection. As shown in Table 1, when the solution of the present application is not adopted, the signal-to-noise ratio (SNR) of the detection results are 7.69, 4.2 and 2.82 respectively when the test images are low-noise, medium-noise and high-noise respectively; In the solution of the present application, when the test images are low-noise, medium-noise and high-noise respectively, the signal-to-noise ratios of the detection results are 9.84, 5.92 and 4.83 respectively. Therefore, using the solutions of the embodiments of the present application, the performance of touch detection can be improved to 1.28, 1.41, and 1.71 times the original in low-noise, medium-noise, and high-noise scenarios, respectively.
  • SNR signal-to-noise ratio
  • the signal processing method of the present application can effectively reduce the influence of the jitter of the line scanning period on the detection result, and improve the signal-to-noise ratio of the touch detection system.
  • Table 2 shows the influence of the number of sampling points on the result of touch detection. It is assumed that the test picture is a high-noise picture, the touch detection is self-capacitance detection, and the sampling clock is set in the valid time interval, that is, the time period during which the amplitude of the detection signal changes before and after the touch. It can be seen from Table 2 that the less the number of sampling points in each line scan period, the closer the sampling position is to the moment when the signal amplitude changes the most, the greater the change in the voltage of the detection signal obtained before and after the touch electrode is touched. However, the smaller the number of sampling points, the closer the sampling position is to the moment when the signal amplitude changes the most, and the larger the noise signal.
  • the present application eliminates or weakens the influence of the jitter of the line scanning period on the detection result from the perspective of signal sampling.
  • the line scanning period jitter causes the line scanning period later in the sampling time to have obvious left and right jitter in the time domain, which causes the signal amplitude of the back-end digital demodulation to change.
  • the amplitude of this change is noise for the effective signal. That is, the jitter of the line scan period will bring additional noise to the touch detection.
  • using the solution of the present application eliminates or weakens the extra noise caused by the jitter of the line scanning period to the touch detection system.
  • the present application also provides a method for processing a touch detection signal. As shown in FIG. 11 , the method 1100 may be performed by the above-mentioned touch control chip 600 . The method 1100 includes some or all of the following steps.
  • step 1110 according to the line scanning period of the line synchronization signal of the display layer of the screen, a coding signal is output to the touch layer of the screen, and a detection signal output by the touch layer is received.
  • step 1120 the detection signal is sampled according to the line scan period to obtain sample data, wherein the line scan period is variable, and the number of sampling points in different line scan periods is a preset value.
  • step 1130 quadrature demodulation is performed according to the sampled data to obtain a demodulation result of the detection signal.
  • the sampling the detection signal includes: starting from the time of the rising edge of the line synchronization signal in the line scanning period, sampling the detection signal within the line scanning period The detection signal is sampled.
  • the preset value is an integer less than or equal to F1/F2, where F1 is the sampling frequency for sampling the detection signal, and F2 is the line scan signal. or the frequency of the detection signal.
  • the preset value is the largest integer less than or equal to F1/F2.
  • the sampling the detection signal includes: sampling the detection signal within a valid time interval of the line scan period, wherein the valid time interval is The time interval during which the amplitude of the detection signal changes when there is a touch signal.
  • the method further includes: according to the same frequency as the sampling frequency in the valid time interval, in each line scanning period except the valid time interval In the non-valid time interval, a fixed value is filled as the sampled data in the non-valid time interval.
  • the method further includes: splicing the sampled data obtained in multiple line scanning periods; wherein the performing orthogonal demodulation according to the sampled data includes: Perform quadrature demodulation according to the spliced sampling data, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, and F1 is the The sampling frequency for sampling the detection signal.
  • the embodiment of the present application further provides an electronic device, the electronic device includes: a screen; and the touch chip in the above-mentioned various embodiments of the present application.
  • the electronic device in the embodiments of the present application may be a portable or mobile computing device such as a terminal device, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a game device, a vehicle-mounted electronic device, or a wearable smart device, and Electronic databases, automobiles, bank ATMs (Automated Teller Machine, ATM) and other electronic devices.
  • the wearable smart device includes full functions, large size, and can realize complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as various types of smart bracelets, smart jewelry and other equipment for physical monitoring.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

Provided are a touch-control chip, a processing method for a touch-control detection signal, and an electronic device, which can reduce the impact of the jitter, in a time domain, of a line synchronization signal of a display layer on the touch-control detection of a touch-control layer, and can improve the signal-to-noise ratio of a touch-control detection system. The touch-control chip comprises a driving circuit for outputting a coding signal to a touch-control layer of a screen according to a line scanning cycle of a line synchronization signal of a display layer of the screen; a detection circuit for receiving a detection signal output by the touch-control layer; a sampling circuit for sampling the detection signal to obtain sampling data, wherein the line scanning cycle is variable, and the number of sampling points in different line scanning cycles is a preset value; and a demodulation circuit for performing quadrature demodulation according to the sampling data, so as to obtain a demodulation result of the detection signal.

Description

触控芯片、触控检测信号的处理方法和电子设备Touch chip, touch detection signal processing method and electronic device 技术领域technical field
本申请实施例涉及信息技术领域,并且更具体地,涉及一种触控芯片、触控检测信号的处理方法和电子设备。The embodiments of the present application relate to the field of information technology, and more particularly, to a touch control chip, a method for processing a touch detection signal, and an electronic device.
背景技术Background technique
随着电子设备的屏幕越来越薄,屏幕中的触控层与显示层之间的距离越来越近,显示层和触控层之间存在相互影响,因此可以使触控芯片获取的触控检测信号与显示层的行同步信号的行扫描周期之间同步,以降低显示层对触控层的噪声影响。但是,当显示层的行同步信号的行扫描周期不稳定时,触控芯片采集到的相应的触控检测信号也就不稳定,对触控检测信号进行采样和解调后得到的解调结果中就包括额外的噪声。这样,显示层的行同步信号的不稳定,就给触控层的触控检测带来了额外的噪声,降低了触控检测系统的信噪比,影响触控检测的结果。As the screen of electronic equipment becomes thinner and thinner, the distance between the touch layer and the display layer in the screen is getting closer and closer, and there is mutual influence between the display layer and the touch layer. The control detection signal is synchronized with the line scan period of the line synchronization signal of the display layer, so as to reduce the noise influence of the display layer on the touch layer. However, when the line scanning period of the line synchronization signal of the display layer is unstable, the corresponding touch detection signal collected by the touch chip is also unstable, and the demodulation result obtained after sampling and demodulating the touch detection signal includes additional noise. In this way, the instability of the line synchronization signal of the display layer brings additional noise to the touch detection of the touch layer, reduces the signal-to-noise ratio of the touch detection system, and affects the result of the touch detection.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种触控芯片、触控检测信号的处理方法和电子设备,能够降低显示层的行同步信号在时域上的抖动对触控层的触控检测的影响,提高触控检测系统的信噪比。Embodiments of the present application provide a touch chip, a method for processing a touch detection signal, and an electronic device, which can reduce the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and improve the touch control performance. The signal-to-noise ratio of the detection system.
第一方面,提供了一种触控芯片,包括:In a first aspect, a touch control chip is provided, including:
驱动电路,用于根据屏幕的显示层的行同步信号的行扫描周期,向所述屏幕的触控层输出打码信号;a driving circuit for outputting a coding signal to the touch layer of the screen according to the line scanning period of the line synchronization signal of the display layer of the screen;
检测电路,用于接收所述触控层输出的检测信号;a detection circuit for receiving the detection signal output by the touch control layer;
采样电路,用于根据所述行扫描周期,对所述检测信号进行采样,得到采样数据,其中,所述行扫描周期是变化的,不同行扫描周期内的采样点数量均为预设值;以及,a sampling circuit, configured to sample the detection signal according to the line scan period to obtain sampled data, wherein the line scan period varies, and the number of sampling points in different line scan periods is a preset value; as well as,
解调电路,用于根据所述采样数据进行正交解调,得到所述检测信号的解调结果。and a demodulation circuit, configured to perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
基于上述技术方案,当显示层的行同步信号的行扫描周期不稳定时,由于在不同行扫描周期内按照相同采样点数对各个行扫描周期内采集到的触 控检测信号进行采样,因此基于触控检测信号的采样数据所得到的解调结果也就是稳定的,降低了显示层的行同步信号在时域上的抖动对触控层的触控检测的影响,减小了检测结果中的噪声,提高了触控检测系统的信噪比。Based on the above technical solution, when the line scanning period of the line synchronization signal of the display layer is unstable, since the touch detection signals collected in each line scanning period are sampled according to the same number of sampling points in different line scanning periods, the touch detection signal collected in each line scanning period is sampled. The demodulation result obtained from the sampling data of the control detection signal is also stable, which reduces the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and reduces the noise in the detection result. , which improves the signal-to-noise ratio of the touch detection system.
在一种可能的实现方式中,所述采样电路具体用于:从所述行扫描周期内的所述行同步信号的上升沿的时刻起,对所述行扫描周期内的所述检测信号进行采样。In a possible implementation manner, the sampling circuit is specifically configured to: from the time of the rising edge of the line synchronization signal in the line scanning period, perform the detection on the detection signal in the line scanning period sampling.
在一种可能的实现方式中,所述预设值为小于或者等于F1/F2的整数,其中,F1为用于对所述检测信号进行采样的采样频率,F2为所述行扫描信号的或者所述检测信号的频率。In a possible implementation manner, the preset value is an integer less than or equal to F1/F2, where F1 is a sampling frequency used for sampling the detection signal, and F2 is an or the frequency of the detection signal.
在一种可能的实现方式中,所述预设值为小于或者等于F1/F2的最大整数。In a possible implementation manner, the preset value is the largest integer less than or equal to F1/F2.
在一种可能的实现方式中,所述采样电路具体用于:对所述行扫描周期的有效时间区间内的所述检测信号进行采样,其中,所述有效时间区间为有触摸信号时所述检测信号的幅值发生变化的时间区间。In a possible implementation manner, the sampling circuit is specifically configured to: sample the detection signal within a valid time interval of the line scan period, wherein the valid time interval is the detection signal when there is a touch signal The time interval during which the amplitude of the detection signal changes.
由于触控检测例如对手指或笔的电容检测而言,通常包括向触控层中的触控电极充放电的过程、抵消触控电极的基础电容的过程、以及将抵消基础电容后的触控电极上的电荷量进行转移的过程。而只有在电荷转移的过程中,采样电路采集到的数据才反映了触控电极上的触摸情况,因此,在行扫描周期内,采样电路可以仅采集与该电荷转移过程对应的有效时间区间内的数据,从而提高数据采集的效率。Because touch detection, such as capacitance detection of a finger or a pen, usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the touch after canceling the basic capacitance. The process of transferring the amount of charge on the electrode. However, only in the process of charge transfer, the data collected by the sampling circuit reflects the touch condition on the touch electrodes. Therefore, in the line scan period, the sampling circuit can only collect the valid time interval corresponding to the charge transfer process. data, thereby improving the efficiency of data collection.
在一种可能的实现方式中,所述采样电路还用于:按照与所述有效时间区间内的采样频率相同的频率,在所述行扫描周期内除所述有效时间区间之外的非有效时间区间内,填充固定值作为所述非有效时间区间内的采样数据。In a possible implementation manner, the sampling circuit is further configured to: according to the same frequency as the sampling frequency in the effective time interval, in the line scanning period other than the effective time interval, inactive In the time interval, a fixed value is filled as the sampling data in the non-valid time interval.
可以在非有效时间区间内填充固定值例如0作为采样数据,因此非有效时间区间内没有噪声,从而降低了整个周期内的噪声的占比,相当于消除了检测信号中的底噪。A fixed value such as 0 can be filled in the non-valid time interval as sampling data, so there is no noise in the non-valid time interval, thereby reducing the proportion of noise in the entire cycle, which is equivalent to eliminating the noise floor in the detection signal.
在一种可能的实现方式中,所述采样电路还用于:对多个行扫描周期内得到的所述采样数据进行拼接;其中,所述解调电路具体用于:根据拼接后的采样数据进行正交解调,其中,所述拼接后的采样数据的采样周期等于每个行扫描周期内的所述采样点数量与1/F1的乘积,F1为用于对所述检测信号进行采样的采样频率。In a possible implementation manner, the sampling circuit is further configured to: splicing the sampled data obtained in multiple line scanning periods; wherein the demodulation circuit is specifically configured to: according to the spliced sampling data Perform quadrature demodulation, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is used for sampling the detection signal. Sampling frequency.
在对采样数据进行处理时,需要将每个周期内按照预设的采样点数进行采样得到的数据进行拼接。When processing the sampled data, it is necessary to splicing the data obtained by sampling according to the preset number of sampling points in each cycle.
第二方面,提供了一种触控检测信号的处理方法,包括:In a second aspect, a method for processing a touch detection signal is provided, including:
根据屏幕的显示层的行同步信号的行扫描周期,向所述屏幕的触控层输出打码信号,并接收所述触控层输出的检测信号;outputting a coding signal to the touch layer of the screen according to the line scan period of the line synchronization signal of the display layer of the screen, and receiving the detection signal output by the touch layer;
根据所述行扫描周期,对所述检测信号进行采样,得到采样数据,其中,所述行扫描周期是变化的,不同行扫描周期内的采样点数量均为预设值;According to the line scanning period, the detection signal is sampled to obtain sampled data, wherein the line scanning period varies, and the number of sampling points in different line scanning periods is a preset value;
根据所述采样数据进行正交解调,得到所述检测信号的解调结果。Perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
基于上述技术方案,由于在不同行扫描周期内按照相同的采样点数对各个行扫描周期内采集到的检测信号进行采样,因此基于行扫描周期内的检测信号的采样数据,所得到的解调结果也就是稳定的,从而降低了显示层的行同步信号在时域上的抖动对触控层的触控检测的噪声影响,提高了触控检测系统的信噪比。Based on the above technical solution, since the detection signals collected in each line scanning period are sampled according to the same number of sampling points in different line scanning periods, the demodulation result obtained based on the sampling data of the detection signals in the line scanning period is obtained. That is, it is stable, thereby reducing the noise impact of the jitter of the horizontal synchronization signal of the display layer in the time domain on the touch detection of the touch layer, and improving the signal-to-noise ratio of the touch detection system.
在一种可能的实现方式中,所述对所述检测信号进行采样,包括:从所述行扫描周期内的所述行同步信号的上升沿的时刻起,对所述行扫描周期内的所述检测信号进行采样。In a possible implementation manner, the sampling of the detection signal includes: starting from the time of the rising edge of the line synchronization signal in the line scan period, sampling all the lines in the line scan period The detection signal is sampled.
在一种可能的实现方式中,所述预设值为小于或者等于F1/F2的整数,其中,F1为用于对所述检测信号进行采样的采样频率,F2为所述行扫描信号的或者所述检测信号的频率。In a possible implementation manner, the preset value is an integer less than or equal to F1/F2, where F1 is a sampling frequency used for sampling the detection signal, and F2 is an or the frequency of the detection signal.
在一种可能的实现方式中,所述预设值为小于或者等于F1/F2的最大整数。In a possible implementation manner, the preset value is the largest integer less than or equal to F1/F2.
在一种可能的实现方式中,所述对所述检测信号进行采样,包括:对所述行扫描周期的有效时间区间内的所述检测信号进行采样,其中,所述有效时间区间为有触摸信号时所述检测信号的幅值发生变化的时间区间。In a possible implementation manner, the sampling the detection signal includes: sampling the detection signal within a valid time interval of the line scan period, wherein the valid time interval is a touch The time interval during which the amplitude of the detection signal changes.
由于触控检测例如对手指或笔的电容检测而言,通常包括向触控层中的触控电极充放电的过程、抵消触控电极的基础电容的过程、以及将抵消基础电容后的触控电极上的电荷量进行转移的过程。而只有在电荷转移的过程中,采样电路采集到的数据才反映了触控电极上的触摸情况,因此,在行扫描周期内,采样电路可以仅采集与该电荷转移过程对应的有效时间区间内的数据,从而提高数据采集的效率。Because touch detection, such as capacitance detection of a finger or a pen, usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the touch after canceling the basic capacitance. The process of transferring the amount of charge on the electrode. However, only in the process of charge transfer, the data collected by the sampling circuit reflects the touch condition on the touch electrodes. Therefore, in the line scan period, the sampling circuit can only collect the valid time interval corresponding to the charge transfer process. data, thereby improving the efficiency of data collection.
在一种可能的实现方式中,所述方法还包括:按照与所述有效时间区间 内的采样频率相同的频率,在所述行扫描周期内除所述有效时间区间之外的非有效时间区间内,填充固定值作为所述非有效时间区间内的采样数据。In a possible implementation manner, the method further includes: according to the same frequency as the sampling frequency in the valid time interval, in the line scanning period, in the non-valid time interval except the valid time interval In the non-valid time interval, a fixed value is filled as the sampled data in the non-valid time interval.
可以在非有效时间区间内填充固定值例如0作为采样数据,因此非有效时间区间内没有噪声,从而降低了整个周期内的噪声的占比,相当于降低了检测信号中的底噪。A fixed value such as 0 can be filled in the non-valid time interval as sampling data, so there is no noise in the non-valid time interval, thereby reducing the proportion of noise in the entire cycle, which is equivalent to reducing the noise floor in the detection signal.
在一种可能的实现方式中,所述方法还包括:对多个行扫描周期内得到的所述采样数据进行拼接;其中,所述根据所述采样数据进行正交解调,包括:根据拼接后的采样数据进行正交解调,其中,所述拼接后的采样数据的采样周期,等于每个行扫描周期内的所述采样点数量与1/F1的乘积,F1为用于对所述检测信号进行采样的采样频率。In a possible implementation manner, the method further includes: splicing the sampled data obtained in multiple line scanning periods; wherein the performing orthogonal demodulation according to the sampled data includes: according to the splicing The obtained sampling data is subjected to quadrature demodulation, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, and F1 is used for the The sampling frequency at which the detection signal is sampled.
第三方面,提供了一种电子设备,包括上述第一方面或者第一方面的任意可能的实现方式中的触控芯片。In a third aspect, an electronic device is provided, including the touch control chip in the first aspect or any possible implementation manner of the first aspect.
附图说明Description of drawings
图1是屏幕模组的示意图。FIG. 1 is a schematic diagram of a screen module.
图2是行同步信号、像素数据、显示层噪声与触控检测信号之间的关系的示意图。FIG. 2 is a schematic diagram of the relationship among the line synchronization signal, pixel data, display layer noise and touch detection signal.
图3是行同步信号的抖动对触控检测信号的影响的示意图。FIG. 3 is a schematic diagram illustrating the influence of the jitter of the horizontal synchronization signal on the touch detection signal.
图4是本申请实施例的触控芯片的示意性框图。FIG. 4 is a schematic block diagram of a touch control chip according to an embodiment of the present application.
图5是基于图4所示的触控芯片的采样时序的示意图。FIG. 5 is a schematic diagram of sampling timing based on the touch chip shown in FIG. 4 .
图6是理想情况下的采样数据的示意图。FIG. 6 is a schematic diagram of sampled data under ideal conditions.
图7是本申请实施例的采样数据拼接的示意图。FIG. 7 is a schematic diagram of sampling data splicing according to an embodiment of the present application.
图8是本申请实施例的有效时间区间的示意图。FIG. 8 is a schematic diagram of a valid time interval of an embodiment of the present application.
图9是本申请实施例的采样数据拼接的示意图。FIG. 9 is a schematic diagram of sampling data splicing according to an embodiment of the present application.
图10是本申请实施例的填充采样数据的示意图。FIG. 10 is a schematic diagram of filling sampling data according to an embodiment of the present application.
图11是本申请实施例的触控检测信号的处理方法的示意性流程图。FIG. 11 is a schematic flowchart of a method for processing a touch detection signal according to an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
如今,电子设备的屏幕被设计的越来越薄,以减小电子设备的厚度,或者在相同厚度下使电子设备中有更多空间容纳其他内部器件。其中,屏幕的 类型从液晶显示器(Liquid Crystal Display,LCD)到有机发光二极管(Organic Light Emitting Diode,OLED)显示器的转换就是一种典型趋势。然而,OLED屏幕变薄以后,屏幕的触控层中的触控电极的基础电容变大,并且使得从显示层中耦合至触控层的噪声变大,直接影响了触控检测的性能和灵敏度。Nowadays, the screens of electronic devices are designed to be thinner and thinner, in order to reduce the thickness of the electronic device, or to allow more space in the electronic device to accommodate other internal components within the same thickness. Among them, the conversion of the type of the screen from a liquid crystal display (LCD) to an organic light emitting diode (Organic Light Emitting Diode, OLED) display is a typical trend. However, after the OLED screen becomes thinner, the basic capacitance of the touch electrodes in the touch layer of the screen increases, and the noise coupled from the display layer to the touch layer increases, which directly affects the performance and sensitivity of touch detection. .
图1所示为屏幕模组的示意图,屏幕模组中的触控层和显示层通常是两套独立且分离的系统,理论上,它们相互之间可能不存在干扰或者干扰较小。但是,由于如今的屏幕越来越薄,触控层中的触控电极相对于系统地的距离更近,使得触控电极对系统地的自电容从以前的100pF左右提升至现在的500pF左右,导致触控层和显示层之间的相互影响无法被忽略。Figure 1 shows a schematic diagram of the screen module. The touch layer and the display layer in the screen module are usually two independent and separate systems. In theory, there may be no or little interference between them. However, as today's screens are getting thinner and thinner, the touch electrodes in the touch layer are closer to the system ground, so that the self-capacitance of the touch electrodes to the system ground has increased from about 100pF before to about 500pF now. As a result, the interaction between the touch layer and the display layer cannot be ignored.
如图1所示,显示驱动芯片产生的信号传输至屏幕模组的显示层,并通过走线的寄生电容C D耦合到触控层和显示层之间的系统地,再通过触控层中的触控电极的对地电容C sg和C dg耦合到触控层,从而使触控层上形成显示层噪声,并最终耦合到触控芯片,从而影响了触控检测的性能。 As shown in Figure 1, the signal generated by the display driver chip is transmitted to the display layer of the screen module, and is coupled to the system ground between the touch layer and the display layer through the parasitic capacitance CD of the trace, and then passes through the touch layer. The ground capacitances C sg and C dg of the touch electrodes are coupled to the touch layer, so that display layer noise is formed on the touch layer, and finally coupled to the touch chip, thereby affecting the performance of touch detection.
显示驱动芯片产生行同步信号(记作Hsync信号)作为时钟,更新显示层的每行像素的像素数据(或称为显示数据)。由于触控层的触控电极的基础电容变大,每行像素的像素数据刷新时,输入显示层的信号会从触控层和显示层之间的公共阴极耦合到触控层的触控电极,并最终影响触控检测。也就是说,从显示层耦合到触控层的显示层噪声与显示层的Hsync信号之间同步。The display driving chip generates a line synchronization signal (referred to as Hsync signal) as a clock to update pixel data (or called display data) of pixels in each row of the display layer. Since the basic capacitance of the touch electrodes of the touch layer becomes larger, when the pixel data of each row of pixels is refreshed, the signal input to the display layer will be coupled from the common cathode between the touch layer and the display layer to the touch electrodes of the touch layer. , and ultimately affect touch detection. That is, there is synchronization between the display layer noise coupled from the display layer to the touch layer and the Hsync signal of the display layer.
图2示出了行同步信号、像素数据、显示层噪声以及触控检测信号(以下也简称为检测信号)之间的关系。如图2所示,显示驱动芯片以Hsync信号为时钟更新显示层的各行像素的像素数据(或称为显示数据),而显示层噪声产生于像素数据刷新时,因此显示层噪声与Hsync信号同步。为了解决显示层噪声对触控层的触控检测造成的影响,可以使触控检测时输出的触控打码信号(也简称打码信号或者驱动信号)与Hsync信号之间同步,最终使得到的检测信号也与Hsync信号之间同步,即保持恒定的相位差,从而在一定程度上削弱显示层噪声对触控检测的干扰。例如图2所示,在行扫描周期内的低噪声时段获取检测信号,该检测信号与Hsync信号之间同步。基于该检测信号,就可以获得用户的触摸信息例如触摸位置、触摸压力等。FIG. 2 shows the relationship among the line synchronization signal, the pixel data, the noise of the display layer, and the touch detection signal (hereinafter also referred to as the detection signal for short). As shown in Figure 2, the display driver chip uses the Hsync signal as the clock to update the pixel data (or display data) of each row of pixels in the display layer, and the display layer noise is generated when the pixel data is refreshed, so the display layer noise is synchronized with the Hsync signal . In order to solve the influence of display layer noise on the touch detection of the touch layer, the touch coding signal (also referred to as coding signal or driving signal) output during touch detection can be synchronized with the Hsync signal, so that the The detection signal is also synchronized with the Hsync signal, that is, a constant phase difference is maintained, thereby reducing the interference of display layer noise on touch detection to a certain extent. For example, as shown in FIG. 2 , the detection signal is acquired during the low noise period in the line scanning period, and the detection signal is synchronized with the Hsync signal. Based on the detection signal, the user's touch information, such as touch position, touch pressure, etc., can be obtained.
应理解,本申请实施例中所述的触控打码信号,指触控芯片在触控检测期间输出的打码信号,包括输入至触控层的打码信号;也包括触控检测期间 输出的用于对触控检测中其他电路进行控制的控制信号,例如触发采样电路对检测信号进行采样的触发信号等。It should be understood that the touch coding signal described in the embodiments of the present application refers to the coding signal output by the touch control chip during the touch detection, including the coding signal input to the touch layer; it also includes the output during the touch detection. The control signal used to control other circuits in the touch detection, such as the trigger signal that triggers the sampling circuit to sample the detection signal, etc.
显示驱动芯片通过内部RC振荡电路产生Hsync信号。由于RC振荡电路的时钟本身精度较差且温漂较大,因此产生的Hsync信号存在抖动,具体表现为Hsync信号的行扫描周期可能发生微弱的变化,因此耦合到触控层中的显示层噪声也存在抖动。当以某个Hsync信号的边沿触发触控芯片中的采样电路采集检测信号时,行扫描周期的抖动会在时域上从一个行扫描周期传递到下一个行扫描周期并进行叠加。连续采样的时间越长,采集到的检测信号的抖动就越大。The display driver chip generates the Hsync signal through the internal RC oscillator circuit. Because the clock of the RC oscillator circuit itself has poor precision and large temperature drift, the generated Hsync signal has jitter, which is manifested in that the line scanning period of the Hsync signal may change slightly, so the display layer noise coupled to the touch layer There is also jitter. When an edge of a certain Hsync signal triggers the sampling circuit in the touch chip to collect the detection signal, the jitter of the line scan period will be transferred from one line scan period to the next line scan period in the time domain and superimposed. The longer the continuous sampling time, the greater the jitter of the collected detection signal.
从显示层耦合到触控层中的显示层噪声变大时,检测信号仍需要有一定的信噪比,这时可以将触控芯片输出的打码信号(也称驱动信号等)与Hsync信号同步,从而在一定程度上消除显示层噪声对触控检测的干扰。When the noise of the display layer coupled from the display layer to the touch layer becomes larger, the detection signal still needs to have a certain signal-to-noise ratio. Synchronization, thereby eliminating the interference of display layer noise on touch detection to a certain extent.
但是,当显示层的Hsync信号的行扫描周期不稳定时,触控芯片采集的检测信号也就不稳定,对检测信号进行采样和解调后的解调结果也就不稳定,具体表现为解调结果在一定范围内抖动。这样,行扫描周期的不稳定就会给触控检测带来额外的噪声,影响触控检测的结果。However, when the line scanning period of the Hsync signal of the display layer is unstable, the detection signal collected by the touch chip is also unstable, and the demodulation result after sampling and demodulating the detection signal is also unstable. The tuning result jitters within a certain range. In this way, the instability of the line scanning period will bring additional noise to the touch detection, which affects the result of the touch detection.
例如图3所示,Hsync信号的一个行同步扫描周期在理想情况下是稳定的,不会发生抖动。假设理想情况下的行扫描周期均稳定在10us,实际应用中的行扫描周期的抖动值为±10ns,如图3的第一行所示。触控芯片中的采样电路以某个Hsync信号的上升沿作为触发,连续采样1ms的检测信号,如图3的第二行所示。在理想情况下,行扫描周期是稳定的,采样电路总共采样了100个周期的检测信号,如图3的第三行所示。但是由于行扫描周期在实际应用中存在抖动,因此采样电路实际采样的周期数为99.9~100.1。最后一个行扫描周期相对于采样触发时刻,在时域上的抖动高达±10ns×100=±1us。这样,对于2MHz的采样频率而言,最后一个周期内的检测信号存在1us/(1/2MHz)=±2个采样点的误差。由于行扫描周期的不稳定,可能导致对检测信号少采样或者多采样两个采样点的数据,分别如图3的第4行和第5行所示。For example, as shown in FIG. 3 , one line synchronization scanning period of the Hsync signal is ideally stable without jitter. Assuming that the line scanning period is stable at 10us under ideal conditions, the jitter value of the line scanning period in practical applications is ±10ns, as shown in the first row of FIG. 3 . The sampling circuit in the touch chip is triggered by the rising edge of a certain Hsync signal, and continuously samples the detection signal of 1ms, as shown in the second row of FIG. 3 . In an ideal situation, the line scanning period is stable, and the sampling circuit samples the detection signal for a total of 100 periods, as shown in the third row of FIG. 3 . However, due to the jitter of the line scanning period in practical applications, the actual sampling period of the sampling circuit is 99.9 to 100.1. The jitter in the time domain is as high as ±10ns×100=±1us in the last line scanning period relative to the sampling trigger time. In this way, for the sampling frequency of 2MHz, the detection signal in the last cycle has an error of 1us/(1/2MHz)=±2 sampling points. Due to the instability of the line scanning period, the detection signal may be under-sampled or the data of two sampling points may be over-sampled, as shown in the fourth row and the fifth row of FIG. 3 respectively.
通常,在触控检测中,会将采样电路采集到的采样数据先经过正交解调(也称IQ解调或正交IQ解调),从而得到检测信号的解调结果,之后再发送给处理器进行触摸坐标的计算。图3的最后一行所示是用于对采样数据进 行解调的正弦信号(Sin信号),由于本申请实施例对余弦信号(Cos信号)和正弦信号的处理相同,以下均以正弦信号为例进行描述。在这种情况下,检测信号在时域上存在抖动而用于正交解调的正弦信号在时域上不存在抖动,因此在进行正交解调的过程中,当检测信号与正弦信号和余弦信号点乘后,导致解调结果也发生抖动,具体体现为解调得到的信号幅值的抖动。对于检测信号中的有效信号而言,这种解调结果的抖动就是叠加在有效信号上的噪声。图3中忽略了电路系统的底噪,且假设没有外界物体触摸触控电极而改变检测信号的幅值。在不考虑行扫描周期的抖动时,解调结果只有一个;在考虑行扫描周期的抖动时,解调结果就会在一定范围内抖动,对于检测信号中的有效信号而言,解调结果的抖动就是噪声。Usually, in touch detection, the sampling data collected by the sampling circuit is first subjected to quadrature demodulation (also called IQ demodulation or quadrature IQ demodulation) to obtain the demodulation result of the detection signal, and then sent to the The processor performs the calculation of touch coordinates. The last row of FIG. 3 shows the sine signal (Sin signal) used to demodulate the sampled data. Since the cosine signal (Cos signal) and the sine signal are processed in the same way in the embodiment of the present application, the sine signal is used as an example below. describe. In this case, the detection signal has jitter in the time domain but the sinusoidal signal used for quadrature demodulation does not have jitter in the time domain. Therefore, in the process of quadrature demodulation, when the detection signal and the sinusoidal signal sum After the cosine signal is dot-multiplied, the demodulation result is also jittered, which is embodied in the jitter of the signal amplitude obtained by demodulation. For the valid signal in the detection signal, the jitter of the demodulation result is the noise superimposed on the valid signal. In FIG. 3, the noise floor of the circuit system is ignored, and it is assumed that no external object touches the touch electrodes to change the amplitude of the detection signal. When the jitter of the line scanning period is not considered, there is only one demodulation result; when the jitter of the line scanning period is considered, the demodulation result will shake within a certain range. Jitter is noise.
为了降低显示层的Hsync信号对触控检测的影响,本申请提出了一种处理检测信号的方案,能够降低显示层的Hsync信号对触控检测结果的影响,提高触控检测系统的信噪比。下面结合图4至图11进行详细描述。In order to reduce the influence of the Hsync signal of the display layer on the touch detection, the present application proposes a solution for processing the detection signal, which can reduce the influence of the Hsync signal of the display layer on the touch detection result and improve the signal-to-noise ratio of the touch detection system . A detailed description will be given below with reference to FIGS. 4 to 11 .
图4是本申请实施例的触控芯片的示意性框图。如图4所示,触控芯片400包括驱动电路410、检测电路420、采样电路430和解调电路440。FIG. 4 is a schematic block diagram of a touch control chip according to an embodiment of the present application. As shown in FIG. 4 , the touch chip 400 includes a driving circuit 410 , a detection circuit 420 , a sampling circuit 430 and a demodulation circuit 440 .
其中,驱动电路410用于根据屏幕的显示层的行同步信号的行扫描周期,向屏幕的触控层输出打码信号。The driving circuit 410 is used for outputting a coding signal to the touch layer of the screen according to the line scanning period of the line synchronization signal of the display layer of the screen.
检测电路420用于接收所述触控层输出的检测信号。The detection circuit 420 is configured to receive the detection signal output by the touch layer.
采样电路430用于根据行扫描周期,对该检测信号进行采样,得到采样数据。The sampling circuit 430 is configured to sample the detection signal according to the line scanning period to obtain sampled data.
其中,该行扫描周期是变化的,但不同行扫描周期内的采样点数量均等于预设值。Wherein, the line scanning period varies, but the number of sampling points in different line scanning periods is equal to a preset value.
解调电路440用于根据所述采样数据进行正交解调,得到该检测信号的解调结果。The demodulation circuit 440 is configured to perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
这里所述的解调结果,例如指对该检测信号进行解调后得到的检测信号的信号幅度。The demodulation result mentioned here, for example, refers to the signal amplitude of the detection signal obtained by demodulating the detection signal.
应理解,在触控检测期间,驱动电路410输出打码信号以及检测电路420接收相应的检测信号可以是同步进行的。通常,在驱动电路410输出打码信号的同时,检测电路420接收从触控层输出的检测信号。该检测信号中携带用户的触摸信息,例如用户触摸引起的触控电极的电容变化量等。对该检测信号进行后续处理后,就可以得到用户的触摸信息。It should be understood that, during the touch detection period, the driving circuit 410 outputs the coding signal and the detection circuit 420 receives the corresponding detection signal, which may be performed synchronously. Generally, while the driving circuit 410 outputs the coding signal, the detection circuit 420 receives the detection signal output from the touch layer. The detection signal carries the user's touch information, such as the capacitance change of the touch electrode caused by the user's touch. After subsequent processing of the detection signal, the user's touch information can be obtained.
还应理解,这里所述的行扫描周期是变化的,是指该行扫描周期或者行扫描信号在时域上存在抖动。也就是说,显示层的行同步信号的输出在时域上是不稳定的,或者行扫描周期在时域上是不稳定的。例如,理想情况下,行扫描周期在时域上是稳定的,每个行扫描周期的长度都是10us;而当行扫描周期在时域上不稳定时,其长度为10us±10ns,存在10ns范围内的抖动。It should also be understood that the line scanning period described here is varied, which means that the line scanning period or the line scanning signal has jitter in the time domain. That is, the output of the line synchronization signal of the display layer is unstable in the time domain, or the line scanning period is unstable in the time domain. For example, ideally, the line scanning period is stable in the time domain, and the length of each line scanning period is 10us; and when the line scanning period is unstable in the time domain, its length is 10us±10ns, and there is a range of 10ns Vibration within.
当行扫描周期变化时,不同的行扫描周期内的采样数据对应的采样点数量可能相同,也可能不同。When the line scanning period changes, the number of sampling points corresponding to the sampled data in different line scanning periods may be the same or different.
可见,当显示层的行同步信号的行扫描周期不稳定时,由于在不同行扫描周期内按照相同采样点数对各个行扫描周期内采集到的触控检测信号进行采样,因此基于触控检测信号的采样数据所得到的解调结果也就是稳定的,降低了显示层的行同步信号在时域上的抖动对触控层的触控检测的影响,减小了检测结果中的噪声,提高了触控检测系统的信噪比。It can be seen that when the line scan period of the line synchronization signal of the display layer is unstable, since the touch detection signals collected in each line scan period are sampled according to the same number of sampling points in different line scan periods, the touch detection signal is based on the touch detection signal. The demodulation result obtained from the sampled data is stable, which reduces the influence of the jitter of the line synchronization signal of the display layer in the time domain on the touch detection of the touch layer, reduces the noise in the detection result, and improves the The signal-to-noise ratio of the touch detection system.
本申请实施例中,每个行扫描周期内的采样点数均为预设值,该预设值例如为小于或者等于F1/F2的整数,其中,F1为用于对检测信号进行采样的采样频率,F2为行同步信号的或者检测信号的频率。优选地,该预设值为小于或者等于F1/F2的最大整数。In the embodiment of the present application, the number of sampling points in each line scan period is a preset value, and the preset value is, for example, an integer less than or equal to F1/F2, where F1 is the sampling frequency used for sampling the detection signal , F2 is the frequency of the line synchronization signal or the detection signal. Preferably, the preset value is the largest integer less than or equal to F1/F2.
采样电路430例如可以是ADC电路,采样电路430基于采样时钟按照一定采样频率获取检测信号的各个采样点上数据。如图5所示,当某个行同步信号触发后,采样电路430会进行一段时间的连续采样,基于前面的描述可知,连续采集的时间较长时,行扫描周期的抖动会依次传递,使得后面几个行扫描周期内的检测信号在时域上有明显抖动,造成正交解调后的结果也跟随着抖动。The sampling circuit 430 may be, for example, an ADC circuit, and the sampling circuit 430 acquires data on each sampling point of the detection signal according to a certain sampling frequency based on the sampling clock. As shown in FIG. 5 , when a certain line synchronization signal is triggered, the sampling circuit 430 will perform continuous sampling for a period of time. Based on the foregoing description, it can be known that when the continuous sampling time is long, the jitter of the line scanning period will be transmitted in turn, so that The detection signal in the next few line scanning periods has obvious jitter in the time domain, which causes the result after quadrature demodulation to follow the jitter.
如图5的触发信号0和采样时钟0所示,基于采样时钟0,按照一定的采样频率对检测信号进行采样,当行扫描周期存在抖动时,导致每个行扫描周期内的检测信号进行采样时的采样点数不断变化。由于正交解调的正弦信号和余弦信号是在每段采样长度中按照固定频率产生,因此行扫描周期的抖动使得正弦信号和余弦信号相对于采样数据也存在抖动,于是基于该正弦信号和余弦信号进行正交解调后得到的解调结果也跟随抖动,对于检测结果中的有效信号而言,解调结果的抖动就是噪声。As shown in the trigger signal 0 and the sampling clock 0 in FIG. 5 , based on the sampling clock 0, the detection signal is sampled according to a certain sampling frequency. When there is jitter in the line scanning period, the detection signal in each line scanning period is sampled. The number of sampling points is constantly changing. Since the quadrature demodulated sine signal and cosine signal are generated at a fixed frequency in each sampling length, the jitter of the line scanning period makes the sine signal and cosine signal also jitter relative to the sampled data, so based on the sine signal and cosine The demodulation result obtained after the signal is subjected to quadrature demodulation also follows the jitter. For the valid signal in the detection result, the jitter of the demodulation result is noise.
本申请实施例中,由于在不同行扫描周期内按照相同采样点数对各个行扫描周期内采集到的触控检测信号进行采样,因此基于触控检测信号的采样 数据所得到的解调结果也就是稳定的,从而减小了行同步信号对触控检测的影响。In the embodiment of the present application, since the touch detection signals collected in each line scanning period are sampled according to the same number of sampling points in different line scanning periods, the demodulation result obtained based on the sampling data of the touch detection signal is It is stable, thereby reducing the influence of the line synchronization signal on the touch detection.
在一种实现方式中,采样电路430从行扫描周期内的行同步信号的上升沿的时刻起,对行扫描周期内的检测信号进行采样。本申请实施例中所述的行扫描周期,是以相邻两个行同步信号的脉冲的上升沿之间的时段作为一个行扫描周期为例,例如图5所示,因此可以从该行扫描周期内的行同步信号的上升沿的时刻起,对行扫描周期内的检测信号进行采样。但应理解,当以相邻两个行同步信号的脉冲的下降沿之间的时段作为一个行扫描周期时,可以从上一个行扫描周期内的行同步信号的下降沿的时刻起,对该行扫描周期内的检测信号进行采样。本申请实施例对如何划分行扫描周期不作限定,采样电路430从行扫描周期的起始时刻开始对该行扫描周期内的检测信号进行采样。In an implementation manner, the sampling circuit 430 samples the detection signal within the line scanning period from the time of the rising edge of the line synchronization signal within the line scanning period. The line scanning period described in the embodiments of the present application takes the period between the rising edges of the pulses of two adjacent line synchronization signals as a line scanning period as an example, as shown in FIG. From the time of the rising edge of the horizontal synchronization signal in the cycle, the detection signal in the horizontal scanning cycle is sampled. However, it should be understood that when the period between the falling edges of the pulses of two adjacent line synchronization signals is taken as a line scanning period, the time period of the falling edge of the line synchronization signal in the previous line scanning period can be The detection signal in the line scan period is sampled. This embodiment of the present application does not limit how to divide the line scan period, and the sampling circuit 430 starts sampling the detection signal in the line scan period from the start time of the line scan period.
如图5中的触发信号1和采样时钟1,在某个行扫描信号即触发信号1触发采样后,基于采样时钟1在每个行扫描周期内都按照固定的采样点数量对检测信号进行采样,即每个行扫描周期内的采样点数均等于预设值。其中,总采样时间不超过单个行扫描周期的时长,不足一个采样点的时钟长度则不进行采样。图5中基于采样时钟1在每个行扫描周期的行同步信号的上升沿的时刻开始采样,并按照采样频率在每个行扫描周期内均采样6个采样点,直到到达规定的采样时间。As shown in the trigger signal 1 and the sampling clock 1 in Figure 5, after a certain line scan signal, namely the trigger signal 1, triggers sampling, the detection signal is sampled according to the fixed number of sampling points in each line scan period based on the sampling clock 1 , that is, the number of sampling points in each line scanning period is equal to the preset value. Wherein, the total sampling time does not exceed the duration of a single line scan period, and no sampling is performed if the clock length is less than one sampling point. In FIG. 5, based on the sampling clock 1, sampling starts at the rising edge of the line synchronization signal in each line scan period, and 6 sampling points are sampled in each line scan period according to the sampling frequency until the specified sampling time is reached.
这种方式使采样电路430采集到的数据是稳定的。由于每个采样周期和行扫描周期同步,消除了行扫描周期的抖动所导致的检测信号的抖动。另外,由于每个行扫描周期内的采样时间小于该行扫描周期的时长,消除了行扫描周期的抖动对检测信号的影响,消除了行扫描周期的抖动对触控检测性能的影响。In this way, the data collected by the sampling circuit 430 is stable. Since each sampling period is synchronized with the line scanning period, the jitter of the detection signal caused by the jitter of the line scanning period is eliminated. In addition, since the sampling time in each line scanning period is less than the duration of the line scanning period, the influence of the jitter of the line scanning period on the detection signal is eliminated, and the influence of the jitter of the line scanning period on the touch detection performance is eliminated.
图5中基于采样时钟0得到的数据就是检测信号本身,可以直接进行后续的正交解调和坐标计算;而基于采样时钟1采样到的数据需要进一步处理后,才能用于后续的正交解调和坐标计算。The data obtained based on sampling clock 0 in Figure 5 is the detection signal itself, which can be directly used for subsequent orthogonal demodulation and coordinate calculation; while the data sampled based on sampling clock 1 needs to be further processed before it can be used for subsequent orthogonal solutions. Harmonic Coordinate Calculation.
在一种实现方式中,采样电路430对多个行扫描周期内得到的采样数据进行拼接。这时,解调电路440根据拼接后的采样数据进行正交解调。In an implementation manner, the sampling circuit 430 splices the sampling data obtained in multiple line scanning periods. At this time, the demodulation circuit 440 performs quadrature demodulation according to the spliced sample data.
其中,拼接后的采样数据的采样周期等于每个行扫描周期内的采样点数量与1/F1的乘积,F1为用于对该检测信号进行采样的采样频率。The sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is the sampling frequency for sampling the detection signal.
假设行扫描信号和检测信号的频率F2=300KHz,采样频率F1=2MHz。对于采样时钟0而言,采集到的信号频率也是300KHz。后续进行正交解调时使用的正弦信号和余弦信号的频率也为300KHz,如图6所示。Assume that the frequency of the line scanning signal and the detection signal is F2=300KHz, and the sampling frequency F1=2MHz. For sampling clock 0, the collected signal frequency is also 300KHz. The frequencies of the sine signal and the cosine signal used in the subsequent quadrature demodulation are also 300KHz, as shown in FIG. 6 .
而对于图5中基于采样时钟1采样到的数据,需要把多个行扫描周期内采集到的信号首尾拼接形成新的信号后,再进行后续的正交解调等。For the data sampled based on the sampling clock 1 in FIG. 5 , the signals collected in multiple line scanning periods need to be spliced end to end to form a new signal, followed by quadrature demodulation and the like.
理论上,每个行扫描周期内的采样点数为2MHz/300KHz=6.67个。实际采样时每个行扫描周期内的采样点数选择小于或等于6.67的整数,例如选择6个采样点,如图5的采样时钟1所示。于是,基于采样时钟1采样得到的多个行扫描周期内的采样数据在进行拼接后,得到的采样数据的采样周期变为(1/2MHz)×6=3us,对应的实际频率为333.33KHz,后续进行正交解调时使用的正弦信号和余弦信号的频率也需要调整为信号的实际频率。Theoretically, the number of sampling points in each line scan period is 2MHz/300KHz=6.67. In actual sampling, the number of sampling points in each line scanning period is an integer less than or equal to 6.67, for example, 6 sampling points are selected, as shown in the sampling clock 1 of FIG. 5 . Therefore, after splicing the sampled data in multiple line scanning periods sampled based on the sampling clock 1, the sampling period of the obtained sampled data becomes (1/2MHz)×6=3us, and the corresponding actual frequency is 333.33KHz, The frequencies of the sine and cosine signals used in the subsequent quadrature demodulation also need to be adjusted to the actual frequencies of the signals.
如图7所示,基于采样时钟1在每个行扫描周期内进行采样的采样点数为6,将每个行扫描周期内采集的数据进行拼接,得到如采样时钟1’所示的采样时钟以及符合该采样时钟的采样数据1。As shown in FIG. 7 , the number of sampling points sampled in each line scan cycle based on the sampling clock 1 is 6, and the data collected in each line scan cycle is spliced to obtain the sampling clock shown by the sampling clock 1 ′ and Sampling data 1 that matches this sampling clock.
由于触控检测例如对手指或主动笔的电容检测而言,通常包括向触控层中的触控电极充放电的过程、抵消触控电极的基础电容的过程、以及将抵消基础电容后的触控电极上的电荷量进行转移的过程。这些过程最终可以得到因手指或主动笔触摸所引起的触控电极的电容相对于其基础电容的电容变化量。根据该电容变化量,就可以获得手指或者主动笔的触摸信息。For touch detection, such as capacitance detection of a finger or an active pen, it usually includes the process of charging and discharging the touch electrodes in the touch layer, the process of canceling the basic capacitance of the touch electrodes, and the process of canceling the basic capacitance of the touch electrode. The process of transferring the charge on the control electrode. These processes can finally obtain the capacitance change of the touch electrode's capacitance relative to its base capacitance caused by the touch of a finger or an active pen. According to the capacitance change, the touch information of the finger or the active pen can be obtained.
然而,只有在电荷转移的过程中,采样电路430采集到的数据才反映了触控电极上的触摸情况,因此,在行扫描周期内,采样电路430可以仅采集与该电荷转移过程对应的有效时间区间内的数据,从而提高数据采集的效率。However, only in the process of charge transfer, the data collected by the sampling circuit 430 reflects the touch condition on the touch electrodes. Therefore, in the line scan period, the sampling circuit 430 can only collect valid data corresponding to the charge transfer process. Data within the time interval, thereby improving the efficiency of data collection.
这里所述的提高数据采集的效率,一方面是指采用尽可能少的采样点数得到触控电极上的信号变化量,节省采样功耗和行扫描周期的采样时间,另一方面是指触控电极上产生信号变化量时,基于有效时间区间内的采样数据拼接形成的新的采样数据得到的该触控电极上对应的信号变化量更大。The improvement of the efficiency of data collection mentioned here refers to using as few sampling points as possible to obtain the signal variation on the touch electrodes, saving the sampling power consumption and the sampling time of the line scanning period, on the other hand, it refers to the touch When a signal change amount is generated on the electrode, the corresponding signal change amount on the touch electrode obtained based on the new sampling data formed by splicing the sampling data in the valid time interval is larger.
其中,该有效时间区间为有触摸信号时检测信号的幅值发生变化的时间区间。也就是说,在触摸电极的电容因手指或主动笔的触摸而发生变化时,该检测信号的幅值发生相应变化的区间即为该有效时间区间。这里所述的幅值变化可以是指幅值的变化量大于0或者超过一定阈值。这时,采样电路430可以只对行扫描周期的有效时间区间内的检测信号进行采样。The valid time interval is a time interval in which the amplitude of the detection signal changes when there is a touch signal. That is to say, when the capacitance of the touch electrode changes due to the touch of the finger or the active pen, the interval in which the amplitude of the detection signal changes correspondingly is the valid time interval. The amplitude change mentioned here may mean that the amount of change in the amplitude is greater than 0 or exceeds a certain threshold. At this time, the sampling circuit 430 may only sample the detection signal within the valid time interval of the line scanning period.
如图8所示,在一个行扫描周期内,时间T0为有效时间区间。由于有效时间区间内的检测信号的幅值会有明显变化,因此采样电路430对时间T0内的检测信号进行采样。除此之外的时间段△t1和△t2内,采样电路430也可以采样,但是采集到的信号中仅包括电路底噪和其他干扰信号,理论上触摸触控电极后△t1和△t2内的检测信号的幅值基本不变。As shown in FIG. 8 , in one line scanning period, time T0 is an effective time interval. Since the amplitude of the detection signal within the valid time interval will change significantly, the sampling circuit 430 samples the detection signal within the time T0. During the other time periods Δt1 and Δt2, the sampling circuit 430 can also sample, but the collected signals only include the circuit noise floor and other interference signals. In theory, after touching the touch electrodes, within Δt1 and Δt2 The amplitude of the detected signal is basically unchanged.
如图5中的触发信号2和采样时钟2所示,某个行扫描周期的行同步信号即触发信号2触发采样的初始延时可以调整,使得仅在有效时间区间内进行采样。可见,通过调整触发采样的初始延时和采样点数,使得仅在检测信号的有效时间区间内采集固定采样点数的数据,可以避免行扫描周期的抖动对触控检测的影响。As shown by the trigger signal 2 and the sampling clock 2 in FIG. 5 , the initial delay of the sampling triggered by the horizontal synchronization signal of a certain horizontal scanning period, that is, the trigger signal 2 can be adjusted, so that sampling is only performed within the valid time interval. It can be seen that by adjusting the initial delay of trigger sampling and the number of sampling points, so that only data of a fixed number of sampling points is collected within the valid time interval of the detection signal, the influence of the jitter of the line scanning period on the touch detection can be avoided.
类似地,采用这种采样方式时,采样电路430也可以对多个行扫描周期的有效时间区间内得到的采样数据进行拼接。这时,解调电路440根据拼接后的采样数据进行正交解调。Similarly, when this sampling method is adopted, the sampling circuit 430 can also splicing the sampling data obtained in the valid time interval of multiple line scanning periods. At this time, the demodulation circuit 440 performs quadrature demodulation according to the spliced sample data.
其中,拼接后的采样数据的采样周期等于每个有效时间区间内的采样点数量与1/F1的乘积,F1为用于在该有效时间区间内对该检测信号进行采样的采样频率。The sampling period of the spliced sampling data is equal to the product of the number of sampling points in each valid time interval and 1/F1, and F1 is the sampling frequency for sampling the detection signal in the valid time interval.
如图9所示,假设行扫描信号和检测信号的频率F2=300KHz,采样频率F1=2MHz。基于采样时钟2在每个行扫描周期的有效时间区间内进行采样的采样点数为3,将每个行扫描周期的有效时间区间内采集到的数据进行拼接,得到如采样时钟2’所示的采样时钟以及符合该采样时钟的采样数据2。类似地,可知,每个行扫描周期的有效时间区间内的采样数据拼接后形成的信号频率为666.67KHz。同样,正交解调使用的正弦信号和余弦信号的频率也需要进行相应调整。As shown in FIG. 9 , it is assumed that the frequency of the line scanning signal and the detection signal is F2=300KHz, and the sampling frequency F1=2MHz. Based on the number of sampling points sampled by the sampling clock 2 in the valid time interval of each line scanning period is 3, the data collected in the valid time interval of each line scanning period is spliced to obtain the sample clock 2' as shown in The sampling clock and the sampling data 2 corresponding to the sampling clock. Similarly, it can be known that the signal frequency formed by splicing the sampled data in the valid time interval of each line scanning period is 666.67KHz. Likewise, the frequencies of the sine and cosine signals used for quadrature demodulation need to be adjusted accordingly.
对于图5中所示的采样时钟1和采样时钟2,基于采样时钟2在每个行扫描周期内的采样点数变少,最终得到的信号周期变短,而有效时间区间和触控电极被触摸前后有效时间区间内的检测信号的幅值保持不变,相当于提升了有效信号在整个周期内的占比,因此经过解调后得到的触摸前后的信号幅值的变化更大。For the sampling clock 1 and sampling clock 2 shown in FIG. 5 , the number of sampling points in each line scan period of the sampling clock 2 is reduced, the resulting signal period is shortened, and the effective time interval and the touch electrodes are touched. The amplitude of the detection signal in the effective time interval before and after remains unchanged, which is equivalent to increasing the proportion of the effective signal in the entire period. Therefore, the amplitude of the signal before and after the touch obtained after demodulation changes more.
可以发现,每个行扫描周期内的采样点的数量越少,最终获得的信号的频率与原始的检测信号的频率之间的差异就越大。为了使最终获得的信号的频率与实际的检测信号的频率尽可能一致,可以在每个行扫描周期内没有采 集数据的时间段内补充采样点,并且将补充的采样点对应的数据设置为固定值,例如设置为0。It can be found that the smaller the number of sampling points in each line scanning period, the greater the difference between the frequency of the finally obtained signal and the frequency of the original detection signal. In order to make the frequency of the finally obtained signal as consistent as possible with the frequency of the actual detection signal, the sampling points can be supplemented in the time period when no data is collected in each line scan period, and the data corresponding to the supplemented sampling points can be set as fixed value, for example set to 0.
例如,对于仅在有效时间区间内进行采样的方案,由于最终得到的检测结果与实际的检测信号之间的频率相差较大,在一种实现方式中,采样电路430可以按照与有效时间区间内的采样频率相同的频率,在每个行扫描周期内除有效时间区间之外的非有效时间区间内,填充0作为该非有效时间区间内的采样数据。For example, for the solution of sampling only within the valid time interval, since the frequency difference between the finally obtained detection result and the actual detection signal is relatively large, in one implementation manner, the sampling circuit 430 may At the same frequency as the sampling frequency of , in each line scan period except the valid time interval in the inactive time interval, fill 0 as the sampling data in the inactive time interval.
如图10所示,在每个行扫描周期的非有效时间区间内填充0作为非有效时间区间内的采样数据,并基于采样时钟2在每个行扫描周期的有效时间区间内采集的数据进行首尾拼接,从而得到如采样时钟3’所示的采样时钟以及符合该采样时钟的采样数据3。As shown in Fig. 10, fill 0 in the non-valid time interval of each line scan period as the sampling data in the non-valid time interval, and based on the data collected by the sampling clock 2 in the valid time interval of each line scan period. By splicing end to end, a sampling clock shown as sampling clock 3' and sampling data 3 conforming to the sampling clock are obtained.
相比于图5中基于采样时钟1采样得到的采样数据,基于采样时钟3’在非有效时间区间内得到的采样数据为0,表示没有噪声,从而降低了整个周期内噪声的占比,降低了检测信号的底噪。而基于采样时钟1在非有效时间内得到的采样数据表示系统底噪,还可能包括显示层的干扰信号和耦合到系统的其他外部串扰信号。Compared with the sampling data sampled based on sampling clock 1 in Figure 5, the sampling data obtained based on sampling clock 3' in the non-valid time interval is 0, indicating that there is no noise, thereby reducing the proportion of noise in the entire cycle, reducing the noise floor of the detection signal. The sampling data obtained based on the sampling clock 1 in the inactive time represents the noise floor of the system, and may also include interference signals of the display layer and other alien crosstalk signals coupled to the system.
相比于图5中基于采样时钟2采样得到的数据,基于采样时钟3’得到采样数据后并在非有效时间区间内填充采样数据0,可以使最终的检测结果更接近实际的检测信号的频率。Compared with the data sampled based on the sampling clock 2 in FIG. 5 , after obtaining the sampling data based on the sampling clock 3 ′ and filling the sampling data 0 in the non-valid time interval, the final detection result can be closer to the actual detection signal frequency. .
应理解,本申请实施例中均以填充0为例,但实际应用中,也可以填充其他数值例如0.01、1、50等固定值,只要能够达到使非有效时间区间内的噪声为0的目的即可。这等效于给整段采样信号一个直流偏置,最终使正交解调后得到的触控电极上的信号变化量不变,对整个触控检测系统的性能没有影响。以非有效时间区间内填充0为例仅是为了便于对本申请方案的理解,但只要填充的数据相同,都可以实现相同目的。It should be understood that the examples of this application are filled with 0 as an example, but in practical applications, other values such as 0.01, 1, 50 and other fixed values can also be filled, as long as the purpose of making the noise in the non-valid time interval 0 can be achieved That's it. This is equivalent to giving a DC bias to the entire sampling signal, so that the signal variation on the touch electrodes obtained after quadrature demodulation is finally unchanged, and has no impact on the performance of the entire touch detection system. Taking the filling of 0 in the non-valid time interval as an example is only to facilitate the understanding of the solution of the present application, but as long as the data to be filled is the same, the same purpose can be achieved.
特殊地,在采样电路430的采样时钟和行同步信号的时钟同步,且每个行扫描周期内总是包含整数个采样点的情况下,通过给未采样的时间段内填充采样数据0,可以将处理后的检测信号的频率还原成原始的检测信号的频率。但是,触控芯片430的采样时钟很难专门去和显示驱动芯片做时钟同步,以使二者的主时钟完全一致,并且一个行扫描周期内也很难恰好包含整数个采样点。仅在某些特殊的应用中,例如触控显示驱动集成(Touch Display  Driver Integration,TDDI)技术中,由于触控芯片和显示器驱动芯片集成在一起,那么就可以通过这种方式,将处理后的检测信号的频率还原成原始的检测信号的频率。In particular, in the case that the sampling clock of the sampling circuit 430 is synchronized with the clock of the line synchronization signal, and each line scanning period always includes an integer number of sampling points, by filling the unsampled time period with sampling data 0, it is possible to The frequency of the processed detection signal is restored to the frequency of the original detection signal. However, it is difficult for the sampling clock of the touch chip 430 to be specifically synchronized with the display driver chip, so that the main clocks of the two are completely consistent, and it is difficult to include exactly an integer number of sampling points in one line scan period. Only in some special applications, such as the touch display driver integration (Touch Display Driver Integration, TDDI) technology, since the touch chip and the display driver chip are integrated together, the processed The frequency of the detection signal is restored to the frequency of the original detection signal.
表一示出了采用本申请实施例的检测信号的处理方式时得到的触控检测结果。假设触控检测的时间为500us,触控检测为自容检测。如表一所示,不采用本申请的方案时,测试画面分别为低噪、中噪和高噪时,检测结果的信噪比(Signal Noise Ratio,SNR)分别为7.69、4.2和2.82;采用本申请的方案时,测试画面分别为低噪、中噪和高噪时,检测结果的信噪比分别为9.84、5.92和4.83。因此,采用本申请实施例的方案,可以在低噪、中噪和高噪场景中分别将触控检测的性能提升至原来的1.28、1.41和1.71倍。Table 1 shows the touch detection results obtained when the detection signal processing method according to the embodiment of the present application is adopted. Assuming that the touch detection time is 500us, the touch detection is self-capacitance detection. As shown in Table 1, when the solution of the present application is not adopted, the signal-to-noise ratio (SNR) of the detection results are 7.69, 4.2 and 2.82 respectively when the test images are low-noise, medium-noise and high-noise respectively; In the solution of the present application, when the test images are low-noise, medium-noise and high-noise respectively, the signal-to-noise ratios of the detection results are 9.84, 5.92 and 4.83 respectively. Therefore, using the solutions of the embodiments of the present application, the performance of touch detection can be improved to 1.28, 1.41, and 1.71 times the original in low-noise, medium-noise, and high-noise scenarios, respectively.
表一Table I
Figure PCTCN2020118171-appb-000001
Figure PCTCN2020118171-appb-000001
从表一可以看出,采用本申请的信号处理方式,能够有效降低行扫描周期的抖动对检测结果的影响,提高触控检测系统的信噪比。其中,对于表一中测试的电子设备的屏幕而言,显示层噪声越大的画面,行扫描周期的抖动越严重,采用本申请的信号处理方式后对触控检测系统的信噪比提升的越明显,可以提升28-71%。It can be seen from Table 1 that the signal processing method of the present application can effectively reduce the influence of the jitter of the line scanning period on the detection result, and improve the signal-to-noise ratio of the touch detection system. Among them, for the screen of the electronic device tested in Table 1, the larger the display layer noise is, the more serious the jitter of the line scanning period is, and the signal-to-noise ratio of the touch detection system is improved by using the signal processing method of the present application. The more obvious, can improve 28-71%.
表二示出了采样点数对触控检测的结果的影响。假设测试画面为高噪画 面,触控检测为自容检测,并且采样时钟设置在有效时间区间,即触摸前后检测信号的幅值变化的时间段。从表二可以看出,每个行扫描周期内的采样点数越少,采样位置越接近信号幅值变化最大的时刻,触控电极被触摸前后所得到的检测信号的电压的变化量越大。但是,采样点数越少,采样位置越接近信号幅值变化最大的时刻,噪声信号也越大。例如在表二中,当采样点数为6时,信噪比最高,为4.83。因此,在确定图8所示的有效时间区间T0以及采样点数时,需要进行实际测试,扫描一遍信噪比随采样点数和采样位置△t1的变化关系,以找到最佳的配置。Table 2 shows the influence of the number of sampling points on the result of touch detection. It is assumed that the test picture is a high-noise picture, the touch detection is self-capacitance detection, and the sampling clock is set in the valid time interval, that is, the time period during which the amplitude of the detection signal changes before and after the touch. It can be seen from Table 2 that the less the number of sampling points in each line scan period, the closer the sampling position is to the moment when the signal amplitude changes the most, the greater the change in the voltage of the detection signal obtained before and after the touch electrode is touched. However, the smaller the number of sampling points, the closer the sampling position is to the moment when the signal amplitude changes the most, and the larger the noise signal. For example, in Table 2, when the number of sampling points is 6, the signal-to-noise ratio is the highest, which is 4.83. Therefore, when determining the effective time interval T0 and the number of sampling points shown in Figure 8, it is necessary to conduct an actual test, and scan the relationship between the signal-to-noise ratio and the number of sampling points and the sampling position Δt1 to find the best configuration.
表二Table II
Figure PCTCN2020118171-appb-000002
Figure PCTCN2020118171-appb-000002
可见,本申请从信号采样的角度消除或者削弱了行扫描周期的抖动对检测结果的影响。行扫描周期抖动造成采样时间内靠后的行扫描周期在时域上左右抖动明显,导致后端数字解调出来的信号幅值在变化,这种变化的幅值对于有效信号而言就是噪声,即行扫描周期的抖动会给触控检测带来额外的噪声。而采用本申请的方案消除或者削弱了行扫描周期的抖动给触控检测系统造成的额外的噪声。It can be seen that the present application eliminates or weakens the influence of the jitter of the line scanning period on the detection result from the perspective of signal sampling. The line scanning period jitter causes the line scanning period later in the sampling time to have obvious left and right jitter in the time domain, which causes the signal amplitude of the back-end digital demodulation to change. The amplitude of this change is noise for the effective signal. That is, the jitter of the line scan period will bring additional noise to the touch detection. However, using the solution of the present application eliminates or weakens the extra noise caused by the jitter of the line scanning period to the touch detection system.
本申请还提供一种触控检测信号的处理方法。如图11所示,该方法1100可以由上述触控芯片600执行。该方法1100包括以下步骤中的部分或全部。The present application also provides a method for processing a touch detection signal. As shown in FIG. 11 , the method 1100 may be performed by the above-mentioned touch control chip 600 . The method 1100 includes some or all of the following steps.
在步骤1110中,根据屏幕的显示层的行同步信号的行扫描周期,向所述屏幕的触控层输出打码信号,并接收所述触控层输出的检测信号。In step 1110, according to the line scanning period of the line synchronization signal of the display layer of the screen, a coding signal is output to the touch layer of the screen, and a detection signal output by the touch layer is received.
在步骤1120中,根据所述行扫描周期,对所述检测信号进行采样,得 到采样数据,其中,所述行扫描周期是变化的,不同行扫描周期内的采样点数量均为预设值。In step 1120, the detection signal is sampled according to the line scan period to obtain sample data, wherein the line scan period is variable, and the number of sampling points in different line scan periods is a preset value.
在步骤1130中,根据所述采样数据进行正交解调,得到所述检测信号的解调结果。In step 1130, quadrature demodulation is performed according to the sampled data to obtain a demodulation result of the detection signal.
可选地,在一种实现方式中,所述对所述检测信号进行采样,包括:从所述行扫描周期内的所述行同步信号的上升沿的时刻起,对所述行扫描周期内的所述检测信号进行采样。Optionally, in an implementation manner, the sampling the detection signal includes: starting from the time of the rising edge of the line synchronization signal in the line scanning period, sampling the detection signal within the line scanning period The detection signal is sampled.
可选地,在一种实现方式中,所述预设值为小于或者等于F1/F2的整数,其中,F1为用于对所述检测信号进行采样的采样频率,F2为所述行扫描信号的或者所述检测信号的频率。Optionally, in an implementation manner, the preset value is an integer less than or equal to F1/F2, where F1 is the sampling frequency for sampling the detection signal, and F2 is the line scan signal. or the frequency of the detection signal.
可选地,在一种实现方式中,所述预设值为小于或者等于F1/F2的最大整数。Optionally, in an implementation manner, the preset value is the largest integer less than or equal to F1/F2.
可选地,在一种实现方式中,所述对所述检测信号进行采样,包括:对所述行扫描周期的有效时间区间内的所述检测信号进行采样,其中,所述有效时间区间为有触摸信号时所述检测信号的幅值发生变化的时间区间。Optionally, in an implementation manner, the sampling the detection signal includes: sampling the detection signal within a valid time interval of the line scan period, wherein the valid time interval is The time interval during which the amplitude of the detection signal changes when there is a touch signal.
可选地,在一种实现方式中,所述方法还包括:按照与所述有效时间区间内的采样频率相同的频率,在所述每个行扫描周期内除所述有效时间区间之外的非有效时间区间内,填充固定值作为所述非有效时间区间内的采样数据。Optionally, in an implementation manner, the method further includes: according to the same frequency as the sampling frequency in the valid time interval, in each line scanning period except the valid time interval In the non-valid time interval, a fixed value is filled as the sampled data in the non-valid time interval.
可选地,在一种实现方式中,所述方法还包括:对多个行扫描周期内得到的所述采样数据进行拼接;其中,所述根据所述采样数据进行正交解调,包括:根据拼接后的采样数据进行正交解调,其中,所述拼接后的采样数据的采样周期,等于所述每个行扫描周期内的所述采样点数量与1/F1的乘积,F1为用于对所述检测信号进行采样的采样频率。Optionally, in an implementation manner, the method further includes: splicing the sampled data obtained in multiple line scanning periods; wherein the performing orthogonal demodulation according to the sampled data includes: Perform quadrature demodulation according to the spliced sampling data, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, and F1 is the The sampling frequency for sampling the detection signal.
应理解,该方法1100的具体描述可以参考前述针对触控芯片600的相关描述,为了简洁,这里不再赘述。It should be understood that, for the specific description of the method 1100 , reference may be made to the foregoing related description of the touch control chip 600 , which is not repeated here for brevity.
本申请实施例还提供了一种电子设备,该电子设备包括:屏幕;以及,上述本申请各种实施例中的触控芯片。The embodiment of the present application further provides an electronic device, the electronic device includes: a screen; and the touch chip in the above-mentioned various embodiments of the present application.
作为示例而非限定,本申请实施例中的电子设备可以为终端设备、手机、平板电脑、笔记本电脑、台式机电脑、游戏设备、车载电子设备或穿戴式智能设备等便携式或移动计算设备,以及电子数据库、汽车、银行自动柜员机 (Automated Teller Machine,ATM)等其他电子设备。该穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等设备。As an example and not a limitation, the electronic device in the embodiments of the present application may be a portable or mobile computing device such as a terminal device, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a game device, a vehicle-mounted electronic device, or a wearable smart device, and Electronic databases, automobiles, bank ATMs (Automated Teller Machine, ATM) and other electronic devices. The wearable smart device includes full functions, large size, and can realize complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as various types of smart bracelets, smart jewelry and other equipment for physical monitoring.
需要说明的是,在不冲突的前提下,本申请描述的各个实施例和/或各个实施例中的技术特征可以任意的相互组合,组合之后得到的技术方案也应落入本申请的保护范围。It should be noted that, on the premise of no conflict, each embodiment described in this application and/or the technical features in each embodiment can be arbitrarily combined with each other, and the technical solution obtained after the combination should also fall within the protection scope of this application .
应理解,本申请实施例中的具体的例子只是为了帮助本领域技术人员更好地理解本申请实施例,而非限制本申请实施例的范围,本领域技术人员可以在上述实施例的基础上进行各种改进和变形,而这些改进或者变形均落在本申请的保护范围内。It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than limiting the scope of the embodiments of the present application, and those skilled in the art can Various improvements and modifications can be made, and these improvements or modifications all fall within the protection scope of the present application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (15)

  1. 一种触控芯片,其特征在于,包括:A touch chip, characterized in that it includes:
    驱动电路,用于根据屏幕的显示层的行同步信号的行扫描周期,向所述屏幕的触控层输出打码信号;a driving circuit for outputting a coding signal to the touch layer of the screen according to the line scanning period of the line synchronization signal of the display layer of the screen;
    检测电路,用于接收所述触控层输出的检测信号;a detection circuit for receiving the detection signal output by the touch control layer;
    采样电路,用于根据所述行扫描周期,对所述检测信号进行采样,得到采样数据,其中,所述行扫描周期是变化的,不同行扫描周期内的采样点数量均为预设值;以及,a sampling circuit, configured to sample the detection signal according to the line scan period to obtain sampled data, wherein the line scan period varies, and the number of sampling points in different line scan periods is a preset value; as well as,
    解调电路,用于根据所述采样数据进行正交解调,得到所述检测信号的解调结果。and a demodulation circuit, configured to perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
  2. 根据权利要求1所述的触控芯片,其特征在于,所述采样电路具体用于:The touch control chip according to claim 1, wherein the sampling circuit is specifically used for:
    从所述行扫描周期内的所述行同步信号的上升沿的时刻起,对所述行扫描周期内的所述检测信号进行采样。The detection signal within the line scanning period is sampled from the time of the rising edge of the line synchronization signal within the line scanning period.
  3. 根据权利要求1或2所述的触控芯片,其特征在于,所述预设值为小于或者等于F1/F2的整数,其中,F1为用于对所述检测信号进行采样的采样频率,F2为所述行扫描信号的或者所述检测信号的频率。The touch control chip according to claim 1 or 2, wherein the preset value is an integer less than or equal to F1/F2, wherein F1 is a sampling frequency for sampling the detection signal, and F2 is the frequency of the line scan signal or the detection signal.
  4. 根据权利要求3所述的触控芯片,其特征在于,所述预设值为小于或者等于F1/F2的最大整数。The touch control chip according to claim 3, wherein the preset value is a maximum integer less than or equal to F1/F2.
  5. 根据权利要求1至4中任一项所述的触控芯片,其特征在于,所述采样电路具体用于:The touch control chip according to any one of claims 1 to 4, wherein the sampling circuit is specifically used for:
    对所述行扫描周期的有效时间区间内的所述检测信号进行采样,其中,所述有效时间区间为有触摸信号时所述检测信号的幅值发生变化的时间区间。The detection signal is sampled in the valid time interval of the line scanning period, wherein the valid time interval is a time interval in which the amplitude of the detection signal changes when there is a touch signal.
  6. 根据权利要求5所述的触控芯片,其特征在于,所述采样电路还用于:The touch control chip according to claim 5, wherein the sampling circuit is further used for:
    按照与所述有效时间区间内的采样频率相同的频率,在所述行扫描周期内除所述有效时间区间之外的非有效时间区间内,填充固定值作为所述非有效时间区间内的采样数据。Fill in the non-valid time interval other than the valid time interval in the line scanning period with the same frequency as the sampling frequency in the valid time interval as the sampling in the inactive time interval data.
  7. 根据权利要求1至6中任一项所述的触控芯片,其特征在于,所述采样电路还用于:The touch control chip according to any one of claims 1 to 6, wherein the sampling circuit is further used for:
    对多个行扫描周期内得到的所述采样数据进行拼接;splicing the sampled data obtained in multiple line scan periods;
    其中,所述解调电路具体用于:Wherein, the demodulation circuit is specifically used for:
    根据拼接后的采样数据进行正交解调,其中,所述拼接后的采样数据的采样周期等于每个行扫描周期内的所述采样点数量与1/F1的乘积,F1为用于对所述检测信号进行采样的采样频率。Perform quadrature demodulation according to the spliced sampling data, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is used for The sampling frequency at which the detection signal is sampled.
  8. 一种触控检测信号的处理方法,其特征在于,包括:A method for processing a touch detection signal, comprising:
    根据屏幕的显示层的行同步信号的行扫描周期,向所述屏幕的触控层输出打码信号,并接收所述触控层输出的检测信号;outputting a coding signal to the touch layer of the screen according to the line scan period of the line synchronization signal of the display layer of the screen, and receiving the detection signal output by the touch layer;
    根据所述行扫描周期,对所述检测信号进行采样,得到采样数据,其中,所述行扫描周期是变化的,不同行扫描周期内的采样点数量均为预设值;According to the line scanning period, the detection signal is sampled to obtain sampled data, wherein the line scanning period varies, and the number of sampling points in different line scanning periods is a preset value;
    根据所述采样数据进行正交解调,得到所述检测信号的解调结果。Perform quadrature demodulation according to the sampled data to obtain a demodulation result of the detection signal.
  9. 根据权利要求8所述的方法,其特征在于,所述对所述检测信号进行采样,包括:The method according to claim 8, wherein the sampling the detection signal comprises:
    从所述行扫描周期内的所述行同步信号的上升沿的时刻起,对所述行扫描周期内的所述检测信号进行采样。The detection signal within the line scanning period is sampled from the time of the rising edge of the line synchronization signal within the line scanning period.
  10. 根据权利要求8或9所述的方法,其特征在于,所述预设值为小于或者等于F1/F2的整数,其中,F1为用于对所述检测信号进行采样的采样频率,F2为所述行扫描信号的或者所述检测信号的频率。The method according to claim 8 or 9, wherein the preset value is an integer less than or equal to F1/F2, wherein F1 is a sampling frequency for sampling the detection signal, and F2 is the The frequency of the scanning signal or the detection signal.
  11. 根据权利要求10所述的方法,其特征在于,所述预设值为小于或者等于F1/F2的最大整数。The method according to claim 10, wherein the preset value is the largest integer less than or equal to F1/F2.
  12. 根据权利要求8至11中任一项所述的方法,其特征在于,所述对所述检测信号进行采样,包括:The method according to any one of claims 8 to 11, wherein the sampling the detection signal comprises:
    对所述行扫描周期的有效时间区间内的所述检测信号进行采样,其中,所述有效时间区间为有触摸信号时所述检测信号的幅值发生变化的时间区间。Sampling the detection signal in the valid time interval of the line scanning period, wherein the valid time interval is a time interval in which the amplitude of the detection signal changes when there is a touch signal.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method of claim 12, wherein the method further comprises:
    按照与所述有效时间区间内的采样频率相同的频率,在所述行扫描周期内除所述有效时间区间之外的非有效时间区间内,填充固定值作为所述非有效时间区间内的采样数据。Fill in the non-valid time interval other than the valid time interval in the line scanning period with the same frequency as the sampling frequency in the valid time interval as the sampling in the inactive time interval data.
  14. 根据权利要求8至13中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8 to 13, wherein the method further comprises:
    对多个行扫描周期内得到的所述采样数据进行拼接;splicing the sampled data obtained in multiple line scan periods;
    其中,所述根据所述采样数据进行正交解调,包括:Wherein, performing quadrature demodulation according to the sampled data includes:
    根据拼接后的采样数据进行正交解调,其中,所述拼接后的采样数据的采样周期,等于每个行扫描周期内的所述采样点数量与1/F1的乘积,F1为用于对所述检测信号进行采样的采样频率。Perform quadrature demodulation according to the spliced sampling data, wherein the sampling period of the spliced sampling data is equal to the product of the number of sampling points in each line scanning period and 1/F1, where F1 is used for The sampling frequency at which the detection signal is sampled.
  15. 一种电子设备,其特征在于,包括上述权利要求1至7中任一项所述的触控芯片。An electronic device, comprising the touch control chip according to any one of claims 1 to 7.
PCT/CN2020/118171 2020-09-27 2020-09-27 Touch-control chip, processing method for touch-control detection signal, and electronic device WO2022061832A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/118171 WO2022061832A1 (en) 2020-09-27 2020-09-27 Touch-control chip, processing method for touch-control detection signal, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/118171 WO2022061832A1 (en) 2020-09-27 2020-09-27 Touch-control chip, processing method for touch-control detection signal, and electronic device

Publications (1)

Publication Number Publication Date
WO2022061832A1 true WO2022061832A1 (en) 2022-03-31

Family

ID=80844850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118171 WO2022061832A1 (en) 2020-09-27 2020-09-27 Touch-control chip, processing method for touch-control detection signal, and electronic device

Country Status (1)

Country Link
WO (1) WO2022061832A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011035491A1 (en) * 2009-09-27 2011-03-31 智点科技有限公司 Touch control screen
WO2011035489A1 (en) * 2009-09-27 2011-03-31 智点科技有限公司 Touch control display
CN103123549A (en) * 2012-08-29 2013-05-29 深圳市汇顶科技股份有限公司 Touch screen system and synchronous detection method thereof
US20190384478A1 (en) * 2018-06-18 2019-12-19 Japan Display Inc. Display device and driving method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011035491A1 (en) * 2009-09-27 2011-03-31 智点科技有限公司 Touch control screen
WO2011035489A1 (en) * 2009-09-27 2011-03-31 智点科技有限公司 Touch control display
CN103123549A (en) * 2012-08-29 2013-05-29 深圳市汇顶科技股份有限公司 Touch screen system and synchronous detection method thereof
US20190384478A1 (en) * 2018-06-18 2019-12-19 Japan Display Inc. Display device and driving method

Similar Documents

Publication Publication Date Title
US10474277B2 (en) Position-based stylus communication
US10216333B2 (en) Phase error compensation in single correlator systems
US9377915B2 (en) Capacitive touch sensor
US8493360B2 (en) Quadrature signal receiver using synchronized oscillator
US9256330B2 (en) Capacitive touch panel configured to sense both active and passive input with a single sensor
US9013429B1 (en) Multi-stage stylus detection
US20110050638A1 (en) Touch sensor device and the method of switching operation mode thereof
US7960679B2 (en) Photo detector array with thin-film resistor-capacitor network for use with a display device
JPH11184630A (en) Liquid crystal display device provided with touch panel
KR20170015777A (en) Stylus pen and touch sensing system and driving method of the same
TWI412982B (en) Image display system and method for determining input position thereon
EP2976695A1 (en) Optimized adaptive thresholding for touch sensing
US10936118B2 (en) Touch detection device and method of detecting touch
WO2022056860A1 (en) Touch chip, coding method and electronic device
WO2022061832A1 (en) Touch-control chip, processing method for touch-control detection signal, and electronic device
WO2020181404A1 (en) Touch chip, touch detection method, touch detection system and electronic device
TWI426325B (en) Image display system and method for controlling a touch panel thereof
CN111930271B (en) Touch chip, touch detection signal processing method and electronic equipment
WO2022061875A1 (en) Touch chip, processing method for touch detection signal, and electronic device
KR101745428B1 (en) Touch Sensor, Its Driving Method And Display Device Using The Same
CN111880688B (en) Touch chip, touch detection signal processing method and electronic equipment
CN111930268B (en) Touch control chip, code printing method and electronic equipment
US10209827B1 (en) Dynamic adjustment of demodulation waveform
US11960691B2 (en) Method and apparatus for interfacing with a touch sensor
US11481074B1 (en) Method and system for quadrature proximity sensing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954683

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954683

Country of ref document: EP

Kind code of ref document: A1