Sampling time error calibration method, system, device, medium and program product

By obtaining the calibration times and data correlation differences of different channels of the analog-to-digital converter and adjusting the calibration direction to calibrate the sampling time, the limitations of the sampling time error calibration method in the prior art are solved, and efficient calibration under different Nyquist frequency domain signals are achieved, which is universal.

CN119766236APending Publication Date: 2025-04-04SHANGHAI BEILING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411835233.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, the correlation principle is used to calibrate sampling time errors, and there are scenarios that can only be applied to the Nyquist frequency domain of the input signal and are known, resulting in fewer application scenarios and not universal.

Method used

By obtaining the number of calibration times in which different channels of the analog-to-digital converter are calibrated in the preset direction, the difference between data correlations is obtained, the preset direction is adjusted to obtain the target direction, and the sampling time of the channel is calibrated based on the target direction.

Benefits of technology

The sampling time error calibration is achieved when any Nyquist frequency domain signal is input, without the need to design an additional calibration channel, reducing hardware circuit overhead, expanding the application scenario of the error calibration method, and being universal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766236A_ABST
    Figure CN119766236A_ABST
Patent Text Reader

Abstract

The present disclosure provides a calibration method, system, device, medium and program product for sampling time error, and the calibration method includes: obtaining the calibration times of different channels of an analog-to-digital converter to a preset direction; obtaining the difference between data correlations based on the calibration times; adjusting the preset direction based on the difference to obtain a target direction; and calibrating the sampling time of the channel based on the target direction. The present disclosure achieves calibration of the sampling time by obtaining the calibration times of different channels of an analog-to-digital converter to a preset direction, and then obtaining the difference between data correlations to adjust the preset direction. The sampling time error calibration can be completed when any Nyquist frequency domain signal is input, and the calibration direction judgment and error correction can be completed without the need for TIADC to design additional calibration channels, thereby reducing hardware circuit overhead, expanding the application scenarios of the error calibration method, and having universal applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of analog-to-digital converters, and in particular to a sampling time error calibration method, system, device, medium and program product. Background Art

[0002] In a time-interleaved analog-to-digital converter (TIADC), since each channel is independent of each other, there is often a sampling time mismatch error, that is, the channel sampling time is offset from the ideal time, which will seriously affect the dynamic performance of the TIADC. In practical applications, digital calibration methods are often used to reduce the impact of sampling time mismatch on the TIADC.

[0003] The common TIADC sampling time mismatch calibration method uses the correlation between channels to calculate the sampling time mismatch. The principle diagram is as follows: Figure 1 As shown. Take TIADC with two channels as an example, one of the channels is used as the reference channel Ref-ADC, corresponding to the sampling time Ts ref , the other channel is the channel to be calibrated Cal-ADC, corresponding to the sampling time Ts cal The correlation R between the n-th sampling digital output Dref[n] of the reference channel and the n-th sampling digital output Dcal[n] of the channel to be calibrated is calculated by accumulating and averaging the input signal. xx (n), and the correlation R between the nth sampled digital output Dcal[n] of the channel to be calibrated and the n+1th sampled digital output Dref[n+1] of the reference channel xx (n+1). Then adjust the sampling time Ts of the channel to be calibrated through the delay line cal Make R xx (n) and R xx (n+1) are approximately equal, so it can be determined that the sampling intervals between channels are approximately equal, and the calibration is completed.

[0004] However, this calibration method can only be applied to some Nyquist frequency domain input signals. Use the correlation principle to calibrate the sampling time error. Assume that the input signal is a cosine signal Acos(wt+θ), where A represents the amplitude of the input signal, w represents the frequency of the input signal, t represents the sampling time, θ represents the phase of the input signal, and there are 4 channels in TIADC. τ is the time interval between adjacent channels, and the correlation function between channels R xx as follows:

[0005]

[0006] According to the product-to-difference formula, it can be simplified to:

[0007]

[0008] Where T represents the period of the input signal, that is, the period of Acos(wt+θ) and Acos[w(t+τ)+θ]. The period of cos(2wt+2θ+wτ) is an integer multiple of T, and its integral is 0. Therefore, the correlation function can be simplified as:

[0009]

[0010] When there is no sampling time error, τ = T / 4. xx The function change curve is as follows Figure 2 When w is in an odd Nyquist zone, wτ is in the 0°-180° interval of the cosine function, and R xx When w is in an even Nyquist zone, wτ is in the 180°-360° interval of the cosine function, R xx As τ increases, it increases. Therefore, the correlation principle is used to calibrate the sampling time error, and the calibration direction is related to the Nyquist frequency domain where the input signal frequency is located.

[0011] That is, this calibration method has certain limitations and can only be used in scenarios where the Nyquist frequency domain of the input signal is single and known. If it is applied to the wrong Nyquist domain input signal, it will be calibrated to the extreme value in the wrong direction. This calibration method has few application scenarios and is not universal. Summary of the invention

[0012] The technical problem to be solved by the present disclosure is to overcome the defects of the prior art that the sampling time error is calibrated using the correlation principle, which can only be applied to the scenario where the Nyquist frequency domain of the input signal is single and known, resulting in fewer application scenarios and lack of universality. A sampling time error calibration method, system, device, medium and program product are provided.

[0013] The present invention solves the above technical problems through the following technical solutions:

[0014] The present disclosure provides a method for calibrating a sampling time error, the calibration method comprising:

[0015] Obtain the calibration times of different channels of the analog-to-digital converter in a preset direction;

[0016] Based on the calibration times, obtaining the difference between the data correlations;

[0017] Based on the difference, adjusting the preset direction to obtain a target direction;

[0018] Based on the target direction, the sampling time of the channel is calibrated.

[0019] Preferably, the step of obtaining the number of calibrations of different channels of the analog-to-digital converter in a preset direction comprises:

[0020] Acquiring data correlation between input signals of different channels of the analog-to-digital converter;

[0021] The sampling time of the channel is calibrated based on the data correlation to obtain the calibration number of calibrations in the preset direction.

[0022] Preferably, the step of obtaining the difference between the data correlations based on the calibration times comprises:

[0023] In response to the calibration number being greater than a preset number, the difference between the data correlations is obtained.

[0024] Preferably, after the step of obtaining the difference between the data correlations in response to the calibration number being greater than a preset number, the method further comprises:

[0025] The calibration times are cleared to obtain new calibration times, and new differences between the data correlations are obtained based on the new calibration times.

[0026] Preferably, the difference includes a first difference and a second difference, and the calibration time corresponding to the first difference is earlier than the calibration time corresponding to the second difference;

[0027] The step of adjusting the preset direction based on the difference to obtain the target direction comprises:

[0028] In response to at least one of the second difference being greater than the first difference, taking the opposite direction of the preset direction as the target direction;

[0029] In response to all the second differences being not greater than the first difference, the preset direction is used as the target direction.

[0030] Preferably, the step of calibrating the sampling time of the channel based on the target direction includes:

[0031] Based on the target direction, the delay line control word of the channel is adjusted to calibrate the sampling time.

[0032] The present disclosure also provides a sampling time error calibration system, the calibration system comprising:

[0033] A calibration times acquisition module is used to acquire the calibration times of different channels of the analog-to-digital converter in a preset direction;

[0034] A difference acquisition module, used for acquiring the difference between the data correlations based on the calibration times;

[0035] A target direction acquisition module, used to adjust the preset direction based on the difference to obtain a target direction;

[0036] A sampling time calibration module is used to calibrate the sampling time of the channel based on the target direction.

[0037] Preferably, the calibration times acquisition module comprises:

[0038] A correlation acquisition unit, used for acquiring data correlation between input signals of different channels of the analog-to-digital converter;

[0039] The calibration times acquisition unit is used to calibrate the sampling time of the channel based on the data correlation to obtain the calibration times for calibration in the preset direction.

[0040] Preferably, the difference acquisition module is further used for acquiring the difference between the data correlations in response to the calibration times being greater than a preset times.

[0041] Preferably, the difference acquisition module is further used to clear the calibration times to obtain new calibration times, and based on the new calibration times, obtain new differences between the data correlations.

[0042] Preferably, the difference includes a first difference and a second difference, and the calibration time corresponding to the first difference is earlier than the calibration time corresponding to the second difference;

[0043] The target direction acquisition module comprises:

[0044] a first response unit, configured to, in response to at least one of the second difference being greater than the first difference, take the opposite direction of the preset direction as the target direction;

[0045] A second response unit is configured to use the preset direction as the target direction in response to all the second differences being not greater than the first differences.

[0046] Preferably, the sampling time calibration module is further used to adjust the delay line control word of the channel based on the target direction to calibrate the sampling time.

[0047] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and used to run on the processor, and the processor implements the above-mentioned sampling time error calibration method when executing the computer program.

[0048] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned sampling time error calibration method is implemented.

[0049] The present disclosure also provides a computer program product, including a computer program, which implements the sampling time error calibration method as described above when the computer program is executed by a processor.

[0050] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0051] The positive and progressive effects of this disclosure are:

[0052] The present invention obtains the calibration times of different channels of the analog-to-digital converter in preset directions, and then obtains the difference between data correlations to adjust the preset direction to achieve calibration of the sampling moment. Even if the initial calibration direction does not match the input signal frequency, the calibration direction adjustment will be automatically completed. The sampling moment error calibration can be completed when any Nyquist frequency domain signal is input. The calibration direction judgment and error correction can be completed without designing additional calibration channels for TIADC, which reduces the hardware circuit overhead, expands the application scenarios of the error calibration method, and has universal applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a schematic diagram of the principle of the TIADC sampling time mismatch calibration method in the prior art;

[0054] Figure 2 is the related function R of the prior art xx The change curve diagram of

[0055] Figure 3 This is a flow chart of a method for calibrating sampling time error according to Embodiment 1 of the present disclosure;

[0056] Figure 4 This is a flow chart of a method for calibrating sampling time error according to Embodiment 2 of the present disclosure;

[0057] Figure 5 This is a specific example diagram of the sampling time error calibration method of Embodiment 2 of the present disclosure;

[0058] Figure 6 This is a module schematic diagram of a sampling time error calibration system according to Embodiment 3 of the present disclosure;

[0059] Figure 7 This is a module schematic diagram of a sampling time error calibration system according to Embodiment 4 of the present disclosure;

[0060] Figure 8 This is a schematic diagram of the structure of an electronic device according to Embodiment 5 of the present disclosure. DETAILED DESCRIPTION

[0061] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0062] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0063] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0064] Example 1

[0065] This embodiment provides a method for calibrating sampling time error, such as Figure 3 As shown, the calibration method includes:

[0066] S101, obtaining the number of calibrations of different channels of an analog-to-digital converter in a preset direction;

[0067] S102, obtaining a difference between data correlations based on the number of calibrations;

[0068] S103, adjusting the preset direction based on the difference to obtain the target direction;

[0069] S104: Calibrate the sampling time of the channel based on the target direction.

[0070] In this embodiment, the calibration times of different channels of the analog-to-digital converter in preset directions are obtained, and then the difference between the data correlations is obtained to adjust the preset direction and realize the calibration of the sampling moment. Even if the initial calibration direction does not match the input signal frequency, the calibration direction adjustment will be automatically completed. The sampling moment error calibration can be completed when any Nyquist frequency domain signal is input. The calibration direction judgment and error correction can be completed without designing additional calibration channels for TIADC, which reduces the hardware circuit overhead, expands the application scenarios of the error calibration method, and has universal applicability.

[0071] Example 2

[0072] This embodiment provides a method for calibrating sampling time error, which is a further improvement on Embodiment 1.

[0073] In one feasible solution, Figure 4 As shown, step S101 includes:

[0074] S1011, acquiring data correlation between input signals of different channels of an analog-to-digital converter;

[0075] S1012: Calibrate the sampling time of the channel based on data correlation to obtain the number of calibration times in a preset direction.

[0076] Specifically, taking a 4-channel TIADC as an example, they are a, b, c, and d, that is, the TIADC has 4 sub-ADCs (analog-to-digital converters), which sample the digital output Dout of the input signal respectively. a , Dout b , Dout c , Dout d . You can select any channel ADC as the reference channel, and the remaining channels as the channels to be calibrated, and then calculate the correlation between the channels. Then determine the initial calibration direction based on the data correlation logic corresponding to the Nyquist frequency domain where the input signal is located. The initial calibration direction is the preset direction. Take channel a as the reference channel and select the calibration direction corresponding to the odd Nyquist domain input signal as the initial calibration direction as an example.

[0077] The data correlation R between channel a and channel b is obtained by multiplying and accumulating the average. ab , the data correlation R between the b channel and the c channel bc , the data correlation R between the c channel and the d channel cd , data correlation R between d channel and a channel da .

[0078]

[0079] Among them, data a (i) data b (i) data c (i) data d (i) data a (i+1) represents the i-th data volume of channel a, the i-th data volume of channel b, the i-th data volume of channel c, the i-th data volume of channel d, and the i+1-th data volume of channel a respectively, and n represents the total amount of data used by accumulating and averaging instead of correlation operation. n can be set or adjusted according to actual conditions.

[0080] Taking the input odd Nyquist zone signal as an example, if Rab <R bc , it means that the sampling time of channel b is too advanced, and the sampling clock of channel b needs to be delayed. The sampling time delay line control word tmis_b of channel b is adjusted to tmis_b-1; if R ab >R bc , it means that the sampling time of channel b is too late, and the sampling clock of channel b needs to be moved forward, and the sampling time delay line control word tmis_b of channel b needs to be adjusted to tmis_b+1.

[0081] If R bc <R cd , it means that the sampling time of channel c is too advanced, and it is necessary to delay the sampling clock of channel c and adjust the sampling time delay line control word tmis_c, tmis_c-1 of channel c; if R bc >R cd , it means that the sampling time of channel C is too late, and the sampling clock of channel C needs to be moved forward, and the sampling time delay line control word tmis_c of channel C needs to be adjusted to tmis_c+1.

[0082] If R cd <R da , it means that the sampling time of channel d is too advanced, and the sampling clock of channel d needs to be delayed. Adjust the sampling time delay line control word tmis_d of channel d to tmis_d-1; if R cd >R da , it means that the sampling time of the d channel is too late, and the d channel sampling clock needs to be moved forward, and the d channel sampling time delay line control word tmis_d is adjusted to tmis_d+1.

[0083] Finally, tmis_b, tmis_c, and tmis_d are output to the delay line adjustment circuit to complete the sampling time adjustment of channels b, c, and d. If the calibration direction corresponding to the input signal of the even Nyquist domain is used as the initial calibration direction, the adjustment directions of tmis_b, tmis_c, and tmis_d are opposite.

[0084] If the input signal frequency is in the odd Nyquist zone, R ab , R bc , R cd , R da As the sampling interval increases, it decreases. At this time, the initial calibration direction is correct. With the calibration of tmis_b, tmis_c, and tmis_d, the algorithm has negative feedback, and the data correlation differences Δb, Δc, and Δd between adjacent channels become smaller and smaller, thereby completing the sampling time error calibration.

[0085] Δb=|R ab -R bc |;

[0086] Δc=|R bc -R cd};

[0087] Δd=|R cd -R da |;

[0088] If the input signal frequency is in an even Nyquist zone, R ab , R bc , R cd , R da It increases with the sampling interval. At this time, the initial calibration direction is wrong. With the calibration of tmis_b, tmis_c, and tmis_d, the data correlation differences Δb, Δc, and Δd between adjacent channels become larger and larger. The algorithm has positive feedback, and tmis_b, tmis_c, and tmis_d will be calibrated to the limit value.

[0089] Using the above characteristics, a counter is set for each channel b, c, and d, and the calibration times of the delay line control word tmis in the same direction at the sampling time are judged through tmis_b, tmis_c, and tmis_d. When one step calibration is completed, if tmis+1, the counter value is +1, and if tmis-1, the counter value is -1.

[0090] In this solution, by obtaining the data correlation between the input signals of different channels of the analog-to-digital converter, the sampling time of the channel is calibrated based on the data correlation to obtain the calibration number in the preset direction, thereby ensuring the accuracy and reliability of the calibration number.

[0091] In one feasible solution, step S102 includes:

[0092] S1021. In response to the calibration times being greater than a preset times, obtaining a difference between data correlations.

[0093] Specifically, when the absolute value of a channel counter is m, it means that the channel tmis has been calibrated m times in a certain direction, and the correlation value differences Δb, Δc, and Δd of all adjacent channels at this time are extracted.

[0094] In this solution, when the number of calibrations is greater than the preset number, the difference between the data correlations is obtained, thereby ensuring the accuracy and reliability of the difference.

[0095] In an implementable solution, after step S1021, the method further includes:

[0096] S1022. Clear the calibration times to obtain new calibration times, and obtain new differences between data correlations based on the new calibration times.

[0097] Specifically, when the absolute value of a channel counter is m, it means that the channel tmis has been calibrated m times in a certain direction, and the relevant value differences Δb, Δc, Δd of all adjacent channels are extracted at this time. It is also necessary to clear the counter to obtain the calibration times of different channels of the analog-to-digital converter in the preset direction again, that is, the new calibration times, and obtain the new difference value based on the new calibration times.

[0098] In this solution, by clearing the calibration times to obtain new calibration times and then obtaining new difference values, multiple difference values ​​whose calibration times are greater than the preset times can be obtained, so as to determine whether the initial calibration direction is correct, thereby improving the effectiveness and reliability of the calibration method.

[0099] In an implementable solution, the difference includes a first difference and a second difference, and the calibration time corresponding to the first difference is earlier than the calibration time corresponding to the second difference;

[0100] Step S103 includes:

[0101] S1031, in response to at least one second difference being greater than the first difference, taking the opposite direction of the preset direction as the target direction;

[0102] S1032: In response to all the second differences being not greater than the first difference, taking a preset direction as a target direction.

[0103] Specifically, let k be the number of times the absolute value of the counter value is m.

[0104] k=1, that is, when the absolute value of any channel counter is equal to m for the first time, all the inter-channel data correlation differences Δb, Δc, Δd are stored.

[0105] k>1, that is, when the absolute value of any channel counter is equal to m for the kth time, if the absolute value of the correlation difference between the two adjacent channel data at the kth time of any channel is greater than the absolute value of the correlation difference between the two adjacent channel data at the k-1th time, it means that the algorithm is positive feedback, and the calibration is judged to be reversed, and the calibration direction is adjusted. In other cases, the calibration is judged to be normal and there is no need to adjust the calibration direction.

[0106] In a specific implementation process, the second difference and the first difference can be any k-th difference and k-1-th difference respectively, that is, k is any positive integer.

[0107] After the judgment of any channel is completed, the data correlation differences Δb, Δc, and Δd between all channels at this time are written into the storage register, and all channel counters are restored, that is, the channel with the largest tmis error is used to complete the error calibration direction judgment at the sampling moment.

[0108] For example: when m=32, when a channel detects that tmis changes in a certain direction 32 times, the data correlation difference Δb of all channels at this time is calculated. 1 , Δc 1 , Δd 1 Writes to the storage register and restores all channel counters.

[0109] When the second channel counter reaches 32, that is, after detecting that tmis changes in a certain direction 32 times, the correlation difference Δb of the data at this time of all channels is calculated. 2 , Δc 2 , Δd 2 and the data correlation difference Δb in the memory 1 , Δc 1 , Δd 1 If the absolute value of the second data correlation difference is greater than the absolute value of the first data correlation difference, that is, Δb 2 >Δb 1 , Δc 2 >Δc 1 , Δd 2 >Δd 1 At least one of the above is true, indicating that as the calibration proceeds, the algorithm is positively fed back and the calibration is reversed. It is necessary to adjust the calibration direction of all channels and calculate the data correlation difference Δb when the second counter counts to 32. 2 , Δc 2 , Δd 2 Write to the storage register, restore the counter, and wait for the next detection.

[0110] When the second channel counter reaches 32, that is, after detecting that tmis changes in a certain direction 32 times, the correlation difference Δb of the data at this time of all channels is calculated. 2 , Δc 2 , Δd 2 and the data correlation difference Δb in the memory 1 , Δc 1 , Δd 1 Contrast. If Δb 2 >Δb 1 , Δc 2 >Δc 1 , Δd 2 >Δd 1 Neither is true. For example, the absolute value of the second data correlation difference is smaller than the absolute value of the first data correlation difference, indicating that as the calibration proceeds, the algorithm has negative feedback and the calibration is correct. The data correlation difference Δb when the second counter counts to 32 is 2 , Δc 2 , Δd 2 Write to the storage register, restore the counter, and wait for the next detection.

[0111] In this solution, according to the magnitude relationship between the second difference and the first difference, the target direction is determined according to the preset direction, thereby achieving accurate adjustment of the calibration direction and ensuring the accuracy and reliability of the calibration method.

[0112] In one feasible solution, step S104 includes:

[0113] S1041. Based on the target direction, adjust the delay line control word of the channel to calibrate the sampling time.

[0114] In this solution, the delay line control word of the channel is adjusted according to the target direction to achieve calibration of the sampling time, thereby ensuring the accuracy and reliability of the delay line control word adjustment, and further ensuring the accuracy and reliability of the sampling time calibration.

[0115] The working principle of the sampling time error calibration method of this embodiment is explained below with reference to specific examples. Figure 5 As shown:

[0116] Select the reference channel and the channel to be calibrated of TIADC; select the initial calibration direction; calculate the data correlation between each channel and the next channel; compare the data correlation between the channels to calibrate the sampling time of 1 unit; use the counter to count and determine whether the counter value is equal to m; if the counter value is not equal to m, return to the step of calculating the data correlation between each channel and the next channel; if the counter value is equal to m, store the difference Δ of the data correlation output between the channels, and clear the counter; determine whether the difference Δ of the data correlation when the kth counter value is equal to m is greater than the difference Δ of the data correlation when the k-1th counter value is equal to m; if the difference Δ of the data correlation when the kth counter value is equal to m is greater than the difference Δ of the data correlation when the k-1th counter value is equal to m, adjust the calibration direction to obtain the target direction, and calibrate the sampling time of the channel based on the target direction; if the difference Δ of the data correlation when the kth counter value is equal to m is not greater than the difference Δ of the data correlation when the k-1th counter value is equal to m, return to the step of calculating the data correlation between each channel and the next channel.

[0117] In this embodiment, based on the principle that the correlation of output data between TIADC channels changes with the odd and even Nyquist domains where the input signals are located when different Nyquist domain input signals are input, a corresponding memory is set to determine the difference in data correlation after calibration (k-1)m times and km times in the same direction, thereby determining whether the initial calibration direction is wrong and completing error correction in the calibration direction. Without adding additional calibration paths, the problem that the traditional TIADC sampling time error calibration method cannot be applied to input signals in different Nyquist frequency domains is solved, the hardware circuit overhead is reduced, and the application scenarios of the error calibration method are expanded, which has universal applicability.

[0118] Example 3

[0119] This embodiment provides a calibration system for sampling time error, such as Figure 6 As shown, the calibration system includes:

[0120] The calibration times acquisition module 1 is used to acquire the calibration times of different channels of the analog-to-digital converter in a preset direction;

[0121] A difference acquisition module 2 is used to acquire the difference between data correlations based on the number of calibrations;

[0122] The target direction acquisition module 3 is used to adjust the preset direction based on the difference to obtain the target direction;

[0123] The sampling time calibration module 4 is used to calibrate the sampling time of the channel based on the target direction.

[0124] In this embodiment, the calibration times of different channels of the analog-to-digital converter in preset directions are obtained, and then the difference between the data correlations is obtained to adjust the preset direction and realize the calibration of the sampling moment. Even if the initial calibration direction does not match the input signal frequency, the calibration direction adjustment will be automatically completed. The sampling moment error calibration can be completed when any Nyquist frequency domain signal is input. The calibration direction judgment and error correction can be completed without designing additional calibration channels for TIADC, which reduces the hardware circuit overhead, expands the application scenarios of the error calibration method, and has universal applicability.

[0125] Example 4

[0126] This embodiment provides a sampling time error calibration system, which is a further improvement on the third embodiment.

[0127] In one feasible solution, Figure 7 As shown, the calibration times acquisition module 1 includes:

[0128] A correlation acquisition unit 11, used to acquire data correlation between input signals of different channels of the analog-to-digital converter;

[0129] The calibration times acquisition unit 12 is used to calibrate the sampling time of the channel based on data correlation to obtain the calibration times for calibration in a preset direction.

[0130] In an implementable solution, the difference acquisition module 2 is further used to acquire the difference between the data correlations in response to the number of calibrations being greater than a preset number.

[0131] In an implementable solution, the difference acquisition module 2 is further used to clear the calibration times to obtain new calibration times, and based on the new calibration times, obtain new differences between the data correlations.

[0132] In an implementable solution, the difference includes a first difference and a second difference, and the calibration time corresponding to the first difference is earlier than the calibration time corresponding to the second difference;

[0133] The target direction acquisition module 3 includes:

[0134] A first response unit 31, configured to take a direction opposite to the preset direction as a target direction in response to at least one second difference being greater than the first difference;

[0135] The second response unit 32 is configured to take a preset direction as a target direction in response to all the second differences being not greater than the first difference.

[0136] In an implementable solution, the sampling time calibration module 4 is further used to adjust the delay line control word of the channel based on the target direction to calibrate the sampling time.

[0137] In this embodiment, based on the principle that the correlation of output data between TIADC channels changes with the odd and even Nyquist domains where the input signals are located when different Nyquist domain input signals are input, a corresponding memory is set to determine the difference in data correlation after calibration (k-1)m times and km times in the same direction, thereby determining whether the initial calibration direction is wrong and completing error correction in the calibration direction. Without adding additional calibration paths, the problem that the traditional TIADC sampling time error calibration method cannot be applied to input signals in different Nyquist frequency domains is solved, the hardware circuit overhead is reduced, and the application scenarios of the error calibration method are expanded, which has universal applicability.

[0138] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.

[0139] Example 5

[0140] Figure 8This is a schematic diagram of the structure of an electronic device shown in an example embodiment of the present disclosure, the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, it implements the calibration method of the sampling time error described in any of the above embodiments. Figure 8 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0141] like Figure 8 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).

[0142] The bus 93 includes a data bus, an address bus, and a control bus.

[0143] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .

[0144] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0145] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the calibration method of the sampling time error provided in any of the above embodiments.

[0146] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with other modules of the electronic device 90 via a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0147] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0148] Example 6

[0149] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method for calibrating the sampling time error provided in any of the above embodiments is implemented.

[0150] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0151] Example 7

[0152] An embodiment of the present disclosure further provides a computer program product, including a computer program, which implements any of the above-mentioned sampling time error calibration methods when executed by a processor.

[0153] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0154] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A method for calibrating sampling time error, characterized in that: The calibration method comprises: Obtain the calibration times of different channels of the analog-to-digital converter in a preset direction; Based on the calibration times, obtaining the difference between the data correlations; Based on the difference, the preset direction is adjusted to obtain a target direction; Based on the target direction, the sampling time of the channel is calibrated.

2. The method for calibrating sampling time error according to claim 1, characterized in that: The step of obtaining the number of calibrations performed on different channels of the analog-to-digital converter in a preset direction comprises: Acquiring data correlation between input signals of different channels of the analog-to-digital converter; The sampling time of the channel is calibrated based on the data correlation to obtain the calibration number of calibrations in the preset direction.

3. The method for calibrating sampling time error according to claim 1, characterized in that: The step of obtaining the difference between the data correlations based on the calibration times comprises: In response to the calibration number being greater than a preset number, the difference between the data correlations is obtained.

4. The method for calibrating sampling time error according to claim 3, characterized in that: After the step of obtaining the difference between the data correlations in response to the calibration number being greater than the preset number, the method further includes: The calibration times are cleared to obtain new calibration times, and new differences between the data correlations are obtained based on the new calibration times.

5. The method for calibrating sampling time error according to claim 4, characterized in that: The difference includes a first difference and a second difference, and the calibration time corresponding to the first difference is earlier than the calibration time corresponding to the second difference; The step of adjusting the preset direction based on the difference to obtain the target direction comprises: In response to at least one of the second difference being greater than the first difference, taking the opposite direction of the preset direction as the target direction; In response to all the second differences being not greater than the first difference, the preset direction is used as the target direction.

6. The method for calibrating sampling time error according to claim 1, characterized in that: The step of calibrating the sampling time of the channel based on the target direction includes: Based on the target direction, the delay line control word of the channel is adjusted to calibrate the sampling time.

7. A sampling time error calibration system, characterized in that: The calibration system comprises: A calibration times acquisition module is used to acquire the calibration times of different channels of the analog-to-digital converter in a preset direction; A difference acquisition module, used for acquiring the difference between the data correlations based on the calibration times; A target direction acquisition module, used to adjust the preset direction based on the difference to obtain a target direction; A sampling time calibration module is used to calibrate the sampling time of the channel based on the target direction.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the sampling time error calibration method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the sampling time error calibration method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for calibrating the sampling time error according to any one of claims 1 to 6 is implemented.