Error testing methods and related methods and devices for ADC circuits

By adjusting the conversion range and accuracy of the DAC circuit and combining it with the error testing method of the ADC circuit, the errors of the ADC and DAC are independently corrected, solving the problems of slow accuracy improvement and noise interference in the existing technology, and realizing high-precision ADC circuit correction and system performance improvement.

CN123074498APending Publication Date: 2026-11-10XINXIAN SEMICON (SUZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611353536.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-10

Smart Images

  • Figure CN123074498A_ABST
    Figure CN123074498A_ABST
Patent Text Reader

Abstract

This invention discloses an error testing method and related methods and apparatus for ADC circuits. The error testing method includes: using a DAC circuit to perform digital-to-analog conversion on multiple first input codes based on a first minimum resolution to generate a first analog quantity; using an ADC circuit to perform analog-to-digital conversion on the first analog quantity based on a second minimum resolution to generate a first digital quantity; and obtaining the error of the ADC circuit based on the correspondence between the first digital quantity and the first input codes; wherein the error of the DAC circuit in converting the first input codes does not exceed a first threshold. This invention utilizes the characteristic that ADC and DAC circuits have different conversion accuracies in different conversion ranges. By actively adjusting the conversion ranges of the ADC and DAC circuits, a relatively accurate DAC circuit is constructed to test the ADC circuit, solving the error coupling problem of traditional on-chip inter-testing schemes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of electronic circuit technology, specifically relating to an error testing method and related methods and apparatus for ADC circuits. Background Technology

[0002] Analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) are the core digital-to-analog interfaces in electronic systems and System-on-Chips (SoCs), enabling bidirectional conversion between analog and digital signals. The ADC acquires external analog signals and provides the environmental data to the CPU for processing; the DAC outputs analog signals based on the digital processing results, assisting the CPU in controlling the external environment.

[0003] With the iteration of semiconductor technology, the digital processing performance of processors has been greatly improved, and the performance bottleneck of the system has gradually shifted from digital circuits to analog conversion interfaces. Process optimization mainly targets the speed-up and integration of digital logic circuits, while performance optimization of analog circuits such as ADCs and DACs is negligible.

[0004] Current CPUs, DSPs, and other processors possess high-precision digital processing capabilities, adapting to the data processing needs of sophisticated environments. However, the conversion accuracy of ADCs and DACs has improved slowly, significantly lagging behind the performance iterations of digital systems. Relying on traditional analog circuit design to achieve high-precision conversion would substantially increase hardware costs, resulting in performance limitations and high expenses.

[0005] The information disclosed in this background section is intended only to enhance the understanding of the overall background of the invention and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0006] The purpose of this invention is to provide an error testing method and related methods and apparatus for ADC circuits, which can calibrate ADC circuits with high accuracy.

[0007] To achieve the above objectives, a specific embodiment of the present invention provides the following technical solution:

[0008] An error testing method for an ADC circuit includes: performing digital-to-analog conversion on a plurality of first input codes using a DAC circuit based on a first minimum resolution to generate a first analog quantity; performing analog-to-digital conversion on the first analog quantity using an ADC circuit based on a second minimum resolution to generate a first digital quantity; and obtaining the error of the ADC circuit based on the correspondence between the first digital quantity and the first input codes; wherein the error of the DAC circuit in converting the first input codes does not exceed a first threshold.

[0009] In one or more embodiments of the present invention, the first minimum resolution is less than the second minimum resolution; and / or, the error testing method further includes: adjusting the output range of the DAC circuit, and generating multiple sets of first analog quantities by performing digital-to-analog conversion on multiple first input codes based on different output ranges through the DAC circuit, so that the multiple sets of first analog quantities cover the input range of the ADC circuit.

[0010] In one or more embodiments of the present invention, the DAC circuit includes a correction module and a digital-to-analog converter module. The correction module amplifies the reference voltage to generate the reference voltage required by the digital-to-analog converter module. The digital-to-analog converter module performs digital-to-analog conversion based on the input code and the reference voltage to generate an analog quantity. The error testing method further includes adjusting the magnitude of the reference voltage through the correction module to adjust the output range of the DAC circuit.

[0011] In one or more embodiments of the present invention, the DAC circuit includes an adjustable gain module and a digital-to-analog converter module, wherein the adjustable gain module is used to adjust the gain of the digital-to-analog converter module; the correction method further includes: adjusting the gain of the analog-to-digital converter module through the adjustable gain module to adjust the minimum resolution of the DAC circuit.

[0012] An embodiment of the present invention also provides a calibration method for an ADC circuit, the calibration method comprising: obtaining the error of the ADC circuit based on the above-described error testing method for the ADC circuit; and calibrating the ADC circuit based on the error of the ADC circuit.

[0013] An embodiment of the present invention also provides a calibration method for a system, the system including a DAC circuit and an ADC circuit, wherein multiple ADC circuits are provided, and the calibration method includes: putting at least one ADC circuit in an idle state; and calibrating the idle ADC circuit based on the calibration method for ADC circuits according to claim 5.

[0014] An embodiment of the present invention also provides a chip screening method, the screening method comprising: calibrating an ADC circuit based on the calibration method for an ADC circuit described in claim 5; testing the calibration error of the calibrated ADC circuit; and screening the ADC circuit based on the relationship between the calibration error and a threshold.

[0015] An embodiment of the present invention also provides a DAC circuit, which is applicable to the error testing method for ADC circuits described above, or to the correction method for ADC circuits as described in claim 5; and the DAC circuit includes a correction module and a digital-to-analog conversion module, wherein the correction module is used to amplify a reference voltage to generate a reference voltage required by the digital-to-analog conversion module, and the digital-to-analog conversion module performs digital-to-analog conversion based on the input code and the reference voltage to generate an analog quantity.

[0016] In one or more embodiments of the present invention, the correction module includes a second amplifier and a second adjustable resistor unit. The first input terminal of the second amplifier is connected to a first input voltage, and the second input terminal and the output terminal of the second amplifier are connected to the second adjustable resistor unit to generate a reference voltage. The second adjustable resistor unit adjusts the magnitude of the reference voltage based on its own resistance value.

[0017] An embodiment of the present invention also provides a DAC circuit, which is applicable to the error testing method for ADC circuits described above, or to the correction method for ADC circuits as described in claim 5; and the DAC circuit includes an adjustable gain module and a digital-to-analog conversion module, wherein the adjustable gain module is used to adjust the gain of the digital-to-analog conversion module.

[0018] An embodiment of the present invention also provides a processing module, including: at least one processor; and a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the above-described error testing method for an ADC circuit, or to perform the above-described calibration method for an ADC circuit.

[0019] An embodiment of the present invention also provides a processing system, characterized in that it includes a DAC circuit, an ADC circuit, and the above-described processing module.

[0020] Compared with the prior art, the error testing method and related methods and devices for ADC circuits of the present invention utilize the characteristics that the ADC circuit and DAC circuit have different conversion accuracies in different conversion ranges. By actively adjusting the conversion range of the ADC circuit and DAC circuit, a relatively accurate ADC circuit is constructed to test the DAC circuit, which solves the error coupling problem of the traditional on-chip mutual testing scheme. Furthermore, it independently configures the corresponding correction bit to complete targeted adjustment, thereby achieving accurate error tracing and correction. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a circuit diagram of a DAC circuit in one embodiment of the present invention.

[0023] Figure 2This is a flowchart of a correction method for an error testing method for an ADC circuit according to an embodiment of the present invention.

[0024] Figure 3 This is a graph showing the input code and analog quantity for a DAC circuit in one embodiment of the present invention.

[0025] Figure 4 This is a graph showing the input code versus analog quantity for a DAC circuit according to another embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the technical solutions in this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this disclosure.

[0027] The terms "coupled," "connected," or "linked" in the specification include both direct and indirect connections. An indirect connection is a connection made through an intermediate medium, such as an electrical conduction medium, which may have parasitic inductance or capacitance. Indirect connections may also include connections made through other active or passive devices to achieve the same or similar functional purpose, such as connections through switches, follower circuits, or other circuits or components. Furthermore, in the invention, terms such as "first" and "second" are primarily used to distinguish one technical feature from another, and do not necessarily require or imply any actual relationship, quantity, or order between these technical features.

[0028] In the detailed description of this specification, reference is made to the accompanying drawings, which form a part thereof, wherein like reference numerals always denote like parts, and wherein exemplary embodiments are shown by way of example that may be implemented. It should be understood that other embodiments may be utilized, and structural or logical changes may be made, without departing from the scope of this application. Therefore, the following detailed description should not be considered limiting.

[0029] The various operations in the specification may be described sequentially as multiple discrete actions or operations in a manner most conducive to understanding the claimed subject matter. However, the order of description should not be construed as implying that these operations must be sequentially related. Specifically, these operations may not be performed in the order presented. The described operations may be performed in a different order than in the described embodiments. Various additional operations may be performed in additional embodiments and / or the described operations may be omitted.

[0030] For the purposes of this application, the phrase "A and / or B" means (A), (B), or (A and B). For the purposes of this application, the phrase "A, B and / or C" means (A), (B), (C), (A and B), (A and C), (B and C), or (A, B and C).

[0031] Various components and devices may be mentioned or shown in the singular form herein, but only for the convenience of discussion, and any element mentioned in the singular form may include multiple such elements as taught herein.

[0032] The description uses the phrases "in one embodiment," "in other embodiments," or "in some embodiments," each of which can refer to one or more of the same or different embodiments. Furthermore, the terms "comprising," "including," "having," etc., used in relation to embodiments of this application are synonymous.

[0033] Digital calibration technology is currently the mainstream solution for improving the accuracy of data converters. It uses digital circuits to assist in error compensation and accuracy adjustment. The core principle is to measure the converter's conversion error during the chip manufacturing process and correct the input-output correspondence accordingly. The specific calibration and on-chip mutual testing technologies for existing mainstream ADC and DAC circuits are as follows:

[0034] 1. Off-screen calibration:

[0035] High-precision ADC circuit calibration strategy: During the chip manufacturing process, an external signal generator is connected to the ADC circuit input, and a standard test voltage is applied. The full range of the ADC circuit is segmented, and corresponding adjustment bits are configured. When the measured input-output characteristics deviate from the ideal characteristics, the adjustment bits drive the adjustment array of the DAC circuit inside the ADC circuit to generate a compensation amount in the error range, offsetting the conversion error and achieving accuracy correction.

[0036] High-precision DAC circuit calibration strategy: The MCU and DSP generate digital input code values ​​for the DAC circuit. An external high-precision multimeter is used to test the DNL error corresponding to each code value, filtering and storing error data with an absolute value greater than 0.5 LSB. During normal use, the DAC circuit sums the original input code value with the compensation and adjustment code, using this sum as the actual input to the DAC circuit, thus completing digital domain error correction. This calibration process is simpler than ADC circuit calibration.

[0037] 2. On-chip ADC and DAC circuit mutual testing scheme:

[0038] This solution eliminates the need for external testing equipment. The on-chip CPU generates the input signal for the DAC circuit, and the on-chip analog output of the DAC circuit is directly connected to the on-chip input of the ADC circuit. The CPU then analyzes the ADC circuit's output data to complete accuracy testing and error determination. Its core advantage is that the high-precision analog signal is never brought out of the chip, effectively avoiding external noise interference.

[0039] The above-mentioned correction techniques inevitably have the following drawbacks.

[0040] For off-chip calibration techniques, firstly, off-chip test paths are susceptible to external environmental interference. Noise such as PCB crosstalk, power supply disturbances, power frequency fluctuations, and electromagnetic radiation can contaminate test signals, causing the measured error to include not only the converter's inherent error but also interference components from the test environment. Calibration based on this measured error data will significantly affect the calibration effect. Especially for today's high-precision data converters, when the interference components in the test environment are too large, the error introduced by the calibration process can be greater than, or even exceed, the data converter's inherent error, resulting in the accuracy of the data converter after calibration being lower than before calibration.

[0041] Secondly, the external test path is too long, requiring auxiliary circuits such as filtering, which not only increases the test time but also increases the cost of chip peripheral hardware and mass production testing.

[0042] Finally, off-chip calibration only supports one-time factory calibration. During long-term chip operation, temperature and voltage fluctuations and device aging can cause analog process parameters to drift, resulting in continuous changes in converter errors. The factory-fixed calibration code cannot adapt to dynamic errors, leading to poor long-term calibration performance.

[0043] While this approach completely avoids external noise interference, the principle behind on-chip ADC and DAC circuit mutual testing technology has inherent accuracy limitations. Both the ADC and DAC circuits have inherent errors. Because the system can only acquire the input data of the DAC circuit and the output data of the ADC circuit during error testing, the errors of the DAC and ADC circuits are coupled and difficult to distinguish, making independent calibration of the DAC and ADC circuits impossible.

[0044] Meanwhile, in typical mixed-signal systems, the ADC and DAC circuits have the same accuracy level, which limits the mutual measurement error to within ±0.5 LSB. Even if the test system can distinguish whether the error originates from the ADC or DAC circuit, the calibration accuracy remains relatively coarse and cannot meet the requirements for high-precision conversion.

[0045] To address the aforementioned problems, this invention provides an error testing method for DAC circuits, as well as related methods and apparatus.

[0046] Example 1

[0047] like Figure 1 As shown, one embodiment of the present invention provides a DAC circuit that is applicable to the error testing and correction methods for DAC circuits provided by the present invention.

[0048] Specifically, the DAC circuit includes a digital-to-analog converter module for performing digital-to-analog conversion.

[0049] In one embodiment, the digital-to-analog conversion module includes a first adjustable resistor unit 31 and an amplification unit. The first adjustable resistor unit 31 adjusts its own resistance value based on the input code, and the amplification unit generates an analog quantity based on the equivalent resistance value of the first adjustable resistor unit 31.

[0050] For example, the amplification unit includes a first amplifier OP1, the first input terminal of which is connected to a reference voltage.

[0051] The first adjustable resistor unit 31 includes a first resistor unit and a second resistor unit. The first resistor unit adjusts the high bit of the DAC circuit, and the second resistor unit adjusts the low bit of the DAC circuit.

[0052] Specifically, the first resistor unit includes multiple first resistors, the first ends of which are all connected to the second input terminal of the amplifier, and the second ends of the first resistors are selectively connected to either the first reference voltage VrefP or the second reference voltage VrefN based on the input code.

[0053] The second resistor unit includes multiple second resistors and a third resistor. The second resistors are connected in series to the second input terminal of the amplifier. One end of the third resistor is connected to the corresponding second resistor in sequence, and the other end is selectively connected to either the first reference voltage VrefP or the second reference voltage VrefN based on the input code. The resistance of the second resistor is half the resistance of the third resistor. The second and third resistors form a standard R2R resistor network.

[0054] The first resistor unit, the second resistor unit, and the amplifier constitute a segmented digital-to-analog converter module. The first resistor unit adopts a thermometer code architecture to form the higher bits of the DAC circuit, and the second resistor unit adopts an R2R code architecture to form the lower bits of the DAC circuit.

[0055] In one specific embodiment, there are 15 first resistors, namely Rt1~Rt15, 8 second resistors Ra and 8 third resistors, namely Ra1~Ra8 and Rb1~Rb8, and the DAC circuit has a high 4-bit + low 8-bit architecture, for a total of 12 bits.

[0056] For ease of explanation, the minimum resolution of the 12-bit DAC circuit with a gain of 1 will be denoted as 1. .

[0057] In one embodiment, the DAC circuit may further include an adjustable gain module 20. The adjustable gain module 20 is used to adjust the gain of the digital-to-analog conversion module.

[0058] like Figure 1 As shown, the adjustable gain module 20 includes multiple fifth resistors connected between the second input terminal and the output terminal of the first amplifier OP1. The resistance value of the fifth resistors is adjustable or selectively connected between the second input terminal and the output terminal of the first amplifier OP1, thereby realizing the adjustment of the gain of the first amplifier OP1. For example, there are four fifth resistors, namely fifth resistor Rf1a, fifth resistor Rf1b, fifth resistor Rf2 and fifth resistor Rf3. The adjustable gain module also includes a first switch GSL2.

[0059] Specifically, the fifth resistor Rf1a is connected between the second input and output terminals of the first amplifier OP1. The fifth resistor Rf1b is connected between the second input and output terminals of the first amplifier OP1. The fifth resistor Rf2 and the first switch GSL1 are connected in series between the second input and output terminals of the first amplifier OP1. The fifth resistor Rf3 and the first switch GSL2 are connected in series between the second input and output terminals of the first amplifier OP1. The fifth resistor Rf1b is an adjustable resistor, and the first switches GSL1 and GSL2 are controlled by a gain selection code.

[0060] like Figure 1 As shown, in one embodiment, the fifth resistor Rf1b includes multiple sixth resistors Rf1bx connected in series and a second switch connected in parallel with the sixth resistors. For example, there are five sixth resistors, Rf1b1 to Rf1b5, and four second switches, DAGE1 to DAGE4. The second switches DAGE1 to DAGE4 are connected in parallel with the sixth resistors Rf1b2 to Rf1b5. The second switches DAGE1 to DAGE4 are controlled by a gain correction control code.

[0061] By selecting the resistor connected to the feedback loop of the first amplifier OP1 and changing its equivalent resistance, the gain of the first amplifier OP1 can be adjusted, which in turn adjusts the gain of the DAC circuit. The gain of the DAC circuit determines the width of the output analog signal range and also changes the minimum resolution.

[0062] In summary, the minimum resolution when the gain of the original 12-bit DAC circuit is 1 is denoted as 1. The minimum resolution of the extended 14-bit DAC circuit with a gain of 1 is denoted as 0.25. When the gain of the DAC circuit changes, the minimum resolution mentioned above is multiplied by the gain change factor.

[0063] like Figure 1As shown, in one embodiment, the DAC circuit may further include a correction module 10. The correction module 10 amplifies the reference voltage to generate the reference voltage required by the digital-to-analog converter module, which performs digital-to-analog conversion based on the input code and the reference voltage to generate an analog quantity.

[0064] like Figure 1 As shown, the correction module 10 includes a second amplifier OP2 and a voltage divider unit 11.

[0065] Voltage divider unit 11 is connected to the first reference voltage VrefP and the second reference voltage VrefN, and is used to divide the first reference voltage VrefP and the second reference voltage VrefN to generate the first input voltage. The first input terminal of the second amplifier OP2 is connected to the first input voltage, and the second input terminal and the output terminal of the second amplifier OP2 are connected to generate a reference voltage.

[0066] In one embodiment, the voltage divider unit 11 includes a plurality of seventh resistors and a plurality of third switches. The plurality of seventh resistors are connected between the first reference voltage VrefP and the second reference voltage VrefN. The first terminal of the third switch is connected to the first input terminal of the second amplifier OP2, and the second terminal of the third switch is connected to the corresponding seventh resistor. The third switch is controlled by an offset correction control code.

[0067] For example, there are 19 seventh resistors, namely seventh resistor Rm1, seventh resistor Rm21~Rm216, seventh resistor Rm3, and seventh resistor Rm4. Seventh resistors Rm1, Rm21~Rm216, and Rm3 are connected in series between the first reference voltage VrefP and the second reference voltage VrefN. The first end of the seventh resistor Rm4 is connected between the voltage divider resistor Rm1 and the seventh resistor Rm21, and the second end of the seventh resistor Rm4 is connected between the seventh resistor Rm216 and the seventh resistor Rm3.

[0068] There are 16 third switches, namely DAOS1 to DAOS16. One end of the third switches DAOS1 to DAOS16 is connected to the first input terminal of the second amplifier OP2, and the other end is connected to the corresponding seventh resistors Rm21 to Rm216.

[0069] It can be seen that adjusting the resistance value of the corresponding circuit through the third switch can be reflected in the adjustment of the reference voltage. Combined with the digital-to-analog conversion module, it can be seen that the change of the reference voltage can be reflected in the final generated analog quantity. By changing the magnitude of the reference voltage, the magnitude of the voltage corresponding to the range of the analog quantity can be adjusted.

[0070] It should be noted that this application only provides specific embodiments of DAC circuits used to implement error testing and correction methods. It should not be construed as meaning that only the DAC circuits described in this invention are applicable to the error testing and correction methods described in this invention. In fact, any DAC circuit applicable to the error testing and correction methods described in this invention is sufficient as long as it can implement the above methods, regardless of whether the specific circuit structure described above is used.

[0071] Existing ADC circuit products are generally compatible with the error testing and correction methods described in this application.

[0072] For example, the ADC circuit and DAC circuit applicable to this invention use the same first reference voltage and second reference voltage, and the ADC circuit is also 12-bit resolution with a minimum resolution of 1. .

[0073] In one specific embodiment, the first reference voltage VrefP is 2.5V, and the second reference voltage VrefN is 0V. The resistance values ​​of each resistor are as follows:

[0074] First resistor Rtx: 100K, Second resistor Rax: 50K, Third resistor Rbx: 100K, Fifth resistor Rf1a: 100K / 8, Fifth resistor Rf1b: 100K / 8 (default single gain mode), Sixth resistor Rf1bx: 100K / 40, Fifth resistor Rf2: 100K / 1, Fifth resistor Rf3: 100K / 48, Seventh resistor Rm1: 31k, Seventh resistor Rm3: 31k, Seventh resistor Rm2x: 1k, Seventh resistor Rm4: 2+2 / / 0.33k, Eighth resistor Rg: 50k.

[0075] The first switches GSL1 and GSL2 are used to control the gain of the DAC circuit, and the second switches DAGE1~DAGE4 are used to fine-tune the actual gain in the single gain mode of the DAC circuit.

[0076] The third switch, DAOS1~DAOS16, is used to fine-tune and correct the reference voltage, and the fourth switch, VCSL1~VCSL6, is used to adjust the multiple of the reference voltage.

[0077] Example 2

[0078] like Figure 2 As shown, one embodiment of the present invention provides an error testing method and a correction method for an ADC circuit, comprising:

[0079] Step 1 uses a DAC circuit to perform digital-to-analog conversion on multiple first input codes based on a first minimum resolution to generate a first analog quantity.

[0080] Step 2 uses an ADC circuit to perform analog-to-digital conversion on the first analog quantity based on the second minimum resolution to generate the first digital quantity.

[0081] Step 3: Based on the correspondence between the first digital quantity and the first input code, the error of the ADC circuit is obtained, and the ADC circuit is corrected.

[0082] Preferably, the error testing and correction method for the ADC circuit further includes: step 0 performing offset error correction and gain error correction on the ADC circuit and DAC circuit before performing step 1.

[0083] Specifically, the calibration method step 0 includes steps 0.1 to 0.4:

[0084] Step 0.1 Perform offset error correction on the ADC circuit.

[0085] Specifically, the ADC circuit samples and converts the second reference voltage VrefN, iterates through the offset correction control codes of the ADC circuit, records the offset correction control code value corresponding to the digital code of the converted output being 0000_0000_0000, and immediately uses this offset correction control code.

[0086] Step 0.2 Perform gain error correction on the ADC circuit.

[0087] Specifically, the ADC circuit samples and converts the first reference voltage VrefP, iterates through the gain correction control codes of the ADC circuit, records the gain correction control code value corresponding to the converted output digital code 1111_1111_1111, and immediately uses this gain correction control code.

[0088] Existing ADC circuits generally have offset error correction and gain error correction functions. Offset error correction is used to correct the deviation where the output digital code is not zero when the input voltage is zero. Gain error correction is used to correct the deviation where the slope of the actual conversion curve of the ADC circuit is inconsistent with the ideal slope. The principles of offset and gain correction in ADC circuits are existing technologies and will not be elaborated here. It should be noted that after offset and gain error correction, the zero-point offset and slope deviation of the ADC circuit can be basically eliminated. However, the inherent errors of the ADC circuit, such as linearity error (INL) and random noise, are usually difficult to completely eliminate through simple correction.

[0089] Step 0.3 Perform offset error correction on the DAC circuit.

[0090] Specifically, the calibration module 10 is adjusted to configure the reference voltage to 1 / 2 (VrefP - VrefN) (selecting the fourth VCSL1, while the other fourth switches are off). The adjustable gain module 20 is adjusted to configure the gain of the DAC circuit to 1 (selecting the first switch GSL1, while the first switch GSL2 is off).

[0091] Set the input code of the DAC circuit to 0000_0000_0000, traverse the offset correction control switches of the DAC circuit (the third switch DAOS1~DAOS16), record the offset correction control code value corresponding to the DAC circuit output being converted to 0000_0000_0000 by the ADC circuit output, and immediately use this offset correction control code every time the DAC circuit enters the unity gain mode.

[0092] Step 0.4 Perform gain error correction on the DAC circuit.

[0093] Specifically, the calibration module 10 is adjusted to configure the reference voltage to 1 / 2 (VrefP - VrefN) (selecting the fourth VCSL1, with the other fourth switches off). The adjustable gain module 20 is adjusted to configure the gain of the DAC circuit to 1 (selecting the first switch GSL1, with the first switch GSL2 off).

[0094] Set the DAC circuit input code to 1111_1111_1111, iterate through the gain correction control switches of the DAC circuit (second switches DAGE1~DAGE4), record the gain correction control code value corresponding to when the DAC circuit output is converted to 1111_1111_1111 by the ADC circuit output, and immediately use this gain correction control code every time the DAC circuit enters unity gain mode.

[0095] It is important to note that the DAC circuit gain is adjustable. The above process only corrects the offset error of the DAC circuit under unity gain. This is because only the unity gain mode is the mode used by the DAC circuit in practical applications, so it is necessary to correct the gain and offset errors in the unity gain mode. The other two gain modes are only used in the correction method, and the correction process is not sensitive to gain and offset errors, so they do not need to be corrected.

[0096] Next, proceed to steps 1 through 3.

[0097] Preferably, the first minimum resolution is smaller than the second minimum resolution.

[0098] By making the minimum resolution of the DAC circuit smaller than that of the ADC circuit, one first digital value will correspond to multiple first input codes, thus achieving fine scanning of the single symbol width of the ADC circuit.

[0099] For example, the first minimum resolution is The second minimum resolution is .

[0100] Preferably, the error testing and correction method further includes: adjusting the output range of the DAC circuit, and generating multiple sets of first analog quantities by performing digital-to-analog conversion on multiple first input codes based on different output ranges through the DAC circuit, so that the multiple sets of first analog quantities cover the input range of the ADC circuit.

[0101] Preferably, the error testing and correction method further includes: adjusting the magnitude of the reference voltage through the correction module 10 to adjust the output range of the DAC circuit.

[0102] Preferably, the error testing and correction method further includes: adjusting the gain of the analog-to-digital conversion module through the adjustable gain module to adjust the minimum resolution of the DAC circuit.

[0103] Combination Figure 3 As shown, we will use a specific embodiment to illustrate how steps 1 to 3 of the correction method are implemented:

[0104] First, the DAC circuit is configured to a quarter gain using the adjustable gain unit (both the first switch GSL1 and the first switch GSL2 are turned on).

[0105] Next, the reference voltage values ​​are changed by the correction module 10 to 1 / 5 VrefP, 2 / 5 VrefP, 3 / 5 VrefP, and 4 / 5 VrefP respectively. At this point, under ideal conditions:

[0106] When Vcom = 1 / 5 VrefP, the output range of the VDAC circuit with all input codes is 0~1 / 4 VrefP;

[0107] When Vcom = 2 / 5 VrefP, the output range of the VDAC circuit with all input codes is 1 / 4 VrefP ~ 1 / 2 VrefP;

[0108] When Vcom = 3 / 5 VrefP, the output range of the VDAC circuit with all input codes is 1 / 2 VrefP ~ 3 / 4 VrefP;

[0109] When Vcom = 4 / 5 VrefP, the output range of the VDAC circuit with all input codes is 3 / 4 VrefP ~ VrefP.

[0110] Since the full-range calibration of the DAC circuit has been completed in the previous step, and the output voltage of the DAC circuit has been divided by 4 in this step, and the full coverage of the output analog quantity from 0 to Vref has been achieved by changing the reference voltage value, the DAC circuit can be regarded as an ideal 14-bit DAC circuit.

[0111] At each of the above reference voltage values, the first input code is made to traverse all values, and then the first analog quantity is converted into the first digital quantity through the ADC circuit.

[0112] Finally, if the ADC circuit has a DNL with an absolute value > 0.25 for a certain output code value, then the number of first input codes corresponding to this first digital value is no longer 4, but: 4 * DNL + 1. In other words, the DNL of all code values ​​of the ADC circuit can be calculated by the following formula: (number of corresponding first input codes) / 4 - 1.

[0113] After measuring the DNL corresponding to each first digital quantity using the above method, the ADC circuit can be calibrated using the DNL, ​​with a theoretical calibration effect of ±0.125. .

[0114] It is important to note that in actual circuit implementations, because the DAC circuit does not undergo gain and offset error correction at quarter gain, there may be output non-overlapping issues between the four reference voltage ranges mentioned above. This will prevent the DAC circuit from generating the input test voltages required for certain output codes of the ADC circuit, thus making it impossible to correct the output codes of the ADC circuit at these locations.

[0115] Combination Figure 4 This embodiment provides a solution: by adjusting the magnitude of the reference voltage through the correction module 10, the output range of the DAC circuit is adjusted, and each output range overlaps with the others.

[0116] For example, the output range is divided into five overlapping intervals:

[0117] By adjusting the resistance value of the second adjustable resistor unit 12, the reference voltages are respectively 1 / 6 VrefP, 2 / 6 VrefP, 3 / 6 VrefP, 4 / 6 VrefP, and 5 / 6 VrefP.

[0118] At this point, the output voltage of the DAC circuit theoretically overlaps in the five intervals, which can generate the analog input voltage required for all the output codes of the ADC circuit.

[0119] Through proper matching design, it can be ensured that even in the quarter-gain mode, where there are gain and offset errors, the magnitude of the gain offset error will not exceed the overlap area (also because there is an overlap area, and through proper design, the error is ensured to be within the overlap area, thus indicating that the quarter-gain mode does not require gain and offset voltage or additional correction).

[0120] In summary, we have completed the DNL calibration of the ADC circuit.

[0121] Example 3

[0122] Based on the same technical concept as described above, this embodiment provides a system calibration method, wherein the system includes a DAC circuit and an ADC circuit, and multiple ADC circuits are provided. The calibration method includes:

[0123] Put at least one ADC circuit into an idle state.

[0124] Based on the calibration method for ADC circuits described in Example 2, the DAC circuit in the idle state is calibrated.

[0125] The above-described calibration method allows for the sequential calibration of multiple ADC circuits, eliminating the need to wait for system idle time and ensuring that all ADC circuits on the field are in a state of "recently calibrated" at all times.

[0126] Example 4

[0127] Based on the same technical concept as described above, this embodiment provides a method for screening chips. Specifically, the screening method includes:

[0128] The ADC circuit is calibrated based on the calibration method for the ADC circuit described in Example 2.

[0129] Test the corrected error of the ADC circuit and select the ADC circuit based on the relationship between the corrected error and the threshold.

[0130] When testing the corrected error of the ADC circuit, the relevant steps in the error testing method for the ADC circuit in the above embodiments can be repeated.

[0131] Based on the above screening method, chips that have been calibrated but whose accuracy still does not meet the requirements can be screened out and are suitable for chip mass production testing.

[0132] Example 5

[0133] Based on the same technical concept as described above, this embodiment provides a processing module, which includes at least one processor and a memory. The memory stores instructions, and when the instructions are executed by at least one processor, the at least one processor performs the error testing and / or correction method for the ADC circuit as described in Embodiment 2.

[0134] Based on the same technical concept as described above, this embodiment provides a processing module, which includes at least one processor and a memory. The memory stores instructions, and when the instructions are executed by at least one processor, the at least one processor performs the correction method for the system as described in Embodiment 3.

[0135] Based on the same technical concept as described above, this embodiment provides a processing module, which includes at least one processor and a memory. The memory stores instructions, and when the instructions are executed by at least one processor, the at least one processor performs the chip screening method as described in Embodiment 4.

[0136] Example 6

[0137] Based on the same technical concept as described above, this embodiment provides a processing system, including a DAC circuit, an ADC circuit, and the processing module described in Embodiment 5.

[0138] In one embodiment, multiple ADC circuits are provided.

[0139] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0140] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0141] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0142] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0143] It will be apparent to those skilled in the art that this disclosure is not limited to the details of the exemplary embodiments described above, and that this disclosure can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of this disclosure is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this disclosure. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0144] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. An error testing method for ADC circuits, characterized in that, The error testing method includes: A first analog quantity is generated by performing digital-to-analog conversion on multiple first input codes based on a first minimum resolution using a DAC circuit. The first digital quantity is generated by performing analog-to-digital conversion on the first analog quantity using an ADC circuit based on the second minimum resolution. Based on the correspondence between the first digital quantity and the first input code, the error of the ADC circuit is obtained; Wherein, the error of the DAC circuit in converting the first input code does not exceed a first threshold.

2. The error testing method for ADC circuits according to claim 1, characterized in that, The first minimum resolution is less than the second minimum resolution; And / or, The error testing method further includes: adjusting the output range of the DAC circuit, and generating multiple sets of first analog quantities by performing digital-to-analog conversion on multiple first input codes based on different output ranges through the DAC circuit, so that the multiple sets of first analog quantities cover the input range of the ADC circuit.

3. The error testing method for ADC circuits according to claim 1, characterized in that, The DAC circuit includes a correction module and a digital-to-analog converter module. The correction module amplifies the reference voltage to generate the reference voltage required by the digital-to-analog converter module. The digital-to-analog converter module performs digital-to-analog conversion based on the input code and the reference voltage to generate an analog quantity. The error testing method further includes: adjusting the magnitude of the reference voltage through the correction module to adjust the output range of the DAC circuit.

4. The error testing method for ADC circuits according to claim 1, characterized in that, The DAC circuit includes an adjustable gain module and a digital-to-analog converter module, wherein the adjustable gain module is used to adjust the gain of the digital-to-analog converter module; The error testing method further includes: adjusting the gain of the digital-to-analog converter module through the adjustable gain module to adjust the minimum resolution of the DAC circuit.

5. A calibration method for an ADC circuit, characterized in that, The correction method includes: Based on the error testing method for ADC circuit according to any one of claims 1 to 4, the error of ADC circuit is obtained; The ADC circuit is corrected based on its error.

6. A calibration method for a system, characterized in that, The system includes a DAC circuit and an ADC circuit, wherein multiple ADC circuits are provided, and the correction method includes: To put at least one ADC circuit into an idle state; The calibration method for ADC circuits according to claim 5 is used to calibrate the ADC circuit in the idle state.

7. A method for screening chips, characterized in that, The screening method includes: Based on the calibration method for ADC circuits described in claim 5, the ADC circuit chip is calibrated; The calibrated error of the ADC circuit chip is tested, and the ADC circuit chip is screened based on the relationship between the calibrated error and the threshold.

8. A DAC circuit, characterized in that, The DAC circuit is applicable to the error testing method for an ADC circuit as described in any one of claims 1 to 4, or to the correction method for an ADC circuit as described in claim 5; and, The DAC circuit includes a correction module and a digital-to-analog converter module. The correction module amplifies the reference voltage to generate the reference voltage required by the digital-to-analog converter module. The digital-to-analog converter module performs digital-to-analog conversion based on the input code and the reference voltage to generate an analog quantity.

9. The DAC circuit according to claim 8, characterized in that, The correction module includes a second amplifier and a second adjustable resistor unit. The first input terminal of the second amplifier is connected to a first input voltage. The second input terminal and the output terminal of the second amplifier are connected to the second adjustable resistor unit to generate a reference voltage. The second adjustable resistor unit adjusts the magnitude of the reference voltage based on its own resistance value.

10. A DAC circuit, characterized in that, The DAC circuit is applicable to the error testing method for an ADC circuit as described in any one of claims 1 to 4, or to the correction method for an ADC circuit as described in claim 5; and, The DAC circuit includes an adjustable gain module and a digital-to-analog converter module, wherein the adjustable gain module is used to adjust the gain of the digital-to-analog converter module.

11. A processing module, characterized in that, include: At least one processor; as well as, The memory stores instructions that, when executed by the at least one of the processors, cause the at least one of the processors to perform an error testing method for an ADC circuit as described in any one of claims 1 to 4, or to perform a calibration method for an ADC circuit as described in claim 5.

12. A processing system, characterized in that, It includes a DAC circuit, an ADC circuit, and the processing module as described in claim 11.