OSC frequency calibration method and device, readable storage medium and electronic equipment

Through the rewriting of the OSC module register by SOC, the oscillator frequency deviation is quickly compensated, which solves the problem of long-term frequency calibration in the prior art, and achieves more efficient frequency calibration, reducing production costs and improving equipment stability.

CN119324707APending Publication Date: 2025-01-17GALAXYCORE SHANGHAI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411260865.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

The existing oscillator frequency calibration method takes a long time and cannot meet the needs of rapid production, especially in large-scale production, which leads to excessive production time cost.

Method used

Through SOC, the OSC registers related to the OSC module are rewritten quickly to compensate for the deviation between the actual output clock frequency of the OSC module and the target frequency point. By detecting the MIPI Video Mode signal, calculating and writing the deviation to the OSC register, the frequency is realized by detecting the MIPI Video Mode signal, calculating and writing the deviation to the OSC register. calibration.

Benefits of technology

Faster frequency calibration speeds are achieved, larger compensation ranges are shortened, calibration time is reduced, production costs are reduced, and overall stability and reliability of TDDI is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324707A_ABST
    Figure CN119324707A_ABST
Patent Text Reader

Abstract

The invention discloses an OSC frequency calibration method and device, a readable storage medium and electronic equipment. The OSC frequency calibration method comprises the following steps: detecting an MIPI Video Mode signal input to a driving chip by an application processor; when an MIPI Video Mode signal is detected, the actual output clock frequency of the current OSC module is calculated through the digital circuit module and read through the SOC; if the actual output clock frequency of the current OSC module is out of the frequency range of the target frequency point, calculating the deviation between the actual output clock frequency of the current OSC module and the center frequency preset value of the target frequency point through the SOC; and the SOC compensates the deviation by rewriting an OSC register related to the OSC module, so that the actual output clock frequency of the OSC module is calibrated to the frequency range of the target frequency point. The method has the advantages that the OSC register related to the OSC module is rewritten through the SOC so as to quickly compensate the deviation between the OSC register and the center frequency of the target frequency point, the compensation speed is high, the adjustment flexibility is high, and the compensable deviation range is large.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of drive display technology, and in particular to an OSC frequency calibration method and device, a readable storage medium and an electronic device. Background Art

[0002] As the functions of electronic devices become increasingly complex and diverse, the performance requirements for semiconductor chips are also getting higher and higher. Among the many factors that affect the performance of semiconductor chips, the frequency stability of the oscillator (OSC) plays a vital role. As a key component that provides clock signals in electronic systems, the accuracy of the oscillator's frequency is directly related to the synchronization and reliability of the entire system.

[0003] In the prior art, the frequency calibration of the oscillator usually relies on external calibration equipment or complex internal calibration algorithms. Although these methods can ensure the frequency stability of the oscillator to a certain extent, they still have some defects and shortcomings. For example, the existing calibration method is time-consuming and cannot meet the needs of rapid production, especially in large-scale production, which can easily cause excessive time cost of production. Therefore, it is necessary to improve the existing calibration method.

[0004] It should be understood that the above statements merely provide background technology related to the present invention and do not necessarily constitute prior art. Summary of the invention

[0005] Based on the above technical problems, the purpose of the present invention is to provide an OSC frequency calibration method and its device, a readable storage medium and an electronic device. The OSC frequency calibration method rewrites the OSC register related to the OSC module through the SOC to quickly compensate for the deviation between the actual output clock frequency of the OSC module and the target frequency point. This method has a faster compensation speed and higher adjustment flexibility. The compensable deviation range is larger, which can greatly shorten the calibration time, help reduce production costs, and also help improve the overall stability and reliability of TDDI.

[0006] In order to achieve the above object, the present invention is implemented by the following technical solutions:

[0007] An OSC frequency calibration method, comprising:

[0008] Detect the MIPI Video Mode signal input from the application processor to the driver chip;

[0009] When the MIPI Video Mode signal is detected, the actual output clock frequency of the current OSC module is calculated by the digital circuit module and read by the SOC;

[0010] If the actual output clock frequency of the current OSC module is outside the frequency range of the target frequency, the SOC is used to calculate the deviation between the actual output clock frequency of the current OSC module and the preset value of the center frequency of the target frequency;

[0011] The SOC compensates for the deviation by rewriting an OSC register associated with the OSC module, so that the actual output clock frequency of the OSC module is calibrated to the frequency range of the target frequency point.

[0012] Optionally, when the first frame of the MIPI Video Mode signal is detected, the actual output clock frequency of the current OSC module is calculated and read.

[0013] Optionally, the deviation=(actual output clock frequency of the current OSC module-center frequency of the target frequency point) / unit step value of the OSC register.

[0014] Optionally, the unit step value of the OSC register is any value between 0.1% and 0.25%.

[0015] Optionally, if the actual output clock frequency of the current OSC module is within the frequency range of the target frequency point, the OSC frequency calibration process is stopped.

[0016] Optionally, the frequency range of the target frequency is: a lower limit frequency of the target frequency to an upper limit frequency of the target frequency.

[0017] Optionally, the driving chip is TDDI.

[0018] Optionally, the MIPI Video Mode signal is a HSYNC horizontal synchronization signal frequency.

[0019] Optionally, an OSC frequency calibration device comprises:

[0020] A detection module, which is used to detect the MIPI Video Mode signal input by the application processor to the driver chip;

[0021] A judgment module, which is used to judge whether the actual output clock frequency of the current OSC module is outside the frequency range of the target frequency point;

[0022] A calculation module, which is used to calculate the deviation between the actual output clock frequency of the current OSC module and the target frequency point;

[0023] A writing module is used for writing the deviation into an OSC register related to an OSC module to compensate for the deviation.

[0024] Optionally, an electronic device comprises: a memory and a processor, wherein an OSC frequency calibration program is stored in the memory, and when the OSC frequency calibration program is executed by the processor, the steps of the aforementioned OSC frequency calibration method are implemented.

[0025] Optionally, the OSC frequency calibration program is a separate computer module;

[0026] Alternatively, the OSC frequency calibration procedure is integrated into the SOC of the driver chip.

[0027] Optionally, a readable storage medium is provided, wherein a program for OSC frequency calibration is stored on the readable storage medium, and the OSC frequency calibration program, when executed by a processor, implements the steps of the aforementioned OSC frequency calibration method.

[0028] Compared with the prior art, the present invention has the following advantages:

[0029] In an OSC frequency calibration method and device, a readable storage medium and an electronic device of the present invention, the OSC frequency calibration method rewrites the OSC register related to the OSC module through the SOC to quickly compensate for the deviation between the actual output clock frequency of the OSC module and the target frequency point to achieve calibration. This method can compensate for a larger deviation than the prior art, and can also complete the compensation faster, which can greatly shorten the calibration time, help reduce production costs, and also help improve the overall stability and reliability of TDDI. On the other hand, compared with the method of calibrating the output frequency of the OSC module frame by frame in the prior art, the OSC frequency calibration method of the present invention has higher adjustment flexibility, a larger adjustment range and a variable adjustment range. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a simplified schematic diagram of a TDDI of the present invention;

[0031] Figure 2 A calibration example schematic diagram of an OSC frequency calibration method of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] It should be noted that, in this article, the terms "include", "comprises", "has" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "includes..." or "comprising..." do not exclude the existence of other elements in the process, method, article or terminal device including the elements.

[0034] It should be noted that the drawings are all in very simplified form and use inaccurate ratios, and are only used to conveniently and clearly assist in explaining the embodiments of the present invention.

[0035] TDDI (Touch and Display Driver Integration) chip is a single-chip solution that integrates touch driver and display driver. It is widely used in mobile devices such as smart phones and tablets. Figure 1 As shown, it is a brief schematic diagram of a TDDI100 of the present invention, which includes an OSC module 110 and a SOC (System on Chip) 120. The SOC120 is connected to the circuit part of the touch panel sensor 140 through a touch circuit 130. The touch panel sensor 140 is used to detect the user's touch action and generate a corresponding analog signal. The touch circuit 130 receives the analog signal and converts it into a digital signal through analog-to-digital conversion and then transmits it to the SOC120 for processing. SOC120 is a programmable chip that integrates display driver and touch driver. It is responsible for processing touch signals and converting these signals into corresponding control signals to drive the touch panel. In actual applications, SOC120 calculates the original data detected by the touch panel sensor 140, calculates the coordinate points of the touch screen through an algorithm, and reports them to the application processor (Application Processor, referred to as AP) 200 through the SPI / I2C bus. The application processor 200 is connected to the TDDI100 through DPHY150. The OSC module 110 interacts with a digital circuit module 160 (Digital Circuit) through a digital-to-analog interface. The digital circuit module 160 includes an OSC register 161. The SOC 120 can interact with the OSC register 161 (read / write register) through an AHB (Advanced High Performance Bus).

[0036] Since the output frequency of the OSC module 110 of TDDI100 is required to fall within the range of ±1% of the center frequency of the target frequency, the IC will be calibrated to the target frequency by the CP before leaving the factory. Considering the temperature drift caused by factors such as ambient temperature during system application, the OSC module 110 of TDDI100 can be designed with an "AUTO OSC Tracking" function in the digital circuit module 160: using the MIPI Video Mode input by the known application processor 200 to TDDI100 as the reference clock, the output frequency of the OSC module 110 is calibrated frame by frame, with a step of 0.2%, that is, one frame can only compensate 0.2%. Although this method can ensure the frequency stability of the OSC module 110 to a certain extent, when the output frequency of the OSC module 110 of TDDI100 deviates too much from the center frequency of the target frequency, for example, when it deviates from the center frequency of the target frequency by 10%, the AUTO OSC Tracking function needs about 50 frames * 16.67ms to calibrate to the target frequency, which is too long and cannot meet customer application requirements. On the other hand, during the mass production stage of TDDI100, due to the pressure of the chip on glass (COG) bonding process, the output frequency of the IC's OSC module 110 usually exceeds the center frequency of the target frequency by 1% to 10%. However, the existing frequency calibration method is time-consuming and is not conducive to large-scale production and rapid deployment.

[0037] Based on the above, the present invention provides an OSC frequency calibration method, which includes: detecting a MIPI Video Mode signal input by an application processor 200 to a driver chip; when the MIPI Video Mode signal is detected, calculating through a digital circuit module 160 and reading through an SOC 120 an actual output clock frequency (CLK Frequency) of a current OSC module 110; if the actual output clock frequency of the current OSC module 110 is outside a frequency range of a target frequency point, calculating through the SOC 120 a deviation between the actual output clock frequency of the current OSC module 110 and a preset value of a center frequency of the target frequency point; and the SOC 120 compensates for the deviation by rewriting an OSC register 161 related to the OSC module 110, so that the actual output clock frequency of the OSC module 110 is calibrated to be within the frequency range of the target frequency point.

[0038] As can be seen from the above, in the present invention, the programmable characteristics of SOC120 in TDDI100 are utilized, and the OSC register 161 related to the OSC module 110 is rewritten through SOC120, so that the output frequency of the OSC module 110 can be calibrated to the frequency range of the target frequency in the next frame, that is, the calibration can be achieved by offsetting once, and then the deviation between the actual output clock frequency of the OSC module 110 and the target frequency is quickly compensated, so as to achieve the calibration of the output frequency of the OSC module 110. This method has a faster compensation speed and a larger compensation deviation range, which can greatly shorten the calibration time, help reduce production costs, and also help improve the overall stability and reliability of TDDI100.

[0039] Furthermore, compared to the prior art that uses a pre-designed logic circuit (generally a hardware circuit) in a digital circuit module 160 to calculate and read the deviation of the actual output clock frequency of the OSC module 110, the present invention utilizes the programmable characteristics of the SOC 120 to enable the SOC 120 to interact with the OSC register 161 through the AHB to more quickly obtain the deviation between the actual output clock frequency and the target frequency, and then rewrite the OSC register 161 to achieve calibration. This method can compensate for larger deviations than the prior art, and can also complete compensation faster. On the other hand, compared to the prior art method of calibrating the output frequency of the OSC module 110 frame by frame, the OSC frequency calibration method of the present invention has higher adjustment flexibility, a larger adjustment range, and a variable adjustment range.

[0040] Further, in the present invention, the deviation between the actual output clock frequency of the OSC module 110 and the preset value of the center frequency of the target frequency point = (the actual output clock frequency of the current OSC module 110 - the center frequency of the target frequency point) / the unit step value of the OSC register 161. Based on the above method, the number of steps that need to be compensated can be obtained. In practical applications, it can be calculated by the calculation module in SOC120. Optionally, the unit step value of the OSC register 161 is any value in the range of 0.1%-0.25%. For example, in practical applications, the unit step value of the OSC register 161 is 0.1% or 0.2% or 0.25%. It can be understood that the value range of the unit step value of the OSC register 161 is not limited to the above range. In practical applications, it can also be other numerical ranges, and the present invention is not limited to this.

[0041] On the other hand, in the present invention, the frequency range of the target frequency is: the lower limit frequency of the target frequency ~ the upper limit frequency of the target frequency. It can be understood that the present invention does not limit the value of the preset frequency. In practical applications, it can be set according to factors such as the accuracy requirements for frequency calibration. On the other hand, during the actual frequency calibration process, if the actual output clock frequency of the current OSC module 110 is within the frequency range of the target frequency, the OSC frequency calibration process is stopped.

[0042] like Figure 2 FIG. 1 is a schematic diagram of calibrating the frequency of TDDI 100 using the OSC frequency calibration method of the present invention in one embodiment. Figure 2 It can be seen that in this embodiment, the MIPI Video Mode signal has a fixed line time (Fixed MIPI Line Time), the preset value of the center frequency of the target frequency (OSC_CNT_STD) is 1000, the allowable offset based on the center frequency is 10, and the frequency range of the target frequency is 990-1010. In the initial stage, the count of the actual output clock frequency (OSC_CNT) of the OSC module 110 is 1100, that is, its offset based on the center frequency is 100. Based on this, the OSC frequency calibration method of the present invention is used to calibrate it, the deviation between the actual output clock frequency of the OSC module 110 and the preset value of the center frequency of the target frequency is calculated, and the OSC register 161 is rewritten by the SOC120 to compensate for the deviation to achieve calibration, so that the output frequency of the OSC module 110 is calibrated to the frequency range of the target frequency within 1 frame, eliminating the process of frame-by-frame calibration compensation, thereby meeting the application requirements of customers.

[0043] It should be noted that the OSC frequency calibration method of the present invention is not limited to the frequency calibration of TDDI100, but can also be applied to the frequency calibration of other types of chips, and the present invention is not limited to this. That is, the driving chip can be TDDI100, or it can be other types of chips. Further, in practical applications, the OSC module 110 of the driving chip will be frequency calibrated both at the factory and in the application. Compared with the later stage of frequency calibration, the deviation between the actual output clock frequency and the target frequency point in the initial stage is usually larger. Therefore, it is particularly suitable to use the OSC frequency calibration method of the present invention in the initial stage of frequency calibration. In the calibration of the later stage, since the deviation is usually small, other calibration methods can be used. Of course, the calibration method of the present application can also be used. In practical applications, it can be set according to actual needs. For example, in one embodiment, the OSC frequency calibration method of the present invention is applied in the initial stage of the driver chip frequency calibration. When the first frame of the MIPI Video Mode signal is detected, the actual output clock frequency of the current OSC module 110 is calculated and read to implement the OSC frequency calibration method of the present invention. Optionally, the MIPI Video Mode signal is a HSYNC horizontal synchronization signal frequency (horizontal synchronization signal). Of course, in practical applications, it can also be set to other types of signals.

[0044] Based on the same inventive concept, the present invention also provides an OSC frequency calibration device, which can be used to implement the aforementioned OSC frequency calibration method. Specifically, the OSC frequency calibration device includes: a detection module, a judgment module, a calculation module and a writing module, wherein the detection module is used to detect the MIPI VideoMode signal input by the application processor 200 to the driver chip, the judgment module is used to determine whether the actual output clock frequency of the current OSC module 110 is outside the frequency range of the target frequency point, the calculation module is used to calculate the deviation between the actual output clock frequency of the current OSC module 110 and the target frequency point, and the writing module is used to write the deviation into the OSC register 161 related to the OSC module 110 to compensate for the deviation. In actual applications, a computer program can be written in SOC120 to form a detection module, a judgment module, a calculation module and a writing module, etc., of course, the detection module and the judgment module can also be set in other locations instead of in SOC120, and the present invention does not limit this.

[0045] Based on the same inventive concept, the present invention further provides a readable storage medium, on which a program for OSC frequency calibration is stored. When the OSC frequency calibration program is executed by a processor, the steps of the aforementioned OSC frequency calibration method are implemented.

[0046] Based on the same inventive concept, the present invention also provides an electronic device, comprising: a memory and a processor, wherein an OSC frequency calibration program is stored in the memory, and when the OSC frequency calibration program is executed by the processor, the steps of the aforementioned OSC frequency calibration method are implemented.

[0047] Furthermore, the OSC frequency calibration program may be a separate computer module; or, the OSC frequency calibration program may be integrated into the SOC 120 of the driver chip. When the OSC frequency calibration program is integrated into the SOC 120 of the driver chip, the output frequency of the OSC module 110 may be quickly calibrated through the modified SOC 120 firmware program.

[0048] In summary, in an OSC frequency calibration method and its device, a readable storage medium and an electronic device of the present invention, the OSC frequency calibration method rewrites the OSC register 161 related to the OSC module 110 through the SOC120 to quickly compensate for the deviation between the actual output clock frequency of the OSC module 110 and the center frequency of the target frequency point to achieve calibration. This method can compensate for a larger deviation than the prior art, and can also complete the compensation faster, which can greatly shorten the calibration time, help reduce production costs, and also help improve the overall stability and reliability of the TDDI100. On the other hand, compared with the method of calibrating the output frequency of the OSC module 110 frame by frame in the prior art, the OSC frequency calibration method of the present invention has higher adjustment flexibility, a larger adjustment range and a variable adjustment range.

[0049] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.

Claims

1. An OSC frequency calibration method, characterized in that: Include: Detect the MIPI Video Mode signal input from the application processor to the driver chip; When the MIPI Video Mode signal is detected, the actual output clock frequency of the current OSC module is calculated by the digital circuit module and read by the SOC; If the actual output clock frequency of the current OSC module is outside the frequency range of the target frequency, the SOC is used to calculate the deviation between the actual output clock frequency of the current OSC module and the preset value of the center frequency of the target frequency; The SOC compensates for the deviation by rewriting an OSC register associated with the OSC module, so that the actual output clock frequency of the OSC module is calibrated to the frequency range of the target frequency point.

2. The OSC frequency calibration method according to claim 1, characterized in that: When the first frame of the MIPIVideo Mode signal is detected, the actual output clock frequency of the current OSC module is calculated and read.

3. The OSC frequency calibration method according to claim 1, characterized in that: The deviation=(actual output clock frequency of the current OSC module-center frequency of the target frequency point) / unit step value of the OSC register.

4. The OSC frequency calibration method according to claim 3, characterized in that: The unit step value of the OSC register is any value between 0.1% and 0.25%.

5. The OSC frequency calibration method according to claim 1, characterized in that: If the actual output clock frequency of the current OSC module is within the frequency range of the target frequency point, the OSC frequency calibration process is stopped.

6. The OSC frequency calibration method according to claim 1, characterized in that: The frequency range of the target frequency point is: the lower limit frequency of the target frequency point ~ the upper limit frequency of the target frequency point.

7. The OSC frequency calibration method according to claim 1, characterized in that: The driving chip is TDDI.

8. The OSC frequency calibration method according to claim 1, characterized in that: The MIPI Video Mode signal is a HSYNC horizontal synchronization signal frequency.

9. An OSC frequency calibration device, characterized in that: Include: A detection module, which is used to detect the MIPI VideoMode signal input by the application processor to the driver chip; A judgment module, which is used to judge whether the actual output clock frequency of the current OSC module is outside the frequency range of the target frequency point; A calculation module, which is used to calculate the deviation between the actual output clock frequency of the current OSC module and the target frequency point; A writing module is used for writing the deviation into an OSC register related to an OSC module to compensate for the deviation.

10. An electronic device, characterized in that: The electronic device comprises: a memory and a processor, wherein the memory stores an OSC frequency calibration program, and when the OSC frequency calibration program is executed by the processor, the steps of the OSC frequency calibration method according to any one of claims 1 to 8 are implemented.

11. The electronic device according to claim 10, characterized in that: The OSC frequency calibration program is a separate computer module; Alternatively, the OSC frequency calibration procedure is integrated into the SOC of the driver chip.

12. A readable storage medium, characterized in that: The readable storage medium stores an OSC frequency calibration program, and when the OSC frequency calibration program is executed by the processor, the steps of the OSC frequency calibration method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Display driving method, display driver, display device and computer storage medium

    CN121565088A