Successive approximation analog-to-digital converter capable of automatically adjusting full scale voltage and method

By adjusting the capacitor array and the adjustment control circuit, the full-scale voltage of the analog-to-digital converter is automatically adjusted successively, solving the problems in the existing technology that the full-scale voltage requires manual adjustment and is difficult to readjust, and achieves high precision and high Flexible voltage adjustment.

CN118740150APending Publication Date: 2024-10-01PIXART IMAGING INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310865366.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2023-07-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The full-scale voltage of existing successive approximation analog-to-digital converters needs to be manually adjusted, and it is difficult to readjust when system requirements change, and the adjustment mechanism is not easy to achieve high flexibility and accuracy.

Method used

The full-scale voltage is automatically adjusted by adjusting the capacitor array. The adjustment control circuit and capacitor adjustment code are used to perform the successive approximation conversion method based on the comparison signal and the reference voltage to achieve digital adjustment to ensure that the full-scale voltage reaches the preset target level. .

Benefits of technology

It achieves highly flexible full-scale voltage adjustment of the successive approximation analog-to-digital converter, avoiding the tedious process of manual adjustment. The adjustment results are not affected by temperature, and have better adjustment accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740150A_ABST
    Figure CN118740150A_ABST
Patent Text Reader

Abstract

The invention discloses a successive approximation analog-to-digital converter capable of automatically adjusting full scale voltage and a method. The successive approximation analog-to-digital converter comprises: at least one sub analog-to-digital converter for converting an input signal into a corresponding successive approximation register code; and the adjustment control circuit is used for adjusting the full scale voltage of each sub analog-to-digital converter to a corresponding preset target level in a full scale voltage adjustment mode. The adjustment control circuit generates an adjustment code to control an adjustment capacitor array coupled to each sub-analog-to-digital converter, thereby adjusting the full scale voltage. In a full scale voltage adjustment mode, the adjustment control circuit controls each sub analog-to-digital converter to convert a plurality of reference voltages, and extrapolates a conversion result to deduce a corresponding corrected full scale voltage. The adjustment control circuit determines whether the corrected full scale voltage reaches a target value and cyclically executes the adjustment step through a linear search method or a successive approximation register method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a successive approximation register analog-to-digital converter (SAR ADC), and more particularly to a successive approximation register analog-to-digital converter capable of automatically adjusting the full-scale voltage. The present invention also relates to a method for automatically adjusting the full-scale voltage of the successive approximation register analog-to-digital converter (SAR ADC). Background Art

[0002] Figure 1 FIG. 1 is a schematic diagram showing a known successive approximation analog-to-digital converter. Figure 1 As shown, a known successive approximation analog-to-digital converter (SAR ADC) 1001 includes: a sampling and holding circuit 110, a capacitive digital-to-analog converter 120, a comparator 130 and a successive approximation register (SAR) logic circuit 140. The successive approximation analog-to-digital converter 1001 converts the input signal Vin into an output code Dout by successively controlling the successive approximation register (SAR) code S_code. The full-scale voltage (full-scale voltage, VFS) of the successive approximation analog-to-digital converter 1001 is defined as: the maximum allowable input range of the input signal Vin under the condition that the digital output code of the successive approximation analog-to-digital converter is not saturated. The full-scale voltage of the successive approximation analog-to-digital converter 1001 is obtained through a front-end circuit group (wherein the front-end circuit group is, for example, composed of a sampling and holding circuit 110, a capacitive digital-to-analog converter 120, a comparator 130 and a plurality of reference voltages ( Figure 1 The full-scale voltage of the SAR ADC 1001 is determined by the voltage of the SAR ADC 1001 (not shown). Moreover, the full-scale voltage of the SAR ADC 1001 is affected by the variation of the components and the reference voltage. In applications requiring a high-precision full-scale voltage (e.g., a temperature sensor), and in applications using multi-channel SAR ADCs (where the full-scale voltages of multiple SAR ADCs must be well matched), the full-scale voltage must be manually tuned.

[0003] Figure 1 The disadvantage of the prior art SAR ADC 1001 is that in the prior art SAR ADC 1001 , the full-scale voltage must be adjusted manually, wherein the manual adjustment of the full-scale voltage is usually achieved by adjusting a plurality of reference voltages.

[0004] Figure 2Ais a schematic diagram showing another conventional 9-bit differential SAR ADC 1002 of a capacitive digital-to-analog converter (CDAC) that operates using a monotonic switching method or a switch-backswitching method. Figure 2B and Figure 2C The conventional switching procedures of the monotonic switching method and the switch-back switching method are shown respectively. The conventional successive approximation analog-to-digital converter (SAR ADC) 1002 comprises: a sampling and holding circuit 111, a capacitive digital-to-analog converter 121, a comparator 130 and a successive approximation register (SAR) logic circuit 140. The successive approximation analog-to-digital converter 1002 converts a differential input signal (Vinp-Vinn) into an output code Dout. Figure 2A As shown, the switching method of the successive approximation analog-to-digital converter 1002 can adopt a monotonic switching method or a switch-back switching method. When the switching method of the capacitive digital-to-analog converter 121 adopts the monotonic switching method, the capacitor C1 and the capacitor C2 (both of which are 8 bits) are respectively connected to the reference voltage Vr of the capacitive digital-to-analog converter 121. When the switching method of the capacitive digital-to-analog converter 121 adopts the switch-back switching method, the capacitor C1 and the capacitor C2 are respectively connected to the ground potential (Gnd).

[0005] like Figure 2B As shown, in the monotonic switching method, the common mode voltage Vcm received by the input terminal of the comparator changes from Vcm to Vr. The change of the common mode voltage Vcm causes the comparator 130 to have a dynamic offset value and a change of the parasitic capacitance value of the comparator 130, thereby affecting the linearity of the successive approximation analog-to-digital converter. In this case, the successive approximation analog-to-digital converter 1002 introduces a switchback switching method to reduce the change of the common mode voltage Vcm, thereby reducing the dynamic offset value of the comparator 130 and reducing the change of the parasitic capacitance value of the comparator 130.

[0006] Figure 1 The prior art successive approximation analog-to-digital converter 1001 is shown with Figure 2AThe disadvantage of the prior art SAR ADC 1002 is that in the structures of the two prior art capacitive DACs (120 and 121), the full-scale voltage depends on the reference voltage Vr of the capacitive DAC, wherein the reference voltage Vr is usually obtained via the bandgap reference voltage VBG. In addition, the full-scale voltage also depends on the component matching degree in the capacitive DAC 121 and the part-to-part variation of the capacitor array.

[0007] Based on the above, Figure 1 The prior art successive approximation analog-to-digital converter 1001 is shown with Figure 2A The disadvantage of the prior art SAR ADC 1002 is that when the system requirements change, the full-scale voltage requirements also need to change, and the capacitance value of the capacitive digital-to-analog converter 121 and the comparator 130 must be re-optimized to meet the new system requirements. In the switching structures of the capacitive digital-to-analog converters (120 and 121) of the above two prior art 1001 and 1002, the full-scale voltage is usually adjusted by manually optimizing the capacitance value of the input terminal of the capacitive digital-to-analog converter and the comparator or by adjusting the reference voltage Vr of the capacitive digital-to-analog converter 121. The disadvantage of the above mechanism for adjusting the full-scale voltage is that once the full-scale voltage is adjusted by the above mechanism, it will not be easy to re-adjust.

[0008] Compared with the prior art, the present invention aims at the deficiencies of the prior art and proposes an innovative circuit system, which can make the successive approximation analog-to-digital converter have a highly flexible full-scale voltage and the full-scale voltage of the present invention can be digitally adjusted. According to the present invention, an adjustment capacitor array is controlled to adjust the input capacitance value of the successive approximation analog-to-digital converter so that the present invention can automatically adjust the full-scale voltage. The main purpose of the present invention is to provide a simple and programmable full-scale voltage adjustment method, thereby replacing the cumbersome manual adjustment of the full-scale voltage used in the prior art. The full-scale voltage adjustment method proposed by the present invention also has the following advantages: the full-scale voltage adjustment method of the present invention is not affected by temperature and can achieve a better adjustment step size. Summary of the invention

[0009] In one aspect, the present invention provides a successive approximation register analog-to-digital converter (SAR ADC), comprising: at least one sub-ADC, wherein each sub-ADC in the at least one sub-ADC is used to convert an input signal into a corresponding successive approximation register (SAR) code; and a calibration control circuit, used to adjust a full-scale voltage (VFS) of each sub-ADC to a corresponding preset target level in a full-scale voltage calibration mode; wherein each sub-ADC in the at least one sub-ADC includes: a sampling and holding circuit, used to generate a sampling and holding signal by sampling and holding the input signal; a capacitive digital-to-analog converter (capacitive digital-to-analog converter); A capacitive digital-to-analog converter (CDAC) is provided for generating a digital-to-analog converter (DAC) output signal according to the successive approximation register code; a comparator is provided for comparing the sample-and-hold signal with the digital-to-analog converter output signal to generate a comparison signal; a successive approximation register logic circuit is provided for generating the successive approximation register code according to the comparison signal by a binary successive approximation register conversion method; and an adjustment capacitor array is coupled to an output terminal of the capacitive digital-to-analog converter, wherein the adjustment capacitor array is used to adjust an equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter; wherein in the full-scale voltage adjustment mode, the adjustment control circuit is used to generate a capacitance adjustment code, and adjust the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter according to the capacitance adjustment code, so as to adjust the full-scale voltage of each sub-analog-to-digital converter in the at least one sub-analog-to-digital converter to the corresponding preset target level according to the following steps: Step S100: Setting the capacitance adjustment code to an initial value Capacitor calibration code; step S201: adjusting the input signal to a plurality of reference voltages; step S202: controlling each sub-analog-to-digital converter to convert the plurality of reference voltages into a corresponding plurality of digital reference codes; step S203: extrapolating the plurality of pairs of the plurality of reference voltages and the plurality of digital reference codes to obtain a calibrated full-scale voltage corresponding to the capacitor calibration code; step S300: determining whether a difference value between the calibrated full-scale voltage and a preset full-scale voltage level reaches a target value, wherein if the difference value reaches the target value, proceeding to step S800, otherwise proceeding to step S400; step S400: updating the capacitor calibration code according to the difference value, and returning to step S201;Step S800: storing the capacitance calibration code so that each sub-ADC operates in a normal operation mode under the condition of the full-scale voltage having the preset target level. ;

[0010] In one embodiment, the step of updating the capacitance calibration code is implemented by a linear search method or a binary successive approximation method.

[0011] In one embodiment, the number of the reference voltages is equal to or greater than three.

[0012] In one embodiment, the step S203 further includes the following steps: extrapolating the multiple reference voltages of the multiple pairs and the multiple digital reference codes to obtain an offset value (offset) of the successive approximation analog-to-digital converter corresponding to the capacitance calibration code; wherein after the offset value of the successive approximation analog-to-digital converter is compensated, the calibration full-scale voltage is obtained by extrapolation.

[0013] In one embodiment, the adjustment capacitor array includes: a plurality of binary-weighted capacitors which are controlled by a capacitance adjustment code.

[0014] In one embodiment, the calibration full-scale voltage decreases as the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter increases.

[0015] In one embodiment, the plurality of reference voltages are arranged in an arithmetic progression.

[0016] In one embodiment, one of the reference voltages is 0V.

[0017] In one embodiment, all of the reference voltages are less than the preset full-scale voltage level.

[0018] In one embodiment, each of the at least one sub-ADC is configured to operate by a monotonic switching method or a switch-back switching method.

[0019] In another aspect, the present invention provides a method for automatically adjusting a full-scale voltage of a successive approximation analog-to-digital converter (SARADC), wherein the SARADC comprises: a sample-and-hold circuit for generating a sample-and-hold signal by sampling and holding the input signal; a capacitive digital-to-analog converter (CDAC) for generating a digital-to-analog converter (DAC) output signal according to the SARADC code; a comparator for comparing the sample-and-hold signal with the DAC output signal to generate a comparison signal; and a SARADC logic circuit for converting the sample-and-hold signal to the DAC output signal by a binary successive approximation register conversion method. The method comprises the following steps: providing a full-scale voltage adjustment device, which is controlled by a capacitance adjustment code, wherein the full-scale voltage adjustment device is used to adjust the full-scale voltage of the successive approximation analog-to-digital converter; and generating the capacitance adjustment code to control the full-scale voltage adjustment device, thereby adjusting the full-scale voltage of the successive approximation analog-to-digital converter to a preset target level in a full-scale voltage adjustment mode according to the following steps: step S100: setting the capacitance adjustment code to an initial capacitance adjustment code; step S201: adjusting the input signal to a plurality of reference voltages; step S202: controlling each sub-analog-to-digital converter to adjust the plurality of A reference voltage is converted into a corresponding plurality of digital reference codes; step S203: interpolating the plurality of pairs of the plurality of reference voltages and the plurality of digital reference codes to obtain a calibrated full-scale voltage corresponding to the capacitor calibration code; step S300: determining whether a difference value between the calibrated full-scale voltage and a preset full-scale voltage level reaches a target value, wherein if the difference value reaches the target value, proceeding to step S800, otherwise proceeding to step S400; step S400: updating the capacitor calibration code according to the difference value, and returning to step S201; step S800: storing the capacitor calibration code so that each sub-analog-to-digital converter operates in a normal operation mode under the condition of the full-scale voltage having the preset target level.

[0020] In one embodiment, the step S203 further includes the following steps: extrapolating the multiple reference voltages of the multiple pairs and the multiple digital reference codes to obtain an offset value (offset) of the successive approximation analog-to-digital converter corresponding to the capacitance calibration code; wherein after the offset value of the successive approximation analog-to-digital converter is compensated, the calibration full-scale voltage is obtained by extrapolation.

[0021] In one embodiment, the full-scale voltage adjustment device includes: a plurality of binary-weighted capacitors controlled by a capacitor calibration code.

[0022] In one embodiment, the SAR ADC is configured to operate via a monotonic switching method or a switch-back switching method.

[0023] The following will be described in detail through specific embodiments to make it easier to understand the purpose, technical content, characteristics and effects achieved by the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a schematic diagram showing a conventional successive approximation analog-to-digital converter.

[0025] Figure 2A FIG. 4 is a schematic diagram showing another known successive approximation analog-to-digital converter.

[0026] Figure 2B and Figure 2C The switching procedures of the monotonic switching method and the switch-back switching method are respectively displayed.

[0027] Figure 3 is a block diagram showing a successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage according to an embodiment of the present invention.

[0028] Figure 4A is a schematic diagram showing a successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage according to a specific embodiment of the present invention.

[0029] Figure 4B The transfer function curve of the capacitor array is shown under a typical process corner (where the transfer function curve shows the relationship between the full-scale voltage and the capacitance calibration code), and, Figure 4B The two extreme process variation boundaries are shown at -40℃, low speed-slow speed (SS), and 125℃, high speed-high speed (FF).

[0030] Figure 5 FIG. 4 is a table showing simulation results of a differential successive approximation analog-to-digital converter capable of automatically adjusting full-scale voltage according to an embodiment of the present invention.

[0031] Figure 6 is a schematic diagram showing a reference voltage generator according to an embodiment of the present invention.

[0032] Fig. 7A is a flow chart showing an algorithm for automatically adjusting the full-scale voltage according to an embodiment of the present invention.

[0033] Figure 7B FIG. 4 is an extrapolated curve of the transfer function of the full-scale voltage when the capacitance calibration code = 0111 according to an embodiment of the present invention.

[0034] Figure 8 FIG. 1 is a general block diagram showing a case where a SAR analog-to-digital converter capable of automatically adjusting full-scale voltage is implemented in a multi-channel SAR analog-to-digital converter according to an embodiment of the present invention.

[0035] Explanation of symbols in the figure

[0036] 1001, 1002: Successive approximation analog-to-digital converter

[0037] 110, 111: Known sample-and-hold circuit

[0038] 120, 121: Known capacitive digital-to-analog converter

[0039] 130: Known comparator

[0040] Vr: known reference voltage

[0041] 1003, 1004: Successive Approximation Analog-to-Digital Converter (SAR ADC)

[0042] 1008: Single-channel or multi-channel successive approximation analog-to-digital converter (SAR ADC)

[0043] 140: Successive Approximation Register (SAR) Logic Circuit

[0044] 310: Reference voltage generator

[0045] 311: Voltage Buffer

[0046] 312: Resistive voltage divider

[0047] 320, 321, 322: Adjust capacitor array

[0048] 330: Adjustment of control circuit

[0049] 340: Successive Approximation Register (SAR) Logic Circuit

[0050] 350, 351, 352: Capacitive Digital-to-Analog Converter (CDAC)

[0051] 360, 361, 362: Sample and hold circuit

[0052] 370: Comparator

[0053] 30_1, 30_N: Sub-analog-to-digital converter (sub-ADC)

[0054] C_Code: Capacitor calibration code

[0055] C1, C2: capacitors

[0056] CPO: Comparison signal

[0057] Dout, Dout_1, Dout_N: output code

[0058] Gnd: Ground potential

[0059] S0, Sn: switch

[0060] S_code: Successive Approximation Register (SAR) code

[0061] Sdac: Digital-to-analog converter (DAC) output signal

[0062] Ssh: Sample-and-hold signal

[0063] Stst: Input test signal

[0064] VBG: Bandgap voltage

[0065] Vcm: common mode voltage

[0066] VFS0, VFS1, VFS2: Full scale voltage

[0067] Vin, Vin_1, Vin_N: input signal

[0068] Vinp, Vinn: input signal

[0069] Vref: reference voltage DETAILED DESCRIPTION

[0070] The drawings in the present invention are all schematic, and are mainly intended to show the coupling relationship between various circuits and the relationship between various signal waveforms. The circuits, signal waveforms and frequencies are not drawn according to scale.

[0071] Figure 3 FIG. 1 is a block diagram of a successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage according to an embodiment of the present invention. Figure 3As shown, the successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage includes: a reference voltage generator 310, an adjustment capacitor array 320, an adjustment control circuit 330, a successive approximation register (SAR) logic circuit 340, a capacitive digital-to-analog converter (CDAC) 350, a sample-and-hold circuit 360, and a comparator 370.

[0072] The sampling and holding circuit 360 is used to generate a sampling and holding signal Ssh by sampling and holding the input signal Vin. The capacitive digital-to-analog converter 350 is used to generate a digital-to-analog converter (DAC) output signal Sdac according to a successive approximation register code S_code generated by a successive approximation register (SAR) logic circuit 340. The comparator 370 is used to compare the sampling and holding signal Ssh with the digital-to-analog converter output signal Sdac to generate a comparison signal CPO. The successive approximation register logic circuit 340 is used to generate a successive approximation register code S_code according to the comparison signal CPO by a binary successive approximation register conversion method. The adjustment capacitor array 320 is coupled to the output end of the capacitive digital-to-analog converter 350, wherein the adjustment capacitor array 320 is used to adjust the equivalent capacitance value of the output end of the capacitive digital-to-analog converter 350. In the full-scale voltage adjustment mode, the adjustment control circuit 330 is used to generate the capacitance adjustment code C_Code to control the adjustment capacitor array 320, thereby adjusting the equivalent capacitance value of the output end of the capacitive digital-to-analog converter 350, so as to adjust the full-scale voltage of the successive approximation analog-to-digital converter 1003 to a preset target level.

[0073] The reference voltage generator 310 is used to generate an input test signal Stst having a plurality of preset voltage reference levels, wherein the input test signal Stst is used to adjust the full-scale voltage in the full-scale voltage adjustment mode. According to the present invention, the present invention can adjust the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter 350 by adjusting the adjustment capacitor array 320, thereby adjusting the full-scale voltage. In one embodiment, the full-scale voltage decreases as the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter 350 increases.

[0074] The calibration control circuit 330 controls the reference voltage generator 310 and the adjustment capacitor array 320 through a full-scale voltage calibration algorithm. The detailed features of the full-scale voltage calibration algorithm executed by the adjustment capacitor array 320, the reference voltage generator 310, and the calibration control circuit 330 will be described in detail in the subsequent embodiments.

[0075] Figure 4A FIG. 1 is a schematic diagram showing a successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage according to a specific embodiment of the present invention. Figure 4A As shown, the SAR ADC 1004 capable of automatically adjusting the full-scale voltage of the present embodiment is implemented as a differential SAR ADC. The sampling and holding circuit of the SAR ADC 1004 includes: a sampling and holding circuit 361 and a sampling and holding circuit 362. The capacitive digital-to-analog converter of the SAR ADC 1004 includes: a capacitive digital-to-analog converter 351 and a capacitive digital-to-analog converter 352. In one embodiment, the adjustment capacitor array (321 or 322) of the SAR ADC 1004 includes: a plurality of capacitors and a plurality of NMOS switches. In a preferred embodiment, the plurality of capacitors are binary-weighted capacitors, wherein the binary-weighted capacitors are controlled, for example, by a 4-bit binary capacitor tuning code C_Code. The capacitance adjustment code C_Code controls multiple capacitors to be effectively or ineffectively coupled to the output terminals of the capacitance digital-to-analog converters (351 and 352), thereby adjusting the equivalent capacitance values ​​of the output terminals of the capacitance digital-to-analog converters (351 and 352).

[0076] Figure 4B The transfer function curve of the capacitor array is shown under the typical process variation boundary (wherein the transfer function curve shows the relationship between the full-scale voltage and the capacitance calibration code), and, Figure 4B Two extreme process variation boundaries are shown under -40°C, low speed-slow speed (SS), and 125°C, high speed-high speed (FF) conditions. In one embodiment, the relationship between the capacitance calibration code C_Code and the full-scale voltage is a monotonic transfer function curve and the transfer function curve has a 4-bit 16-level capacitance calibration code C_Code. In this embodiment, since the total effective capacitance (total effective capacitance) of the output terminal coupled to the adjustment capacitance digital-to-analog converter (351 and 352) increases with the increase of the capacitance calibration code C_Code, the full-scale voltage decreases monotonically with the increase of the capacitance calibration code C_Code.

[0077] Figure 51 is a table showing simulation results of a differential successive approximation analog-to-digital converter capable of automatically adjusting the full-scale voltage according to an embodiment of the present invention. Figure 5 It can be seen that under three different process variation boundaries, namely: 25℃, TT (typical-typical), 40℃, SS and 125℃, FF, the corresponding three full-scale voltage adjustment ranges (i.e.: VFSmax-VFSmin) are completely consistent, that is, the adjustment ranges of the three full-scale voltages are all 70mV. In addition, according to Figure 5 , it can be seen that in the case of crossing the extreme process variation boundary, the corresponding (VFSmax-VFSmin) / VBG ratios are also completely consistent, that is, the three (VFSmax-VFSmin) / VBG ratios are between 6.08% and 6.27% (where VBG refers to the bandgap reference voltage). In order to increase the accuracy of the full-scale voltage adjustment, more adjustment bits can be implemented, thereby having a finer adjustment step. "Check the table"

[0078] Figure 6 3 is a schematic diagram showing a reference voltage generator according to an embodiment of the present invention. In one embodiment, the reference voltage generator 310 includes: a voltage buffer 311 and a resistive voltage divider 312. An input terminal of the voltage buffer 311 receives, for example, a bandgap reference voltage VBG. The resistive voltage divider 312 is used to generate a plurality of reference voltages (for example: Vref*3 / 4, Vref / 2, Vref / 4, 0V). In a preferred embodiment, the plurality of reference voltages are arranged in an arithmetic progression. In one embodiment, all of the plurality of reference voltages are less than a preset full-scale voltage level.

[0079] In the present invention, Figure 6 The reference voltage generator 310 is designed to generate an input test signal Stst at the input end of the sample and hold circuit (360, 361 and 362), thereby performing an automatic adjustment function of the full-scale voltage. In the full-scale voltage adjustment mode, by controlling the switches S0-Sn, the adjustment control circuit 330 can set the input test signal Stst, wherein the level of the input test signal Stst can be Figure 6The multiple values ​​selected from the n+1 selectable reference voltages 0V to Vref / 2 are shown. In order to more accurately estimate the offset value of the successive approximation analog-to-digital converter and to more accurately extrapolate the value of the full-scale voltage, ideally, the number of reference voltage points (i.e., multiple values ​​of the input test signal Stst) should be at least three reference voltage points with different levels. By increasing the number of reference voltage points, the present invention can increase the accuracy of the extrapolated full-scale voltage. During the full-scale voltage adjustment mode, the adjustment control circuit 330 turns on the reference voltages corresponding to the switches S0 to Sn respectively through the switches S0 to Sn. As a result, in this case, the present invention can determine the final full-scale voltage that has been adjusted by a transfer function curve of the analog-to-digital converter extrapolated according to the full-scale voltage adjustment algorithm, wherein the above-mentioned full-scale voltage adjustment algorithm will be described in detail in the next embodiment.

[0080] Fig. 7A is a flow chart showing an algorithm for automatically adjusting the full-scale voltage according to an embodiment of the present invention. Figure 7B 1 is an extrapolated curve of the full-scale voltage transfer function when the capacitance calibration code = 0111 according to an embodiment of the present invention. In one embodiment, the full-scale voltage calibration algorithm first sets the adjustment capacitor array to an initial capacitance calibration code (step S100). For example, Fig. 7A In step S100, the full-scale voltage calibration algorithm sets the capacitance calibration code C_Code to an intermediate code of a 4-bit 16-level binary code, wherein the intermediate code of the 4-bit 16-level binary code is "0111" (i.e., the 7th level). Once the capacitance calibration code C_Code has been set to the initial capacitance calibration code, the full-scale voltage calibration algorithm can start switching the input test signal Stst to at least three reference voltage points (e.g., Figure 7B Thus, the output code Dout of the SAR analog-to-digital converter corresponds to the initial transfer function curve between the reference voltages (ie, as shown in FIG. Figure 7B Curve 1 shown in FIG. 1 (shown as a solid curve) can be extrapolated based on the relationship between the three pairs of digital reference codes and the reference voltage points. In the full-scale voltage adjustment mechanism, the output code Dout of the successive approximation analog-to-digital converter can be regarded as a "digital reference code". In this way, through the extrapolated initial transfer function curve, the full-scale voltage corresponding to the capacitance adjustment code C_Code can be estimated and determined (in this case, the full-scale voltage = VFS0) (step S200). Figure 7BAs shown, the offset error of the SAR ADC can also be determined and compensated (i.e., Curve 2, shown as a dotted line curve). Since the offset error of the SAR ADC is compensated, the full-scale voltage is shifted from VFS0 of Curve 1 to VFS1 of Curve 2.

[0081] In one embodiment, once the full-scale voltage has been determined by the capacitance calibration code C_Code, the next decision step of the full-scale voltage calibration algorithm is to determine whether the full-scale voltage reaches the target value (step S300). If the full-scale voltage does not reach the target value of the full-scale voltage, the current capacitance calibration code C_Code is adjusted down or up according to whether the full-scale voltage is higher or lower than the target value of the full-scale voltage to update the capacitance calibration code C_Code (steps S400, S500 and S600). The full-scale voltage calibration algorithm will repeat the above procedure (i.e., after step S500 or step S600, return to step S200) until the full-scale voltage reaches the target value of the full-scale voltage required by the system. The full-scale voltage calibration algorithm of the present invention discloses that the full-scale voltage can be accurately determined and accurately calibrated to the target value of the full-scale voltage by extrapolating the transfer function curve of the full-scale voltage. When the calibrated full-scale voltage reaches the target value, the final capacitance calibration code C_Code can be digitally stored in a memory or register (step S800). When the SAR ADC has the final capacitance calibration code C_Code, the SAR ADC can perform analog-to-digital conversion according to the input signal Vin (Vinp, Vinn) in a normal operation mode. Figure 7B As shown, the curve 3 drawn with a long dashed line shows that by cyclically executing Fig. 7A The search steps shown in the figure are to automatically adjust the transfer function curve of the full-scale voltage with the final capacitance adjustment code C_Code. In this embodiment, curve 3 adjusts the full-scale voltage to the target value VFS2. In this embodiment, VFS2 is higher than VFS1.

[0082] It is worth noting that if the offset error of the SAR ADC is compensated by other means before the full-scale voltage is adjusted, the step of estimating and compensating the offset error of the SAR ADC described in step S200 can be omitted. Fig. 7A The flowchart shown corresponds to an embodiment of a binary successive approximation method for adjusting the full-scale voltage. However, the flowchart of the method for adjusting the full-scale voltage can also be implemented by other search methods, such as a linear search method.

[0083] Figure 8The invention is a generalized block diagram of a successive approximation analog-to-digital converter that can automatically adjust the full-scale voltage according to an embodiment of the present invention, which can be expanded to a multi-channel successive approximation analog-to-digital converter (1008). The successive approximation analog-to-digital converter 1008 includes: a sub-analog-to-digital converter 30_1 to a sub-analog-to-digital converter 30_N, where N is a positive integer. In other words, the successive approximation analog-to-digital converter 1008 can be a single-channel successive approximation analog-to-digital converter or a multi-channel successive approximation analog-to-digital converter. The analog-to-digital converter 30_1 to the sub-analog-to-digital converter 30_N are used to convert the input signal Vin_1 to the input signal Vin_N into the corresponding successive approximation analog-to-digital converter output digital codes Dout_1 to Dout_N. Figure 8 The block diagram shows that when the SAR 1008 is implemented as a multi-channel SAR DAC architecture, the SAR of each channel can share the reference voltage generator 310 and the calibration control circuit 330. On the other hand, the SAR of each channel needs to be configured with its own adjustment capacitor array (320). Specifically, the adjustment capacitor array (320) of each SAR of each channel is paired with the capacitive digital-to-analog converter (351, 352) of each sub-SAR converter (30_1-30_N).

[0084] It should be noted that, according to the present invention, Figure 3 , Figure 4 and Figure 8 The capacitive digital-to-analog converters shown in each example (i.e.: Figure 3 The capacitive digital-to-analog converter 350 shown in FIG. Figure 8 The capacitive digital-to-analog converter 351 and the capacitive digital-to-analog converter 352 shown in the figure can be a simple binary-weighted capacitor array or can be Figure 2A The array of conventional capacitive digital-to-analog converters 121 is shown, wherein Figure 2A The array of conventional capacitive digital-to-analog converters 121 shown may be implemented using Figure 2B and Figure 2C The monotonic switching method or the switch-back switching method shown.

[0085] The present invention has been described above with respect to the preferred embodiment, but the above description is only to make it easy for those skilled in the art to understand the content of the present invention, and is not used to limit the scope of the rights of the present invention. The various embodiments described are not limited to individual applications, but can also be used in combination. For example, two or more embodiments can be used in combination, and part of the components in one embodiment can also be used to replace the corresponding components in another embodiment. In addition, under the same spirit of the present invention, those skilled in the art can think of various equivalent changes and various combinations. For example, the present invention refers to "processing or calculating or generating an output result according to a certain signal", which is not limited to the signal itself, but also includes, when necessary, converting the signal to voltage and current, current and voltage, and / or ratio conversion, and then processing or calculating according to the converted signal to generate an output result. It can be seen that under the same spirit of the present invention, those skilled in the art can think of various equivalent changes and various combinations, and there are many combinations, which are not listed one by one here. Therefore, the scope of the present invention should cover the above and all other equivalent changes.

Claims

1. A successive approximation analog-to-digital converter, comprising: At least one sub-analog-to-digital converter, wherein each sub-analog-to-digital converter in the at least one sub-analog-to-digital converter is used to convert an input signal into a corresponding successive approximation register code; and A calibration control circuit, used for adjusting a full-scale voltage of each sub-analog-to-digital converter to a corresponding preset target level in a full-scale voltage calibration mode; Each of the at least one analog-to-digital converter sub-converters comprises: a sample-and-hold circuit for generating a sample-and-hold signal by sampling and holding the input signal; a capacitive digital-to-analog converter, configured to generate a digital-to-analog converter output signal according to the successive approximation register code; a comparator for comparing the sample-and-hold signal with the digital-to-analog converter output signal to generate a comparison signal; a successive approximation register logic circuit for generating the successive approximation register code according to the comparison signal by a binary successive approximation conversion method; and An adjustment capacitor array coupled to an output terminal of the capacitive digital-to-analog converter, wherein the adjustment capacitor array is used to adjust an equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter; In the full-scale voltage adjustment mode, the adjustment control circuit is used to generate a capacitance adjustment code, and the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter is adjusted according to the capacitance adjustment code, so as to adjust the full-scale voltage of each sub-analog-to-digital converter in the at least one sub-analog-to-digital converter to the corresponding preset target level according to the following steps: Step S100: setting the capacitance calibration code as an initial capacitance calibration code; Step S201: adjusting the input signal to a plurality of reference voltages; Step S202: Control each of the analog-to-digital sub-converters to convert the multiple reference voltages into corresponding multiple digital reference codes; Step S203: extrapolating the plurality of reference voltages of the plurality of pairs with the plurality of digital reference codes to obtain a calibrated full-scale voltage corresponding to the capacitance calibration code; Step S300: determining whether a difference between the calibrated full-scale voltage and a preset full-scale voltage level reaches a target value, wherein if the difference reaches the target value, proceeding to step S800, otherwise proceeding to step S400; Step S400: updating the capacitance calibration code according to the difference value, and returning to step S201; Step S800: storing the capacitance calibration code so that each sub-ADC operates in a normal operation mode when the full-scale voltage has the preset target level.

2. The successive approximation analog-to-digital converter of claim 1, wherein: The step of updating the capacitance calibration code is implemented by a linear search method or a binary successive approximation method.

3. The successive approximation analog-to-digital converter of claim 1, wherein: The number of the plurality of reference voltages is equal to or greater than three.

4. The successive approximation analog-to-digital converter of claim 1, wherein: The step S203 also includes the following steps: Extrapolating the plurality of reference voltages of the plurality of pairs with the plurality of digital reference codes to obtain an offset value of the successive approximation analog-to-digital converter corresponding to the capacitance calibration code; After the offset value of the successive approximation analog-to-digital converter is compensated, the corrected full-scale voltage is obtained by extrapolation.

5. The successive approximation analog-to-digital converter of claim 1, wherein: The adjustment capacitor array includes: A plurality of binary weighted capacitors are controlled by a capacitance tuning code.

6. The successive approximation analog-to-digital converter of claim 1, wherein: The calibrated full-scale voltage decreases as the equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter increases.

7. The successive approximation analog-to-digital converter of claim 1, wherein: The plurality of reference voltages are arranged in an arithmetic progression.

8. The successive approximation analog-to-digital converter of claim 7, wherein: One of the reference voltages is 0V.

9. The successive approximation analog-to-digital converter of claim 1, wherein: The plurality of reference voltages are all less than the preset full-scale voltage level.

10. The successive approximation analog-to-digital converter of claim 1, wherein: Each of the at least one sub-ADC is used to operate by a monotonic switching method or a one-way switching method.

11. A method for automatically adjusting a full-scale voltage of a successive approximation analog-to-digital converter, wherein the successive approximation analog-to-digital converter comprises: a sampling and holding circuit for generating a sampling and holding signal by sampling and holding the input signal; a capacitive digital-to-analog converter for generating a digital-to-analog converter output signal according to the successive approximation register code; a comparator for comparing the sampling and holding signal with the digital-to-analog converter output signal to generate a comparison signal; and a successive approximation register logic circuit for generating the successive approximation register code according to the comparison signal by a binary successive approximation conversion method; the method comprises the following steps: Providing a full-scale voltage adjustment device, which is controlled by a calibration code, wherein the full-scale voltage adjustment device is used to adjust the full-scale voltage of the successive approximation analog-to-digital converter; and The calibration code is generated to control the full-scale voltage adjustment device, thereby adjusting the full-scale voltage of the successive approximation analog-to-digital converter to a preset target level according to the following steps in a full-scale voltage calibration mode: Step S100: setting the calibration code as an initial calibration code; Step S201: adjusting the input signal to a plurality of reference voltages; Step S202: Control the successive approximation analog-to-digital converter to convert the plurality of reference voltages into corresponding plurality of digital reference codes; Step S203: extrapolating the multiple reference voltages of the multiple pairs with the multiple digital reference codes to obtain a calibrated full-scale voltage corresponding to the calibration code; Step S300: determining whether a difference between the calibrated full-scale voltage and a preset full-scale voltage level reaches a target value, wherein if the difference reaches the target value, proceeding to step S800, otherwise proceeding to step S400; Step S400: updating the calibration code according to the difference value, and returning to step S201; Step S800: storing the calibration code so that each sub-ADC operates in a normal operation mode when the full-scale voltage has the preset target level.

12. The method of claim 11, wherein: The step of updating the calibration code is implemented by a linear search method or a binary successive approximation method.

13. The method of claim 11, wherein: The number of the plurality of reference voltages is equal to or greater than three.

14. The method of claim 11, wherein: The step S203 also includes the following steps: Extrapolating the plurality of reference voltages of the plurality of pairs with the plurality of digital reference codes to obtain an offset value of the SAR analog-to-digital converter corresponding to the calibration code; After the offset value of the successive approximation analog-to-digital converter is compensated, the corrected full-scale voltage is obtained by extrapolation.

15. The method of claim 11, wherein: The full-scale voltage adjustment device comprises: A plurality of binary weighted capacitors are controlled by a calibration code.

16. The method of claim 15, wherein: The calibrated full-scale voltage decreases as an equivalent capacitance value of the output terminal of the capacitive digital-to-analog converter increases.

17. The method of claim 11, wherein: The plurality of reference voltages are arranged in an arithmetic progression.

18. The method of claim 17, wherein: One of the reference voltages is 0V.

19. The method of claim 11, wherein: The plurality of reference voltages are all less than the preset full-scale voltage level.

20. The method of claim 11, wherein: The SAR ADC is used to operate by a monotonic switching method or a one-way switching method.