A method and system for testing the linearity of analog-to-digital converters that can compensate for errors in analog input sources.
By generating a bias analog signal and performing secondary sampling, and then fitting it using the least squares method to offset the analog input source error, the problem of low efficiency in linearity testing of high-resolution analog-to-digital converters is solved, enabling efficient and low-cost mass production testing.
Patent Information
- Application Number
- CN202611465294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-17
AI Technical Summary
Existing methods for testing the linearity of analog-to-digital converters are inefficient, especially for high-resolution converters. They require high-purity analog signal sources and a large number of data samples, resulting in long testing times and high costs, making it difficult to meet mass production requirements.
An analog signal generation module is used to generate a bias analog signal. The analog input source error is offset by double sampling and least squares fitting, which reduces the dependence on high-precision analog signal source. The FPGA chip control module is used for data acquisition and processing, which reduces the number of test samples.
It significantly improves the efficiency of analog-to-digital converter linearity testing, reduces reliance on high-precision instruments and equipment, lowers testing costs, and is suitable for mass production testing.
Smart Images

Figure CN123122544A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of integrated circuit testing technology, specifically relating to a method and system for testing the linearity of analog-to-digital converters that can compensate for errors in analog input sources. Background Technology
[0002] Analog-to-digital converters (ADCs), as core components of mixed-signal systems, are widely used in remote sensing, aerospace, radar, missiles, biomedical engineering, seismic exploration, ultra-precision measurement, and many other fields. With industrial upgrading and increasing demands for ultra-high precision in sensors, the accuracy requirements for ADCs are also rising, particularly for SAR-type and... The accuracy of analog-to-digital converters (ADCs) based on their structure has been greatly improved, and 24-bit and even 32-bit ADC products have emerged in large numbers. This has placed higher demands on the testing of some parameters, especially linearity testing.
[0003] Currently, the main methods for testing the linearity of analog-to-digital converters include:
[0004] (1) Code density method, also known as histogram method, involves applying a full-scale sine wave or ramp wave, asynchronously sampling to obtain a large number of code values, and comparing the hit frequency of the output digital code by the statistical converter with the theoretical probability distribution of the ideal input signal to obtain the linearity value. Code density method testing usually needs to meet the following requirements: First, according to the IEEE Std 1241-2010 converter testing standard, the purity of the test signal needs to be 3 to 4 bits higher than that of the converter under test. For the already ultra-high resolution data converter, it is necessary to create an analog signal with even higher purity, which will make this work particularly difficult. In addition, in order to reduce statistical error, this method requires an extremely large data sample for ultra-high precision ADCs. Coupled with the low conversion rate of high precision ADCs, this makes the single test time reach tens of minutes or even several hours depending on the conversion rate. If this method is used for mass production testing, it will greatly affect the testing efficiency.
[0005] (2) The code-by-code method uses a high-precision analog source to apply an analog signal. A high-precision multimeter is connected to the analog input front end of the converter to calibrate the analog input signal. The voltage of each code value is collected and recorded. The coordinates of the point can be obtained by averaging multiple collections of a code value. All code values are connected to form the actual conversion curve, and then the linearity is obtained. This method can achieve the most realistic linearity of the converter. However, due to the large number of code values in high-resolution converters and the average sample required for each code value, the code-by-code method still requires a large number of data samples. In addition, the calibration time of the high-precision multimeter calibration equipment can be as high as 1 second per point. Therefore, the testing efficiency of this code-by-code method is even lower than that of the code density method.
[0006] (3) To improve testing efficiency, some special code values can be selected and collected using the above method, and then the actual conversion curve can be obtained by least squares fitting. Although the least squares fitting method can improve the testing efficiency of linearity, the system still requires an ultra-high purity analog signal source.
[0007] Therefore, in order to address the above problems, there is an urgent need for a method and system for testing the linearity of analog-to-digital converters that can offset the errors of analog input sources and significantly improve testing efficiency. Summary of the Invention
[0008] To address the shortcomings of existing technologies, this invention proposes a method and system for testing the linearity of analog-to-digital converters that can compensate for errors in analog input sources. The system includes: an analog signal generation module, a device under test (DUT) driving module, a digital signal acquisition and output module, a host computer, a power supply module, and an FPGA chip.
[0009] The analog signal generation module is used to generate a bias analog signal and input it into the analog-to-digital converter under test.
[0010] The device under test (DUT) driver module is used to drive the analog-to-digital converter under test (ADC) so that it operates in normal conversion mode.
[0011] The digital signal acquisition and output module is used to package, compile, and transmit the digital signal output by the analog-to-digital converter under test to the host computer.
[0012] The host computer receives the output digital signal of the analog-to-digital converter under test and processes and calculates it using an analog-to-digital converter linearity test algorithm that can cancel the error of the analog input source, thereby obtaining the linearity error of the analog-to-digital converter under test.
[0013] The power supply module is used to supply power to each module of the system;
[0014] The FPGA chip is used to initialize the analog signal generation module, control the module to generate a bias analog signal input to the analog-to-digital converter under test (ADC) and generate a trigger signal, control the ADC driver module to start, sample the output digital signal of the ADC under test and transmit it to the digital signal acquisition and output module after buffering.
[0015] Preferably, the analog signal generation module includes a first high-precision signal generation module, a second high-precision signal generation module, and a bias voltage superposition module. When the analog-to-digital converter under test (ADC) is a differential analog input type, the signals generated by the first high-precision signal generation module and the second signal generation module are processed by the bias voltage superposition module to obtain a bias analog signal, which is then input to the ADC driver module. When the ADC is a single-ended analog input type, the signal generated by the first high-precision signal generation module is processed by the bias voltage superposition module to obtain a bias analog signal, which is then input to the ADC driver module.
[0016] Preferably, the device under test (DUT) driving module includes a power supply module and a reference module; the power supply module provides a low-noise power supply for the DUT, and the reference module provides a low-noise reference voltage source for the DUT.
[0017] Preferably, the digital signal acquisition and output module includes a digital signal compilation and packaging module and a high-speed data transmission interface module. The digital signal compilation and packaging module acquires the output digital signal of the analog-to-digital converter under test and packages and decodes it. The high-speed data transmission interface module transmits the output digital signal to the host computer.
[0018] Preferably, when the analog-to-digital converter under test (ADC) is a single-ended analog input type, the process by which the host computer obtains the linearity error of the ADC under test includes:
[0019] By receiving the output digital signal of the analog-to-digital converter under test twice, two sets of transformation coordinates about the analog-to-digital converter under test are obtained.
[0020] Substitute the two sets of transformation coordinates of the analog-to-digital converter under test into the transformation polynomial equation of the analog-to-digital converter under test, solve for the coefficients of the transformation polynomial equation of the analog-to-digital converter under test, and fit the transformation curve of the analog-to-digital converter under test.
[0021] The linearity of the analog-to-digital converter under test (ADC) is obtained from its conversion curve.
[0022] Furthermore, the output digital signal of the analog-to-digital converter under test is the average of multiple output code values obtained by converting multiple input analog signal voltages.
[0023] Furthermore, the conversion polynomial equation of the analog-to-digital converter under test is expressed as:
[0024]
[0025] in, This indicates the output signal of the analog signal generation module. This represents the output digital signal of the analog-to-digital converter under test. This represents the coefficient of the nth term.
[0026] Preferably, it also includes a high-precision voltage calibration module, which is used to calibrate the analog voltage value of the actual input analog-to-digital converter under test.
[0027] A method for testing the linearity of an analog-to-digital converter that can compensate for errors in the analog input source includes the following steps:
[0028] S1: Generate analog voltage signal ;
[0029] S2: Superimpose the analog voltage signals respectively and The bias is used to generate the first bias analog voltage signal. Second bias analog voltage signal ;
[0030] S3: The analog-to-digital converter under test performs analog-to-digital conversion on the two bias analog voltage signals respectively, obtaining two conversion code values. and By combining the two bias analog voltage signals with their corresponding conversion code values, two sets of conversion coordinates for the analog-to-digital converter under test are obtained: , ;
[0031] S4: Substitute the two sets of transformation coordinates of the analog-to-digital converter under test into the transformation polynomial equation of the analog-to-digital converter under test, solve for the coefficients of the transformation polynomial equation of the analog-to-digital converter under test, and fit the transformation curve of the analog-to-digital converter under test.
[0032] S5: Obtain the linearity of the analog-to-digital converter under test based on its conversion curve.
[0033] The beneficial effects of this invention are as follows:
[0034] 1) This invention generates an analog source input voltage by applying different biases for secondary sampling and then performing difference calculations. The high-precision signal generation module generates the analog source input voltage. The difference is canceled out during the difference process, thereby reducing the nonlinear components and noise on the analog source, which lowers the requirements for high precision of the analog source and ultra-high purity of the input signal. This makes it possible to use an analog signal source made of a low bit-order DAC to test the linearity of a higher bit-order analog-to-digital converter under test.
[0035] 2) During the operation of the system of the present invention, some special code values can be selected for sampling and conversion to obtain conversion feature conversion coordinates in two samplings. The conversion curve of the analog-to-digital converter under test is obtained by fitting with the least squares method and the algorithm described above. This can greatly reduce the number of test sampling samples and thus significantly improve the test efficiency. It is very suitable for mass production testing.
[0036] 3) The system and testing algorithm of this invention can reduce the requirements for analog input sources, thereby reducing the overall cost of the testing system;
[0037] 4) Compared with the traditional code density method, the system of the present invention significantly reduces the number of data collection samples, reduces the requirements for system data storage and transmission, further improves its testing efficiency and reduces its actual cost.
[0038] 5) Compared with the code-by-code method, the test device involved in the system of the present invention is smaller in size. The FPGA chip, analog signal generation module, device under test driving module and digital signal acquisition and output module involved are all built with integrated circuits, without the need for high-precision instruments and equipment. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the linearity testing system for an analog-to-digital converter that can offset the error of the analog input source in this invention.
[0040] Figure 2 This is a schematic diagram of the first coordinate transformation in this invention;
[0041] Figure 3 This is a schematic diagram of the second coordinate transformation in this invention;
[0042] Figure 4 This is a schematic diagram illustrating the output code value / input voltage conversion curve in this invention;
[0043] Figure 5 This is a schematic diagram illustrating the input voltage / output code value conversion curve in this invention;
[0044] Figure 6 This is a schematic diagram of the high-precision signal generation module circuit in this invention;
[0045] Figure 7 This is a schematic diagram of the bias voltage superposition module circuit in this invention;
[0046] Figure 8 This is a flowchart of the test process for the analog-to-digital converter linearity test system that can compensate for analog input source errors in this invention. Detailed Implementation
[0047] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] This invention proposes a method and system for testing the linearity of analog-to-digital converters that can compensate for errors in analog input sources, such as... Figure 1 As shown, the system includes: an analog signal generation module 1, a device under test driving module 2, a digital signal acquisition and output module 3, a host computer 4, a power supply module 5, and an FPGA chip 6.
[0049] Analog signal generation module:
[0050] The analog signal generation module generates a bias analog signal, which can select to generate a single-ended or differential analog signal according to the characteristics of the analog-to-digital converter under test (ADC), providing an analog input signal to the ADC. It includes a first high-precision signal generation module 11, a second high-precision signal generation module 12, and a bias voltage superposition module 13. The high-precision signal generation module uses a high-precision signal generator built based on a high-precision DAC. To ensure the system is compatible with testing both single-ended and differential analog input ADCs, the system includes a first and a second high-precision signal generation module. When the ADC under test is a differential analog input type, the signals generated by the first and second signal generation modules pass through the bias voltage superposition module. This module superimposes a preset bias onto the generated analog signal before it enters the next-stage ADC driver module, serving as the analog input signal for the ADC and initiating the conversion. When the ADC under test is a single-ended analog input type, the signal generated by the first high-precision signal generation module is processed by the bias voltage superposition module before being input to the ADC driver module.
[0051] Device under test driver module:
[0052] The device under test (DUT) driver module is primarily used to drive the DUT analog-to-digital converter (ADC) to operate in normal conversion mode. It mainly includes a power supply module 21 and a reference module 22. The power supply module provides a low-noise power supply to the DUT, while the reference module provides the required low-noise reference voltage source. Furthermore, an FPGA chip acts as a controller to select the mode and drive the timing of the DUT, ensuring normal conversion. This converts the analog input signal generated by the analog signal generation module into a digital signal, which is then acquired by the FPGA chip according to the appropriate timing sequence and transmitted to the next-level digital signal acquisition and output module.
[0053] Digital signal acquisition and output module:
[0054] The digital signal acquisition and output module is used to package, compile, and transmit the digital signals output by the analog-to-digital converter under test (ADC) to the host computer. It mainly includes a digital signal compilation and packaging module 31 and a high-speed data transmission interface module 32. The digital signal compilation and packaging module acquires the digital signals output by the ADC under test, packages and decodes them, and then transmits the output digital signals to the host computer through the high-speed data transmission interface module. Furthermore, an FPGA chip acts as a controller to perform module control and timing drive for the digital signal acquisition and output module, ensuring high-speed signal communication between this module and the host computer.
[0055] Host computer:
[0056] The host computer receives the system output digital signal transmitted from the slave computer, parses the digital signal, and processes and calculates the digital signal using an analog-to-digital converter linearity test method that can offset the error of the analog input source, to obtain the actual conversion curve of the analog-to-digital converter under test, and then obtain the linearity error of the analog-to-digital converter under test.
[0057] This invention provides a method for testing linearity that can compensate for analog input source errors. The core of this method lies in fitting the conversion curve of the analog-to-digital converter (ADC) under test using quadratic sampling and the least squares method, thereby obtaining the linearity value. The method is described using a single-ended analog input ADC as an example (for differential ADCs, the same steps can be performed on both the P and N inputs, referring to the single-ended input method). The operation steps are as follows:
[0058] 1) such as Figure 2 As shown, the first high-precision signal generation module is controlled by the FPGA chip to generate a specified analog voltage signal, i.e. ;
[0059] 2) The voltage signal passes through the bias voltage superposition module and is superimposed for the first time. The bias is then used to proceed to the next level;
[0060] 3) The FPGA chip controls the device under test (DUT) driver module to drive the ADC conversion, and pairs the input voltage signals after biasing one by one. Perform the conversion to obtain the corresponding converted code value. ;
[0061] 4) such as Figure 3 As shown, the same specified analog voltage signal is generated again by controlling the first high-precision signal generation module through the FPGA chip. ;
[0062] 5) This voltage signal passes through the bias voltage superposition module, and the second superposition bias amount is: Proceed to the next level;
[0063] 6) The FPGA chip then controls the device under test (DUT) driver module to drive the ADC conversion, and pairs the input voltage signals after biasing them one by one. Perform the conversion to obtain the corresponding converted code value. .
[0064] The host computer already knows that the output of the analog signal generation module is the bias analog signal; based on the two receptions of the output digital signal of the analog-to-digital converter under test by the host computer, two sets of transformation coordinates about the analog-to-digital converter under test are obtained:
[0065]
[0066]
[0067] (7) The linearity error of the analog-to-digital converter under test is obtained by processing and calculating the linearity test method that can offset the error of the analog input source. The processing includes:
[0068] like Figure 4 As shown, based on the two sets of transformation coordinates above, the transformation curve of the analog-to-digital converter under test can be obtained using the following algorithm. The transformation curve can also be obtained through a polynomial. Describe the process if the coefficients of the polynomial are obtained. The conversion curve of the analog-to-digital converter under test can be obtained, and then the linearity error of the analog-to-digital converter under test can be obtained through the corresponding ADC linearity calculation method.
[0069] like Figure 5 As shown, the conversion curve of the analog-to-digital converter under test. Described as a function of the output code value y with respect to the input analog voltage x, the conversion curve of the analog-to-digital converter under test can also be described as a function of the input analog voltage x with respect to the output code value y, i.e. Described in polynomial form .
[0070] Conversion curve of the analog-to-digital converter under test The coordinates of the analog-to-digital converter under test can be obtained by two separate measurements. The calculation steps are as follows:
[0071] 1) Set the first superposition bias to Substituting the transformed coordinates into the polynomial:
[0072]
[0073] 2) Set the second superposition bias to Substituting the transformed coordinates into the polynomial:
[0074]
[0075] 3) Subtract the first polynomial from the second polynomial:
[0076]
[0077] 4) The coefficients can be solved by the polynomial equation system obtained after the difference is taken. The conversion curve of the analog-to-digital converter under test is obtained by fitting the curve, and then the linearity error of the analog-to-digital converter under test can be obtained by comparing it with the theoretical conversion curve.
[0078] In some preferred embodiments of the present invention, during the two-stage acquisition and conversion of coordinate points, multiple acquisitions and conversions can be performed on a given analog input voltage value. The resulting code values are then averaged to obtain... That is, the coordinates obtained after two samplings are respectively and Averaging the output code value can reduce random errors in the acquisition and conversion process, thereby improving the accuracy of linearity error.
[0079] Power supply module:
[0080] The power supply module is used to supply power to the various modules of the test system.
[0081] FPGA chip:
[0082] The FPGA chip is written in Verilog. The FPGA chip completes the initialization settings of the analog signal generation module, controls the module to generate the bias analog signal input to the analog-to-digital converter under test, and generates a trigger signal to control the driver module of the device under test to start the conversion. Then, it samples the data stream converted by the ADC under test, reads it into the FPGA chip, buffers it appropriately, and passes it to the next-level digital signal acquisition and output module, and drives the module to transmit the data stream to the host computer.
[0083] In some preferred embodiments of the present invention, the system further includes a high-precision voltage calibration module 7, typically constructed using an external high-precision multimeter. This module calibrates the analog voltage value of the actual input analog-to-digital converter under test (ADC). It communicates with a host computer using a communication protocol (typically USB, GPIB, etc.) to transmit the actual input analog voltage value to the host computer for subsequent measurement and calculation. Furthermore, the present invention can also eliminate the high-precision voltage calibration module after the initial initialization calibration of the analog signal generation module to improve testing efficiency.
[0084] In some preferred embodiments of the present invention, such as Figure 6 The diagram shows a high-precision signal generation module circuit built using Analog Devices' AD5791 chip as an example. It generates an analog input voltage range as needed, providing corresponding positive and negative reference inputs VREF+ and VREF-, which are then connected to the reference input terminal of the DAC chip after being driven by an operational amplifier. When the system is initialized or the FPGA chip receives the specified data acquisition completion flag signal K1, the FPGA chip sends a specified digital code and drives the timing sequence to cause the AD5791 chip to output the corresponding analog voltage, which is then driven by an operational amplifier to generate the corresponding analog input voltage signal. The operational amplifier used is the AD8675 from Analog Devices (ADI).
[0085] like Figure 7As shown, the bias voltage superposition module 13 can select different bias voltages via relays. The relays are controlled by the FPGA chip and can select different bias amounts. or When the bias voltage superposition module 13 receives the analog input voltage signal generated by the first high-precision signal generation module 11 or the second high-precision signal generation module 12... At this time, the input voltage signal can be superimposed with a bias through an adder circuit. or Then it is passed on to the next level.
[0086] like Figure 8 As shown, the overall workflow of the analog-to-digital converter linearity testing system of the present invention, which can compensate for analog input source errors, is as follows:
[0087] After the system starts, it first performs system initialization. This process mainly involves setting the internal buffer data of the FPGA chip 6, including setting the data acquisition length of the analog-to-digital converter (ADC) under test (DUT), initial relay configuration, DAC chip initialization configuration of the signal generation module, initialization configuration of the DUT, and configuration of the waiting time from data generation by the signal generation module to the start of conversion by the DUT. The data length of the DUT can be programmed and controlled according to the characteristics of the DUT. The FPGA chip controls the high-precision signal generation module to generate a specified input voltage signal. Both the first and second generation are driven under the same conditions, ensuring that the signal generation module generates the same specified analog voltage signal in both instances. The corresponding analog signals are generated sequentially, such as... Figure 6 As shown in the diagram; according to the initial relay configuration, Relay_1 controls the corresponding relay to close, and Relay_2 controls the corresponding relay to open, selecting the corresponding bias voltage. ;like Figure 7 As shown, the bias voltage superposition module superimposes the voltage signal generated by the signal generation module and the bias voltage. After the signal generation module is driven, it waits for the initialization set waiting time (during which the system has completed the signal generation and bias superposition process). The FPGA chip then drives the analog-to-digital converter under test (ADC) to start conversion. After the ADC completes the conversion, the FPGA chip acquires the converted data. The FPGA chip determines whether the data acquisition length set during initialization has been acquired, and then enters the data packet transmission stage. Otherwise, it issues a trigger signal K1, triggering the signal generation module to generate the next specified analog voltage signal. This process is repeated until the specified data length is acquired, and then the data packet transmission module transmits the coordinate information of the first acquired data to the host computer. The host computer determines whether the second sampling is complete. If only one sampling is completed, it issues a trigger signal K2, and the FPGA controls Relay_1 to open the corresponding relay and Relay_2 to close the corresponding relay, selecting the corresponding bias voltage. The above steps are repeated to complete the second coordinate information sampling. The host computer organizes the second sampled coordinate information and performs calculations based on the conversion curve acquisition algorithm described above. The linearity value of the analog-to-digital converter under test is obtained and output based on the conversion curve.
[0088] In summary, this invention provides a test system and corresponding test method for the linearity of analog-to-digital converters (ADCs) that can offset systematic errors of analog input sources and significantly improve test efficiency. Using this system and test method to test the linearity error of ADCs, theoretically, it is possible to use a digital-to-analog converter with a lower bit depth to test an ADC with a higher bit depth.
[0089] The above-described embodiments further illustrate the purpose, technical solution, and advantages of the present invention. It should be understood that the above-described embodiments are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made to the present invention within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A linearity testing system for an analog-to-digital converter capable of compensating for errors in analog input sources, characterized in that, include: Analog signal generation module, device under test driving module, digital signal acquisition and output module, host computer, power supply module and FPGA chip; The analog signal generation module is used to generate a bias analog signal and input it into the analog-to-digital converter under test. The device under test (DUT) driver module is used to drive the analog-to-digital converter under test (ADC) so that it operates in normal conversion mode. The digital signal acquisition and output module is used to package, compile, and transmit the digital signal output by the analog-to-digital converter under test to the host computer. The host computer receives the output digital signal of the analog-to-digital converter under test and processes and calculates it using an analog-to-digital converter linearity test method that can cancel the error of the analog input source, thereby obtaining the linearity error of the analog-to-digital converter under test. The power supply module is used to supply power to each module of the system; The FPGA chip is used to initialize the analog signal generation module, control the module to generate a bias analog signal input to the analog-to-digital converter under test (ADC) and generate a trigger signal, control the ADC driver module to start, sample the output digital signal of the ADC under test and transmit it to the digital signal acquisition and output module after buffering.
2. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 1, characterized in that, The analog signal generation module includes a first high-precision signal generation module, a second high-precision signal generation module, and a bias voltage superposition module. When the analog-to-digital converter under test (ADC) is a differential analog input type, the signals generated by the first high-precision signal generation module and the second signal generation module are processed by the bias voltage superposition module to obtain a bias analog signal, which is then input to the ADC driver module. When the ADC is a single-ended analog input type, the signal generated by the first high-precision signal generation module is processed by the bias voltage superposition module to obtain a bias analog signal, which is then input to the ADC driver module.
3. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 1, characterized in that, The device under test (DUT) driving module includes a power supply module and a reference module; the power supply module provides a low-noise power supply for the DUT, and the reference module provides a low-noise reference voltage source for the DUT.
4. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 1, characterized in that, The digital signal acquisition and output module includes a digital signal compilation and packaging module and a high-speed data transmission interface module. The digital signal compilation and packaging module acquires the output digital signal of the analog-to-digital converter under test and packages and decodes it. The high-speed data transmission interface module transmits the output digital signal to the host computer.
5. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 1, characterized in that, When the analog-to-digital converter under test (ADC) is a single-ended analog input type, the process by which the host computer obtains the linearity error of the ADC includes: By receiving the output digital signal of the analog-to-digital converter under test twice, two sets of transformation coordinates about the analog-to-digital converter under test are obtained. Substitute the two sets of transformation coordinates of the analog-to-digital converter under test into the transformation polynomial equation of the analog-to-digital converter under test, solve for the coefficients of the transformation polynomial equation of the analog-to-digital converter under test, and fit the transformation curve of the analog-to-digital converter under test. The linearity of the analog-to-digital converter under test (ADC) is obtained from its conversion curve.
6. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 5, characterized in that, The output digital signal of the analog-to-digital converter under test is the average of multiple output code values obtained by converting multiple input analog signal voltages.
7. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 5, characterized in that, The conversion polynomial equation of the analog-to-digital converter under test is expressed as: ; in, This indicates the output signal of the analog signal generation module. This represents the output digital signal of the analog-to-digital converter under test. This represents the coefficient of the nth term.
8. The analog-to-digital converter linearity testing system capable of compensating for analog input source errors according to claim 1, characterized in that, It also includes a high-precision voltage calibration module, which is used to calibrate the analog voltage value of the actual input analog-to-digital converter under test.
9. A method for testing the linearity of an analog-to-digital converter that can compensate for errors in analog input sources, characterized in that, Includes the following steps: S1: Generate analog voltage signal ; S2: Superimpose the analog voltage signals respectively and The bias is used to generate the first bias analog voltage signal. Second bias analog voltage signal ; S3: The analog-to-digital converter under test performs analog-to-digital conversion on the two bias analog voltage signals respectively, obtaining two conversion code values. and By combining the two bias analog voltage signals with their corresponding conversion code values, two sets of conversion coordinates for the analog-to-digital converter under test are obtained: , ; S4: Substitute the two sets of transformation coordinates of the analog-to-digital converter under test into the transformation polynomial equation of the analog-to-digital converter under test, solve for the coefficients of the transformation polynomial equation of the analog-to-digital converter under test, and fit the transformation curve of the analog-to-digital converter under test. S5: Obtain the linearity of the analog-to-digital converter under test based on its conversion curve.
