Analog-to-digital conversion device and method with dynamic gain compensation mechanism
By introducing a dynamic gain compensation mechanism into the analog-to-digital conversion device and using correlation calculations and lookup tables to adjust the output code interval and gain value, the accuracy problem caused by changes in gain parameters of the amplification circuit is solved, and a more accurate analog-to-digital conversion is achieved. Conversion result.
Patent Information
- Application Number
- CN202310319482.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
In pipeline analog-to-digital conversion devices, the gain parameters of the amplifier circuit drift due to environmental factors or changes in signal size, resulting in an impact on output accuracy and the lack of an effective compensation mechanism.
An analog-to-digital conversion device including first- and second-stage conversion circuits, gain calculation circuits, control circuits, compensation gain generation circuits and output calculation circuits is designed. A dynamic gain compensation mechanism is established through correlation calculations and lookup tables. Adjust the output code interval and gain value to compensate for gain parameter changes.
It achieves more accurate compensation of analog-to-digital conversion results, improves the accuracy of the output signal, and adapts to dynamic changes in gain parameters.
Smart Images

Figure CN118740149A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to analog-to-digital conversion technology, and in particular to an analog-to-digital conversion device and method with a dynamic gain compensation mechanism. Prior art
[0002] In a pipeline analog-to-digital converter, there is a residual voltage amplifier circuit in each stage to amplify the residual signal. The digital codes generated between each stage of the circuit need to be multiplied by a factor related to the gain parameter of the amplifier circuit before they can be combined.
[0003] The gain parameters of the amplifier circuit may drift due to different environmental factors or signal sizes. If there is no proper compensation mechanism, the output accuracy of the analog-to-digital conversion device will be affected. Summary of the invention
[0004] In view of the problems in the prior art, an object of the present invention is to provide an analog-to-digital conversion device and method with a dynamic gain compensation mechanism to improve the prior art.
[0005] The present invention includes an analog-to-digital conversion device with a dynamic gain compensation mechanism, comprising: a first-stage conversion circuit, a second-stage conversion circuit, a gain calculation circuit, a control circuit, a compensation gain generation circuit, and an output calculation circuit. The first-stage conversion circuit receives an analog input signal and converts it to generate a digital conversion result. The second-stage conversion circuit calculates an analog residual value between the analog input signal and the digital conversion result, and feeds pseudo noise into the analog residual value, amplifies it according to a gain parameter, and converts it to generate a digital residual value. The gain calculation circuit performs correlation calculation on the pseudo noise and the digital residual value to generate a compensation gain corresponding to the gain parameter. The control circuit controls the first-stage conversion circuit to operate according to a plurality of first output resolutions, and records a plurality of output code ranges of the digital residual value and a plurality of gain values of the compensation gain corresponding to the full output code range corresponding to the second output resolution of the second-stage conversion circuit, so as to set a plurality of output code intervals that do not overlap with each other according to the output code range in the full output code range corresponding to the second output resolution of the second-stage conversion circuit, and calculates a plurality of interval gain values corresponding to the output code interval according to the gain value, thereby establishing a lookup table. The compensation gain generation circuit determines one of the output code intervals where the output code size of the digital residual value is located to search the lookup table to obtain one of the interval gain values as the compensation gain value. The output calculation circuit superimposes the digital conversion result with the pseudo noise, performs compensation according to the compensation gain value, and then superimposes it with the digital residual value to generate a digital output signal.
[0006] The present invention also includes an analog-to-digital conversion method with a dynamic gain compensation mechanism, comprising: enabling a first-stage conversion circuit to receive an analog input signal for conversion to generate a digital conversion result; enabling a second-stage conversion circuit to calculate an analog residual value between the analog input signal and the digital conversion result, so as to feed pseudo-noise into the analog residual value and then amplify and convert it according to a gain parameter to generate a digital residual value; enabling a gain calculation circuit to perform correlation calculation on the pseudo-noise and the digital residual value to generate a compensation gain corresponding to the gain parameter; enabling a control circuit to control the first-stage conversion circuit to operate according to a plurality of first output resolutions, correspondingly recording a plurality of output code ranges of the digital residual value and the compensation gain The invention provides a plurality of gain values; the control circuit sets a plurality of output code intervals which do not overlap with each other in the full output code range corresponding to the second output resolution of the second-stage conversion circuit according to the output code range; the control circuit calculates a plurality of interval gain values corresponding to the output code interval according to the gain value, and then establishes a lookup table; the compensation gain generating circuit determines one of the output code intervals where the output code size of the digital residual value is located to search the lookup table, so as to obtain one of the interval gain values as the compensation gain value; and the output calculating circuit superimposes the digital conversion result with the pseudo noise, compensates according to the compensation gain value, and then superimposes with the digital residual value to generate a digital output signal.
[0007] The features, operation and effects of the present invention will be described in detail as follows through multiple embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A block diagram showing an analog-to-digital conversion device with a dynamic gain compensation mechanism according to an embodiment of the present invention;
[0009] Figure 2 A diagram showing the relationship between a simulated residual value and a gain parameter in one embodiment of the present invention;
[0010] Figure 3 A schematic diagram showing an output code interval set by a control circuit and an interval gain value corresponding to the output code interval in one embodiment of the present invention; and
[0011] Figure 4 The flowchart shows an analog-to-digital conversion method with a dynamic gain compensation mechanism according to an embodiment of the present invention. DETAILED DESCRIPTION
[0012] An object of the present invention is to provide an analog-to-digital conversion device and method with a dynamic gain compensation mechanism, which compensates for the influence of the analog residual value on the gain parameter through the setting of a control circuit and a compensation gain generating circuit, so as to achieve a more accurate analog-to-digital conversion result.
[0013] Please refer to Figure 1 . Figure 1 A block diagram of an analog-to-digital conversion device 100 with a dynamic gain compensation mechanism is shown in one embodiment of the present invention.
[0014] In one embodiment, the analog-to-digital conversion device 100 is a pipeline analog-to-digital conversion device, and includes: a first-stage conversion circuit 105, a second-stage conversion circuit 110, a gain calculation circuit 115, a control circuit 120, a compensation gain generation circuit 125 and an output calculation circuit 130.
[0015] The first stage conversion circuit 110 includes a first analog-to-digital conversion circuit 135 for receiving an analog input signal AI and performing conversion to generate a digital conversion result DC.
[0016] The second stage conversion circuit 110 calculates the analog residual value AR between the analog input signal AI and the digital conversion result DC, feeds the analog residual value AR into the pseudo noise PNA, amplifies it according to the gain parameter GA, and converts it to generate a digital residual value DR.
[0017] In one embodiment, the second stage conversion circuit 110 includes a digital-to-analog conversion circuit 140 , a residual value calculation circuit 145 , an amplifier circuit 150 , and a second analog-to-digital conversion circuit 155 .
[0018] The digital-to-analog conversion circuit 140 converts the digital conversion result DC to generate an analog output signal AO.
[0019] The residual value calculation circuit 145 calculates the difference between the analog output signal AO and the analog input signal AI to generate an analog residual value AR, and then superimposes the pseudo noise PNA on the analog residual value AR to generate a first superimposed result FR1.
[0020] In some embodiments, the digital-to-analog conversion circuit 140 and the residual value calculation circuit 145 may be included in the first-stage conversion circuit 110 .
[0021] In some embodiments, the digital-to-analog conversion circuit 140 and the residual value calculation circuit 145 may be combined into a single circuit block.
[0022] In one embodiment, the analog-to-digital conversion device 100 further includes a pseudo noise generating circuit 160 and a digital-to-analog conversion circuit 165. The pseudo noise generating circuit 160 generates a pseudo noise PND in a digital form, and the pseudo noise PND is a one-bit signal including random 0 and 1. The digital-to-analog conversion circuit 165 converts the pseudo noise PND to generate a pseudo noise PNA in an analog form, so that the residual value calculation circuit 145 receives the pseudo noise PNA in an analog form.
[0023] The amplifier circuit 150 amplifies the first superposition result FR1 according to the gain parameter GA to generate an analog amplified signal AA.
[0024] The second analog-to-digital conversion circuit 155 converts the analog amplified signal AA to generate a digital residual value DR.
[0025] The gain calculation circuit 115 performs correlation calculation on the pseudo noise PND and the digital residual value DR to generate a compensation gain GD corresponding to the gain parameter GA. The pseudo noise generation circuit 160 enables the gain calculation circuit 115 to receive the pseudo noise PND in digital form.
[0026] In one embodiment, the gain calculation circuit 115 may utilize, for example, but not limited to, the method described in the paper “Digital Background Gain Error Correction in Pipeline ADCs” published in the Institute of Electrical and Electronics Engineers (IEEE) in 2004 to multiply the pseudo noise PND and the digital residual DR to calculate the correlation, then accumulate a certain number of sums and take an average, and generate the compensation gain GD through correction, for example, but not limited to, a preset constant.
[0027] The control circuit 120 controls the first stage conversion circuit 105 to operate according to a plurality of first output resolutions to correspond to a plurality of output code ranges of the recorded digital residual values DR and a plurality of gain values of the compensation gain GA.
[0028] The first output resolution is the number of bits of the digital conversion result DC output by the first-stage conversion circuit 105. In more detail, the first output resolution is the number of bits used by the first-stage conversion circuit 105 to quantize the analog input signal AI. When the first output resolution is higher, the number of bits of the digital conversion result DC is more, and the first-stage conversion circuit 105 quantizes the analog input signal AI via a higher resolution. When the first output resolution is lower, the number of bits of the digital conversion result DC is less, and the first-stage conversion circuit 105 quantizes the analog input signal AI via a lower resolution.
[0029] Therefore, the control circuit 120 can control the first-stage conversion circuit 105 to operate according to different first output resolutions by, for example but not limited to, generating a control signal CS, and record the output code range of the corresponding digital residual value DR and the gain value of the compensation gain GA corresponding to each first output resolution.
[0030] The control circuit 120 sets a plurality of mutually non-overlapping output code intervals in the full output code range corresponding to the second output resolution of the second-stage conversion circuit 110 according to the output code range, and calculates a plurality of interval gain values corresponding to the output code intervals according to the gain values.
[0031] The second output resolution is the number of bits of the digital residual value DR output by the second stage conversion circuit 110. More specifically, the second output resolution is the number of bits used by the second stage conversion circuit 110 to quantize the analog amplified signal AA. During the operation of the analog-to-digital conversion device 100, the second stage conversion circuit 110 maintains the same second output resolution. In a numerical example, the second output resolution is 8 bits, so that the full output code range corresponding to the digital residual value DR is 0 to 255.
[0032] It should be noted that the signal range that the second stage conversion circuit 110 can receive is preferably greater than or equal to the maximum possible value of the analog amplified signal AA, so that all possible values of the analog amplified signal AA can be quantized by the second stage conversion circuit 110 without distortion.
[0033] Reference Figure 2 . Figure 2 FIG. 4 is a diagram showing the relationship between the simulation residual value AR and the gain parameter GA in one embodiment of the present invention.
[0034] During the operation of the analog-to-digital conversion device 100, the gain parameter GA is affected by the signal size of the analog residual value AR and presents a non-constant ideal value GID. More specifically, the analog residual value AR and the gain parameter GA may have a similar relationship as Figure 2 Therefore, when the simulation residual value AR is the value R1, the gain parameter GA has a maximum value. When the simulation residual value AR is greater than the value R1 or less than the value R1, the gain parameter GA has a smaller value.
[0035] Since the digital residual DR is generated based on the analog residual AR and the gain parameter GA, the compensation gain GD generated based on the digital residual DR will also be affected. However, due to the operation mechanism of the gain calculation circuit 115, the compensation gain GD will not reflect the actual change of the gain parameter GA due to the averaging effect.
[0036] Reference Figure 3 . Figure 3 A schematic diagram showing an output code interval set by the control circuit 120 and an interval gain value corresponding to the output code interval in one embodiment of the present invention.
[0037] In one embodiment, the 8-bit full output code range (0-255) ZW can cover the size range of all analog residual values AR. The control circuit 120 can set output code intervals Z1-Z3, where the output code interval Z1 is the central output code interval, and the output code intervals Z2-Z3 are outer output code intervals. Each outer output code interval Z2-Z3 includes a pair of sub-intervals located on both sides of the central output code interval Z1, and the outer output code intervals Z2-Z3 are distributed from the inside to the outside in sequence with the central output code interval Z1 as the center.
[0038] Each output code interval Z1-Z3 may correspond to one of a plurality of interval compensation gains. For example, output code interval Z1 corresponds to interval gain value GE1, output code interval Z2 corresponds to interval gain GE2, and output code interval Z3 corresponds to interval gain GE3. These output code intervals and interval gain values may be close to Figure 2 The interval gains GE1, GE2 and GE3 can be estimated by the following operation in conjunction with the gain calculation circuit 115. Figure 3 This curve CU is represented by a dotted line.
[0039] In one embodiment, the control circuit 120 can control the first stage conversion circuit 105 to operate from the highest to the lowest first output resolution, and record the output code range and the gain value in a sequence. The control circuit 120 determines the range of each output code interval according to the sequence by the boundary output code difference between the two corresponding output code ranges, and calculates the gain value of each interval according to at least one of the gain values of the two corresponding output code ranges and the boundary output code difference.
[0040] For example, when the control circuit 120 controls the first stage conversion circuit 105 to operate at the highest first output resolution (e.g., N bits), the output code range of the digital residual value DR is 64-192, and the gain value G1 is calculated by the gain calculation circuit 115. When the control circuit 120 controls the first stage conversion circuit 105 to operate at the second highest first output resolution (e.g., N-1 bits), the error becomes larger due to the lower resolution, and the output code range of the digital residual value DR will be higher, 94-222, and the gain value G2 is calculated by the gain calculation circuit 115. In this case, the boundary output code difference between the two output code ranges can be obtained by subtracting the higher boundary value (222-192) or by subtracting the lower boundary value (94-64) to obtain 30. Due to the change of the first output resolution, the amplifier circuit 150 will show different gain parameters, and the calculated gain value G2 may be different from G1.
[0041] In one embodiment, the control circuit 120 may set the output code range of 64 to 192 corresponding to the highest first output resolution as the output code interval Z1 , and set its gain value G1 as the interval gain value GE1 of the central output code interval Z1 .
[0042] The control circuit 120 determines the range of each pair of outer output code intervals based on the boundary output code difference (30), for example but not limited to setting the range of the pair of outer output code intervals Z2 to be outside the center output code interval Z1 and the total size is the range of the boundary output code difference. Therefore, the pair of outer output code intervals Z2 will be 192 to 207 and 49 to 64, respectively. Among them, 207 is the result of 192+30 / 2, and 49 is the result of 64-30 / 2. The control circuit 120 further specifies the gain value G2 as the interval gain value GE2 corresponding to the interval Z2.
[0043] Therefore, the control circuit 120 can determine the range of the next outer output code interval Z3 in the same manner according to the output code range and gain value recorded by the first stage conversion circuit 105 under the second highest and third highest first output resolution operations, and calculate and generate the corresponding interval gain value GE3.
[0044] It should be noted that the above-mentioned method for determining the output code interval is only an example. In actual operation, the interval division method and the regional gain value calculation method may have different selection strategies depending on the difference in amplifier characteristics. The present invention is not limited to a specific interval division method and regional gain value calculation method.
[0045] For example, the control circuit 120 may also start from the central output code (e.g., 127 or 128 in 0-255) in the full output code range corresponding to the second output resolution of the second-stage conversion circuit 110, and set the output code interval Z1 based on the boundary output code difference between the output code ranges when the first-stage conversion circuit 105 operates at the first highest and second highest first output resolutions. In the aforementioned numerical example, the control circuit 120 may set the range of 30 output codes around the central output code 128, that is, the range of 128-15=113 and 128+15=143, as the output code interval Z1. In the same way, the control circuit 120 may also set the output code interval Z2 based on the boundary output code difference between the output code ranges when the first-stage conversion circuit 105 operates at the second highest and third highest first output resolutions.
[0046] Similarly, the above regional gain value calculation method is only an example. In other embodiments, the control circuit 120 can also selectively use the ratio between the boundary output code difference and the output code interval Z1 as a weight to perform calculations with the gain value G1 and the gain value G2 to generate the regional gain value GE2 of the outer output code interval Z2.
[0047] and, Figure 3 The number of output code intervals shown is only an example. In other embodiments, the control circuit 120 may also set different numbers of output code intervals according to more different first output resolutions, so as to get closer to the curve relationship of the amplifier when there are more output code intervals.
[0048] In some embodiments, the interval gain value of each interval and the boundary value of each interval can be obtained by calculating the gain value and the boundary value under any first resolution operation and then calculating them. For example, the first-stage conversion circuit can switch the first resolution to N, N-1 and N-2, and the control circuit can obtain at least three sets of the same or different boundary values and gain values. However, the user can divide the digital residual value DR into more than three regions by linear interpolation or other calculation methods according to the characteristics of the amplifier 150 to improve the accuracy of the overall operation.
[0049] According to the relationship between the output code intervals Z1 - Z3 and the interval gain values GE1 - GE3 , the control circuit 120 will establish a lookup table TB of the output code intervals and interval gain values.
[0050] The compensation gain generating circuit 125 determines one of the output code intervals where the output code size of the digital residual value DR is located to search the lookup table TB to obtain one of the interval gain values as the compensation gain value GC. For example, when the output code size of the digital residual value DR is located in the output code interval Z2, the compensation gain generating circuit 125 correspondingly searches the lookup table TB to obtain the interval gain value GE2 as the compensation gain value GC.
[0051] The output calculation circuit 130 superimposes the digital conversion result DC with the pseudo noise PND, performs compensation according to the compensation gain value GC, and then superimposes the digital residual value DR to generate a digital output signal DO.
[0052] In one embodiment, the output calculation circuit 130 includes a first adder 170 , a compensation operation circuit 175 , and a second adder 180 .
[0053] The first adder 170 adds the digital conversion result DC to the pseudo noise PND to generate a second superposition result FR2. The pseudo noise generating circuit 160 enables the first adder 170 to receive the pseudo noise PND in digital form.
[0054] The compensation operation circuit 175 amplifies the second superposition result FR2 according to the compensation gain value GC to generate an amplified digital conversion result DCA.
[0055] The second adder 180 adds the amplified digital conversion result DCA and the digital residual value DR to generate a digital output signal DO.
[0056] During the operation of the analog-to-digital conversion device 100, the gain parameter GA may be affected by temperature or process and may change, thereby affecting the size of the digital residual value DR. Such a change can be compensated by the compensation gain GD calculated by the gain calculation circuit 115. However, due to the mechanism of averaging operation, the gain calculation circuit 115 cannot compensate the gain parameter GA for the signal size of the analog residual value AR by generating the compensation gain GD.
[0057] Therefore, the analog-to-digital conversion device 100 of the present invention can control the first-stage conversion circuit 105 to operate at different resolutions and generate different output code ranges and gain values in the second-stage conversion circuit 110 through the setting of the control circuit 120, and further calculate the interval gain value of the second-stage conversion circuit 110 in different output code intervals to approach the curve relationship between the gain parameter GA and the analog residual value AR, thereby establishing a lookup table TB.
[0058] The compensation gain generating circuit 125 can further search the lookup table TB according to the output code size of the digital residual value DR to obtain the interval gain value as the compensation gain value, compensate the digital conversion result DC (in this embodiment, it is actually to compensate the second superposition result FR2, that is, the superposition result of the digital conversion result DC and the pseudo noise PND) and then superimpose it with the digital residual value DR to obtain a more accurate analog-to-digital conversion result.
[0059] It should be noted that since temperature or process changes may still affect the gain parameter GA, the control circuit 120 may continue to update the lookup table TB according to the generation of the digital residual value DR. Furthermore, the update of the lookup table TB may be performed simultaneously with the operation of the analog-to-digital conversion device 100 generating the digital output signal DO.
[0060] and, Figure 1 The analog-to-digital conversion device 100 is an example of a two-stage conversion circuit. In actual operation, the analog-to-digital conversion device 100 may include more than two stages of conversion circuits, and each stage of the conversion circuit may use the digital conversion result of the previous stage as input to calculate the residual value and superimpose it on the digital conversion result DC, and may be operated in conjunction with the above-mentioned compensation mechanism. The present invention is not limited to this.
[0061] Reference Figure 4 . Figure 4 A flow chart of an analog-to-digital conversion method 400 with a dynamic gain compensation mechanism according to an embodiment of the present invention is shown.
[0062] In addition to the aforementioned apparatus, the present invention also discloses an analog-to-digital conversion method 400, which is applied to, for example, but not limited to Figure 1In the analog-to-digital conversion device 100. An embodiment of the analog-to-digital conversion method 400 is as follows: Figure 4 As shown, the following steps are included.
[0063] In step S410 , the first stage conversion circuit 105 receives the analog input signal AI and performs conversion to generate a digital conversion result DC.
[0064] In step S420 , the second stage conversion circuit 110 calculates the analog residual value AR between the analog input signal AI and the digital conversion result DC, and feeds the analog residual value AR into the pseudo noise PNA, amplifies it according to the gain parameter GA, and converts it to generate a digital residual value DR.
[0065] In step S430, the gain calculation circuit 115 performs correlation calculation on the pseudo noise PND and the digital residual value DR to generate a compensation gain GD corresponding to the gain parameter GA.
[0066] In step S440 , the control circuit 120 controls the first stage conversion circuit 105 to operate according to a plurality of first output resolutions, corresponding to a plurality of output code ranges of the digital residual value DR and a plurality of gain values of the compensation gain GD.
[0067] In step S450 , the control circuit 120 sets a plurality of mutually non-overlapping output code intervals in the full output code range corresponding to the second output resolution of the second-stage conversion circuit 110 according to the output code range.
[0068] In step S460 , the control circuit 120 calculates a plurality of interval gain values corresponding to the output code interval according to the gain value, and then establishes a lookup table TB.
[0069] In step S470 , the compensation gain generating circuit 125 determines one of the output code intervals where the output code size of the digital residual value DR is located to search the lookup table TB to obtain one of the interval gain values as the compensation gain value GC.
[0070] In step S480 , the output calculation circuit 130 superimposes the digital conversion result DC with the pseudo noise PND, performs compensation according to the compensation gain value GC, and then superimposes the digital residual value DR to generate a digital output signal DO.
[0071] It should be noted that the above implementation is only an example. In other embodiments, those skilled in the art may make changes without departing from the spirit of the present invention.
[0072] In summary, the analog-to-digital conversion device and method with a dynamic gain compensation mechanism in the present invention can compensate for the influence of the analog residual value on the gain parameter through the setting of the control circuit and the compensation gain generating circuit, thereby achieving a more accurate analog-to-digital conversion result.
[0073] Although the embodiments of the present invention are described above, these embodiments are not intended to limit the present invention. A person skilled in the art may modify and change the technical features of the present invention according to the explicit or implicit contents of the present invention, and these modifications are all within the scope of protection of the present invention. In other words, the scope of patent protection of the present invention shall be based on the scope of the claims of this application.
[0074] Description of Reference Numerals
[0075] 100: Analog to digital converter
[0076] 105: First stage conversion circuit
[0077] 110: Second stage conversion circuit
[0078] 115: Gain calculation circuit
[0079] 120: Control circuit
[0080] 125: Compensation gain generation circuit
[0081] 130: Output calculation circuit
[0082] 135: First analog to digital conversion circuit
[0083] 140: Digital to analog conversion circuit
[0084] 145: Residual value calculation circuit
[0085] 150: Amplifier Circuit
[0086] 155: Second analog to digital conversion circuit
[0087] 160: Pseudo-noise generation circuit
[0088] 165: Digital to Analog Conversion Circuit
[0089] 170: First Adder
[0090] 175: Compensation operation circuit
[0091] 180: Second adder
[0092] 400: Analog to Digital Conversion Methods
[0093] S410~S480: Steps
[0094] AA: Analog amplified signal
[0095] AI: Analog input signal
[0096] AO: Analog output signal
[0097] AR: Simulated residual value
[0098] CS: Control signal
[0099] CU: Curve
[0100] DC: Digital conversion result
[0101] DCA: Amplify digital conversion results
[0102] DO: Digital output signal
[0103] DR: Digital Residual
[0104] FR1: First superposition result
[0105] FR2: Second superposition result
[0106] GA: Gain parameter
[0107] GC: Compensation gain value
[0108] GD: Compensation gain
[0109] GE1~GE3: interval gain value
[0110] GID: Ideal value
[0111] PNA, PND: Pseudo Noise
[0112] R1: Value
[0113] TB: Lookup Table
[0114] Z1~Z3: Output code range
[0115] ZW: Full output code range
Claims
1. An analog-to-digital conversion device with a dynamic gain compensation mechanism, comprising: The first stage conversion circuit receives an analog input signal and converts it to generate a digital conversion result; The second stage conversion circuit calculates the analog residual value between the analog input signal and the digital conversion result, feeds pseudo noise into the analog residual value, amplifies it according to the gain parameter, and converts it to generate a digital residual value; A gain calculation circuit performs correlation calculation on the pseudo noise and the digital residual value to generate a compensation gain corresponding to the gain parameter; a control circuit, controlling the first-stage conversion circuit to operate according to a plurality of first output resolutions, correspondingly recording a plurality of output code ranges of the digital residual value and a plurality of gain values of the compensation gain, so as to set a plurality of mutually non-overlapping output code intervals in a full output code range corresponding to a second output resolution of the second-stage conversion circuit according to the plurality of output code ranges, and calculating a plurality of interval gain values corresponding to the plurality of output code intervals according to the plurality of gain values, thereby establishing a lookup table of the plurality of output code intervals and the plurality of interval gain values; A compensation gain generating circuit, for determining one of the plurality of output code intervals where the output code size of the digital residual value is located, to search the lookup table, so as to obtain one of the plurality of interval gain values as a compensation gain value; as well as The output calculation circuit superimposes the digital conversion result with the pseudo noise, performs compensation according to the compensation gain value, and then superimposes the result with the digital residual value to generate a digital output signal.
2. The analog-to-digital conversion device according to claim 1, wherein the first-stage conversion circuit comprises a first analog-to-digital conversion circuit, and the second-stage conversion circuit comprises: A digital-to-analog conversion circuit converts the digital conversion result to generate an analog output signal; A residual value calculation circuit calculates the difference between the analog output signal and the analog input signal to generate the analog residual value, and then superimposes the pseudo noise on the analog residual value to generate a first superposition result; an amplifier circuit, amplifying the first superposition result according to the gain parameter to generate an analog amplified signal; as well as The second analog-to-digital conversion circuit converts the analog amplified signal to generate the digital residual value.
3. The analog-to-digital conversion device according to claim 1 further comprises a pseudo-noise generating circuit for generating the pseudo-noise so that the second-stage conversion circuit receives the pseudo-noise in analog form and the gain calculation circuit and the output calculation circuit receive the pseudo-noise in digital form.
4. The analog-to-digital conversion device according to claim 1, wherein the output calculation circuit comprises: a first adder, superimposing the digital conversion result with the pseudo noise to generate a second superimposed result; A compensation operation circuit amplifies the second superposition result according to the compensation gain value to generate an amplified digital conversion result; as well as A second adder is configured to add the amplified digital conversion result and the digital residual value to generate the digital output signal. 5 . The analog-to-digital conversion device according to claim 1 , wherein the gain parameter and the analog residual value have a curve relationship, and the multiple output code intervals and the multiple interval gain values are configured to approximate the curve relationship.
6. The analog-to-digital conversion device according to claim 5, wherein the multiple output code intervals include a central output code interval and multiple outer output code intervals, each of the multiple outer output code intervals includes a pair of sub-intervals located on both sides of the central output code interval, and the multiple outer output code intervals are distributed in sequence with the central output code interval as the center, wherein each of the multiple output code intervals corresponds to one of the multiple interval gain values.
7. The analog-to-digital conversion device according to claim 6, wherein the control circuit controls the first stage conversion circuit to operate at the plurality of first output resolutions from the highest to the lowest, and records the plurality of output code ranges and the plurality of gain values in a sequential order; The control circuit determines the range of each of the multiple output code intervals according to the sequence based on the boundary output code difference between two corresponding output code ranges, and performs a difference calculation between at least one of the multiple gain values of the two corresponding output code ranges and the boundary output code to generate each of the multiple interval gain values.
8. An analog-to-digital conversion method with a dynamic gain compensation mechanism, comprising: The first-stage conversion circuit receives an analog input signal and converts it to generate a digital conversion result; The second stage conversion circuit calculates the analog residual value between the analog input signal and the digital conversion result, feeds pseudo noise into the analog residual value, amplifies it according to the gain parameter, and converts it to generate a digital residual value; causing a gain calculation circuit to perform correlation calculation on the pseudo noise and the digital residual value to generate a compensation gain corresponding to the gain parameter; The control circuit controls the first-stage conversion circuit to operate according to a plurality of first output resolutions, and correspondingly records a plurality of output code ranges of the digital residual value and a plurality of gain values of the compensation gain; The control circuit is configured to set a plurality of mutually non-overlapping output code intervals in a full output code range corresponding to a second output resolution of the second-stage conversion circuit according to the plurality of output code ranges; The control circuit calculates a plurality of interval gain values corresponding to the plurality of output code intervals according to the plurality of gain values, and then establishes a lookup table; The compensation gain generating circuit determines one of the plurality of output code intervals where the output code size of the digital residual value is located to search the lookup table to obtain one of the plurality of interval gain values as the compensation gain value; as well as The output calculation circuit is configured to superimpose the digital conversion result with the pseudo noise, perform compensation according to the compensation gain value, and then superimpose the result with the digital residual value to generate a digital output signal. 9 . The analog-to-digital conversion method according to claim 8 , wherein the gain parameter and the analog residual value have a curve relationship, and the multiple output code intervals and the multiple interval gain values are configured to approach the curve relationship.
10. The analog-to-digital conversion method according to claim 9, wherein the multiple output code intervals include a central output code interval and multiple outer output code intervals, each of the multiple outer output code intervals includes a pair of sub-intervals located on both sides of the central output code interval, and the multiple outer output code intervals are distributed in sequence with the central output code interval as the center, wherein each of the multiple output code intervals corresponds to one of the multiple interval gain values.
