Chip frequency calibration method and device, equipment, storage medium and chip
By determining the difference between the actual working frequency and the standard working frequency for multiple frequency points of the touch chip, and selecting the frequency point with the smallest absolute value as the actual working frequency of the target frequency point, the problem of large operating frequency error between touch chips in the prior art is solved, and the touch performance of the touch screen is improved.
Patent Information
- Application Number
- CN202311635562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art is difficult to effectively reduce the operating frequency error between touch chips, resulting in the impact of the touch performance of the touch screen.
By obtaining multiple frequency points of the chip, their standard and actual working frequency, determine the difference between the actual working frequency and the reference frequency for the frequency points in a certain range before and after the target frequency point, and select the frequency point with the smallest absolute value as the actual working frequency of the target frequency point.
It effectively reduces the deviation between the actual working frequency of the target frequency between chips and the standard working frequency, and improves the touch performance and stability of the touch screen.
Smart Images

Figure CN120066299A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to chip testing technologies, including but not limited to a chip frequency calibration method, device, equipment, storage medium, and chip. Background Art
[0002] A touch screen is an inductive display device that can receive input signals such as finger touches. The touch screen generates a touch signal with a certain frequency through a touch chip to drive a touch module to achieve touch functions.
[0003] The operating frequency of a touch chip is usually generated by performing operations such as frequency division and frequency multiplication on a reference frequency generated by an OSC (Oscillator) inside the touch chip. There are inevitable errors in the frequencies between the OSCs of each touch chip. However, there is currently no good way to reduce the errors of the OSCs of each touch chip, which results in errors between the actual operating frequencies of each touch chip, thereby affecting the touch performance of the touch screen. Summary of the Invention
[0004] In view of this, the chip frequency calibration method, device, equipment, storage medium, and chip provided by embodiments of the present application can reduce the error in the operating frequencies between chips. The chip frequency calibration method, device, equipment, and storage medium provided by embodiments of the present application are implemented as follows:
[0005] In a first aspect, the chip frequency calibration method provided by embodiments of the present application includes:
[0006] Obtain a plurality of frequency points arranged in a preset sorting manner of a chip, as well as the standard operating frequency and the actual operating frequency of each frequency point;
[0007] For a target number of frequency points located on both sides before and after a target frequency point, taking the standard operating frequency of the target frequency point as a reference frequency, determine the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, where the target frequency point belongs to the plurality of frequency points;
[0008] Determine the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
[0009] In some embodiments, the preset sorting manner is a sorting manner from small to large, and the method further includes:
[0010] Determine the next frequency point of the target frequency point as the new target frequency point, and execute the step of determining, for the target number of frequency points on both the front and rear sides of the target frequency point, with the standard operating frequency of the target frequency point as the reference frequency, the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, and determining the actual operating frequency of the frequency point corresponding to the smallest such absolute value as the actual operating frequency of the target frequency point, until the new target frequency point is the preset maximum available frequency point.
[0011] In some embodiments, the method further includes:
[0012] Judge whether a first frequency difference is less than one-half of a second frequency difference, where the first frequency difference is the difference between the standard operating frequency and the actual operating frequency of the maximum available frequency point, the second frequency difference is the difference between the standard operating frequencies of any two adjacent frequency points, and the maximum available frequency point belongs to the plurality of frequency points;
[0013] If not, execute the step of determining, for the target number of frequency points on both the front and rear sides of the target frequency point, with the standard operating frequency of the target frequency point as the reference frequency, the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency.
[0014] In some embodiments, the method further includes:
[0015] Determine the target frequency point from the plurality of frequency points based on a preset first rule.
[0016] In some embodiments, the determining the target frequency point from the plurality of frequency points based on a preset first rule includes:
[0017] Among the plurality of frequency points, determine the frequency points with the difference between the standard operating frequency and the actual operating frequency greater than or equal to one-half of the second frequency difference as candidate frequency points;
[0018] Determine the frequency point with the smallest order among the candidate frequency points as the target frequency point.
[0019] In some embodiments, the method further includes:
[0020] Determine the target number based on a preset second rule.
[0021] In some embodiments, the determining the target number based on a preset second rule includes:
[0022] Calculate the quotient of the absolute value of the first frequency difference and the second frequency difference;
[0023] Round the quotient and add the rounded value to a preset integer value to obtain a target integer value;
[0024] Determine twice the target integer value as the target quantity.
[0025] In some embodiments, the method further includes:
[0026] From each of the calibrated target frequency points, determine a target frequency point whose difference between the actual operating frequency and the interference frequency is greater than a preset first frequency threshold as the frequency point to be used, so that the terminal drives the touch module using the actual operating frequency corresponding to the frequency point to be used.
[0027] In some embodiments, the method further includes:
[0028] Write the actual operating frequencies of the calibrated target frequency points into the registers of the chip.
[0029] In some embodiments, the chip includes at least one of a touch chip and a fingerprint chip.
[0030] In a second aspect, an embodiment of the present application provides a chip frequency calibration device, including:
[0031] An acquisition module, configured to acquire a plurality of frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point;
[0032] A first determination module, configured to, for a target quantity of frequency points located before and after the target frequency point, take the standard operating frequency of the target frequency point as a reference frequency, and determine the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, where the target frequency point belongs to the plurality of frequency points;
[0033] A second determination module, configured to determine the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
[0034] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program that can run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0036] Fifth aspect, an embodiment of the present application provides a chip, including a programmable circuit module, an oscillator, a frequency division and multiplication driving module, and a storage module. The memory stores a computer program that can run on the programmable circuit module. When the programmable circuit module executes the program, the method provided by the embodiment of the present application is implemented.
[0037] After obtaining a plurality of frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point, for a target number of frequency points located on both the front and rear sides of the target frequency point, by determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, and then determining the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point, the deviation between the actual operating frequency and the standard operating frequency of the target frequency point in the chip is greatly reduced. In this way, when the operating frequency of the target frequency point is required to drive the touch module, since the actual operating frequency of the target frequency point after calibration is closer to its standard operating frequency, the touch module can be driven more stably, thereby improving the touch performance of the touch screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to explain the technical solutions of the present application.
[0039] Figure 1 It is a schematic flowchart of a chip frequency calibration method provided by an embodiment of the present application;
[0040] Figure 2 It is a schematic flowchart of another chip frequency calibration method provided by an embodiment of the present application;
[0041] Figure 3 It is a schematic structural diagram of a chip frequency calibration device provided by an embodiment of the present application;
[0042] Figure 4 It is a schematic structural diagram of a computer device provided by an embodiment of the present application;
[0043] Figure 5 It is a schematic structural diagram of a chip provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application in detail with reference to the accompanying drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0046] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0047] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0048] The applicant also found out during the process of filing this application:
[0049] Since the frequencies of the touch signals of each touch chip are different, and the interference frequencies in the working environment of each touch chip are also different, the touch chip generally selects multiple frequencies of touch signals with less environmental interference as the working frequency of the touch module. The selected working frequency needs to make all touch chips have as many frequencies as possible with less interference when working, so as to ensure the stability of the working performance of the touch chip. And the selected working frequency needs to be as large as possible to support the touch chip with a higher refresh rate, thereby achieving better touch performance. The current process of generating the working frequency of the touch chip is: first generate the reference frequency through the OSC inside the touch chip, and then generate the working frequency after dividing and multiplying the frequency through the frequency division and frequency multiplication drive module. However, there is an error in the frequency of the OSC between each touch chip, usually 1.5% to 2%, which leads to an error between the actual working frequencies of each touch chip. Generally speaking, the higher the working frequency, the greater the error, so the working frequency in many touch chip applications cannot use a higher frequency band, resulting in the refresh rate and other performance of the touch module in the application not meeting the ideal standard. At the same time, since the working frequency errors between touch control chips are relatively large, some touch control chips with relatively large errors may also select working frequency noises with relatively large noises, resulting in poor touch control performance.
[0050] In view of this, an embodiment of the present application provides a chip frequency calibration method, which can be applied to a chip or an electronic device. Figure 1The method shown is applied to a chip. During implementation, the chip has programmable circuit modules inside. The functions implemented by this method can be achieved by calling program code through the programmable circuit modules inside the chip. Moreover, this circuit module can also read data in the chip's storage unit (such as a register); as Figure 1 The method shown is applied to a computer device. During implementation, this computer device can be various types of devices with information processing and display capabilities. For example, this computer device can include a personal computer, a laptop, a server, etc. Moreover, the above computer device can be communicatively connected to a chip programmer and burn data into the storage unit (such as a register) in the chip through the chip programmer. Embodiments of this application can use commercially available chip programmers, and this application has no particular limitations. The functions implemented by this method can be achieved by a processor in the computer device calling program code. Of course, the program code can be stored in a computer storage medium. It can be seen that this computer device includes at least a processor and a storage medium.
[0051] Please refer to Figure 1 , Figure 1 which is a flowchart of a chip frequency calibration method provided by an embodiment of this application and can include the following implementation steps:
[0052] S101. Obtain multiple frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point;
[0053] The operating frequency in embodiments of this application can refer to the frequency used by the voltage or signal when the chip is operating; a frequency point can refer to the number assigned to a fixed frequency. The OSC in embodiments of this application can be a quartz crystal resonator, abbreviated as a crystal oscillator. Embodiments of this application use a touch chip as an example for illustration. It can be understood that the chip frequency calibration method in embodiments of this application can also be applied to other types of chips.
[0054] The current touch screen can drive the touch module through an independent or integrated touch chip to achieve the touch function. Currently, for a touch chip integrated with an OSC, the generation process of its operating frequency is usually as follows: First, the OSC inside the chip generates a reference signal with a fixed frequency. Then, the frequency division and multiplication driving module inside the chip uses the reference frequency signal generated by the OSC to generate signals with different frequency points required for the chip operation through certain calculation and processing. Then, the frequencies of the signals with different frequency points are written into the frequency point configuration module, and the frequency point configuration module can configure the frequency points by reading the parameters related to the frequency points stored in the register. Due to the error in the OSC frequency between different chips, there is an error in the operating frequency of different chips at the same operating frequency point. Based on this, in the embodiments of the present application, the frequency points of the chip can be divided, and the divided frequency points are sorted in ascending order, and each frequency point corresponds to an operating frequency of the chip. In addition, the standard operating frequency and the actual operating frequency of each frequency point can be obtained by testing the chip.
[0055] Table 1 Operating Frequencies of the Chip before Calibration
[0056]
[0057]
[0058] Exemplarily, for a chip with a designed OSC frequency of 60 MHz and an OSC control error of ±1.7%, the minimum frequency division generated by it is 4.8 KHz, and its possible operating frequencies are shown in Table 1. Referring to Table 1, when the OSC frequency is completely accurate, that is, when the OSC frequency is 60 MHz, the actual operating frequencies corresponding to the 1 to 125 available frequency points (shown in the first column of Table 1) are exactly the same as the standard operating frequencies (shown in the second and third columns of Table 1); however, when the OSC frequencies are 58.98 MHz of the first chip (shown in the fourth column of Table 1, with a deviation of -1.7%) and 61.02 MHz of the second chip (shown in the fifth column of Table 1, with a deviation of +1.7%) respectively, among the operating frequencies of each corresponding frequency point, the larger the frequency point, the greater the deviation between the corresponding actual operating frequencies. For example, when the chip selects the 125th frequency point as the operating frequency, the actual operating frequency of the first chip is 589.8 KHz, and the actual operating frequency of the second chip is 610.2 KHz, and the maximum deviation between the actual operating frequencies of the first chip and the second chip and the standard operating frequency will reach 10.2 KHz.
[0059] S102. For the target number of frequency points on the front and rear sides of the target frequency point, taking the standard operating frequency of the target frequency point as the reference frequency, determine the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency.
[0060] In an embodiment of the present application, one frequency point can be selected from the above-mentioned multiple divided frequency points as the target frequency point, and then, taking this target frequency point as the reference point, a target number of frequency points located on its front and rear sides are selected respectively. Then, taking the standard operating frequency of the target frequency point as the reference frequency, the absolute value of the difference between the actual operating frequency of each selected frequency point and the reference frequency is calculated. In this way, a plurality of absolute values with different numerical values are obtained, and each absolute value corresponds to a selected frequency point. The target frequency point in the embodiment of the present application can be determined based on a preset first rule, and the target number can be determined based on a preset second rule, which will be specifically described later.
[0061] S103. Determine the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
[0062] After obtaining a plurality of absolute values with different numerical values, the embodiment of the present application can determine the absolute value with the smallest numerical value therefrom. It can be understood that the smaller the absolute value, the smaller the deviation between the actual operating frequency of the corresponding frequency point and the standard operating frequency of the target frequency point. Based on this principle, the embodiment of the present application can determine the actual operating frequency of the corresponding frequency point, denoted as the first actual operating frequency. In this way, the first actual operating frequency can be used as the actual operating frequency of the target frequency point, realizing the calibration process of the actual operating frequency of the target frequency point. By writing the calibrated actual operating frequency into the storage module (such as a register) of the chip, the chip can use this calibrated actual operating frequency to drive the touch module when working.
[0063] The chip frequency calibration method provided by the embodiment of the present application, after obtaining a plurality of frequency points arranged in a preset sorting manner of the chip and the standard operating frequency and actual operating frequency of each frequency point, for the target number of frequency points located on the front and rear sides of the target frequency point, by determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, and then determining the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point, greatly reduces the deviation between the actual operating frequency and the standard operating frequency of the target frequency point in the chip. In this way, when the operating frequency of the target frequency point is required to drive the touch module, since the calibrated actual operating frequency of this target frequency point is closer to its standard operating frequency, the touch module can be driven more stably, thereby improving the touch performance of the touch screen.
[0064] In an alternative embodiment, the preset sorting manner is a sorting manner from small to large, and the chip frequency calibration method of the embodiment of the present application further includes:
[0065] Determine the next frequency point of the target frequency point as the new target frequency point, and execute step S102 and step S103 until the new target frequency point is the preset maximum available frequency point.
[0066] Still taking the content shown in Table 1 as an example for illustration. Assume that the target frequency point is the 95th frequency point. After calibrating the actual operating frequency of the 95th frequency point, the 96th frequency point can be used as the new target frequency point, and the calibration processes of steps S102 and S103 are continued. In actual situations, there may be subsequent frequency points after the 125th frequency point, such as the 126th, 127th, etc. frequency points. Based on this, the tester can preset a maximum available frequency point according to the frequency band range actually required by the chip. In this way, the calibration process will end at the 125th frequency point, that is, the maximum available frequency point cut-off.
[0067] Table 2 Chip Operating Frequencies after Calibration
[0068]
[0069] Referring to Table 2, after being calibrated by the embodiments of the present application, the operating frequencies of each frequency point of the chip are very close, with a difference not exceeding half of the frequency difference between two adjacent frequency points. The deviation between the actual operating frequency and the standard operating frequency of each target frequency point in the chip is greatly reduced.
[0070] Through the embodiments of the present application, the frequency calibration of the target frequency point and other available frequency points after the target frequency point can be carried out one by one, greatly reducing the deviation between the actual operating frequency and the standard operating frequency of each target frequency point in the chip. In this way, when it is necessary to use the operating frequency of a certain target frequency point to drive the touch module of the touch screen, the target frequency point to be used can be quickly selected from multiple calibrated target frequency points, improving the adaptation efficiency of the touch screen to the actual operating frequency corresponding to the target frequency point.
[0071] In an alternative embodiment, as Figure 2 shown, the chip frequency calibration method of the embodiments of the present application further includes:
[0072] Step S101’: Determine whether the first frequency difference is less than half of the second frequency difference;
[0073] If not, execute step S102.
[0074] Wherein, the first frequency difference is the difference between the standard operating frequency and the actual operating frequency of the maximum available frequency point, the second frequency difference is the difference between the standard operating frequencies of any two adjacent frequency points, and the maximum available frequency point belongs to multiple frequency points.
[0075] Step S101’ can be located after step S101. Still taking the content shown in Table 1 as an example for illustration. The standard operating frequency of the 125th maximum available frequency point is 600KHz, and the actual operating frequency is 589.8KHz (when the crystal oscillator frequency is 58.98MHz). Then, the difference between the standard operating frequency and the actual operating frequency of the maximum available frequency point is 10.2, denoted as the first frequency difference; the difference between the standard operating frequencies of any two adjacent frequency points is 4.8, denoted as the second frequency difference.
[0076] If the first frequency difference is less than half of the second frequency difference, it indicates that the deviation between the actual operating frequency and the standard operating frequency of each frequency point of the chip is already very small and no calibration is required; if the first frequency difference is greater than or equal to half of the second frequency difference, it indicates that the deviation between the actual operating frequency and the standard operating frequency of each frequency point of the chip is relatively large and calibration is required. Since 10.2 is greater than 2.4, the actual operating frequencies of each frequency point of the chip shown in Table 1 need to be calibrated.
[0077] Through the embodiments of the present application, it is possible to determine whether it is necessary to calibrate the actual operating frequencies of each frequency point of the chip, so as to identify the chips that need to be frequency-calibrated from multiple chips, improving the intelligence of the identification of chips to be calibrated.
[0078] In an alternative embodiment, the chip frequency calibration method of the embodiments of the present application further includes:
[0079] Determine a target frequency point from multiple frequency points based on a preset first rule.
[0080] The embodiments of the present application can determine a target frequency point from multiple frequency points based on a preset first rule, thus laying a foundation for the subsequent frequency calibration process.
[0081] In an alternative embodiment, the specific steps for determining a target frequency point from multiple frequency points are:
[0082] Step A: Among multiple frequency points, determine the frequency points whose difference between the standard operating frequency and the actual operating frequency is greater than or equal to half of the second frequency difference as candidate frequency points;
[0083] Still taking the content shown in Table 1 as an example for illustration. It can start from the 1st frequency point. The standard operating frequency of the 1st frequency point is 4.8KHz, and the actual operating frequency is 4.7184KHz (when the crystal oscillator frequency is 58.98MHz), 4.8 - 4.7184 = 0.0816; the second frequency difference is 4.8, and half of it is 2.4. Since 0.0816 is less than 2.4, the 1st frequency point is not a candidate frequency point.
[0084] Step B: Determine the frequency point with the smallest order among the candidate frequency points as the target frequency point.
[0085] According to this principle, it is possible to determine whether subsequent frequency points such as the second frequency point, the third frequency point, and the fourth frequency point are candidate frequency points, and then select the frequency point with the smallest sorting from the determined multiple candidate frequency points as the target frequency point.
[0086] In another alternative embodiment, after sequentially determining whether each frequency point is a candidate frequency point and obtaining the first candidate frequency point, the candidate frequency point is determined as the target frequency point, which improves the determination efficiency of the target frequency point.
[0087] The embodiment of the present application can determine the target frequency point from multiple frequency points, thereby laying a foundation for the subsequent frequency calibration process.
[0088] In an alternative embodiment, the chip frequency calibration method of the embodiment of the present application further includes:
[0089] Determine the target quantity based on a preset second rule.
[0090] The embodiment of the present application can determine the target quantity based on a preset second rule, thereby laying a foundation for the subsequent frequency calibration process.
[0091] In an alternative embodiment, the step of determining the target quantity includes:
[0092] Step a, calculate the quotient of the absolute value of the first frequency difference and the second frequency difference;
[0093] Still taking the content shown in Table 1 as an example for illustration. The absolute value of the first frequency difference is 10.2, and the second frequency difference is 4.8, then the quotient of the two is: 10.2÷4.8 = 2.125;
[0094] Step b, round the quotient and add the rounded value to a preset integer value to obtain a target integer value;
[0095] After rounding 2.125, it is 2, and then adding 2 to the preset integer value 1 to obtain the target integer value 3. The rounding process in the embodiment of the present application can select the integer part of the value including the remainder.
[0096] Step c, determine twice the target integer value as the target quantity.
[0097] Twice the target integer value 3 is 6, so 6 is the target quantity. That is to say, 3 frequency points can be taken on each of the front and rear sides of the target frequency point.
[0098] The present application has no special limitation on the preset integer value. For example, it can be 1, 2, or 3. When selecting 1 as the integer value, it is possible to reduce the target quantity, thereby reducing the calculation amount and improving the calibration efficiency. The embodiment of the present application can determine the target quantity, thereby laying a foundation for the subsequent frequency calibration process.
[0099] In an alternative embodiment, the chip frequency calibration method of the embodiments of the present application further includes:
[0100] Determine, from each of the calibrated target frequency points, a target frequency point whose difference between the actual operating frequency and the interference frequency is greater than a preset first frequency threshold as a frequency point to be used, so that the terminal drives the touch module using the actual operating frequency corresponding to the frequency point to be used.
[0101] Generally, the selectable operating frequencies of touch chips are around 300 - 600 KHz. When applied to a display screen, the display screen has a signal interference at a fixed frequency on the touch chip. When the touch chip selects an operating frequency point, it is necessary to ensure that the operating frequencies of all chips at the selected frequency points avoid the interference frequency of the display screen as much as possible, and the farther away from the interference frequency, the better. Since the higher the reporting rate of the touch chip, the higher the required operating frequency, the operating frequency of the touch chip usually also needs to be as high as possible.
[0102] Still taking the content shown in Table 1 as an example for illustration. Assume that Table 1 shows the available operating frequency points of a touch chip, and in a certain actual application project, there is a frequency point with particularly large interference every 9 frequency points. For example, the frequencies of 480 KHz, 523.2 KHz, and 566.4 KHz have particularly large interference, and the interference of the two adjacent frequency points to the large interference frequency point is also relatively large. Therefore, the selected operating frequency points of the touch chip need to avoid and be far away from these interference frequency points as much as possible. Generally, a touch chip needs to select about 10 operating frequency points, and it is necessary to ensure that the frequencies corresponding to all touch chips at the selected operating frequency points are far away from the interference frequency points. Referring to Table 1, in the frequency band of 470 KHz - 600 KHz, only the frequency points of 104 / 105 / 113 / 114 / 122 / 123 avoid obvious interference, but do not stay far away from the above interference frequencies. As shown by the distribution of the interference frequencies in the dark area (at frequency points 100 / 102 / 107 / 109 / 111 / 116 / 118 / 120 / 125), the distribution of the interference frequency points of the IC is uneven, so there is no selectable operating frequency in this frequency range in actual application, resulting in the inability to select a relatively large operating frequency in actual application, and the TP cannot use a relatively high reporting rate.
[0103] In view of this, the embodiments of the present application can determine, from the calibrated target frequency points, the target frequency points whose actual operating frequency is greater than or equal to the preset first frequency threshold as the frequency points to be used. Referring to Table 2, as shown by the distribution of interference frequencies in the dark areas (at frequency points 100 / 109 / 118), the distribution of interference frequency points of all ICs is very uniform, that is, there are relatively clean frequency points available for selection as the operating frequency points of the ICs in any frequency band. For example, in the frequency range of 480 - 600 KHz, frequency points 103 - 106, frequency points 112 - 115, and frequency points 121 - 124 are far from the interference frequencies, that is, there is no obvious interference risk.
[0104] Through the embodiments of the present application, the problem of unavailable high-frequency band frequencies in the application of TP ICs can be solved, thereby improving the utilization degree of high-frequency band frequencies of touch chips. Moreover, under the same operating frequency, the interference situations of all TP ICs are basically the same, greatly improving the touch performance consistency problem caused by the OSC error between ICs.
[0105] In an alternative embodiment, the chip frequency calibration method of the embodiments of the present application further includes:
[0106] Writing the actual operating frequencies of the calibrated target frequency points into the registers of the chip.
[0107] After obtaining the actual operating frequencies of the calibrated target frequency points in the embodiments of the present application, the calibrated frequencies can be written into the registers of the chip, so as to facilitate the chip to drive the touch module using the calibrated actual operating frequencies, thereby improving the touch performance of the touch screen. For example, the refresh rate of the touch screen can be increased.
[0108] In an alternative embodiment, the chip of the embodiments of the present application includes at least one of a touch chip and a fingerprint chip, having wide applicability.
[0109] It should be understood that although the steps in the above flowcharts are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0110] Based on the foregoing embodiments, an embodiment of the present application provides a chip frequency calibration device. Each module included in the device, as well as each unit included in each module, can be implemented by a processor; of course, it can also be implemented by specific logic circuits. During implementation, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0111] Figure 3 FIG. is a schematic structural diagram of the chip frequency calibration device provided by an embodiment of the present application. As Figure 3 shown, the device 500 includes an acquisition module 501, a first determination module 502, and a second determination module 503, where:
[0112] The acquisition module is configured to acquire a plurality of frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point.
[0113] The first determination module is configured to, for a target number of frequency points located on the front and rear sides of the target frequency point, with the standard operating frequency of the target frequency point as the reference frequency, determine the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency. The target frequency point belongs to the plurality of frequency points.
[0114] The second determination module is configured to determine the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
[0115] In an optional implementation manner, the preset sorting manner is a sorting manner from small to large. The chip frequency calibration device of the embodiment of the present application further includes:
[0116] A third determination module is configured to determine the next frequency point of the target frequency point as the new target frequency point, trigger the first determination module to execute the step of determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency for a target number of frequency points located on the front and rear sides of the target frequency point with the standard operating frequency of the target frequency point as the reference frequency, and trigger the second determination module to execute the step of determining the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point, until the new target frequency point is the preset maximum available frequency point.
[0117] In an optional implementation manner, the chip frequency calibration device of the embodiment of the present application further includes:
[0118] A judgment module is configured to judge whether a first frequency difference is less than one-half of a second frequency difference, where the first frequency difference is the difference between the standard operating frequency and the actual operating frequency of the maximum available frequency point, and the second frequency difference is the difference between the standard operating frequencies of any two adjacent frequency points. The maximum available frequency point belongs to the plurality of frequency points.
[0119] If the answer is no, trigger the first determination module to execute the step of determining, for the target number of frequency points located on the front and rear sides of the target frequency point, the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency with the standard operating frequency of the target frequency point as the reference frequency.
[0120] In an alternative embodiment, the chip frequency calibration device of the embodiments of the present application further includes:
[0121] A fourth determination module, configured to determine a target frequency point from a plurality of frequency points based on a preset first rule.
[0122] In an alternative embodiment, the fourth determination module is specifically configured to:
[0123] Among a plurality of frequency points, determine a frequency point whose difference between the standard operating frequency and the actual operating frequency is greater than or equal to one-half of the second frequency difference as a candidate frequency point;
[0124] Determine the frequency point with the smallest rank among the candidate frequency points as the target frequency point.
[0125] In an alternative embodiment, the chip frequency calibration device of the embodiments of the present application further includes:
[0126] A fifth determination module, configured to determine the target number based on a preset second rule.
[0127] In an alternative embodiment, the fifth determination module is specifically configured to:
[0128] Calculate the quotient of the absolute value of the first frequency difference and the second frequency difference;
[0129] Perform a rounding operation on the quotient, and add the rounded value to a preset integer value to obtain a target integer value;
[0130] Determine twice the target integer value as the target number.
[0131] In an alternative embodiment, the chip frequency calibration device of the embodiments of the present application further includes:
[0132] A sixth determination module, configured to determine, from the calibrated target frequency points, a target frequency point whose difference between the actual operating frequency and the interference frequency is greater than a preset first frequency threshold as a frequency point to be used, so that the terminal drives the touch module using the actual operating frequency corresponding to the frequency point to be used.
[0133] In an alternative embodiment, the chip frequency calibration device of the embodiments of the present application further includes:
[0134] A writing module, configured to write the actual operating frequencies of the calibrated target frequency points into the registers of the chip.
[0135] In an alternative embodiment, the chip includes at least one of a touch chip and a fingerprint chip.
[0136] The description of the above device embodiments is similar to that of the above method embodiments, and has similar beneficial effects to the method embodiments. For the technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0137] It should be noted that in the embodiments of the present application Figure 3 The division of modules by the chip frequency calibration device shown is illustrative, merely a logical function division, and there may be other division methods in actual implementation. In addition, in each embodiment of the present application, each functional unit may be integrated in a processing unit, may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware, or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0138] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0139] The embodiments of the present application provide a computer device, which may be a server, and its internal structure diagram may be as Figure 4 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements the above method.
[0140] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0141] An embodiment of the present application provides a computer program product containing instructions. When it runs on a computer, it causes the computer to execute the steps in the method provided in the above method embodiment.
[0142] Those skilled in the art can understand that Figure 4 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0143] In one embodiment, the chip frequency calibration device provided by the present application can be implemented in the form of a computer program, and the computer program can run on a computer device such as Figure 4 shown. Each program module constituting the above device can be stored in the memory of the computer device. The computer program constituted by each program module causes the processor to execute the steps in the methods of the various embodiments of the present application described in this specification.
[0144] It should be pointed out here that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments and have similar beneficial effects to the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0145] An embodiment of the present application provides a chip, which may be a touch chip, and its internal structure diagram may be as Figure 5 shown. The chip 700 includes a programmable circuit module 701, an OSC 702, a frequency division and multiplication driving module 703, and a storage module 704. The functions implemented by the chip frequency calibration method of the embodiment of the present application can be implemented by the programmable circuit module 701 inside the chip 700 calling program codes. The storage module 704 can store multiple frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point. And, the programmable circuit module 701 can also read data from the storage module 704 and write data to the storage module 704. The storage module 704 may be a register.
[0146] A chip provided by an embodiment of the present application, after obtaining a plurality of frequency points arranged in a preset sorting manner of the chip stored in a storage module, as well as the standard operating frequency and the actual operating frequency of each frequency point, a programmable circuit module determines, for a target number of frequency points on both sides before and after a target frequency point, the absolute value of the difference between the actual operating frequency of each frequency point and a reference frequency, and then determines the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point, so that the deviation between the actual operating frequency and the standard operating frequency of the target frequency point in the chip is greatly reduced. In this way, when the operating frequency of the target frequency point is required to drive a touch control module, since the calibrated actual operating frequency of the target frequency point is closer to its standard operating frequency, the touch control module can be driven more stably, thereby improving the touch performance of the touch screen.
[0147] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" or "in some embodiments" that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitudes of the sequence numbers of the above processes do not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The sequence numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, and the same or similar parts can be referred to each other. For the sake of brevity, they will not be repeated herein.
[0148] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0149] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0150] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.
[0151] The modules described above as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules; they can be located in one place or distributed to multiple network units; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional module in the embodiments of the present application can be all integrated in a processing unit, or each module can be separately used as a unit, or two or more modules can be integrated in a unit; the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0153] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM), magnetic disks, or optical disks, etc., which can store program codes.
[0154] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable an electronic device to execute all or part of the methods described in the embodiments of the present application. And the foregoing storage medium includes: removable storage devices, ROM, magnetic disks, or optical disks, etc., which can store program codes.
[0155] The methods disclosed in several method embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments.
[0156] The features disclosed in several product embodiments provided by this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0157] The features disclosed in several method or device embodiments provided by this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0158] As described above, it is only the implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Claims
1. A method for calibrating the frequency of a chip, characterized in that, the method includes: obtaining a plurality of frequency points arranged in a preset sorting manner of the chip, as well as the standard operating frequency and the actual operating frequency of each frequency point; for a target number of frequency points located on both sides before and after the target frequency point, taking the standard operating frequency of the target frequency point as the reference frequency, determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, and the target frequency point belongs to the plurality of frequency points; determining the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
2. The method according to claim 1, characterized in that, the preset sorting manner is a sorting manner from small to large, and the method further includes: determining the next frequency point of the target frequency point as the new target frequency point, and performing the step of for a target number of frequency points located on both sides before and after the target frequency point, taking the standard operating frequency of the target frequency point as the reference frequency, determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency, and determining the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point, until the new target frequency point is the preset maximum available frequency point.
3. The method according to claim 1, characterized in that, the method further includes: judging whether a first frequency difference is less than one-half of a second frequency difference, wherein the first frequency difference is the difference between the standard operating frequency and the actual operating frequency of the maximum available frequency point, the second frequency difference is the difference between the standard operating frequencies of any two adjacent frequency points, and the maximum available frequency point belongs to the plurality of frequency points; if not, performing the step of for a target number of frequency points located on both sides before and after the target frequency point, taking the standard operating frequency of the target frequency point as the reference frequency, determining the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency.
4. The method according to claim 3, characterized in that, the method further includes: determining the target frequency point from the plurality of frequency points based on a preset first rule.
5. The method according to claim 4, characterized in that, the determining the target frequency point from the plurality of frequency points based on a preset first rule includes: among the plurality of frequency points, determining the frequency points with the difference between the standard operating frequency and the actual operating frequency being greater than or equal to one-half of the second frequency difference as candidate frequency points; determining the frequency point with the smallest sorting among the candidate frequency points as the target frequency point.
6. The method according to claim 3, characterized in that, the method further includes: determining the target number based on a preset second rule.
7. The method according to claim 6, characterized in that, the determining the target number based on a preset second rule includes: calculating the quotient of the absolute value of the first frequency difference and the second frequency difference; performing a rounding process on the quotient, and adding the rounded value to a preset integer value to obtain a target integer value; determining twice the target integer value as the target number.
8. The method according to claim 2, wherein, the method further comprises: determining, from the calibrated target frequency points, a target frequency point whose difference between the actual operating frequency and the interference frequency is greater than a preset first frequency threshold as a frequency point to be used, so that the terminal drives the touch module using the actual operating frequency corresponding to the frequency point to be used.
9. The method according to claim 2, wherein, the method further comprises: writing the actual operating frequencies of the calibrated target frequency points into the registers of the chip.
10. The method according to any one of claims 1 to 9, wherein, the chip comprises at least one of a touch chip and a fingerprint chip.
11. A chip frequency calibration device, wherein, it comprises: an acquisition module, configured to acquire a plurality of frequency points arranged in a preset sorting manner of the chip, and the standard operating frequency and the actual operating frequency of each frequency point; a first determination module, configured to, for a target number of frequency points located on the front and rear sides of a target frequency point, determine the absolute value of the difference between the actual operating frequency of each frequency point and the reference frequency with the standard operating frequency of the target frequency point as the reference frequency, and the target frequency point belongs to the plurality of frequency points; a second determination module, configured to determine the actual operating frequency corresponding to the frequency point with the smallest absolute value as the actual operating frequency of the target frequency point.
12. A computer device, comprising a memory and a processor, the memory storing a computer program that can run on the processor, wherein, when the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
14. A chip, wherein, it comprises a programmable circuit module, an oscillator, a frequency division and frequency multiplication driving module, and a storage module, the memory stores a computer program that can run on the programmable circuit module, and when the programmable circuit module executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.