Delay compensation circuit and method based on ADC sampling and computer storage medium

By designing a delay compensation circuit and method based on ADC sampling, and using the control of frequency and sampling time range, delay compensation for different circuit structures is realized, and the problems of insufficient delay compensation accuracy and versatility in the existing technology are solved. , improving the accuracy and compatibility of delay compensation.

CN118713433AActive Publication Date: 2024-09-27SHENZHEN YUNT DIGITAL POWER CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411186670.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-09-27
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

At high switching frequencies, the delay compensation method of analog-to-digital converters in the existing technology has insufficient accuracy and versatility. There are deviations between approximate estimation and actual measurement methods, and it cannot effectively cope with the delay compensation needs of different circuit structures.

Method used

A delay compensation circuit and method based on ADC sampling is designed, including a compensation module, a bias module and a processing module. By obtaining the frequency of the input signal and setting the sampling time range, the switch is controlled to perform on-off operations, using an analog-to-digital converter. Sampling and analyzing the signal, calculating the target delay result for compensation, suitable for circuits with different structures.

Benefits of technology

The accuracy and versatility of delay compensation are improved, delay results can be accurately calculated under different circuit structures, and the compatibility and accuracy of delay compensation are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713433A
    Figure CN118713433A
Patent Text Reader

Abstract

The invention provides a delay compensation circuit and method based on ADC sampling and a computer storage medium, and the method comprises the steps: obtaining a first frequency of an input signal, and setting a first sampling time range; controlling a first switch of the compensation module to be switched off so as to switch off an electric connection state between the input module and the bias module; controlling a second switch of the compensation module to continuously perform on-off operation based on the first frequency; controlling the analog-to-digital converter to sample a first electric signal of the sampling target position within a first sampling time range at a first step length; a first target delay result is obtained through analysis based on the first electric signal, the first step length and the first sampling time range, delay compensation can be carried out on circuits of different structures, the circuit adopting the method has high compatibility, delay compensation can be carried out through the method and the circuit based on different ADC sampling circuit structures, and the method is suitable for large-scale popularization and application. And the accuracy of delay compensation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power electronics technology, and in particular to a delay compensation circuit and method based on ADC sampling, and a computer storage medium. Background Art

[0002] As power devices advance and their power levels increase, the corresponding switching frequency and control requirements are becoming increasingly stringent. This, in turn, places increasing demands on analog-to-digital converter sampling, requiring both accurate and real-time sampling. In practical applications, to ensure sampling accuracy, appropriate filtering is often applied, which results in a certain delay in data sampling. At low switching frequencies, this delay is minimal and can be largely ignored. However, at higher switching frequencies, this delay can significantly impact sampling.

[0003] There are two traditional methods for delay compensation. The first is to approximately estimate the delay time based on the circuit's RC parameters. As a delay parameter, the delay parameter obtained by this method is only an approximation and cannot accurately reflect the delay parameter. The second is the actual measurement method, which measures the delay based on the actual input and output. As a circuit delay parameter, the parameter measured by this method is only suitable for this circuit and will vary between different circuits. At the same time, after running for a period of time, the device parameters will also change, and the compensation value parameters will deviate from the actual value. Summary of the Invention

[0004] The embodiments of the present application provide a delay compensation circuit, method, and computer storage medium based on ADC sampling, which can make delay compensation more accurate and more versatile.

[0005] In a first aspect, an embodiment of the present application provides a delay compensation circuit based on ADC sampling, the circuit comprising: a compensation module, a bias module, and a processing module; a first end of the compensation module is connected to a first end of the bias module; a second end of the bias module is connected to a first end of the processing module; wherein, The compensation module is used to generate a first electrical signal; The bias module is used to perform signal bias processing on the first electrical signal to obtain a second electrical signal; The processing module is used to calculate the second electrical signal to obtain a target delay result.

[0006] In a possible embodiment, the circuit further includes an input module, wherein an input terminal of the input module is connected to the third terminal of the bias module; wherein the input signal input by the input module is a signal to be delayed compensated.

[0007] In a possible embodiment, the compensation module includes: a first switch, a second switch, and a first resistor; the first end of the second switch is grounded, and the second end of the second switch is connected to the first end of the first resistor; the first end of the first switch is connected to the input end of the input module, and the second end of the first switch is connected to the third end of the bias module; the second end of the first resistor serves as the first end of the compensation module and is connected to the first end of the bias module.

[0008] In a possible embodiment, the bias module includes a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, and a first operational amplifier; wherein, The first end of the second resistor is connected to the second end of the second switch as the first end of the bias module, and the second end of the second resistor is connected to the first end of the first operational amplifier; The first end of the operational amplifier also serves as the first end of the bias module and is connected to the second end of the first resistor; The first end of the third resistor is connected to the reference voltage end, the second end of the third resistor is connected to the second end of the first operational amplifier, the first end of the first capacitor is connected to the first end of the first operational amplifier, and the second end of the first capacitor is grounded; the first end of the first operational amplifier is connected to the third end of the operational amplifier, the third end of the operational amplifier is connected to the first end of the third resistor, the first end of the second capacitor is respectively connected to the second end of the fourth resistor and the first end of the processing module, and the second end of the second capacitor is grounded.

[0009] In a possible embodiment, the processing module includes a controller and an analog-to-digital converter, wherein a first end of the analog-to-digital converter serves as a first end of the processing module and is connected to a first end of the second capacitor and a second end of the fourth resistor, and a second end of the analog-to-digital converter is connected to the controller; The controller is used to obtain a first frequency of an input signal, generate a second frequency based on the first frequency, and control the second switch to switch at the second frequency; the controller is also used to control the first switch to switch; When the first switch is closed, the input terminal of the input module and the third terminal of the bias module are disconnected.

[0010] In a second aspect, an embodiment of the present application provides a delay compensation method based on ADC sampling, which is applied to a controller of a delay compensation system. The delay compensation system also includes an input module, a compensation module, a bias module, and an analog-to-digital converter. The compensation module includes a second switch and a first switch. The method includes: Obtaining a first frequency of an input signal and setting a first sampling time range, wherein the input signal is generated by an input module, and the first sampling time range is used to limit the sampling time length of an analog-to-digital converter, which is used to sample an analog signal and convert the signal into a digital signal; Controlling the first switch of the compensation module to be turned off to disconnect the electrical connection between the input module and the bias module; Controlling the second switch of the compensation module to continuously perform on-off operations based on the first frequency; Controlling the analog-to-digital converter to sample a first electrical signal at a sampling target position within a first sampling time range with a first step length, wherein the first electrical signal is an analog signal; A first target delay result is obtained by analyzing the first electrical signal, the first step length, and the first sampling time range, and the input signal is delayed compensated using the first target delay result.

[0011] In a possible embodiment, obtaining the first target delay result by analyzing the first electrical signal includes: Acquire a second electrical signal, where the second electrical signal is a digital signal processed by a bias module and an analog-to-digital converter; generating a first waveform diagram of a sampling target position according to the second electrical signal and the first step length; A first target delay result is obtained according to the rising edge of the first waveform of the sampling target position, the first step length, and the reference waveform.

[0012] In a possible embodiment, the method further includes: controlling the analog-to-digital converter to sample the third electrical signal at the sampling target position within a second sampling time range with a second step length, wherein the second sampling time range is used to limit the sampling time length of the controller; A second target delay result is obtained by analyzing the third electrical signal, the second step length, and the second sampling time range, and the input signal is again delayed compensated based on the second target delay result.

[0013] In a third aspect, an embodiment of the present application provides a delay compensation device based on ADC sampling, which is applied to a controller of a delay compensation system. The delay compensation system also includes an input module, a compensation module, a bias module, and a processing module analog-to-digital converter. The compensation module includes a second switch and a first switch. The processing module includes a controller. The device includes: an acquisition module, configured to acquire a first frequency of an input signal generated by the input module and set a first sampling time range, wherein the first sampling time range is used to limit a sampling time length of the analog-to-digital converter, wherein the analog-to-digital converter is used to sample an analog signal and convert the signal into a digital signal; a first control module, configured to control the first switch of the compensation module to be turned off, so as to disconnect the electrical connection between the input module and the bias module; a second control module, configured to control the second switch of the compensation module to continuously perform on-off operations based on the first frequency; A sampling module, configured to control the analog-to-digital converter to sample a first electrical signal at a sampling target position within a first sampling time range with a first step length, wherein the first electrical signal is an analog signal; The analysis module is used to analyze the first electrical signal, the first step length and the first sampling time range to obtain a first target delay result, and perform delay compensation on the input signal based on the first target delay result.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a delay compensation program is stored. The delay compensation program includes program instructions. When the program instructions are executed by a processor, the processor executes some or all of the steps described in the second aspect.

[0015] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in the second aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0016] As can be seen, the delay compensation method based on ADC sampling described in this application is applied to the controller of the delay compensation system, which also includes an input module, a compensation module, a bias module, and a method for obtaining a first frequency of an input signal and setting a first sampling time range, wherein the input signal is generated by the input module, and the first sampling time range is used to limit the sampling time length of the controller; controlling the first switch of the compensation module to be disconnected to disconnect the electrical connection between the input module and the bias module; controlling the second switch of the compensation module to continuously operate on and off based on the first frequency; controlling the analog-to-digital converter to sample the first electrical signal at the sampling target position with a first step length within the first sampling time range; analyzing the first electrical signal, the first step length, and the first sampling time range to obtain a first target delay result, and delay compensating the input signal based on the first target delay result. In this way, the method can be used to perform delay compensation on circuits with different structures. The circuit using the method has high compatibility. The method and circuit can also be used to perform delay compensation based on different ADC sampling circuit structures, which is conducive to improving the accuracy of delay compensation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0018] Figure 1 This is a circuit architecture diagram of a delay compensation circuit based on ADC sampling provided in an embodiment of the present application; Figure 2This is a schematic structural diagram of a delay compensation circuit based on ADC sampling provided in an embodiment of the present application; Figure 3 This is a structural diagram of another delay compensation circuit based on ADC sampling provided in an embodiment of the present application; Figure 4 This is a flow chart of a delay compensation method based on ADC sampling provided in an embodiment of the present application; Figure 5 This is a waveform diagram based on ADC sampling provided in an embodiment of the present application; Figure 6 This is a structural diagram of a delay compensation device based on ADC sampling proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or electronic device comprising a series of steps or units is not limited to the listed steps or units, but may, in an optional example, also include steps or units not listed, or may, in an optional example, include other steps or units inherent to the process, method, product, or electronic device.

[0021] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0022] The following is a brief introduction to the relevant names involved in this application: ADC (Analog-to-Digital Converter) converts continuously varying analog signals into discrete digital signals. The ADC typically works by periodically sampling the input analog voltage and quantizing each sampled value into a corresponding digital code.

[0023] See also Figure 1 , Figure 1 This is a circuit architecture diagram of a delay compensation circuit based on ADC sampling provided in an embodiment of the present application, such as Figure 1 As shown, the delay compensation circuit 100 based on ADC sampling includes: a compensation module 110, a bias module 120 and a processing module 130; the first end of the compensation module 110 is connected to the first end of the bias module 120; the second end of the bias module 120 is connected to the first end of the processing module 130; wherein, The compensation module 110 is used to generate a first electrical signal; the bias module 120 is used to perform signal bias processing on the first electrical signal to obtain a second electrical signal; and the processing module 130 is used to calculate the second electrical signal to obtain a target delay result.

[0024] Among them, when the delay compensation circuit 100 based on ADC sampling performs delay compensation, the compensation module 110 can be program-controlled by the processing module 130, and the control can be through wireless sensing control or circuit connection control. The processing module 130 controls the compensation module 110 so that there is an electrical signal in the circuit. The bias module 120 collects the first electrical signal in the circuit, and biases the first electrical signal to obtain a second electrical signal, and then transmits the second electrical signal to the processing module 130. The processing module 130 performs delay calculation based on the second electrical signal to obtain the target delay result.

[0025] It should be noted that the above-mentioned bias operation refers to setting an appropriate static voltage or current for the circuit by using appropriate circuit elements and techniques, so that the circuit can have a stable and reliable output under normal operating conditions. Its main function is to offset the operating point of the AC signal amplifier circuit to an appropriate range, ensuring that the signal can be correctly amplified and maintained in the linear region. The bias operation in this solution can be a DC bias operation. Because the input AC signal has positive and negative polarity, the DC bias operation can convert the signal with positive and negative polarity into a signal with only a single polarity, such as only positive polarity. In one possible embodiment, see Figure 2 , Figure 2 Schematic diagram of a delay compensation circuit based on ADC sampling provided by an embodiment of the present application. Figure 2As shown, the circuit further includes an input module, the input end of the input module is connected to the third end of the bias module 120; wherein, the input signal input by the input module is a signal to be delayed compensated.

[0026] Among them, the input module is used to input an electrical signal with an amplified amplitude. The electrical signal output by the input module has a certain frequency, which may come from a specific power electronic device in the input module. For example, the frequency of the input signal can be the switching frequency of the power device. The above-mentioned power device includes a MOS tube, an IGBT, etc. The above-mentioned power device can also be other devices, which are not limited here. It should be noted that the above-mentioned IGBT is the abbreviation of insulated gate bipolar transistor (IGBT), which is a composite fully controlled voltage-driven power semiconductor device. The above-mentioned MOS tube is the full name of metal-oxide-semiconductor field-effect transistor (MOS), which is a semiconductor device that uses the electric field effect to control current.

[0027] In one possible embodiment, see Figure 2 The compensation module 110 includes: a first switch K1, a second switch K2 and a first resistor R1; the first end of the second switch K2 is grounded, and the second end of the second switch K2 is connected to the first end of the first resistor R1; the first end of the first switch K1 is connected to the input end of the input module, and the second end of the first switch K1 is connected to the third end of the bias module 120; the second end of the first resistor serves as the first end of the compensation module 110 and is connected to the first end of the bias module 120.

[0028] The input module and the third end of the bias module 120 are connected via a first switch K1 .

[0029] The first switch K1 and the second switch K2 can be wirelessly controlled devices with on / off functions, or devices connected via wires with on / off functions. Specifically, they can be mechanical switches, electronic switches, photoelectric switches, etc. Specifically, push switches, CMOS switches, or optical MOS switches can be used. The on-resistance of the CMOS and optical MOS switches is negligible compared to the circuit impedance. The first switch K1 and the second switch K2 can be the same or different switches, and the specific details are not limited here.

[0030] It should be noted that a CMOS (complementary metal-oxide-semiconductor) switch is an electronic switch made using complementary metal-oxide semiconductor technology. It typically consists of a P-channel and an N-channel. When the control signal is high, the N-channel conducts and the P-channel blocks, turning the switch on; when the control signal is low, the P-channel conducts and the N-channel blocks, turning the switch off. An optical MOS (metal-oxide-semiconductor) switch is a metal-oxide-semiconductor switch that uses light signals to control on and off. It typically contains a photosensor that, when receiving a light signal of a specific wavelength and intensity, changes the conduction state of its internal channel, thereby achieving a switching function. The processing module 130 may include a control program corresponding to the CMOS switch or optical MOS switch to control the on and off of the CMOS switch or optical MOS switch.

[0031] In one possible embodiment, see Figure 2 ,like Figure 2 As shown, the bias module 120 includes a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, and a first operational amplifier OPA1; wherein, the first end of the first resistor R1 is connected to the second end of the first switch K1 as the first end of the bias module 120, and the second end of the first resistor R1 is connected to the first end of the first operational amplifier OPA1; the first end of the first operational amplifier OPA1 is also connected to the second end of the second resistor R2 as the first end of the bias module 120; the first end of the third resistor R3 is connected to the reference voltage terminal Vref, the second end of the third resistor R3 is connected to the second end of the first operational amplifier OPA1, the first end of the first capacitor C1 is connected to the first end of the first operational amplifier OPA1, and the second end of the first capacitor C1 is grounded GND; the first end of the first operational amplifier OPA1 is connected to the third end of the first operational amplifier OPA1, the third end of the first operational amplifier OPA1 is connected to the first end of the third resistor R3, the first end of the second capacitor C2 is respectively connected to the second end of the fourth resistor R4 and the first end of the processing module 130, and the second end of the second capacitor C2 is grounded.

[0032] In one possible embodiment, see Figure 2 ,like Figure 2As shown, the processing module 130 includes a controller MCU and an analog-to-digital converter ADC. The first end of the analog-to-digital converter ADC is connected to the first end of the second capacitor C2 and the second end of the fourth resistor R4 as the first end of the processing module 130, and the second end of the analog-to-digital converter ADC is connected to the controller MCU; wherein, the controller MCU is used to obtain a first frequency of the input signal, and generate a second frequency according to the first frequency, and control the second switch K2 to switch at the second frequency; the controller MCU is also used to control the first switch K1 to switch; when the first switch K1 is closed, the input end of the input module and the third end of the bias module 120 are disconnected.

[0033] The analog-to-digital converter ADC may be a part of the controller MCU or an independent device, which is not limited here.

[0034] When the controller MCU receives an instruction to enter the delay compensation state, or when the controller determines that it is necessary to enter the delay compensation state, the first control module Ctrl1 in the controller MCU controls the first switch K1 to turn off, and the second control module Ctrl2 in the controller MCU controls K2 to continuously turn on and off at the frequency of the input signal of the input module; wherein, the first resistor R1 and the second resistor R2 have the same resistance value, so when K1 is turned off, the third end of the bias module 120 is disconnected from the input end of the input module, and the GND-second switch K2-first resistor R1-first end of the input module is turned on. When the first resistor R1 and the second resistor R2 have the same resistance value and the on-off frequency of K2 is the same as the frequency of the input module, it can be considered that the GND-second switch K2-first resistor R1-first end of the input module branch simulates the input module-first switch K1-second resistor R2-third end of the input module branch. wherein, the first frequency and the second frequency can be the same. The first control module Ctrl1 and the second control module Ctrl2 may be hardware and software components in the controller MCU, and may be physical components, virtual components, or physical and virtual components, respectively used to control the first switch K1 and the second switch K2.

[0035] Among them, when the second switch K2 is turned on and off, the bias module 120 can collect electrical signals at different points in the circuit. The bias module 120 can bias the collected electrical signals and then transmit the biased electrical signals to the controller MCU for analysis and processing to finally obtain the delay compensation value of the circuit.

[0036] In one possible embodiment, see Figure 3 , Figure 3 FIG. 1 is a structural diagram of another delay compensation circuit based on ADC sampling provided in an embodiment of the present application. Figure 3 As shown, the above-mentioned input module may include: a second operational amplifier OPA2, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8; wherein a first end of the fifth resistor R5 is connected to the first input source A_IN, a second end of the fifth resistor R5 is connected to the first end of the second operational amplifier OPA2, a first end of the sixth resistor R6 is connected to the second input source A_REF_IN, a second end of the sixth resistor R6 is connected to the second end of the second operational amplifier OPA2, a first end of the seventh resistor R7 is connected to the second end of the fifth resistor R5 and the first end of the second operational amplifier OPA2, a second end of the seventh resistor R7 is grounded GND, a first end of the eighth resistor R8 is connected to the second end of the sixth resistor R6 and the second end of the second operational amplifier OPA2, a second end of the eighth resistor R8 is connected to the third end of the second operational amplifier OPA2, and the third end of the second operational amplifier OPA2 serves as the input end of the input module and is connected to the third end of the bias module 120 through the first switch K1, that is, connected to the first end of the second resistor in the bias module 120 through the first switch K1.

[0037] It should be noted that Figure 3 Other devices in Figure 2 The same as in , will not be repeated here.

[0038] The input module has an amplifier effect, which may be a differential amplifier, and amplifies the input signals A_IN and A_REF_IN, and outputs the amplified signal from the input end of the input module.

[0039] Specifically, the resistance of the fifth resistor R5 is the same as that of the sixth resistor R6 , the resistance of the seventh resistor R7 is the same as that of the eighth resistor R8 , and the voltage Vinput at the input end is equal to R7 / R5 (A_IN−A_REF_IN).

[0040] In this way, the delay compensation circuit based on ADC sampling proposed in the embodiment of the present application can also be connected to the circuit of this method when based on different ADC sampling circuit structures, and this circuit can be used to perform more accurate delay compensation, which is conducive to improving the accuracy of delay compensation.

[0041] See also Figure 4 , Figure 4 This is a flow chart of a delay compensation method based on ADC sampling provided by an embodiment of the present application. The method is applied to a controller of a delay compensation system. The delay compensation system also includes an input module, a compensation module, a bias module, and an analog-to-digital converter. The compensation module includes a second switch and a first switch. The method includes: S410, obtaining a first frequency of an input signal and setting a first sampling time range, wherein the input signal is generated by an input module. The first sampling time range is used to limit the sampling time length of an analog-to-digital converter, and the analog-to-digital converter is used to sample analog signals and convert the signals into digital signals.

[0042] Among them, when the controller receives an instruction to enter the delay compensation state, or when the controller determines that it needs to enter the delay compensation state, it starts to obtain the first frequency of the input signal. The first frequency can be the electrical signal output by the input module. The electrical signal output by the input module has a certain frequency, which may come from a specific power electronic device in the input module. For example, the frequency of the input signal can be the switching frequency of the power device, and the above-mentioned power device includes a transistor, etc.

[0043] The first sampling time range may be user-defined or selected according to a preset range. The first sampling time range limits the sampling time length of the controller.

[0044] In a possible embodiment, the delay compensation system further includes an analog-to-digital converter, and the analog-to-digital converter is configured to perform signal acquisition within a first sampling time range according to an acquisition instruction of the controller.

[0045] S420: Control the first switch of the compensation module to be turned off, so as to disconnect the electrical connection between the input module and the bias module.

[0046] Among them, the controller controls the first switch in the compensation module to turn off. The controller can control the first switch through wireless sensing control or circuit connection control. When the first switch is disconnected, the electrical connection between the input module and the bias module is disconnected.

[0047] S430: Control the second switch of the compensation module to continuously perform on-off operations based on the first frequency.

[0048] The controller controls the second switch in the compensation module to continuously switch on and off at a frequency obtained based on the first frequency. When the second switch is turned on, the bias module is connected to the branch of the compensation module and is connected to the ground.

[0049] In a possible embodiment, after the first frequency is acquired, the first frequency of switching the power device on and off is converted into a second frequency that can be achieved by the switch, and the first frequency and the second frequency may be the same.

[0050] S440 , controlling an analog-to-digital converter to sample a first electrical signal at a sampling target position within a first sampling time range with a first step length, where the first electrical signal is an analog signal.

[0051] Among them, see Figure 2 or Figure 3 The sampling target position can be set between the bias module and the analog-to-digital converter. The first step length can be a preset step length, and the setting of the step length can affect the accuracy of the compensation value.

[0052] The first electrical signal is continuously acquired within a first sampling time range. When the time reaches the first sampling time range, the acquisition is stopped, and the sampled first electrical signal is biased and subjected to analog-to-digital conversion processing.

[0053] S450 , analyzing the first electrical signal, the first step length, and the first sampling time range to obtain a first target delay result, and performing delay compensation on the input signal using the first target delay result.

[0054] Among them, after the first electrical signal is generated, the first electrical signal is transmitted to the bias module through the circuit, and the bias module biases the first electrical signal. Since the bias module is connected to the analog-to-digital converter, and the analog-to-digital converter generally only receives positive polarity signals, the bias module here adds a DC bias to the first electrical signal to raise the second electrical signal, turning it into a first electrical signal that only includes positive polarity, and inputs it into the analog-to-digital converter; the analog-to-digital converter converts the first electrical signal into an analog-to-digital signal to obtain a digital signal.

[0055] Specifically, obtaining the first target delay result based on the analysis of the first electrical signal includes: obtaining a second electrical signal, which is a digital signal processed by a bias module and an analog-to-digital converter; generating a first waveform diagram of the sampling target position based on the second electrical signal and the first step length; obtaining the first target delay result based on the rising edge of the first waveform diagram of the sampling target position, the first step length and the reference waveform diagram.

[0056] The second electrical signal is a digital signal, namely the first electrical signal after bias processing and analog-to-digital conversion. The second electrical signal also has a first step length, and a first waveform diagram of the sampling target position is generated according to the second electrical signal.

[0057] The reference waveform diagram is an ideal electrical signal waveform diagram without any delay, and the reference waveform diagram may be preset.

[0058] During signal acquisition, sampling may be performed in a first sampling period within a first sampling time range. That is, the first sampling time range may include one or more first sampling periods, and the specific length of the first sampling period is not limited herein.

[0059] For examples, see Figure 5 , Figure 5 This is a waveform diagram based on ADC sampling provided by an embodiment of the present application, such as Figure 5As shown, in the first sampling time range, when the first switch K1 is turned off, the second switch K2 is continuously switched on and off at the first frequency, so that the waveform diagram of the electrical signal at the sampling target position is as shown in the figure. From the reference waveform diagram in the waveform diagram, take the rising point of the waveform and the falling edge when the second switch K2 is disconnected as the reference zero point. The rising point of the waveform of the first waveform diagram of the sampling target position is compared with the reference zero point in the reference waveform diagram to obtain the delay time. The first sampling period T preset in the system is obtained. The first sampling period T can be the length of a period of time, which is used to limit the number of steps for calculating the delay. Then, N sampling points are obtained based on the first sampling period T and the first step length. If the first step length is t, then N=T / t is rounded up. The time required for delay can be obtained based on the N sampling points. Specifically, the T1 value of the sampling point where the waveform rises is determined, and then according to T N The difference between the value and the falling edge T0 when the second switch is turned off is calculated to obtain ΔT1, and the first target delay result ΔT1 is obtained.

[0060] After obtaining the first target delay result, the first target delay result is saved and used as a subsequent delay compensation for the input signal.

[0061] In a possible embodiment, the method also includes: controlling the analog-to-digital converter to sample a third electrical signal at the sampling target position within a second sampling time range with a second step size, the second sampling time range being used to limit the time length of the controller sampling; analyzing based on the third electrical signal, the second step size and the second sampling time range to obtain a second target delay result, and using the second target delay result to again perform delay compensation on the input signal.

[0062] During signal acquisition, sampling may be performed in the second sampling time range with a second sampling period. That is, the second sampling time range may include one or more second sampling periods, and the specific length of the second sampling period is not limited herein.

[0063] If a more accurate delay compensation value is required, the sampling process using the first step length is repeated with a second step length to obtain a third electrical signal. The third electrical signal can be an analog signal. The fourth electrical signal is obtained by offsetting and performing analog-to-digital conversion on the third electrical signal. The fourth electrical signal is a digital signal. The third electrical signal has a second step length, and a second waveform diagram of the sampling target position is generated based on the fourth electrical signal.

[0064] Among them, the second sampling time range can be the same as the first sampling time range or different from the first sampling time range. The second sampling time range can be determined by the first target delay result ΔT. For example, the second sampling time range can be ΔT1-Δt0 to ΔT1+Δt0. The above Δt0 can be 1 second or other time lengths, which is not limited here. The specific determination method of the above second sampling time range can also be other, which is not limited here.

[0065] The second step length may be different from the first step length or the same as the first step length. When the second step length is different from the first step length, it may be smaller than the first step length to make the delay result more accurate.

[0066] Among them, after the second sampling and delay result calculation based on the second sampling time range and the second step size, the second target delay result is obtained. The second target delay result can be used as the final compensation time, or it can be obtained based on the first target delay result and the second target delay result.

[0067] In a possible embodiment, the method further includes: obtaining a final target delay result according to the first target delay result and the second target delay result.

[0068] After performing a second sampling and delay calculation based on the second sampling time range and the second step size, a second target delay result is obtained. The second target delay result can be used as the final compensation time, or it can be obtained by further calculation based on the first target delay result, the first step size, the second target delay result, and the second step size. Specifically, the final compensation time can be calculated using the following formula: ΔT = (ΔT1-Δt0) × s1 + ΔT2 × s2. ΔT1 is the first target delay result, ΔT2 is the second target delay result, s1 is the first step size, and s2 is the second step size.

[0069] It should be noted that Figure 5 The embodiment is similar to the description, and the second target delay result is obtained according to the second step length.

[0070] After obtaining the second target delay result, the second target delay result is saved and used as a subsequent delay compensation for the input signal.

[0071] In one possible embodiment, the method further includes: controlling an analog-to-digital converter to sample a 2nth electrical signal at a sampling target location with an nth step length within an nth sampling time range, wherein the 2nth electrical signal at the sampling target location is a digital signal of the 2n-1th electrical signal after bias processing and analog-to-digital conversion, and the nth sampling time range is used to limit the sampling time length of the controller; analyzing the 2nth electrical signal, the nth step length, and the nth sampling time range to obtain an nth target delay result, and further performing delay compensation on the input signal using the nth target delay result, wherein n is a positive integer.

[0072] During signal acquisition, sampling may be performed in the nth sampling period within the nth sampling time range. That is, the nth sampling time range may include one or more nth sampling periods, and the specific length of the nth sampling period is not limited herein.

[0073] If a more accurate delay compensation value is required, the above sampling process is repeated with the nth step length to obtain the 2n-1th electrical signal. The 2n-1th electrical signal can be an analog signal. The 2nth electrical signal is obtained by performing offset processing and analog-to-digital conversion on the 2n-1th electrical signal, and the 2nth electrical signal is a digital signal. The 2n-1th electrical signal has the nth step length, and the nth waveform diagram of the sampling target position is generated based on the 2nth electrical signal.

[0074] The nth sampling time range can be the same as or different from other sampling time ranges. The nth sampling time range can be determined by the n-1th target delay result ΔT. For example, the nth sampling time range can be ΔT n-1 -Δt n0 to ΔT n-1 +Δt n0 , the above Δt n0 It can be 1 second or other time lengths, which is not limited here. The specific method for determining the above-mentioned n-th sampling time range can also be other, which is not limited here.

[0075] The nth step length may be different from or the same as other step lengths, so as to make the delay result more accurate.

[0076] Among them, after performing the nth sampling and delay result calculation based on the nth sampling time range and the nth step size, the nth target delay result is obtained. The nth target delay result can be used as the final compensation time, or it can be obtained based on the nth target delay result and the n-1th target delay result.

[0077] As can be seen, in this embodiment, a first frequency of the input signal is obtained and a second sampling time range is set. The input signal is generated by the input module, and the second sampling time range is used to limit the length of time the controller samples. The first switch of the compensation module is controlled to be disconnected to disconnect the electrical connection between the input module and the bias module. The second switch of the compensation module is controlled to continuously perform on-off operations based on the first frequency. The analog-to-digital converter is controlled to sample the first electrical signal at the sampling target position within the first sampling time range with the first step length. Based on the first electrical signal, the first step length, and the first sampling time range, a first target delay result is obtained by analysis, and the input signal is delay compensated using the first target delay result. In this way, the present method can be used to perform delay compensation on circuits with different structures. The circuit using the present method has high compatibility. The present method and circuit can also be used to perform delay compensation based on different ADC sampling circuit structures, which is conducive to improving the accuracy of delay compensation.

[0078] See Figure 6 , Figure 6 : is a structural diagram of a delay compensation device based on ADC sampling proposed in an embodiment of the present application. The delay compensation device based on ADC sampling 600 includes: an acquisition module 610, a first control module 620, a second control module 630, a sampling module 640 and an analysis module 650, wherein: an acquisition module 610 configured to acquire a first frequency of an input signal generated by the input module and set a first sampling time range, wherein the first sampling time range is configured to limit a sampling time length of the analog-to-digital converter, which is configured to sample analog signals and convert them into digital signals; A first control module 620 is configured to control the first switch of the compensation module to be turned off, so as to disconnect the input module and the bias module; A second control module 630 is configured to control the second switch of the compensation module to continuously perform on-off operations based on the first frequency; A sampling module 640 is configured to control the analog-to-digital converter to sample a first electrical signal at a sampling target position within a first sampling time range at a first step length, wherein the first electrical signal is an analog signal; The analysis module 650 is configured to obtain a first target delay result by analyzing the first electrical signal, the first step length, and the first sampling time range, and perform delay compensation on the input signal based on the first target delay result.

[0079] In one possible implementation, the analysis module 650, in obtaining the first target delay result by analyzing the first electrical signal, is specifically configured to: Acquire a second electrical signal, where the second electrical signal is a digital signal processed by the bias module and the analog-to-digital converter; generating a first waveform diagram of a sampling target position according to the second electrical signal and the first step length; The first target delay result is obtained according to the rising edge of the first waveform of the sampling target position and the first step length.

[0080] In a possible implementation, the sampling module 640 is further configured to control the analog-to-digital converter to sample the third electrical signal at the sampling target position within the first sampling time range with a second step size.

[0081] In one possible implementation, the analysis module 650, in terms of obtaining a first target delay result based on the analysis of the first electrical signal, is further specifically used to: obtain a second target delay result based on the analysis of the third electrical signal, the first step length and the first sampling time range, and perform delay compensation on the input signal again using the second target delay result.

[0082] It is worth noting that the specific functional implementation of the delay compensation device 600 based on ADC sampling can be found in the above Figure 4 The description of the delay compensation method based on ADC sampling shown in the figure, for example, the sampling module 640 is used to implement the relevant content of executing S440. The various units or modules in the delay compensation device 600 based on ADC sampling can be individually or completely combined into one or more other units or modules to form a structure, or one (or some) of the units or modules can be further divided into multiple functionally smaller units or modules to form a structure, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In actual applications, the functions of one unit (or module) are implemented by multiple units (or modules), or the functions of multiple units (or modules) are implemented by one unit (or module).

[0083] It can be seen that the delay compensation device based on ADC sampling described in the embodiment of the present application obtains the first frequency of the input signal and sets a first sampling time range. The input signal is generated by the input module, and the first sampling time range is used to limit the time length of the controller sampling; the first switch of the compensation module is controlled to be disconnected to disconnect the electrical connection between the input module and the bias module; the second switch of the compensation module is controlled to continuously perform on-off operations based on the first frequency; the analog-to-digital converter is controlled to sample the first electrical signal of the target position within the first sampling time range with the first step length; the first target delay result is obtained by analyzing the first electrical signal, the first step length and the first sampling time range, and the input signal is delayed compensated with the first target delay result. In this way, the present method can be used to perform delay compensation on circuits with different structures. The circuit using the present method has high compatibility. The present method and circuit can also be used to perform delay compensation based on different ADC sampling circuit structures, which is conducive to improving the accuracy of delay compensation.

[0084] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0085] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.

[0086] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0087] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0088] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0089] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0091] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for enabling a computer electronic device (which can be a personal computer, electronic device, or network electronic device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program code.

[0092] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by a program instructing related hardware. The program can be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0093] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A delay compensation circuit based on ADC sampling, characterized in that: The circuit comprises: a compensation module, a bias module and a processing module; the first end of the compensation module is connected to the first end of the bias module; the second end of the bias module is connected to the first end of the processing module; wherein, The compensation module is used to generate a first electrical signal; The bias module is used to perform signal bias processing on the first electrical signal to obtain a second electrical signal; The processing module is used to calculate the second electrical signal to obtain a target delay result.

2. The circuit according to claim 1, characterized in that The circuit further comprises an input module, an input end of which is connected to the third end of the bias module; wherein the input signal input by the input module is a signal to be delayed compensated.

3. The circuit according to claim 2, characterized in that The compensation module includes: a first switch, a second switch and a first resistor; the first end of the second switch is grounded, and the second end of the second switch is connected to the first end of the first resistor; the first end of the first switch is connected to the input end of the input module, and the second end of the first switch is connected to the third end of the bias module; the second end of the first resistor is connected to the first end of the bias module as the first end of the compensation module.

4. The circuit according to claim 3, characterized in that The bias module includes a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, and a first operational amplifier; wherein, The first end of the second resistor is connected to the second end of the second switch as the first end of the bias module, and the second end of the second resistor is connected to the first end of the first operational amplifier; The first end of the first operational amplifier is also connected to the second end of the first resistor as the first end of the bias module; The first end of the third resistor is connected to the reference voltage end, the second end of the third resistor is connected to the second end of the first operational amplifier, the first end of the first capacitor is connected to the first end of the first operational amplifier, and the second end of the first capacitor is grounded; the first end of the first operational amplifier is connected to the third end of the first operational amplifier, the third end of the first operational amplifier is connected to the first end of the third resistor, the first end of the second capacitor is respectively connected to the second end of the fourth resistor and the first end of the processing module, and the second end of the second capacitor is grounded.

5. The circuit according to claim 4, characterized in that The processing module includes a controller and an analog-to-digital converter, wherein the first end of the analog-to-digital converter is connected to the first end of the second capacitor and the second end of the fourth resistor as the first end of the processing module, and the second end of the analog-to-digital converter is connected to the controller; The controller is used to obtain the first frequency of the input signal, generate a second frequency according to the first frequency, and control the second switch to switch at the second frequency; the controller is also used to control the first switch to switch; When the first switch is closed, the input terminal of the input module and the third terminal of the bias module are disconnected.

6. A delay compensation method based on ADC sampling, characterized in that: A controller applied to a delay compensation system, wherein the delay compensation system further comprises an input module, a compensation module, a bias module and an analog-to-digital converter, wherein the compensation module comprises a second switch and a first switch, and wherein the method comprises: Acquire a first frequency of an input signal generated by the input module, and set a first sampling time range, wherein the first sampling time range is used to limit the sampling time length of the analog-to-digital converter, and the analog-to-digital converter is used to sample analog signals and convert the signals into digital signals; Controlling the first switch of the compensation module to be turned off, so as to disconnect the electrical connection between the input module and the bias module; Controlling the second switch of the compensation module to continuously perform on-off operations based on the first frequency; Controlling the analog-to-digital converter to sample a first electrical signal at a sampling target position within the first sampling time range with a first step length, wherein the first electrical signal is an analog signal; A first target delay result is obtained by analyzing the first electrical signal, the first step length, and the first sampling time range, and the input signal is delayed compensated using the first target delay result.

7. The method according to claim 6, characterized in that The obtaining a first target delay result by analyzing the first electrical signal includes: Acquire a second electrical signal, where the second electrical signal is a digital signal processed by the bias module and the analog-to-digital converter; generating a first waveform diagram of a sampling target position according to the second electrical signal and the first step length; The first target delay result is obtained according to the rising edge of the first waveform of the sampling target position, the first step length and the reference waveform.

8. The method according to claim 6, characterized in that The method further comprises: Controlling the analog-to-digital converter to sample a third electrical signal at a sampling target position within a second sampling time range with a second step length, wherein the second sampling time range is used to limit a sampling time length of the controller; A second target delay result is obtained by analyzing the third electrical signal, the second step length, and the second sampling time range, and the input signal is delayed compensated again with the second target delay result.

9. A delay compensation device based on ADC sampling, characterized in that: A controller applied to a delay compensation system, the delay compensation system further comprising an input module, a compensation module, a bias module and a processing module analog-to-digital converter, the compensation module comprising a second switch and a first switch, the processing module comprising the controller, and the device comprising: an acquisition module, used to acquire a first frequency of an input signal generated by the input module, and to set a first sampling time range, wherein the first sampling time range is used to limit a sampling time length of the analog-to-digital converter, and the analog-to-digital converter is used to sample an analog signal and convert the signal into a digital signal; a first control module, configured to obtain a first frequency of an input signal generated by the input module, and to set a first sampling time range, wherein the first sampling time range is used to limit a sampling time length of the analog-to-digital converter, and the analog-to-digital converter is used to sample an analog signal and convert the signal into a digital signal; A second control module, used for controlling the first switch of the compensation module to be disconnected, so as to disconnect the electrical connection between the input module and the bias module; A sampling module, used for controlling the analog-to-digital converter to sample a first electrical signal at a sampling target position within the first sampling time range with a first step length, wherein the first electrical signal is an analog signal; An analysis module is used to obtain a first target delay result by analyzing the first electrical signal, the first step length and the first sampling time range, and to perform delay compensation on the input signal based on the first target delay result.

10. A computer-readable storage medium, characterized in that: A delay compensation program is stored, including execution instructions. When a processor of an electronic device executes the execution instructions, the processor executes the method as claimed in any one of claims 6 to 8.

Citation Information

Patent Citations

  • Aperture deflection calibration circuit and method for pipeline ADC

    CN111565043A

  • Sampling calibration method for adaptive delay compensation serial ADC sampling system

    CN112260689A

  • DSP hardware sampling delay compensation method and device based on PWM synchronization mechanism

    CN112904771A

  • Switched capacitor circuit compensation apparatus and method

    US20050140422A1

  • Low power ADC with pulsed bias

    WO2016160032A1