Calibration Method and System for a Converter
The described method and system improve TDC calibration accuracy by using a calibration planning module to synchronize and adjust TDCs based on reference clock frequency, addressing non-ideal characteristics caused by voltage and temperature fluctuations.
Patent Information
- Application Number
- CN202211466840.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-11-22
AI Technical Summary
The calibration effect of existing time digital converters (TDCs) is not ideal due to non-ideal characteristics changes caused by process, voltage and temperature changes during calibration.
By obtaining the rising edge information of the reference clock, the clock period and frequency of the reference clock are determined, the real-time calibration switch status, continuous calibration switch status and continuous calibration period are determined based on the frequency, and the calibration information of the analog time-digital converter is determined based on these states and periods, and the calibration information of the analog time-digital converter is adaptively calibrated.
The measurement error caused by voltage and temperature changes is reduced, the calibration effect is improved, and the adaptability of analog-time digital converters is improved.
Smart Images

Figure CN115857307B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular, to a calibration method and system for a converter. Background Art
[0002] A Time-to-Digital Converter (TDC) is a circuit that converts an input time interval into a digital code and is widely used in various time-related systems. Since the input of the TDC is a time signal, it has non-ideal characteristics including offset error, gain error, integral nonlinearity, differential nonlinearity, etc. The generation of these non-ideal characteristics is mostly caused by changes in process, voltage, and temperature, and calibration techniques are usually required to eliminate these non-ideal characteristics.
[0003] In the prior art, the same TDC works alternately in the calibration and working states. Because the time between actual calibration and the next measurement is long, the change in temperature before and after during this time interval will cause the non-ideal factors to change, resulting in the problem of unsatisfactory calibration effect. Summary of the Invention
[0004] In view of this, an object of the present invention is to provide a calibration method and system for a converter, so as to reduce the measurement error caused by changes in non-ideal factors such as voltage and temperature, and thus improve the calibration effect.
[0005] In a first aspect, an embodiment of the present invention provides a calibration method for a converter, which is applied to a calibration planning module. The calibration planning module is connected to an analog time-to-digital converter to be calibrated. The method includes: obtaining the rising edge information of a reference clock, and determining the clock period and reference frequency of the reference clock according to the rising edge information; determining the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency; determining the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period, so as to calibrate the analog time-to-digital converter according to the calibration information.
[0006] Further, before the step of obtaining the rising edge information of the reference clock and determining the clock period of the reference clock according to the rising edge information, the method further includes receiving a power-on reset signal; generating a converter reset signal and a calibration signal according to the power-on reset signal; and sending the converter reset signal and the calibration signal to the analog time-to-digital converter to synchronously reset and calibrate the analog time-to-digital converter.
[0007] Further, the steps of determining the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency include: when the reference frequency is less than or equal to the first preset frequency, determining that the real-time calibration switch state is on, the continuous calibration switch state is on, and calculating the continuous calibration period; wherein, the continuous calibration period includes a first calibration period determined according to the clock period of the reference clock and a second calibration period determined based on the preset continuous calibration time; when the reference frequency is greater than the first preset frequency and less than or equal to the second preset frequency, determining that the real-time calibration switch state is on and the continuous calibration switch state is off; when the reference frequency is greater than the second preset frequency, determining that the real-time calibration switch state is off and the continuous calibration switch state is off.
[0008] Further, the steps of determining the calibration information of the analog-to-time digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period to calibrate the analog-to-time digital converter according to the calibration information include: when the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the first calibration period, sending a real-time calibration signal and a continuous calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during the idle time according to the real-time calibration signal and perform continuous calibration on the analog-to-time digital converter according to the first calibration period; calculating the first calibration period according to the following formula: X = Y × Z where X is the first calibration period, Y is the clock period of the reference clock, and Z is the period coefficient.
[0009] Further, the steps of determining the calibration information of the analog-to-time digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period to enable the analog-to-time digital converter to be calibrated according to the calibration information include: when the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the second calibration period, sending a real-time calibration signal and a continuous calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during the idle time according to the real-time calibration signal and perform continuous calibration on the analog-to-time digital converter according to the second calibration period; wherein, the second calibration period is equal to the preset continuous calibration time.
[0010] Further, the steps of determining the calibration information of the analog-to-time digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period to enable the analog-to-time digital converter to be calibrated according to the calibration information include: when the real-time calibration switch state is on and the continuous calibration switch state is off, sending a real-time calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during the idle time according to the real-time calibration signal.
[0011] Further, the step of determining calibration information of the analog-to-time digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period, and calibrating the analog-to-time digital converter according to the calibration information includes: when the real-time calibration switch state is off and the continuous calibration switch state is off, sending a non-calibration signal to the analog-to-time digital converter.
[0012] In a second aspect, an embodiment of the present invention provides a calibration system for a converter, which is applied to a calibration planning module. The calibration planning module is connected to an analog-to-time digital converter to be calibrated. The system includes: a reference clock acquisition module, configured to acquire rising edge information of a reference clock, and determine a clock period and a reference frequency of the reference clock according to the rising edge information; a calibration information determination module, configured to determine a real-time calibration switch state, a continuous calibration switch state, and a continuous calibration period according to the reference frequency; and a calibration planning module, configured to determine calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, and calibrate the analog-to-time digital converter according to the calibration information.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor. A computer program that can run on the processor is stored on the memory. When the processor executes the computer program, the above-described method is implemented.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and the program code causes the processor to execute the above-described method.
[0015] An embodiment of the present invention provides a calibration method and system for a converter, which is applied to a calibration planning module. The calibration planning module is connected to an analog-to-time digital converter to be calibrated. The method includes: acquiring rising edge information of a reference clock, and determining a clock period and a reference frequency of the reference clock according to the rising edge information; determining a real-time calibration switch state, a continuous calibration switch state, and a continuous calibration period according to the reference frequency; and determining calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, and calibrating the analog-to-time digital converter according to the calibration information. In this way, by connecting the calibration planning module to the analog-to-time digital converter to be calibrated, calibration information is determined according to the reference frequency of the reference clock, so as to perform adaptive calibration on the analog-to-time digital converter according to the input reference clock period, thereby reducing measurement errors caused by changes in non-ideal factors such as voltage and temperature, and further improving the calibration effect.
[0016] Other features and advantages of the present invention will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present invention. The objectives and other advantages of the present invention are realized and attained by the structure particularly pointed out in the specification, claims and drawings.
[0017] To make the above objectives, features and advantages of the present invention more comprehensible, the following specific preferred embodiments are given and described in detail in conjunction with the accompanying drawings as follows. Description of the Drawings
[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 It is a flowchart of the calibration method for the converter provided in the first embodiment of the present invention;
[0020] Figure 2 It is a flowchart of power-on reset and power-on continuous calibration provided in the first embodiment of the present invention;
[0021] Figure 3 It is a schematic diagram of power-on continuous calibration provided in the first embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of calibrating the analog time-to-digital converter according to the continuous calibration period when both the real-time calibration switch and the continuous calibration switch are turned on in the first embodiment of the present invention;
[0023] Figure 5 It is a schematic diagram of calibrating the analog time-to-digital converter when the real-time calibration switch is turned on and the continuous calibration switch is turned off in the first embodiment of the present invention;
[0024] Figure 6 It is a schematic diagram of collecting rising edge information when both the real-time calibration switch and the continuous calibration switch are turned off in the first embodiment of the present invention;
[0025] Figure 7 It is a schematic diagram of the calibration system for the converter provided in the second embodiment of the present invention.
[0026] Icons: 1 - Reference clock acquisition module; 2 - Calibration information determination module; 3 - Calibration planning module. Specific Embodiments
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0028] For ease of understanding of this embodiment, the embodiments of the present invention will be introduced in detail below.
[0029] Embodiment 1:
[0030] Figure 1 It is a flowchart of the calibration method for the converter provided in Embodiment 1 of the present invention.
[0031] Referring to Figure 1 , the calibration method for the converter is applied to a calibration planning module, and the calibration planning module is connected to the analog time-to-digital converter to be calibrated.
[0032] Here, by connecting the calibration planning module to the analog time-to-digital converter to be calibrated, the calibration planning module obtains the rising edge information of the input reference clock, determines the reference frequency of the reference clock according to the rising edge information, and thus determines the calibration information of the analog time-to-digital converter.
[0033] The steps of the calibration method for the converter include:
[0034] Step S101: Obtain the rising edge information of the reference clock, and determine the clock period and reference frequency of the reference clock according to the rising edge information.
[0035] Here, according to the rising edge information of the reference clock, the clock period and reference frequency of the reference clock are calculated in real time. Usually, the time information of two consecutive rising edges of the reference clock is subtracted to obtain the clock period of the reference clock.
[0036] In one embodiment, referring to Figure 2 , before step S101, it further includes:
[0037] Step S201: Receive a power-on reset signal.
[0038] Step S202: Generate a converter reset signal and a calibration signal according to the power-on reset signal.
[0039] Step S203: Send the converter reset signal and the calibration signal to the analog time-to-digital converter to synchronously reset and calibrate the analog time-to-digital converter.
[0040] Here, after power-on, the analog time-to-digital converter is synchronously reset during power-on according to the converter reset signal, and enters the power-on continuous calibration process according to the calibration signal. After the power-on continuous calibration process ends, wait for the rising edge of the input reference clock signal refclk to arrive to obtain the reference clock rising edge information.
[0041] When the power-on reset signal is received, perform power-on continuous calibration on the analog time-to-digital converter. After completing the power-on continuous calibration and when both the real-time calibration switch and the continuous calibration switch are closed, collect the rising edge information of the reference clock once.
[0042] Specifically refer to Figure 3 , where clk is the working clock of the calibration planning module, resetb is the power-on reset signal, refclk is the input reference clock signal, state is the calibration planning module state, ref is to obtain the rising edge information of the reference clock, cal is to calibrate the analog time-to-digital converter, and calibration_time is the continuous calibration time. Among them, when calibration_time is 1, it is the continuous calibration mode.
[0043] Step S102, determine the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period according to the reference frequency.
[0044] Here, the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period can be automatically determined according to the reference frequency, or can be determined by external control.
[0045] In one embodiment, step S102 further includes:
[0046] When the reference frequency is less than or equal to the first preset frequency, determine that the real-time calibration switch state is on, the continuous calibration switch state is on, and calculate the continuous calibration period; among them, the continuous calibration period includes a first calibration period determined according to the clock period of the reference clock and a second calibration period determined based on the preset continuous calibration time.
[0047] Here, the first preset frequency is preset according to the actual situation and can be 1 Hz. The continuous calibration period should ensure that the rising edge of the next reference clock has not arrived after the last calibration ends.
[0048] When the reference frequency is greater than the first preset frequency and less than or equal to the second preset frequency, determine that the real-time calibration switch state is on and the continuous calibration switch state is off.
[0049] Here, since the reference frequency of the input reference clock is relatively high, the idle time after collecting the reference time information is less, the calibration time interval is smaller, and the accuracy is higher. Therefore, the continuous calibration switch is turned off. The second preset frequency can be preset according to the actual situation and can be 400 kHz. The first preset frequency is less than the second preset frequency.
[0050] When the reference frequency is greater than the second preset frequency, it is determined that the real-time calibration switch state is off and the continuous calibration switch state is off.
[0051] Here, since the reference frequency of the input reference clock is high, the idle time after collecting the reference time information is significantly reduced, and the idle time is not sufficient to complete a calibration process. Therefore, both the real-time calibration switch and the continuous calibration switch are turned off.
[0052] Step S103: Based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, determine the calibration information of the analog time-to-digital converter, so as to calibrate the analog time-to-digital converter according to the calibration information.
[0053] Here, the analog time-to-digital converter is calibrated during the idle time.
[0054] Among them, the idle time is the waiting time between collecting the rising edge information once when the current reference clock rising edge arrives and the next reference clock rising edge arrives.
[0055] In one embodiment, when the reference frequency is less than or equal to the first preset frequency and it is determined that the real-time calibration switch state is on and the continuous calibration switch state is on, the steps of determining the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so as to calibrate the analog time-to-digital converter according to the calibration information, include:
[0056] When the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the first calibration period, send the real-time calibration signal and the continuous calibration signal to the analog time-to-digital converter, so as to perform real-time calibration on the analog time-to-digital converter during the idle time according to the real-time calibration signal and perform continuous calibration on the analog time-to-digital converter according to the first calibration period.
[0057] Calculate the first calibration period according to formula (1):
[0058] X = Y × Z (1)
[0059] Among them, X is the first calibration period, Y is the clock period of the reference clock, and Z is the period coefficient.
[0060] Here, the first calibration period is determined according to the clock period of the reference clock. In formula (1), Z can be set according to the actual situation. The setting of Z needs to ensure that the first calibration period obtained by multiplying the clock period of the reference clock by the period coefficient is less than the clock period of the reference clock, and the first calibration period is related to the clock period. Z can be 2 n or 2 n It is relatively easy to implement through shifting in terms of language. Other values are also possible, but the implementation cost will be higher. n is a preset value. The selection of n can be fixed within the module or can be used as an input parameter of the module. Multiplying the period coefficient on the basis of the reference clock period can ensure that the first calibration period is less than the clock period of the reference clock and the number of idle time calibration times is more.
[0061] In an embodiment, when the reference frequency is less than or equal to the first preset frequency and it is determined that the real-time calibration switch state is on and the continuous calibration switch state is on, based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, the steps of determining the calibration information of the analog time-to-digital converter to calibrate the analog time-to-digital converter according to the calibration information include:
[0062] When the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the second calibration period, send the real-time calibration signal and the continuous calibration signal to the analog time-to-digital converter to perform real-time calibration on the analog time-to-digital converter during the idle time according to the real-time calibration signal and perform continuous calibration on the analog time-to-digital converter according to the second calibration period;
[0063] Wherein, the second calibration period is equal to the preset continuous calibration time.
[0064] Here, the second calibration period is determined based on the preset continuous calibration time, and the preset continuous calibration time can be set according to the actual situation.
[0065] Specifically, when the reference frequency of the received reference clock is 1 Hz, turn on the real-time calibration switch and the continuous calibration switch, and select the continuous calibration period according to the actual situation to perform real-time calibration and continuous calibration on the analog time-to-digital converter.
[0066] Refer to Figure 4 , after receiving the rising edge information of the reference clock, perform a real-time calibration on the analog time-to-digital converter during the idle time, and then perform continuous calibration on the analog time-to-digital converter according to the continuous calibration period after the real-time calibration. Among them, the continuous calibration period of the continuous calibration is not specifically set; the rising edge of the next reference clock has not arrived after the last calibration ends.
[0067] In one embodiment, when the reference frequency is greater than the first preset frequency and less than or equal to the second preset frequency, and it is determined that the real-time calibration switch state is on and the continuous calibration switch state is off, the steps of determining the calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so that the analog-to-time digital converter is calibrated according to the calibration information, include:
[0068] When the real-time calibration switch state is on and the continuous calibration switch state is off, send a real-time calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during the idle time according to the real-time calibration signal.
[0069] Here, when the reference frequency is relatively high, there is less idle time after the rising edge information of the reference clock is collected, so only real-time calibration is performed.
[0070] Specifically, referring to Figure 5 , when the rising edge of the reference clock is received, after collecting the rising edge information, perform a real-time calibration on the analog-to-time digital converter during the idle time, and wait for the arrival of the next rising edge of the reference clock after the real-time calibration ends.
[0071] In one embodiment, when the reference frequency is greater than the second preset frequency, and it is determined that the real-time calibration switch state is off and the continuous calibration switch state is off, the steps of determining the calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so that the analog-to-time digital converter is calibrated according to the calibration information, include:
[0072] When the real-time calibration switch state is off and the continuous calibration switch state is off, send a non-calibration signal to the analog-to-time digital converter.
[0073] Here, when the reference frequency is large enough, the idle time between two rising edges of the reference clock is short, so only the rising edge information of the reference clock is collected without calibration.
[0074] Specifically, referring to Figure 6 , when the rising edge of the reference clock is received, after collecting the rising edge information, wait for the arrival of the next rising edge information of the reference clock after collecting the rising edge information of the reference clock.
[0075] An embodiment of the present invention provides a calibration method for a converter, which is applied to a calibration planning module. The calibration planning module is connected to an analog time-to-digital converter to be calibrated. The method includes: obtaining the rising edge information of a reference clock, and determining the clock period and reference frequency of the reference clock according to the rising edge information; determining the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency; and determining the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period, so as to calibrate the analog time-to-digital converter according to the calibration information. In this way, by connecting the calibration planning module to the analog time-to-digital converter to be calibrated, the calibration information is determined according to the reference frequency of the reference clock, so as to perform adaptive calibration on the analog time-to-digital converter according to the input reference clock period, thereby improving the calibration effect and further enhancing the universality of the analog time-to-digital converter.
[0076] Embodiment 2:
[0077] Figure 7 It is a schematic diagram of the calibration system of the converter provided by Embodiment 2 of the present invention.
[0078] Refer to Figure 7 , the calibration system of the converter is applied to a calibration planning module. The calibration planning module is connected to an analog time-to-digital converter to be calibrated. The system includes:
[0079] A reference clock acquisition module 1, configured to obtain the rising edge information of a reference clock, and determine the clock period and reference frequency of the reference clock according to the rising edge information.
[0080] A calibration information determination module 2, configured to determine the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency.
[0081] A calibration planning module 3, configured to determine the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period, so as to calibrate the analog time-to-digital converter according to the calibration information.
[0082] An embodiment of the present invention provides a calibration system for a converter, which is applied to a calibration planning module. The calibration planning module is connected to an analog-to-digital converter to be calibrated. The method includes: obtaining the rising edge information of a reference clock, and determining the clock period and reference frequency of the reference clock according to the rising edge information; determining the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency; determining the calibration information of the analog-to-digital converter based on the real-time calibration switch state, continuous calibration switch state, and continuous calibration period, so as to calibrate the analog-to-digital converter according to the calibration information. In this way, by connecting the calibration planning module to the analog-to-digital converter to be calibrated, the calibration information is determined according to the reference frequency of the reference clock, so as to adaptively calibrate the analog-to-digital converter according to the input reference clock period, thereby improving the calibration effect and further enhancing the universality of the analog-to-digital converter.
[0083] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the calibration method for the converter provided in the above embodiment are implemented.
[0084] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the calibration method for the converter in the above embodiment are executed.
[0085] The computer program product provided by the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments, which will not be elaborated here.
[0086] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described system and device can refer to the corresponding processes in the foregoing method embodiments, which will not be elaborated here.
[0087] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installation", "connection", and "connection" shall be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0088] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can 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 a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0089] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of the present invention. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0090] Finally, it should be noted that the above-mentioned embodiments are only specific embodiments of the present invention, used to illustrate the technical solution of the present invention, rather than limiting it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the technical field of the present invention can still modify the technical solutions described in the foregoing embodiments, or can easily think of changes, or make equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A calibration method for a converter, characterized in that, Applied to a calibration planning module, the calibration planning module is connected to an analog time-to-digital converter to be calibrated, and the method includes: Obtain the rising edge information of the reference clock, and determine the clock period and reference frequency of the reference clock according to the rising edge information; Determine the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency; Based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, determine the calibration information of the analog time-to-digital converter, and calibrate the analog time-to-digital converter according to the calibration information; The step of determining the real-time calibration switch state, continuous calibration switch state, and continuous calibration period according to the reference frequency includes: When the reference frequency is less than or equal to a first preset frequency, determine that the real-time calibration switch state is on, the continuous calibration switch state is on, and calculate the continuous calibration period; wherein, the continuous calibration period includes a first calibration period determined according to the clock period of the reference clock and a second calibration period determined based on a preset continuous calibration time; When the reference frequency is greater than the first preset frequency and less than or equal to a second preset frequency, determine that the real-time calibration switch state is on and the continuous calibration switch state is off; When the reference frequency is greater than the second preset frequency, determine that the real-time calibration switch state is off and the continuous calibration switch state is off.
2. The method according to claim 1, wherein Before the step of obtaining the rising edge information of the reference clock and determining the clock period of the reference clock according to the rising edge information, the method further includes: Receive a power-on reset signal; Generate a converter reset signal and a calibration signal according to the power-on reset signal; Send the converter reset signal and the calibration signal to the analog time-to-digital converter to synchronously reset and calibrate the analog time-to-digital converter.
3. The method according to claim 1, wherein The step of determining the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, and calibrating the analog time-to-digital converter according to the calibration information includes: When the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the first calibration period, send a real-time calibration signal and a continuous calibration signal to the analog time-to-digital converter to perform real-time calibration on the analog time-to-digital converter during idle time according to the real-time calibration signal and perform continuous calibration on the analog time-to-digital converter according to the first calibration period; Calculate the first calibration period according to the following formula: Among them, is the first calibration period, is the clock period of the reference clock, is the period coefficient.
4. The method according to claim 1, wherein The step of determining the calibration information of the analog time-to-digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so that the analog time-to-digital converter is calibrated according to the calibration information includes: When the real-time calibration switch state is on, the continuous calibration switch state is on, and the continuous calibration period is the second calibration period, send a real-time calibration signal and a continuous calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during idle time according to the real-time calibration signal and perform continuous calibration on the analog-to-time digital converter according to the second calibration period; Wherein, the second calibration period is equal to the preset continuous calibration time.
5. The method according to claim 1, wherein The step of determining calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so that the analog-to-time digital converter performs calibration according to the calibration information includes: When the real-time calibration switch state is on and the continuous calibration switch state is off, send a real-time calibration signal to the analog-to-time digital converter to perform real-time calibration on the analog-to-time digital converter during idle time according to the real-time calibration signal.
6. The method according to claim 1, wherein The step of determining calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so as to perform calibration on the analog-to-time digital converter according to the calibration information includes: When the real-time calibration switch state is off and the continuous calibration switch state is off, send a non-calibration signal to the analog-to-time digital converter.
7. A calibration system for a converter, characterized in that, Applied to a calibration planning module, the calibration planning module is connected to an analog-to-time digital converter to be calibrated, and the system includes: A reference clock acquisition module, configured to acquire rising edge information of a reference clock, and determine a clock period and a reference frequency of the reference clock according to the rising edge information; A calibration information determination module, configured to determine a real-time calibration switch state, a continuous calibration switch state, and a continuous calibration period according to the reference frequency; A calibration planning module, configured to determine calibration information of the analog-to-time digital converter based on the real-time calibration switch state, the continuous calibration switch state, and the continuous calibration period, so as to perform calibration on the analog-to-time digital converter according to the calibration information; The calibration information determination module is further configured to determine that the real-time calibration switch state is on and the continuous calibration switch state is on when the reference frequency is less than or equal to a first preset frequency, and calculate the continuous calibration period; wherein, the continuous calibration period includes a first calibration period determined according to the clock period of the reference clock and a second calibration period determined based on a preset continuous calibration time; when the reference frequency is greater than the first preset frequency and less than or equal to a second preset frequency, determine that the real-time calibration switch state is on and the continuous calibration switch state is off; when the reference frequency is greater than the second preset frequency, determine that the real-time calibration switch state is off and the continuous calibration switch state is off.
8. An electronic device, comprising a memory and a processor, wherein a computer program capable of running on the processor is stored on the memory, characterized in that When the processor executes the computer program, the method described in any one of the above claims 1-6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program runs, it executes the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Time-to-digital converter, calibration method and chip
CN113900369A