Touch chip, clock calibration method, touch display device and electronic equipment

CN122902893APending Publication Date: 2026-10-13BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610970613.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-30
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

如果时钟不同步会导致解调失败,影响交互

Benefits of technology

基于第二电平信号进行时钟校准,可在触控芯片所位于的触摸显示装置出现时钟偏差的情况下及时修正,避免因为时钟不同步而导致交互失败。并且时钟校准使用的信号为触控过程中产生的信号,校准过程不涉及额外的信号,通过信号复用,降低了时钟校准成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122902893A_ABST
    Figure CN122902893A_ABST
Patent Text Reader

Abstract

The application discloses a touch chip, a clock calibration method, a touch display device and electronic equipment, and belongs to the technical field of electronics. The touch chip is used for touch control on a touch display panel, the touch display panel comprises a plurality of touch electrodes; a clock control module in the touch chip outputs a first clock signal; a frequency statistical module selects a reference level signal from a first level signal sensed by the plurality of touch electrodes, and determines a first clock frequency based on the reference level signal and the first clock signal, the first level signal and the first clock signal being used for determining a current touch position of a touch interaction device; the clock control module calibrates the first clock signal based on the first clock frequency, and obtains a calibrated first clock signal. Through clock calibration, the clock deviation of the touch chip is corrected in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to a touch chip, a clock calibration method, a touch display device, and an electronic device. Background Technology

[0002] In the field of electronics, touch display devices need to maintain clock synchronization during interaction with touch-interactive devices. For example, the touch-interactive device sends a status signal to the touch display device based on its local clock signal. The touch display device first segments the received status signal into symbols based on its local clock signal, demodulates the segmentation result to obtain status information, and then interacts based on the status information. If the clocks are not synchronized, demodulation will fail, affecting the interaction. Summary of the Invention

[0003] This application provides a touch chip, a clock calibration method, a touch display device, and an electronic device, which can be used to improve the synchronization between touch display devices and touch interaction devices. The technical solution is as follows: In a first aspect, embodiments of this application provide a touch chip for touch control of a touch display panel, the touch display panel including a plurality of touch electrodes; the touch chip includes a frequency statistics module and a clock control module; The clock control module is configured to output a first clock signal; The frequency statistics module is configured to select a reference level signal from the first level signals sensed by the plurality of touch electrodes, and determine a first clock frequency based on the reference level signal and the first clock signal. The first level signal and the first clock signal are used to determine the current touch position of the touch interaction device. The clock control module is configured to calibrate the first clock signal based on the first clock frequency to obtain a calibrated first clock signal, which is used to determine the subsequent touch position of the touch interaction device.

[0004] In one possible implementation, the signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode, where the distance corresponding to the touch electrode refers to the distance between the touch electrode and the touch position, and the frequency statistics module includes a multiplexer; The multiplexer is configured to select the reference level signal from a plurality of first level signals based on the signal strength of the first level signals sensed by the plurality of touch electrodes.

[0005] In one possible implementation, the reference level signal is the first level signal with the largest signal strength among a plurality of first level signals; Alternatively, the reference level signal may be the average value of a portion of the plurality of first level signals, wherein the portion of the first level signals is selected from the plurality of first level signals based on the signal strength of each first level signal.

[0006] In one possible implementation, the frequency statistics module is configured to count the number of transitions of the first clock signal within the clock cycle of the reference level signal, and determine the first clock frequency based on the number of transitions.

[0007] In one possible implementation, the clock period of the reference level signal is indicated based on a first time and a second time, the first time being the moment when the level value of the first transition edge of the reference level signal is equal to the level threshold, and the second time being the moment when the level value of the second transition edge of the reference level signal is equal to the level threshold, wherein the first transition edge and the second transition edge are adjacent and have the same transition direction.

[0008] In one possible implementation, the frequency statistics module is configured to determine a first clock period based on the number of transitions and the period length of the first clock signal, and to determine a second clock frequency based on the first clock period. When the sampling count of the first clock signal reaches the termination condition, the first clock frequency is determined based on multiple second clock frequencies, wherein the multiple second clock frequencies are determined based on the number of transitions obtained from multiple samplings.

[0009] In one possible implementation, the frequency statistics module is further configured to acquire a predicted value and a measured value of the clock cycle of the reference level signal, wherein the measured value is obtained by performing timestamp statistics on the reference level signal, and the predicted value is predicted based on historical measured values ​​of the clock cycle; and the first clock frequency is calibrated based on the deviation between the predicted value and the measured value, so as to calibrate the first clock signal based on the calibrated first clock frequency.

[0010] In one possible implementation, the clock control module is configured to acquire a reference clock frequency corresponding to the reference level signal; and calibrate the first clock signal based on the frequency difference between the first clock frequency and the reference clock frequency.

[0011] In one possible implementation, the clock control module is configured to determine that the first clock signal calibration is passed when the frequency difference is not greater than an error threshold, and output the calibrated first clock signal. Alternatively, if the frequency difference is greater than the error threshold, it is determined that the first clock signal calibration has failed, and the output clock signal is adjusted from the first clock signal to the second clock signal, wherein the second clock signal is a clock signal that has passed calibration based on the reference clock frequency.

[0012] In one possible implementation, the touch chip further includes a controller; The controller is configured to receive interactive data sent by the touch interaction device, demodulate the interactive data based on the first clock signal, and use the demodulated interactive data to interact with the touch interaction device. The clock control module is configured to calibrate the first clock signal based on the first clock frequency to obtain the calibrated first clock signal.

[0013] Secondly, a clock calibration method is provided, the method being applied to a touch display device, the touch display device including a touch display panel, the touch display panel including a plurality of touch electrodes, the method comprising: Obtain the first clock signal; A reference level signal is selected from the first level signals sensed by the plurality of touch electrodes, and a first clock frequency is determined based on the reference level signal and the first clock signal. The first level signal and the first clock signal are used to determine the current touch position of the touch interaction device. The first clock signal is calibrated based on the first clock frequency to obtain a calibrated first clock signal, which is used to determine the subsequent touch position of the touch interaction device.

[0014] In one possible implementation, the signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode, where the distance corresponding to the touch electrode refers to the distance between the touch electrode and the touch position; selecting the reference level signal from the first level signals sensed by the plurality of touch electrodes includes: The reference level signal is selected from the plurality of first level signals based on the signal strength of the first level signals sensed by the plurality of touch electrodes.

[0015] In one possible implementation, the reference level signal is the first level signal with the largest signal strength among a plurality of first level signals; Alternatively, the reference level signal may be the average value of a portion of the plurality of first level signals, wherein the portion of the first level signals is selected from the plurality of first level signals based on the signal strength of each first level signal.

[0016] In one possible implementation, determining the first clock frequency based on the reference level signal and the first clock signal includes: Within the clock cycle of the reference level signal, the number of transitions of the first clock signal is counted, and the first clock frequency is determined based on the number of transitions.

[0017] In one possible implementation, the clock period of the reference level signal is indicated based on a first time and a second time, the first time being the moment when the level value of the first transition edge of the reference level signal is equal to a level threshold, and the second time being the moment when the level value of the second transition edge of the reference level signal is equal to the level threshold, wherein the first transition edge and the second transition edge are adjacent and have the same transition direction.

[0018] In one possible implementation, determining the first clock frequency based on the number of transitions includes: A first clock period is determined based on the number of transitions and the period length of the first clock signal, and a second clock frequency is determined based on the first clock period. When the sampling count of the first clock signal reaches the termination condition, the first clock frequency is determined based on multiple second clock frequencies, wherein the multiple second clock frequencies are determined based on the number of transitions obtained from multiple samplings.

[0019] In one possible implementation, before calibrating the first clock signal based on the first clock frequency, the method further includes: The predicted and measured values ​​of the clock cycle of the reference level signal are obtained. The measured value is obtained by performing timestamp statistics on the reference level signal, and the predicted value is predicted based on the historical measured values ​​of the clock cycle. The first clock frequency is calibrated based on the deviation between the predicted value and the measured value, so as to calibrate the first clock signal based on the calibrated first clock frequency.

[0020] In one possible implementation, calibrating the first clock signal based on the first clock frequency includes: Obtain the reference clock frequency corresponding to the reference level signal; The first clock signal is calibrated based on the frequency difference between the first clock frequency and the reference clock frequency.

[0021] In one possible implementation, calibrating the first clock signal based on the frequency difference between the first clock frequency and the reference clock frequency includes: If the frequency difference is not greater than the error threshold, the first clock signal is determined to be calibrated and the calibrated first clock signal is output. If the frequency difference is greater than the error threshold, it is determined that the first clock signal calibration has failed, and the output clock signal is adjusted from the first clock signal to the second clock signal, wherein the second clock signal is a clock signal that has passed calibration based on the reference clock frequency.

[0022] In one possible implementation, before calibrating the first clock signal based on the first clock frequency to obtain the calibrated first clock signal, the method further includes: The system receives interactive data sent by the touch interaction device, demodulates the interactive data based on the first clock signal, and uses the demodulated interactive data to interact with the touch interaction device.

[0023] Thirdly, a touch display device is provided, which includes a touch chip and a touch display panel as described in the first aspect or any possible implementation of the first aspect.

[0024] Fourthly, an electronic device is provided, comprising a touch display device and a processor as shown in the second embodiment, the processor being configured to determine a touch position based on a signal output by the touch display device.

[0025] The technical solution provided in this application brings at least the following beneficial effects: Clock calibration based on the second-level signal can promptly correct for clock deviations in the touch display device where the touch chip is located, preventing interaction failures due to clock asynchrony. Furthermore, the signal used for clock calibration is the one generated during the touch process, eliminating the need for additional signals and reducing clock calibration costs through signal multiplexing. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of signal transmission for touch interaction provided by related technologies; Figure 2 This is a schematic diagram of the structure of a touch display device provided in an embodiment of this application; Figure 3 This is a schematic diagram of another touch display device provided in an embodiment of this application; Figure 4 This is a waveform diagram of a first-level signal provided in an embodiment of this application; Figure 5This is a schematic diagram of the structure of a multiplexer provided in an embodiment of this application; Figure 6 This is a waveform diagram of another first-level signal provided in an embodiment of this application; Figure 7 This is a schematic diagram of a frequency statistics process provided in an embodiment of this application; Figure 8 This is a schematic diagram of a clock calibration process provided in an embodiment of this application; Figure 9 This is a schematic diagram of signal transmission for touch interaction provided in an embodiment of this application; Figure 10 This is a schematic diagram of another touch display device provided in the embodiments of this application; Figure 11 This is a schematic diagram of a periodic calibration process provided in an embodiment of this application; Figure 12 This is a flowchart of a clock calibration method provided in an embodiment of this application. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0029] In the field of electronics, both touch-screen interactive devices and touch-display devices rely on local clock signals to operate. For example, the operation involves sending and receiving signals using the clock signal. Taking a touch-screen interactive device as an example, it sends an ACK (acknowledgment) signal to the touch-display device based on its local clock signal, or it flips a level signal based on its local clock signal to obtain a stable position signal, which it then sends to the touch-display device.

[0030] See Figure 1 The uplink corresponds to a touch display device, while the downlink corresponds to a touch interaction device. Figure 1 The ACK in the code corresponds to the acknowledgment signal. The ACK signal is a confirmation response used to indicate to the touch display device that the Beacon has been received normally.

[0031] X position (coordinate) and Y position correspond to position signals. X position refers to the position signal used to activate the X-axis touch electrodes. The X position is simultaneously sensed by all X-axis touch electrodes on the touch display device. Each X-axis touch electrode, based on its position signal, senses a different signal strength level according to its distance from the touch interaction device. X-axis touch electrodes are also called horizontal touch electrodes, or TX touch electrodes. Y position refers to the position signal used to activate the Y-axis touch electrodes. Y-axis touch electrodes are also called vertical touch electrodes, or RX touch electrodes. In some cases, X position and Y position are single-frequency signals, meaning they have the same frequency.

[0032] Alternatively, the touch-screen interactive device collects status information and uses a local clock signal as the modulation beat to modulate the collected status information onto a carrier waveform to obtain a status signal. Taking binary data as an example, the status information includes multiple binary symbols. The touch-screen interactive device determines the level segment corresponding to each binary symbol based on the local clock signal, and controls the level value of the level segment based on the value of the binary symbol, such as whether to flip the level value, thereby modulating the status information into a status signal. Figure 1 The Pen Data corresponds to the status signal.

[0033] Alternatively, in the scenario where a touch display device sends an uplink beacon to a touch interaction device to establish pairing, the touch interaction device, upon receiving the uplink beacon, determines the starting point of the uplink beacon based on its local clock signal, performs frequency statistics on the uplink beacon based on its local clock signal, and uses the statistically analyzed frequency as the frequency of the position signal, etc. Figure 1 In this context, Beacon corresponds to the uplink beacon.

[0034] Taking a touch display device as an example, the touch display device uses the local clock signal as a reference to determine the transmission duration, transmission interval, and frame period of the uplink beacon to generate the uplink beacon. In addition, the touch display device also transmits the uplink beacon according to the local clock signal. Alternatively, after the touch electrodes in the touch display device sense a level signal based on the position signal, the controller in the touch display device samples the level signal sensed by the touch electrodes based on the local clock signal, ensuring that the sampling interval of the level signal of each touch electrode is uniform and the rhythm is stable. Alternatively, after receiving a status signal, the controller in the touch display device uses the local clock signal as a reference to segment the received status signal, and determines the value of the corresponding binary code based on the level value of the segmentation result, thereby demodulating the status signal into status information.

[0035] As illustrated by the examples above, touch display devices and touch interaction devices communicate via signal transmission and reception. In this scenario, if there is a desynchronization between the local clock signals of the touch interaction device and the touch display device, it will negatively impact the user experience. For instance, if the clock signals are out of sync, the touch interaction device may be unable to correctly receive and process the uplink beacons sent by the touch display device, leading to pairing failure. Alternatively, the clock signals may be out of sync, causing the touch display device to fail to correctly sample level signals, resulting in touch position positioning failure, decreased signal-to-noise ratio, abnormal selection of the maximum signal node, and increased coordinate offset and jitter. Furthermore, the clock signals may be out of sync, causing the touch display device to fail to correctly demodulate status signals, leading to transmission errors and increased retransmissions. Moreover, it can also compress the data packet tail protection time, significantly increasing the risk of signal collisions, system latency, and overall power consumption.

[0036] Based on this, this application provides a touch chip located within a touch display device, which also includes a touch display panel. (See [link to relevant documentation]). Figure 2 The touch chip is connected to the touch display panel and is used to control the touch display panel via touch. Optionally, the touch display device is also called a touch display module or a touch sensor.

[0037] The touch display panel includes multiple touch electrodes. These touch electrodes intersect to form multiple touch nodes. Figure 2 In this system, multiple touch electrodes include horizontal touch electrodes and vertical touch electrodes. The horizontal touch electrodes are also called TX (Transmit) channels, and the vertical touch electrodes are also called RX (Receive) channels.

[0038] Optionally, the touch chip includes a frequency statistics module 01 and a clock control module 02, as shown in the figure. Figure 3 As shown in the diagram, the clock control module 02 is used to output a first clock signal. For example, the clock control module 02 includes a PLL (Phase Locked Loop), which generates the first clock signal through oscillation. The first clock signal, together with the first level signal sensed by the touch electrodes, determines the current touch position of the touch interaction device.

[0039] In some cases, the touch electrodes will sense a first-level signal based on a second-level signal output by the touch interaction device. The touch interaction device can be a stylus, touch glove, touch probe, etc., and the second-level signal corresponds to the position signal in the above embodiments.

[0040] For example, the signal strength of the first level signal sensed by the touch electrode is negatively correlated with the distance corresponding to the touch electrode. The distance corresponding to the touch electrode refers to the distance between the touch electrode and the touch position, which refers to the position where the touch interaction device contacts the touch display device. Since the process of sensing the first level signal is similar for different touch electrodes, the following explanation will use any one touch electrode as an example.

[0041] In some cases, the touch interaction device first sends an X-direction position signal to the touch display device as a second level signal. The second level signal has level transitions, so the touch interaction device will experience voltage changes due to the second level signal. When the second level signal is high, the touch interaction device is at a high voltage; if the second level signal switches to a low level, the touch interaction device is at a low voltage.

[0042] Touchscreen interactive devices generate an alternating electric field based on voltage changes. This alternating electric field then charges and discharges the TX touch electrode; for example, a high voltage charges the TX touch electrode, while a low voltage discharges it. The voltage of the TX touch electrode changes with the charging and discharging process—increasing during charging and decreasing during discharging. This voltage change in the TX touch electrode triggers a first-level signal.

[0043] Furthermore, the amount of charge change during the charging and discharging of the TX touch electrode is negatively correlated with distance. For example, the closer the TX touch electrode is to the touch position, the greater the voltage difference between the alternating electric field and the TX touch electrode, and the more charge migrates based on this voltage difference. The greater the amount of charge change, the greater the fluctuation amplitude of the first-level signal sensed by the TX touch electrode; this fluctuation amplitude is also called signal strength. Therefore, the fluctuation amplitude of the first-level signal sensed by the TX touch electrode is negatively correlated with distance.

[0044] Figure 4 A schematic diagram of a signal amplitude is shown. Figure 4 The diagram shows five waveforms sensed by the TX touch electrode based on the X-direction position signal. The third waveform is the signal waveform sensed by the TX touch electrode closest to the touch position. As the distance increases, the signal strength of the first level signal sensed by the TX touch electrode decreases.

[0045] Subsequently, the touch interaction device will also output a Y-direction position signal as a second level signal. The touch electrode that senses the first level signal based on the second level signal is the RX touch electrode. The process of the RX touch electrode sensing the first level signal is similar to that of the TX touch electrode sensing the first level signal, and will not be described in detail here.

[0046] In some cases, the intersecting touch electrodes form a mutual capacitance. For example, the TX touch electrode acts as the upper plate, the RX touch electrode as the lower plate, and the insulating layer between the TX and RX touch electrodes acts as the dielectric, forming a parallel-plate capacitor model, i.e., mutual capacitance. The capacitance value of this mutual capacitance changes based on the interaction between the touch display device and the touch interaction device. Therefore, the mutual capacitance can be used as a touch node, sensing a first-level signal based on a second-level signal. The process of sensing the first-level signal is similar for different touch nodes; the following explanation will use any touch node as an example.

[0047] The touch interaction device generates voltage changes based on the level transitions of the second-level signal. These voltage changes create an alternating electric field, which the device uses to charge and discharge the touch node. For example, high voltage charges the touch node, while low voltage discharges it. The voltage of the touch node changes with the charge, thus sensing the first-level signal. Similar to the sensing process of the touch electrodes, the signal strength of the first-level signal sensed by the touch node is negatively correlated with the distance between the touch node and the touch position.

[0048] It is understandable that the touch electrode senses the first level signal based on the second level signal. This can be due to the touch electrode itself sensing the second level signal in the corresponding direction during self-capacitive driving, or it can be due to the touch node on the touch electrode sensing the second level signal during mutual capacitive driving.

[0049] Regardless of the specific process by which the touch electrode senses the first level signal, since the signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode (meaning the distance between the touch electrode and the touch position), the touch chip, after sampling the first level signal based on the first clock signal, can determine the touch position based on the signal strength of the first level signal. For example, the X coordinate of the touch position can be determined based on the touch electrode with the strongest first level signal strength in the X direction, and the Y coordinate of the touch position can be determined based on the touch electrode with the strongest first level signal strength in the Y direction, thus determining the touch position. Optionally, the process of determining the touch position based on the first level signal can be executed by a processor connected to the touch display device.

[0050] In some cases, when calculating coordinates in any direction, weighted interpolation based on adjacent nodes can be used to optimize coordinate accuracy. Continuing with the X-direction as an example, the touch electrode with the strongest first-level signal is touch electrode 1. Adjacent electrodes are selected; these can be adjacent electrodes in any direction (up, down, left, right) or multiple directions. Then, weighted interpolation is performed based on the first-level signal sensed by the adjacent electrodes and their X-coordinates to obtain the X-coordinate of the touch position. By utilizing the strength of the sensed signals from adjacent electrodes to reflect the degree of offset of the touch position relative to touch electrode 1, the signal amplitude is converted into a coordinate offset, thus upgrading discrete grid sampling to continuous positioning, resulting in higher positioning accuracy.

[0051] Taking the sensing of the first level signal through the touch node as an example again, after sampling the first level signal based on the first clock signal, the position of the touch node with the strongest signal strength of the first level signal can be directly used as the touch position, or the touch position can be determined based on the change in the signal strength of the first level signal. The determination process is similar to the process of determining the touch position based on the touch electrodes, and will not be described in detail here.

[0052] In one possible implementation, the touch chip, in addition to sampling the first level signal to determine the touch position, also determines whether the first clock signal and the clock signal of the touch interaction device are synchronized based on the first level signal. Since the first clock signal and the clock signal of the touch interaction device are synchronized under normal circumstances (i.e., when the first clock signal has no error), but desynchronized under abnormal circumstances (i.e., when the first clock signal has errors or drift), determining whether the first clock signal and the touch interaction device's signal are synchronized can be achieved by calibrating the first clock signal to determine if there are any errors in the first clock signal.

[0053] For example, the frequency statistics module 01 selects a reference level signal from the first level signals sensed by a plurality of touch electrodes, and determines a first clock frequency based on the reference level signal and the first clock signal, so as to perform clock calibration by means of the first clock frequency.

[0054] Optionally, the reference level signal is a level signal selected from the first level signals sensed by multiple touch electrodes. If the touch display panel senses the first level signal based on only one second level signal, the reference level signal can be directly selected from the sensed first level signals. If the touch display panel senses the first level signal based on multiple second level signals respectively, the second level signal will be selected first, and then the reference level signal will be selected from the multiple first level signals sensed by that second level signal.

[0055] Continuing with the example of multiple second-level signals including X-axis and Y-axis position signals in the above embodiment, the X-axis position signal can be selected, and then a reference level signal can be selected from the multiple first-level signals sensed by the X-axis position signal. Alternatively, since the line length of the RX touch electrode is shorter than that of the TX touch electrode, the line resistance and parasitic capacitance of the RX touch electrode are smaller, and the RX touch electrode can receive the Y-axis position signal more stably and sense a more stable first-level signal. Thus, the Y-axis position signal is selected, and the selection is based on the first-level signal sensed by the multiple RX touch electrodes based on the Y-axis position signal.

[0056] Although multiple touch electrodes in the touch display panel sense a first-level signal, this signal weakens rapidly with increasing distance. The weaker the first-level signal, the more susceptible it is to environmental interference, such as edge leakage and electromagnetic interference. Therefore, the closer the touch electrode is to the touch position, the more standardized the frequency of the first-level signal it senses. Standardization refers to the smaller the difference between the frequency of the first-level signal and the frequency of the second-level signal; the more standardized the signal, the better. Furthermore, the closer the touch electrode is to the touch position, the stronger its signal, making the stronger first-level signal easier to sample. Based on this, the frequency statistics module 01 can select a reference level signal based on the signal strength of the first-level signal to improve sampling accuracy. A clock calibrated based on a more precise first-level signal is more accurate.

[0057] Optionally, the frequency statistics module 01 can select a reference level signal from a plurality of first level signals in two ways, including but not limited to the following.

[0058] Option 1: The reference level signal is the first level signal with the largest signal strength among multiple first level signals.

[0059] In some cases, the frequency statistics module 01 includes a multiplexer that selects a reference level signal from multiple first level signals based on the signal strength sensed by multiple touch electrodes. See also Figure 5 The multiplexer shown receives first-level signals sensed by multiple RX touch electrodes. Based on the signal strength of these first-level signals, it selects the signal with the strongest signal strength as the reference level signal for output. Selecting the first-level signal with the strongest signal strength as the reference level signal reduces crosstalk between adjacent touch electrodes and invalid signals caused by spatial electromagnetic interference, preventing the reference level signal from being skewed by noise.

[0060] Figure 5In this context, Ch sel is the channel selection signal, used to control the selection strategy of the multiplexer. RX indicates the first level signal input to the RX touch electrode or refers to the first level signal obtained by sampling the RX touch electrode. Multiple RX are connected to the multiplexer respectively, and input the first level signal to the multiplexer based on the connection relationship.

[0061] Option 2: The reference level signal is the average value of a portion of the multiple first level signals, and the portion of the first level signal is selected from the multiple first level signals based on the signal strength of each first level signal.

[0062] For example, a partial first-level signal refers to a first-level signal among multiple first-level signals whose signal strength is not lower than a strength threshold. The frequency statistics module 01 selects a first-level signal whose signal strength is not lower than the strength threshold from the multiple first-level signals, and obtains a reference level signal based on the selected first-level signal. The strength threshold can be set based on experience and the implementation environment. The implementation environment is, for example, the signal strength of the second-level signal. If the signal strength is not lower than the strength threshold, it indicates that the touch electrode 01 that senses the first-level signal is located in the touch area, and the first-level signal is less affected by noise. The process of determining the reference level signal based on multiple first-level signals is, for example, to use the average value of the selected first-level signals as the reference level signal. The reference level signal is generated based on multiple first-level signals. Even if a certain first-level signal is superimposed with random noise, during the calculation of the average value, the random noise will be distributed and balanced among the multiple signals, thereby reducing the impact of noise on the final reference level.

[0063] In some cases, the process of selecting a portion of the first-level signals from multiple first-level signals can also be achieved using a multiplexer.

[0064] Since the touch position of a touch-interactive device is not fixed, it may change with each touch. If the first level signal sensed by the same touch electrode is selected as the reference level signal, signal distortion or attenuation will occur. Therefore, by selecting either method one or method two, the device automatically switches to the touch electrode with the strongest signal strength each time clock calibration is performed, thereby ensuring the consistency and accuracy of the measurement.

[0065] Regardless of the method by which the frequency statistics module 01 acquires the reference clock signal, it can perform frequency statistics based on the reference clock signal to obtain the first clock frequency. For example, within the clock cycle of the reference level signal, the frequency statistics module 01 counts the number of transitions of the first clock signal, determines the first clock frequency based on the number of transitions, and makes judgments based on the first clock frequency.

[0066] In one possible implementation, although the selected reference level signal is one that is less susceptible to noise interference, it still actually contains noise interference. This noise interference can cause changes in the waveform and transition edges of the reference level signal. For example, the reference level signal transmitted through the touch panel may become... Figure 6 The shape shown has a time constant characteristic. Figure 6 The Active Pen position signal is a reference level signal sensed based on the second level signal.

[0067] The reference level signal has a time constant characteristic, which means that the reference level signal does not jump instantaneously, but rather completes the jump over a period of time. Therefore, the frequency statistics module 01 also locates the jump time of the reference level signal to determine the clock period. For example, the clock period is based on a first time point and a second time point. The first time point is when the level value of the first jump edge of the reference level signal equals the level threshold, and the second time point is when the level value of the second jump edge of the reference level signal equals the level threshold. The first jump edge and the second jump edge are adjacent and have the same jump direction.

[0068] See also Figure 6 , Figure 6 The touch controller interrupt is an internal interrupt signal generated by the frequency statistics module 01 when it detects that the reference level signal is close to the level threshold. Threshold corresponds to the level threshold. Figure 6 Both the first and second transition edges are rising edges. The frequency statistics module 01 determines the clock period of the reference level signal based on the interrupt time of the touch controller interrupt. FREQmeasure (frequency measurement window) corresponds to the clock period and belongs to the time window for transition statistics based on the first clock signal.

[0069] For example, the received reference level signal is converted into digital data by an analog-to-digital converter. Then, the frequency statistics module 01 compares the digital data with a level threshold to capture the first and second moments when the signal crosses the threshold. By comparing the threshold, sampling mis-triggering or mis-termination caused by the reference level signal being in a transition phase from low to high or from high to low level is reduced, thus ensuring sampling accuracy.

[0070] In some cases, the frequency statistics module 01 also includes a counter. The counter counts based on the first clock signal within the clock cycle. The first moment is the start moment of the count, and the second moment is the end moment of the count. During the counting period, the count value is incremented by 1 for each complete transition of the first clock signal. A complete transition means a transition from high level to low level and then from low level to high level.

[0071] After determining the number of transitions, the frequency statistics module 01 multiplies the number of transitions by the period length of the first clock signal. The product reflects the length of the clock period of the reference level signal. Then, the frequency statistics module 01 uses the reciprocal of the product as the clock frequency to obtain the first clock frequency, which belongs to the clock frequency of the reference level signal measured based on the first clock signal.

[0072] In some cases, noise occurs randomly, such as during certain level periods. Therefore, the frequency statistics module 01 performs multiple samplings. Multiple samplings reduce the error caused by noise, thereby improving the accuracy of the statistically obtained frequency. The sampling process is similar to that shown in the previous embodiment, except that for each sample, the frequency statistics module 01 also determines the current sampling count. If the sampling count has not reached the termination condition, the first clock period, reference clock frequency, or number of transitions obtained from the current sampling is stored. If the sampling count has reached the termination condition, the first clock frequency is determined based on the values ​​obtained from multiple samplings. For example, the first clock frequency can be determined based on multiple second clock frequencies, and these multiple second clock frequencies can be determined based on the number of transitions obtained from multiple samplings.

[0073] For example, the termination condition can be based on experience and implementation environment settings, such as a touch display device, and can be set according to factors such as ambient noise, the interaction speed of the touch interaction device, and the operating status of the touch interaction device, in order to balance the gain of the average filter with the response speed of the touch display device.

[0074] Taking environmental noise as an example, the termination condition is positively correlated with the intensity of environmental noise. The greater the intensity of environmental noise, the more times the termination condition is applied. By performing more frequency sampling, the average filtering effect is improved, random glitches caused by environmental noise are suppressed, and sampling accuracy is improved. Taking interaction speed as another example, the termination condition is negatively correlated with interaction speed. The higher the interaction speed, the faster the touch interaction device moves on the touch display device. By reducing the number of samplings, calibration latency is reduced, avoiding interaction delays caused by excessive calibration. Taking operating status as yet another example, the operating status reflects the workload of the touch display panel. For example, operating status includes a stopped state and a continuous touch state. The workload in the stopped state is lower than that in the continuous touch state. The termination condition is negatively correlated with the workload; that is, the higher the workload, the fewer the number of termination conditions. By reducing the number of samplings, the computational burden on the touch chip is reduced.

[0075] Optionally, the frequency statistics module 01 uses the average value of the second clock frequency as the first clock frequency. If the value obtained from multiple samplings is the number of transitions, the average value of the number of transitions can be calculated, and the first clock frequency is determined based on the average value. If the value obtained from multiple samplings is the clock period, the average value of the clock period is calculated first, and the reciprocal of the average value is used as the first clock frequency. By averaging through multiple samplings, the influence of level fluctuations caused by random noise is reduced, thereby improving the accuracy of the first clock frequency, while also taking into account power consumption and scanning timing efficiency.

[0076] See Figure 7 , Figure 7 The largest pen tip signal corresponds to the reference level signal. Selecting the FREQ (Frequency) measurement node refers to the node with the largest signal strength selected by the multiplexer, which is the touch electrode used to output the reference level signal. FREQ measure (Frequency measure) refers to the second clock frequency obtained by sampling the first clock signal based on the reference level signal. measure_freq_value (measure frequency value) refers to the sum of the second clock frequencies obtained from multiple samples. FREQ CNT (Frequency Counter) refers to the current number of samples. CNT Value (Counter Value) refers to the number of times thresholded, which is the termination condition. freq_value_avg (frequency value average) is the average of multiple second clock frequencies, which is the first clock frequency.

[0077] Optionally, after the frequency statistics module 01 determines the first clock frequency, the clock control module 02 directly calibrates the first clock signal based on the first clock frequency. Alternatively, the first clock frequency is calibrated to calibrate the first clock signal using the calibrated first clock frequency.

[0078] The calibration process can be performed by the frequency statistics module 01 or by other modules within the touch chip. Since the execution processes of different modules are similar, the following explanation will take the execution by the frequency statistics module 01 as an example.

[0079] For example, the frequency statistics module 01 acquires the predicted and measured values ​​of the clock period of the reference level signal, and calibrates the first clock frequency based on the deviation between the predicted and measured values. The measured value is obtained by timestamping the reference level signal. At the first and second moments, the frequency statistics module 01 latches the precise moment of the current local clock, obtaining two timestamps, and uses the difference between the two timestamps as the measured value of the clock period.

[0080] For example, the predicted value is obtained based on historical measurements of the clock cycle. In some cases, for a reference level signal, the frequency statistics module 01 performs multiple timestamp statistics. For instance, the frequency statistics module 01 may count multiple second clock frequencies, and during the counting of the second clock frequencies, it may also count measurements of the clock cycle. Alternatively, although the frequency statistics module 01 only counts one first clock frequency, it may also count measurements during the counting of the first clock frequency, as well as measurements in other clock cycles. For any given measurement, the frequency statistics module 01 predicts the value for the current moment based on measurements counted before the current moment.

[0081] Next, for each predicted value and its corresponding measured value, the deviation between the predicted and measured values ​​is calculated. Multiple deviations are accumulated or averaged, and the first clock frequency is calibrated based on the processing results to obtain the calibrated first clock frequency. The difference between the measured and predicted values ​​characterizes the random noise and instantaneous jitter in a single measurement. By processing multiple differences, the random disturbances in the first clock frequency are canceled out, resulting in a stable clock frequency and improving the clock calibration accuracy.

[0082] In some cases, the frequency statistics module 01 can perform timestamp calibration not only based on the reference level signal, but also based on other downlink data packets, which can be signals sent by any touch interaction device.

[0083] Regardless of whether the first clock frequency is calibrated, the first clock signal can be calibrated based on the first clock frequency. For example, a reference clock frequency can be obtained, and the first clock signal can be calibrated based on the frequency difference between the first clock frequency and the reference clock frequency.

[0084] The reference clock frequency reflects the theoretical clock frequency of the reference level signal. The clock control module 02 can obtain the reference clock frequency through protocol settings or manual configuration. If the first clock signal has an offset, the actual clock period of the first clock signal will be longer, and the number of transitions in the first clock signal will be fewer. However, if the reference period length is the length of the clock period before the extension when determining the first clock frequency, the first clock frequency will be too high. Conversely, if the actual clock period of the first clock signal is shorter, and the number of transitions in the first clock signal is more, but the reference period length is the length of the clock period before the shortening when determining the first clock frequency, the first clock frequency will be too low.

[0085] Based on this, the clock control module 02 performs clock calibration based on the first clock frequency and the reference clock frequency. Optionally, the reference clock frequency can be the clock frequency of the third clock signal of the touch interaction device. Since the reference clock signal is sensed based on the second level signal, the transitions of the reference clock signal and the second level signal are synchronized. The transitions of the second level signal are controlled based on the third clock signal of the touch interaction device. For example, when the third clock signal transitions, the touch interaction device controls the second level signal to flip. Therefore, the clock period of the reference clock signal indicates the clock period of the third clock signal, and the clock frequency of the reference clock signal is also the clock frequency of the third clock signal.

[0086] Regardless of the reference clock frequency, the clock control module 02 can determine that the first clock signal calibration is successful if the frequency difference is not greater than the error threshold, and output the calibrated first clock signal; or, if the frequency difference is greater than the error threshold, determine that the first clock signal calibration is unsuccessful, and adjust the output clock signal from the first clock signal to the second clock signal, wherein the second clock signal is the clock signal that has been calibrated based on the reference clock frequency.

[0087] The error threshold is an arbitrary value set based on experience and the implementation environment, such as the temperature of the touch display device. The error threshold and correction gain are adjusted according to the sensor temperature. The error threshold reflects the clock fault tolerance between the touch interaction device and the touch display device. If the frequency difference does not exceed the error threshold, it means that the deviation of the first clock signal does not affect the interaction between the touch interaction device and the touch display device, and signal transmission and data demodulation can still be performed normally.

[0088] If the frequency difference exceeds the error threshold, it means that the deviation of the first clock signal affects the interaction between the touch interaction device and the touch display device. If signal transmission and data demodulation continue to be performed based on the first clock signal, the receiving end will not be able to obtain the correct signal, which will lead to the failure of the interaction. Therefore, the clock control module 02 will adjust the first clock signal.

[0089] The clock signal is selectively adjusted based on the error threshold to avoid timing oscillations caused by frequent adjustments. The clock signal is only adjusted when the frequency difference exceeds the error threshold to quickly correct excessive clock deviations. This prevents signal demodulation errors and disconnections between touch interaction devices and touch display devices due to timing misalignment, significantly improving the reliability of touch communication.

[0090] In some cases, the clock control module 02 adjusts the output clock signal based on the relationship between the first clock frequency and the reference clock frequency. If the first clock frequency is greater than the reference clock frequency, it indicates that the actual clock period of the first clock signal is too large and the first clock signal is too slow. The clock control module 02 then increases the frequency of the output clock signal. If the first clock frequency is less than the reference clock frequency, it indicates that the actual clock period of the first clock signal is too small and the first clock signal is too fast. The clock control module 02 then decreases the frequency of the output clock signal.

[0091] When the clock control module 02 includes a PLL used to generate a clock signal, the frequency of the output clock signal can be adjusted by adjusting the parameters of the PLL. For example, the division or multiplication factor of the PLL can be determined based on the frequency difference, and the division or multiplication factor of the PLL can be adjusted based on the calculated value. The PLL then re-outputs the clock signal based on the adjusted parameters.

[0092] See Figure 8 , Figure 8 In this context, `freq_value_avg` refers to the first clock frequency, `freq_cal` refers to the reference clock frequency, `freq_result` refers to the frequency difference, and `PLL threshold` refers to the error threshold. If `freq_result` is greater than `PLLthreshold`, it indicates that the first clock signal calibration has failed, and the PLL parameters will be adjusted. If `freq_result` is not greater than `PLLthreshold`, the PLL parameters will not be adjusted to avoid instability of the touch display device due to frequent clock adjustments. This embodiment triggers clock adjustment based on the error threshold, improving calibration stability.

[0093] Optionally, the clock control module 02 can directly use the output clock signal as the calibrated second clock signal, or it can continue to verify the output clock signal. For example, based on the output clock signal, it can continue to count the third clock frequency, compare the frequency difference between the third clock frequency and the reference clock frequency, and if the frequency difference is not greater than the error threshold, it is determined that the output clock signal has passed calibration. Running based on this output clock signal can realize normal interaction with the touch interaction device, and the output clock signal is used as the second clock signal.

[0094] The second clock signal enables normal interaction with the touch-screen device. This means that the second and third clock signals are synchronized and their periods are matched. Period matching can be, for example, having the same period, or having different periods but the nominal frequencies of the second and third clock signals are the same, or the actual frequencies of the second and third clock signals are in a fixed ratio, and the frequency difference, timing error, and phase error between the second and third clock signals are all within the protocol's allowable range.

[0095] If the frequency difference exceeds the error threshold, the clock signal calibration is deemed to have failed. The clock control module 02 will then continue adjusting the output clock signal based on the frequency difference until the frequency difference between the clock frequency sampled from the output clock signal and the reference clock frequency is no greater than the error threshold. Only then will the output clock signal be used as the second clock signal. This can be understood as follows: if the frequency difference between the clock frequency sampled from the second clock signal and the reference clock frequency is no greater than the error threshold, normal interaction is possible based on the second clock signal.

[0096] The above example illustrates that the touch chip performs clock calibration after receiving the first level signal, rather than limiting the execution order of clock calibration. Since the second level signal and interaction data sent by the touch interaction device to the touch display device are data generated from the same touch, for example, the second level signal is the position carrier signal of the touch interaction device, indicating the position of the interaction, while the interaction data indicates the state during the interaction. The state can be, for example, the button state, pressure state, and posture state of the touch interaction device. The button state indicates whether a button on the touch interaction device is pressed, the pressure state indicates the amount of pressure applied to the touch display device during the touch, and the posture state indicates whether the touch interaction device is tilted and the tilt angle, etc. The interaction data corresponds to the state signals in the above embodiments.

[0097] Since data generated during the same touch operation needs to be synchronized with the clock, if the touch chip in the touch display device processes the first level signal based on the first clock signal, it will also process the interactive data based on the first clock signal. Therefore, the clock control module 02 will first continue to output the first clock signal so that the touch chip demodulates the interactive data based on the first clock signal. The demodulated interactive data is used to interact with the touch interaction device. After demodulating the interactive data, the first clock signal is calibrated.

[0098] Figure 9 This demonstrates the process of an interaction. Figure 9 Signal description and Figure 1 The signal description is similar. Figure 9In this context, FREQ Sensing corresponds to the operation performed by the frequency statistics module 01, and CLK Control Unit corresponds to the operation performed by the clock control module 02.

[0099] The touch display device first sends an uplink beacon to the touch interaction device based on a first clock signal, and receives a response signal returned by the touch interaction device based on a third clock signal. Then, the touch interaction device applies a second level signal to the touch display device based on touch. The touch display device calculates the first clock frequency based on the sensed reference level signal. After that, the touch interaction device sends a status signal as interactive data to the touch display device. After demodulating the status signal based on the first clock signal, the touch display device calibrates the first clock signal based on the first clock frequency.

[0100] See Figure 10 The touch chip in the touch display device also includes a controller 03. The controller 03 receives the status signal sent by the touch interaction device, demodulates the status signal based on the first clock signal, and uses the demodulated status signal to interact with the touch interaction device. After that, the clock control module 02 calibrates the first clock signal based on the first clock frequency.

[0101] Optionally, the controller 03 first segments the state signal based on the first clock signal to obtain multiple level segments, and determines binary symbols based on the values ​​of the multiple level segments to obtain state information including multiple binary symbols. For example, when the level segment is high, the binary symbol is determined to be 1, and when a level flip occurs in a subsequent level segment, the binary symbol is determined to be 0. The above demodulation process belongs to the differential binary phase shift keying (DPS) method. BPSK demodulation process. In some cases, controller 03 may also use other demodulation methods corresponding to the modulation methods of touch interaction devices.

[0102] Regardless of how the controller 03 demodulates the status signal to obtain the status information, the status information can be used to interact with the touch interaction device. In some cases, the touch display device is located inside an electronic device, which also includes a processor. In this case, the touch display device will send the status information to the processor, and the processor will interact based on the status information.

[0103] The interaction process based on state information includes: determining the touch position of the touch interaction device based on a first level signal; determining whether the button on the touch interaction device is valid based on the button state; determining the action of the touch interaction device based on a valid button; determining the response rate based on the pressure state; and determining the touch trajectory based on the posture state. Hereafter, we will take a stylus as the touch interaction device and drawing as the interaction scenario.

[0104] The stylus has buttons including an eraser button. If the button is not pressed, the stylus triggers a drawing action. If the posture information is tilted to the left or right, the displayed line segments will have blurred edges based on the stylus's touch trajectory.

[0105] After the interaction is completed, the clock control module 02 adjusts the clock. Throughout the entire interaction and data transmission / reception phase of the touch interaction device, the clock signal output by the clock control module 02 remains unchanged as the first clock signal. The touch display device maintains a stable clock and time slot, ensuring that the communication window between the touch display device and the touch interaction device does not shift. This avoids data packet collisions and loss caused by time slot misalignment, guarantees stable uploading of continuous position coordinates, and effectively improves the jitter and ink latency of the touch interaction device. Simultaneously, clock calibration is uniformly scheduled during the idle time slot interval after the interaction ends, maintaining the alignment of the communication time slots at the beginning of each round of interaction. This ensures the orderly transmission of position signals, ACK signals, and interaction data, further improving the reliability of data packet transmission.

[0106] For example, the touch chip can perform clock calibration periodically, such as after each interaction or after several interactions. Since the primary cause of clock skew in touch displays is temperature change, and the temperature of a touch display does not change rapidly but takes time to reach a level that affects interaction, and since clock calibration consumes some position detection time, potentially impacting power efficiency and position detection duration, it is configured to perform clock calibration periodically. The calibration cycle can be set based on user experience and power budget, such as the perceived latency and jitter caused by clock calibration.

[0107] like Figure 11 As shown, Figure 11 Touch calibration occurs during a single frame of display. Figure 11 In this context, C indicates a display frame that performs clock calibration as provided in the embodiments of this application, and N indicates a display frame that does not perform clock calibration. A display frame refers to a frame of image displayed by the touch display device when the touch interaction device and the touch display device interact. Figure 11 During this process, clock calibration is performed every N frames, and the calibration cycle can be based on experience or the implementation environment, such as a touch display device.

[0108] In some cases, the first clock signal is generated by a clock oscillator configured within the touch display device. This clock oscillator can be located inside the touch display device (internal oscillator) or outside the touch display device (external oscillator). The third clock signal can be generated by either the internal or external oscillator of the touch interactive device. By configuring the oscillator outside the touch interactive device, variations caused by temperature or inter-product deviations can be reduced.

[0109] In summary, the touch chip provided in this application embodiment performs clock calibration based on a first-level signal, which can promptly correct clock deviations in the touch chip and avoid interaction failures due to clock asynchrony. Furthermore, the signal used for clock calibration is the signal generated during the touch process, and the calibration process does not involve additional signals. Through signal multiplexing, the clock calibration cost is reduced.

[0110] This application also provides a clock calibration method, which can be applied to a touch display device. The touch display device includes a touch display panel, and the touch display panel includes a plurality of touch electrodes. See [link to previous section]. Figure 12 The method includes steps 1201-1203.

[0111] In step 1201, the first clock signal is acquired.

[0112] Optionally, the touch display device includes a touch chip with a clock control module built into it. The clock control module has a built-in PLL for oscillating to generate a first clock signal.

[0113] In step 1202, a reference level signal is selected from the first level signals sensed by multiple touch electrodes, and a first clock frequency is determined based on the reference level signal and the first clock signal. The first level signal and the first clock signal are used to determine the current touch position of the touch interaction device.

[0114] Optionally, the first level signal is sensed by the touch electrode based on the second level signal output by the touch interaction device. The signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode, which refers to the distance between the touch electrode and the touch position. Then, the touch display device will select a reference level signal from the multiple first level signals based on the signal strength of the first level signals sensed by the multiple touch electrodes.

[0115] The selected reference level signal is the first level signal with the largest signal strength among a plurality of first level signals; alternatively, the reference level signal is the average value of a subset of the plurality of first level signals, which are selected from the plurality of first level signals based on the signal strength of each first level signal. The process of selecting the reference level signal based on the first level signals can be referred to selection method one and selection method two performed by the frequency statistics module in the above embodiments.

[0116] For example, determining a first clock frequency based on a reference level signal and a first clock signal includes: counting the number of transitions of the first clock signal within the clock period of the reference level signal, and determining the first clock frequency based on the number of transitions. The clock period of the reference level signal is indicated based on a first moment and a second moment. The first moment is the time when the level value of the first transition edge of the reference level signal equals a level threshold, and the second moment is the time when the level value of the second transition edge of the reference level signal equals the level threshold. The first and second transition edges are adjacent and have the same transition direction.

[0117] For details on the process of obtaining the first clock frequency, please refer to the frequency statistics module 01. The process of obtaining the first clock frequency can be divided into performing one sampling or performing multiple samplings. For example, the first clock period is determined based on the number of transitions and the period length of the first clock signal, and the second clock frequency is determined based on the first clock period. When the number of samplings of the first clock signal reaches the end condition, the first clock frequency is determined based on multiple second clock frequencies. The multiple second clock frequencies are determined based on the number of transitions obtained from multiple samplings. The details will not be elaborated here.

[0118] In step 1203, the first clock signal is calibrated based on the first clock frequency to obtain the calibrated first clock signal, which is used to determine the touch position of the touch interaction device.

[0119] In some cases, the touch chip also calibrates the first clock frequency. For example, it acquires the predicted and measured values ​​of the clock cycle of the reference level signal. The measured value is obtained by timestamping the reference level signal, and the predicted value is predicted based on the historical measured values ​​of the clock cycle. The first clock frequency is calibrated based on the deviation between the predicted and measured values, and the first clock signal is calibrated based on the calibrated first clock frequency. The calibration process can be found in the first clock frequency calibration process in the above embodiments, and will not be repeated here.

[0120] Regardless of whether the touch chip calibrates the first clock frequency, the process of calibrating the first clock signal is similar. For example, the reference clock frequency corresponding to the reference level signal is obtained; the first clock signal is calibrated based on the frequency difference between the first clock frequency and the reference clock frequency.

[0121] Optionally, if the frequency difference is not greater than the error threshold, the first clock signal calibration is deemed successful, and the calibrated first clock signal is output; if the frequency difference is greater than the error threshold, the first clock signal calibration is deemed unsuccessful, and the output clock signal is adjusted from the first clock signal to a second clock signal, wherein the second clock signal is a clock signal that has passed calibration based on a reference clock frequency. The calibration process can be found in the clock control module 02's calibration process for the first clock signal, and will not be described in detail here.

[0122] In some cases, the above calibration process occurs after the current interaction ends, that is, before calibrating the first clock signal based on the first clock frequency and obtaining the calibrated first clock signal. It also includes: receiving interactive data sent by the touch interaction device and demodulating the interactive data based on the first clock signal. For the process of demodulating the interactive data, please refer to the process of controller 02 demodulating the interactive data in the above embodiments, which will not be repeated here.

[0123] This application provides a touch display device, which includes... Figure 2 , Figure 3 or Figure 10 The touch chip and touch display panel.

[0124] This application provides an electronic device, which includes a touch panel and a processor. The processor is used to interact based on signals output by the touch display device, such as determining the touch position based on the output first level signal, or interactively displaying based on the output interactive data.

[0125] For example, electronic devices include smartphones, tablets, laptops with integrated touchscreens, touchpads, in-vehicle terminals, etc.

[0126] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first-level signals involved in this application were all obtained under fully authorized conditions.

[0127] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0128] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A touch chip, characterized in that, The touch chip is used to control the touch display panel, which includes multiple touch electrodes; the touch chip includes a frequency statistics module and a clock control module. The clock control module is configured to output a first clock signal; The frequency statistics module is configured to select a reference level signal from the first level signals sensed by the plurality of touch electrodes, and determine a first clock frequency based on the reference level signal and the first clock signal. The first level signal and the first clock signal are used to determine the current touch position of the touch interaction device. The clock control module is configured to calibrate the first clock signal based on the first clock frequency to obtain a calibrated first clock signal, which is used to determine the subsequent touch position of the touch interaction device.

2. The touch chip according to claim 1, characterized in that, The signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode, where the distance corresponding to the touch electrode refers to the distance between the touch electrode and the touch position, and the frequency statistics module includes a multiplexer; The multiplexer is configured to select the reference level signal from a plurality of first level signals based on the signal strength of the first level signals sensed by the plurality of touch electrodes.

3. The touch chip according to claim 1 or 2, characterized in that, The reference level signal is the first level signal with the largest signal strength among a plurality of first level signals; Alternatively, the reference level signal may be the average value of a portion of the plurality of first level signals, wherein the portion of the first level signals is selected from the plurality of first level signals based on the signal strength of each first level signal.

4. The touch chip according to claim 1, characterized in that, The frequency statistics module is configured to count the number of transitions of the first clock signal within the clock cycle of the reference level signal, and determine the first clock frequency based on the number of transitions.

5. The touch chip according to claim 4, characterized in that, The clock period of the reference level signal is indicated based on a first time and a second time. The first time is the moment when the level value of the first transition edge of the reference level signal is equal to the level threshold, and the second time is the moment when the level value of the second transition edge of the reference level signal is equal to the level threshold. The first transition edge and the second transition edge are adjacent and have the same transition direction.

6. The touch chip according to claim 4 or 5, characterized in that, The frequency statistics module is configured to determine a first clock period based on the number of transitions and the period length of the first clock signal, and to determine a second clock frequency based on the first clock period. When the sampling count of the first clock signal reaches the termination condition, the first clock frequency is determined based on multiple second clock frequencies, wherein the multiple second clock frequencies are determined based on the number of transitions obtained from multiple samplings.

7. The touch chip according to claim 1 or 2, characterized in that, The frequency statistics module is further configured to acquire a predicted value and a measured value of the clock cycle of the reference level signal, wherein the measured value is obtained by performing timestamp statistics on the reference level signal, and the predicted value is predicted based on the historical measured value of the clock cycle; and to calibrate the first clock frequency based on the deviation between the predicted value and the measured value, so as to calibrate the first clock signal based on the calibrated first clock frequency.

8. The touch chip according to claim 1 or 2, characterized in that, The clock control module is configured to acquire the reference clock frequency corresponding to the reference level signal; and to calibrate the first clock signal based on the frequency difference between the first clock frequency and the reference clock frequency.

9. The touch chip according to claim 8, characterized in that, The clock control module is configured to determine that the first clock signal has passed calibration and output the calibrated first clock signal when the frequency difference is not greater than the error threshold. If the frequency difference is greater than the error threshold, it is determined that the first clock signal calibration has failed, and the output clock signal is adjusted from the first clock signal to the second clock signal, wherein the second clock signal is a clock signal that has passed calibration based on the reference clock frequency.

10. A clock calibration method, characterized in that, The method is applied to a touch display device, the touch display device including a touch display panel, the touch display panel including a plurality of touch electrodes, the method comprising: Obtain the first clock signal; A reference level signal is selected from the first level signals sensed by the plurality of touch electrodes, and a first clock frequency is determined based on the reference level signal and the first clock signal. The first level signal and the first clock signal are used to determine the current touch position of the touch interaction device. The first clock signal is calibrated based on the first clock frequency to obtain a calibrated first clock signal, which is used to determine the subsequent touch position of the touch interaction device.

11. The method according to claim 10, characterized in that, The signal strength of the first level signal is negatively correlated with the distance corresponding to the touch electrode, where the distance corresponding to the touch electrode refers to the distance between the touch electrode and the touch position. Selecting a reference level signal from the first level signals sensed by the plurality of touch electrodes includes: The reference level signal is selected from the plurality of first level signals based on the signal strength of the first level signals sensed by the plurality of touch electrodes.

12. The method according to claim 10 or 11, characterized in that, The reference level signal is the first level signal with the largest signal strength among a plurality of first level signals; Alternatively, the reference level signal may be the average value of a portion of the plurality of first level signals, wherein the portion of the first level signals is selected from the plurality of first level signals based on the signal strength of each first level signal.

13. The method according to claim 10, characterized in that, Determining the first clock frequency based on the reference level signal and the first clock signal includes: Within the clock cycle of the reference level signal, the number of transitions of the first clock signal is counted, and the first clock frequency is determined based on the number of transitions.

14. The method according to claim 13, characterized in that, The clock period of the reference level signal is indicated based on a first time and a second time. The first time is the moment when the level value of the first transition edge of the reference level signal is equal to the level threshold, and the second time is the moment when the level value of the second transition edge of the reference level signal is equal to the level threshold. The first transition edge and the second transition edge are adjacent and have the same transition direction.

15. The method according to claim 13 or 14, characterized in that, Determining the first clock frequency based on the number of transitions includes: A first clock period is determined based on the number of transitions and the period length of the first clock signal, and a second clock frequency is determined based on the first clock period. When the sampling count of the first clock signal reaches the termination condition, the first clock frequency is determined based on multiple second clock frequencies, wherein the multiple second clock frequencies are determined based on the number of transitions obtained from multiple samplings.

16. The method according to claim 10 or 11, characterized in that, Before calibrating the first clock signal based on the first clock frequency, the method further includes: The predicted and measured values ​​of the clock cycle of the reference level signal are obtained. The measured value is obtained by performing timestamp statistics on the reference level signal, and the predicted value is predicted based on the historical measured values ​​of the clock cycle. The first clock frequency is calibrated based on the deviation between the predicted value and the measured value, so as to calibrate the first clock signal based on the calibrated first clock frequency.

17. The method according to claim 10 or 11, characterized in that, The calibration of the first clock signal based on the first clock frequency includes: Obtain the reference clock frequency corresponding to the reference level signal; The first clock signal is calibrated based on the frequency difference between the first clock frequency and the reference clock frequency.

18. The method according to claim 17, characterized in that, The calibration of the first clock signal based on the frequency difference between the first clock frequency and the reference clock frequency includes: If the frequency difference is not greater than the error threshold, the first clock signal is determined to be calibrated and the calibrated first clock signal is output. If the frequency difference is greater than the error threshold, it is determined that the first clock signal calibration has failed, and the output clock signal is adjusted from the first clock signal to the second clock signal, wherein the second clock signal is a clock signal that has passed calibration based on the reference clock frequency.

19. A touch display device, characterized in that, The touch display device includes: a touch display panel and a touch chip as described in any one of claims 1-9.

20. An electronic device, characterized in that, The electronic device includes the apparatus and processor as described in claim 19, the processor being configured to determine a touch position based on a signal output by the touch display device.