Two-step inter-stage gain error calibration method and device for Piped SAR ADC (Synthetic Aperture Radar Analog to Digital Converter)
By adopting the two-step inter-stage gain error calibration method of metastable front-end calibration and iterative formula in Pipelined SAR ADC, the problem of long iteration cycle of the LMS algorithm is solved, fast and accurate gain error calibration is achieved, the circuit structure is simplified and Improved calibration speed.
Patent Information
- Application Number
- CN202410541658.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-04-30
AI Technical Summary
The existing Pipelined SAR ADC inter-stage gain error calibration method uses the LMS algorithm, which has a long iteration cycle and slow convergence speed, resulting in long calibration time, and requires additional digital resources and adjustment circuits, increasing circuit complexity.
A two-step inter-stage gain error calibration method is adopted. First, the foreground calibration is performed through the metastable state to obtain the iteration initial value. Then the iteration formula and pseudo-random signal are used to iterate until the preset convergence conditions are met, and the gain error coefficient is obtained. Background digital calibration simplifies circuit steps and accelerates convergence.
Without consuming additional digital resources, the gain error is quickly and accurately calibrated, the circuit structure is simplified, and the calibration speed and accuracy are significantly accelerated.
Smart Images

Figure CN118573191A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital signal processing, and in particular to a two-step inter-stage gain error calibration method and device for a pipelined SAR ADC. Background Art
[0002] With the development of information technology and the rise of autonomous intelligent devices, communication systems have put forward high requirements for the speed, accuracy and power consumption of ADCs. Designing high-speed, high-precision and low-power analog-to-digital converters is the goal and direction that the academic and industrial circles have been pursuing. Pipelined SAR ADC (pipelined successive approximation analog-to-digital converter) segments the SAR ADC into multiple low-precision sub-ADCs through a residual amplifier, and completes the signal quantization in the form of a pipeline. After being segmented by the residual amplifier, the accuracy requirements of the SAR ADC are reduced, thereby making up for the shortcomings of the SAR ADC that it is difficult to apply to the high-precision field, and has become a key research object in the field of analog-to-digital converters in recent years. In actual production, the pipelined SAR ADC will be affected by non-ideal factors such as the working environment, process manufacturing and the circuit itself, such as offset, noise, capacitor mismatch, limited bandwidth of the op amp, limited gain of the op amp, etc. These factors limit the overall accuracy of the pipelined SAR ADC. In order to improve the performance of the ADC, the specific error sources of the pipelined SAR ADC will be analyzed during the circuit design process and the corresponding calibration technology will be introduced for calibration.
[0003] The existing gain error calibration adopts a two-step calibration method of foreground calibration and background calibration, but both calibrations adopt the LMS algorithm. The disadvantage of the LMS algorithm is that the iteration cycle is quite long and the convergence speed is very slow. If the LMS algorithm is used for both foreground calibration and background calibration, the convergence time of the entire inter-stage gain calibration algorithm will be greatly increased, resulting in the entire gain calibration time being too long and no speed advantage. At the same time, the use of the LMS algorithm in the foreground calibration also requires additional adjustment circuits, which increases the consumption of digital resources and makes the circuit more complicated. Summary of the invention
[0004] The present application provides a two-step inter-stage gain error calibration method and device for a Pipelined SAR ADC, which can achieve fast and accurate calibration of the gain error without consuming additional digital resources.
[0005] In a first aspect, an embodiment of the present application provides a two-step inter-stage gain error calibration method for a pipelined SAR ADC, which is applied to a digital logic circuit of a pipelined SAR ADC; the pipelined SAR ADC includes a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the method includes:
[0006] The first-stage ADC is caused to enter a metastable state, and the input signal of the first-stage ADC is converted according to a preset period;
[0007] Record and accumulate the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal;
[0008] Determine whether the accumulated value of the first digital code reaches a preset upper limit value; if so, stop converting the input signal, divide the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration;
[0009] Inputting a preset test waveform into the second-stage ADC to obtain a second digital code;
[0010] Inputting an initial value, a preset iteration step, a pseudo-random signal and a second digital code into an iteration formula to iterate until the iteration formula meets a preset convergence condition, thereby obtaining a gain error coefficient;
[0011] Input the target signal into the first-stage ADC;
[0012] The first output value of the first-stage ADC and the second output value of the second-stage ADC are obtained, the second output value is divided by the gain error coefficient, and then added to the first output value to obtain a target output value.
[0013] Furthermore, the method further comprises:
[0014] The first-stage ADC is put into a metastable state by shorting two input terminals of the first-stage ADC.
[0015] Furthermore, the preset test waveform is a sine wave.
[0016] Furthermore, the preset upper limit value is 32 or 64.
[0017] Furthermore, the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code are input into the iteration formula for iteration until the iteration formula satisfies the preset convergence condition to obtain the gain error coefficient, including:
[0018] Initial step: subtract the product of the pseudo-random signal and the initial value of the iteration from the second digital code to obtain a first value;
[0019] Multiplying the first value, a preset iteration step, and a pseudo-random signal to obtain a second value;
[0020] Add the iteration initial value and the second value to obtain the iteration output value;
[0021] Determine whether the iteration output value and the iteration initial value meet the preset convergence condition;
[0022] If it is satisfied, the iteration output value or the iteration initial value is used as the gain error coefficient;
[0023] If it is not satisfied, the iteration output value is used as the iteration initial value and returns to the initial step.
[0024] Furthermore, the preset convergence condition is that the absolute value of the difference between the iteration output value and the iteration initial value is within a preset convergence range.
[0025] Furthermore, the pseudo-random signal is generated by a linear feedback shift register.
[0026] In a second aspect, an embodiment of the present application provides a two-step inter-stage gain error calibration device for a pipelined SAR ADC, which is applied to a digital logic circuit of a pipelined SAR ADC; the pipelined SAR ADC includes a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the device includes:
[0027] A conversion module, used to make the first-stage ADC enter a metastable state and convert the input signal of the first-stage ADC according to a preset period;
[0028] An accumulation module, used for recording and accumulating the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal;
[0029] A judgment module is used to judge whether the accumulated value of the first digital code reaches a preset upper limit value; if so, stop converting the input signal, divide the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration;
[0030] A first input module, used for inputting a preset test waveform into a second-stage ADC to obtain a second digital code;
[0031] An iteration module is used to input an iteration initial value, a preset iteration step size, a pseudo-random signal, and a second digital code into an iteration formula for iteration until the iteration formula satisfies a preset convergence condition to obtain a gain error coefficient;
[0032] A second input module, used for inputting the target signal into the first-stage ADC;
[0033] The target calculation module is used to obtain the first output value of the first-stage ADC and the second output value of the second-stage ADC, divide the second output value by the gain error coefficient, and then add the second output value to the first output value to obtain the target output value.
[0034] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the processor performs the steps of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC as in any of the above embodiments.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC as in any of the above embodiments are implemented.
[0036] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0037] The embodiment of the present application provides a two-step inter-stage gain error calibration method for a Pipelined SAR ADC. The first step is to perform foreground calibration based on a metastable state, rather than an LMS algorithm. Compared with the LMS algorithm, the circuit operation steps of the foreground calibration based on a metastable state are simple, and no additional digital resources and adjustment circuits are required. The gain obtained by the metastable state is the iterative initial value of the second step background digital calibration, so that the background digital calibration can converge quickly. Compared with the prior art in which both steps of calibration use the LMS algorithm, the circuit of the present application is simple and the calibration speed is faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC is provided as an exemplary embodiment of the present application.
[0039] Figure 2 An internal structure diagram of a Pipelined SAR ADC provided as an exemplary embodiment of the present application.
[0040] Figure 3 A schematic diagram of the working state of the ADC in the foreground calibration mode provided for an exemplary embodiment of the present application.
[0041] Figure 4 A schematic diagram of the working state of an ADC in a background calibration mode provided by an exemplary embodiment of the present application.
[0042] Figure 5A structural diagram of a two-step inter-stage gain error calibration device for a Pipelined SAR ADC provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0044] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.
[0045] See also Figure 1-Figure 4 The embodiment of the present application provides a two-step inter-stage gain error calibration method for a pipelined SAR ADC, which is applied to a digital logic circuit of the pipelined SAR ADC; the pipelined SAR ADC includes a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the method includes:
[0046] Step S1, making the first stage ADC enter a metastable state, and converting the input signal of the first stage ADC according to a preset period.
[0047] Specifically, when performing metastable calibration, the differential input terminal of the first-stage ADC is short-circuited so that its equivalent differential input signal is 0. At this time, the first-stage ADC circuit will definitely enter a metastable state.
[0048] Assume that the first-stage ADC has a total of m bits and the total single-ended capacitance is C t , the capacitance of the xth bit is C[x] (1≤x≤m), first short-circuit the differential input terminal of the first-stage ADC, then the input signal V comp [1] = 0. Assuming that the initial comparison result of the comparator is 1, the CDAC array is set for the first time according to the comparison result. Then, the differential voltage of the capacitor top plate of the first-stage ADC after this setting is -(C[1] / C t )V ref (Where V ref is the reference voltage), at this time the comparator input signal V comp [2] = -(C[1] / C t )V ref Since V comp[2] is less than 0, so the comparison result of the comparator is 0. According to this comparison result, the CDAC array is reset for the second time. After the second reset, the third input signal of the comparator generated on the top plate of the CDAC array is V comp [3] = -(C[2] / C t )V ref , due to V comp [3] is less than 0, so the comparison result of the comparator is 0. According to the above analysis, it can be deduced that after the first-stage ADC completes the mth reset, the residual voltage on the top plate is V res =-(C[m] / C t )V ref Similarly, when the differential input signal of the first-stage ADC is short-circuited, assuming that the initial comparison result of the comparator is 0, the residual voltage V output by the first-stage ADC can be deduced. res =(C[m] / C t )V ref Therefore, it can be deduced that when the differential input of the ADC is short-circuited, no matter whether the result of the first comparison of the comparator is 1 or 0, the absolute value of the residual voltage output by the first-stage ADC is a known constant: |V res |=(C[m] / C t )V ref .
[0049] Step S2, recording and accumulating the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal.
[0050] Step S3, determining whether the accumulated value of the first digital code reaches a preset upper limit; if so, stopping the conversion of the input signal, dividing the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration.
[0051] Specifically, when the differential input terminal of the first-stage ADC is short-circuited, the constant input 0 signal of the first-stage ADC is converted several times and the first digital code corresponding to the output of the second-stage ADC is recorded; each conversion causes the first-stage ADC to go through the above-mentioned m settings and output a residual voltage with a known absolute value; the absolute value of the first digital code is accumulated, and the calibration is completed when the accumulated value reaches a preset upper limit value, wherein the preset upper limit value can be 32 or 64; the accumulated value of the first digital code is averaged and then divided by the residual voltage, so as to obtain a preliminary foreground calibration result of the inter-stage gain, that is, the iteration initial value.
[0052] See also Figure 2 In the specific implementation process, a residual amplifier may be included between the first-stage ADC and the second-stage ADC. The residual voltage V resThe voltage value after amplification by the residual amplifier is the input of the second-stage ADC. Because there is noise in the circuit, even for the same input, the voltage value output by the residual amplifier will be different. Therefore, the first digital code output by the output of the amplifier after quantization by the second-stage ADC is also different, so it is necessary to accumulate and average them, so that the obtained iterative initial value can be more accurate and the final gain error coefficient can be more accurate.
[0053] Step S4, inputting the preset test waveform into the second-stage ADC to obtain a second digital code.
[0054] The preset test waveform may be a sine wave.
[0055] Step S5, inputting the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code into the iteration formula for iteration until the iteration formula meets the preset convergence condition to obtain the gain error coefficient.
[0056] Step S6, inputting the target signal into the first-stage ADC.
[0057] Among them, the target signal is the input signal of the Pipelined SAR ADC in formal application.
[0058] Step S7, obtaining a first output value of the first-stage ADC and a second output value of the second-stage ADC, dividing the second output value by a gain error coefficient, and then adding the second output value to the first output value to obtain a target output value.
[0059] Specifically, after the gain error coefficient G* is obtained, the gain error coefficient G* is used to correct the output value of the Pipelined SAR ADC, that is, after the calibration is completed, the output of the Pipelined SAR ADC is Dout=Dout1+Dout2 / G * .
[0060] Among them, Dout1 is the first output value, Dout2 is the second output value, and Dout is the target output value.
[0061] The above embodiment provides a two-step inter-stage gain error calibration method for a Pipelined SAR ADC. The first step is to perform foreground calibration based on a metastable state, rather than an LMS algorithm. Compared with the LMS algorithm, the circuit operation steps of the foreground calibration based on a metastable state are simple, and no additional digital resources and adjustment circuits are required. The gain obtained through the metastable state is the iterative initial value of the second step background digital calibration, so that the background digital calibration can converge quickly. Compared with the prior art in which both steps of calibration use the LMS algorithm, the circuit of the present application is simple, and the calibration speed is faster and the calibration accuracy is higher.
[0062] In some embodiments, the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code are input into the iteration formula for iteration until the iteration formula satisfies the preset convergence condition to obtain the gain error coefficient, including:
[0063] Step S51, initial step: subtract the product of the pseudo-random signal and the iteration initial value from the second digital code to obtain a first value.
[0064] Step S52: multiply the first value, the preset iteration step length, and the pseudo-random signal to obtain a second value.
[0065] Step S53, adding the iteration initial value and the second value to obtain the iteration output value.
[0066] Step S54, determining whether the iteration output value and the iteration initial value satisfy a preset convergence condition.
[0067] The preset convergence condition is that the absolute value of the difference between the iteration output value and the iteration initial value is within the preset convergence range.
[0068] The preset convergence range is 0-0.005, where 0.005 is not a fixed value and can be set according to actual needs.
[0069] Step S55: If satisfied, the iteration output value or the iteration initial value is used as the gain error coefficient.
[0070] Step S56: If not satisfied, the iterative output value is used as the initial value of the iteration and returns to the initial step.
[0071] Specifically, the iterative formula is: G[i+1]=G[i]+μ×PN[i]×(Dout2[i]-PN[i]×G[i]).
[0072] μ is the preset iteration step size, PN[i] is a pseudo-random signal, Dout2[i] is the second digital code obtained after the preset test waveform is input into the second-stage ADC, and G[1] is the foreground calibration, that is, the iteration initial value obtained in step S3.
[0073] In the first iteration, G[1] is a known value. G[2] is obtained based on Dout2[1] and PN[1]. G[2] is used as the input of the next iteration, and G[3] is obtained together with Dout2[2] and PN[2]. This process is repeated until |G[i+1]-G[i]|<0.005. It can be considered that the iteration process has become stable, and G[i+1] or G[i] is used as the stable gain error coefficient G*.
[0074] In the above embodiments, the pseudo-random signal is also called a pseudo-random code or a pseudo-random sequence.
[0075] A pseudo-random code is a sequence that has some statistical characteristics of random noise and is easy to generate and process repeatedly. The pseudo-random code can be generated by a linear feedback shift register (LFSR). The LFSR main structure used in this application consists of a group of registers, with an XOR logic as feedback to generate new data at the left end of the input register chain. The generated number series is a periodic number series, but it can show randomness in statistics, that is, a pseudo-random sequence.
[0076] Because the pseudo-random code is not correlated with any other signal, as the calibration proceeds, the mathematical expectation of PN[i]×(Dout2[i]-PN[i]×G[i]) is 0. When this expression tends to 0, the gain error coefficient G[i+1] tends to G[i], so a stable gain error coefficient G* can be obtained after a fairly long iteration period.
[0077] This application can greatly accelerate the convergence speed of the background digital calibration LMS algorithm by using calibration based on metastable detection in the first step. From the simulation results of Matlab, it can be accelerated by about 80%.
[0078] See also Figure 5 Another embodiment of the present application provides a two-step inter-stage gain error calibration device for a pipelined SAR ADC, which is applied to a digital logic circuit of a pipelined SAR ADC; the pipelined SAR ADC includes a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the device includes:
[0079] The conversion module 101 is used to make the first-stage ADC enter a metastable state and convert the input signal of the first-stage ADC according to a preset period.
[0080] The accumulation module 102 is used to record and accumulate the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal.
[0081] The judgment module 103 is used to judge whether the accumulated value of the first digital code reaches a preset upper limit value; if so, stop converting the input signal, divide the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration.
[0082] The first input module 104 is used to input a preset test waveform into the second-stage ADC to obtain a second digital code.
[0083] The iteration module 105 is used to input the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code into the iteration formula for iteration until the iteration formula meets the preset convergence condition to obtain the gain error coefficient.
[0084] The second input module 106 is used to input the target signal into the first-stage ADC.
[0085] The target calculation module 107 is used to obtain a first output value of the first-stage ADC and a second output value of the second-stage ADC, divide the second output value by a gain error coefficient, and then add the second output value to the first output value to obtain a target output value.
[0086] For the specific definition of a two-step inter-stage gain error calibration device for a Pipelined SAR ADC provided in this embodiment, please refer to the embodiment of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC described above, which will not be repeated here. Each module in the above-mentioned two-step inter-stage gain error calibration device for a Pipelined SAR ADC can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0087] The embodiment of the present application provides a computer device, which may include a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the processor executes the steps of a two-step inter-stage gain error calibration method of a Pipelined SAR ADC as in any of the above embodiments. The working process, working details and technical effects of the computer device provided in this embodiment can be found in the above embodiment of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC, which will not be repeated here.
[0088] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a two-step inter-stage gain error calibration method of a Pipelined SAR ADC as in any of the above embodiments are implemented. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive and / or a memory stick, etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0089] The working process, working details and technical effects of the computer-readable storage medium provided in this embodiment can be found in the above embodiment of a two-step inter-stage gain error calibration method for a Pipelined SAR ADC, which will not be described in detail here.
[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A two-step inter-stage gain error calibration method for a pipelined SAR ADC, characterized in that: The method is applied to a digital logic circuit of a pipelined SAR ADC; the pipelined SAR ADC comprises a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the method comprises: causing the first-stage ADC to enter a metastable state, and converting an input signal of the first-stage ADC according to a preset period; Recording and accumulating the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal; Determine whether the accumulated value of the first digital code reaches a preset upper limit; if so, stop converting the input signal, and divide the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration; Inputting a preset test waveform into the second-stage ADC to obtain a second digital code; Inputting the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code into an iteration formula for iteration until the iteration formula satisfies a preset convergence condition to obtain a gain error coefficient; Inputting the target signal into the first-stage ADC; A first output value of the first-stage ADC and a second output value of the second-stage ADC are obtained, the second output value is divided by the gain error coefficient, and then added to the first output value to obtain a target output value.
2. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 1, characterized in that: Also includes: The first-stage ADC is put into a metastable state by short-connecting two input terminals of the first-stage ADC.
3. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 1, characterized in that: The preset test waveform is a sine wave.
4. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 1, characterized in that: The preset upper limit value is 32 or 64.
5. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 1, characterized in that: The step of inputting the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code into an iteration formula for iteration until the iteration formula satisfies a preset convergence condition to obtain a gain error coefficient comprises: Initial step: subtract the product of the pseudo-random signal and the iteration initial value from the second digital code to obtain a first value; Multiplying the first value, the preset iteration step, and the pseudo-random signal to obtain a second value; Adding the iteration initial value and the second value to obtain an iteration output value; Determining whether the iterative output value and the iterative initial value satisfy the preset convergence condition; If satisfied, the iterative output value or the iterative initial value is used as the gain error coefficient; If not satisfied, the iteration output value is used as the iteration initial value and the process returns to the initial step.
6. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 5, characterized in that: The preset convergence condition is: the absolute value of the difference between the iterative output value and the iterative initial value is within a preset convergence range.
7. The two-step inter-stage gain error calibration method of Pipelined SAR ADC according to claim 5, characterized in that: The pseudo-random signal is generated by a linear feedback shift register.
8. A two-step inter-stage gain error calibration device for a pipelined SAR ADC, characterized in that: The device is applied to a digital logic circuit of a pipelined SAR ADC; the pipelined SAR ADC comprises a digital logic circuit, a first-stage ADC and a second-stage ADC, the digital logic circuit is connected to the first-stage ADC and the second-stage ADC respectively, and the output end of the first-stage ADC is connected to the input end of the second-stage ADC; the device comprises: A conversion module, used for making the first-stage ADC enter a metastable state, and converting an input signal of the first-stage ADC according to a preset period; An accumulation module, used for recording and accumulating the absolute value of the first digital code output by the second-stage ADC after each conversion of the input signal; A judging module, configured to judge whether the accumulated value of the first digital code reaches a preset upper limit; if so, stop converting the input signal, and divide the average value of the accumulated value by the absolute value of the residual voltage output by the first-stage ADC to obtain an initial value for iteration; A first input module, used for inputting a preset test waveform into the second-stage ADC to obtain a second digital code; An iteration module, used for inputting the iteration initial value, the preset iteration step size, the pseudo-random signal and the second digital code into an iteration formula for iteration, until the iteration formula satisfies a preset convergence condition, and obtaining a gain error coefficient; A second input module, used for inputting the target signal into the first-stage ADC; The target calculation module is used to obtain a first output value of the first-stage ADC and a second output value of the second-stage ADC, divide the second output value by the gain error coefficient, and then add the second output value to the first output value to obtain a target output value.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the two-step inter-stage gain error calibration method of the Pipelined SAR ADC according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the two-step inter-stage gain error calibration method of the Pipelined SAR ADC according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Background calibration method for capacitance mismatch and interstage gain error of pipelined SAR ADC (Synthetic Aperture Radar Analog-to-Digital Converter)
CN110971235A
Interstage gain and capacitor mismatch calibration method based on metastable state detection Pipelined-SAR ADC
CN112994692A
Capacitance mismatch calibration method and system for successive approximation type analog-to-digital converter
CN113659984A
Apparatus, method and system for displaying ultrasound image based on mixed reality
KR1020230123197A
Cited By
Calibration method and device for gain error of battery detection circuit and electronic equipment
CN119375804A
Assembly line SAR ADC digital background calibration method based on pseudorandom sequence injection
CN119727720A
Novel pseudo-random sequence injection method for accelerating convergence of bit weight calibration algorithm
CN119834801A
Offset mismatch calibration method for SAR ADC with dual-comparator structure and storage medium
CN119853686A
ADC calibration method and system applied to motor control
CN120034187A
