Automatically calibrated analog-to-digital converters, automatic calibration methods, and sensor devices
By adding a calibration DAC capacitor array with a split capacitor unit structure and SAR logic control to the analog-to-digital converter, the total offset voltage at the comparator input is automatically compensated, solving the problem of offset voltage drift in the SAR ADC after temperature and power consumption changes, improving conversion accuracy and reducing sensitivity to power supply noise.
Patent Information
- Application Number
- CN202611527162.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-17
AI Technical Summary
In the prior art, the offset voltage of successive approximation analog-to-digital converters (SAR ADCs) will drift after temperature and power consumption changes, resulting in the deterioration of differential nonlinearity and integral nonlinearity. Furthermore, the calibration scheme of common-mode reference voltage is prone to introducing power supply noise, which reduces calibration accuracy.
A dedicated calibration DAC capacitor array is added to the analog-to-digital converter as a split capacitor unit structure. The main DAC capacitor array is set to a zero-differential reference state through SAR logic control circuit. The calibration DAC capacitor array is controlled to perform successive approximation search to generate digital compensation code, automatically compensate the total offset voltage at the comparator input, and cut off the power supply noise coupling path.
It achieves automatic compensation of the dynamic total offset voltage at the comparator input without the need for a common-mode reference voltage VCM, thereby improving the conversion accuracy of the analog-to-digital converter. The periodic automatic calibration mechanism tracks temperature drift and power consumption changes to maintain high accuracy.
Smart Images

Figure CN123122545A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of integrated circuit technology, and more specifically, to an automatically calibrated analog-to-digital converter, an automatic calibration method, and a sensor device. Background Technology
[0002] Successive Approximation Register Analog-to-Digital Converters (SAR ADCs) are widely used in IoT sensing front-ends, touchscreen controllers, battery management systems, and integrated analog front-ends—applications that are sensitive to power supply noise, have limited power consumption, and require long-term stable operation—due to their advantages of small size, low power consumption, and a balance between moderate accuracy and high speed. However, their conversion accuracy is consistently and severely constrained by the total offset voltage. This total offset voltage is a dynamic quantity that varies in real time with operating conditions, formed by the coupling of multiple physical mechanisms. Therefore, the one-time calibration at the factory cannot cover various time-varying factors. After changes in temperature and power consumption, the offset of the ADC will drift again, leading to deterioration of differential and integral nonlinearities, and even code loss.
[0003] In existing technologies, to address the dynamic offset problem, an automatic offset calibration scheme based on a common-mode reference voltage (VCM) is typically employed. Specifically, in each calibration cycle, the lower plate of the main DAC capacitor array is switched to a known common-mode reference voltage VCM. The common-mode reference voltage VCM is generated by dividing the power supply voltage through on-chip resistors. Noise on the power supply is directly coupled to the VCM node according to the voltage division ratio to establish a zero-differential calibration reference point, and then the compensation code is searched through SAR logic.
[0004] However, during the reference setup phase of offset calibration, noise from the power supply is injected into the DAC capacitor network and misinterpreted as a valid offset signal in subsequent calibration cycles, causing the calibration results to carry power supply noise components and resulting in low calibration accuracy. Summary of the Invention
[0005] The purpose of this invention is to address the shortcomings of the prior art by providing an automatically calibrated analog-to-digital converter, an automatic calibration method, and a sensor device, thereby resolving the technical problems existing in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide an automatically calibrated analog-to-digital converter (ADC), the ADC comprising: a main DAC capacitor array, a calibration DAC capacitor array, a comparator, and a successive approximation SAR logic control circuit, wherein: The calibration DAC capacitor array is a split capacitor unit structure. Specifically, the split capacitor unit structure refers to a structure in which one lower plate of a traditional SAR ADC is fixedly connected to a common-mode voltage V. CM The unit capacitor Cunit is split into two equal sub-capacitors Cunit / 2; these two sub-capacitors share the same upper plate node (i.e., output node), but each has its own independently controllable lower plate switching network, allowing its lower plate to be selectively connected to the reference voltage V separately and independently. REF Or GND. When the lower plates of the two sub-capacitors are respectively connected to V... REF When connected to GND, the upper plate node exhibits a V-shape. CM = V REF The common-mode bias level of / 2, thus eliminating the need for an actual V CM Voltage is involved. Therefore, through this specific combination of switches, without introducing any V... CM Under the premise of physical nodes, V is thus eliminated from its physical root cause. CM The node cuts off the path for power supply noise to couple into the calibration loop.
[0007] The first input terminal of the comparator is connected to the output terminals of the main DAC capacitor array and the calibration DAC capacitor array, respectively, and the second input terminal of the comparator is used to connect to a preset common-mode reference voltage V. CM The output of the comparator is connected to the SAR logic control circuit; One end of the SAR logic control circuit is connected to the main DAC capacitor array and the calibration DAC capacitor array. The SAR logic control circuit is used for: Set the main DAC capacitor array to a zero-differential reference state; The calibration DAC capacitor array is controlled to perform a successive approximation search to generate a digital compensation code. The digital compensation code is used to calibrate the output compensation voltage of the DAC capacitor array when the analog-to-digital converter is performing conversion, so as to compensate for the total offset voltage at the input of the comparator.
[0008] Optionally, when the analog-to-digital converter performs the conversion, the SAR logic control circuit is specifically used to output a first digital signal to the main DAC capacitor array; the main DAC capacitor array is specifically used to generate a first analog voltage Vdac based on the first digital signal; and the comparator is used to compare the first analog voltage Vdac with the input voltage Vin and output a first comparison result.
[0009] The SAR logic control circuit is also used to save the first comparison result.
[0010] Optionally, the main DAC capacitor array is a split capacitor unit structure.
[0011] Optionally, the calibration DAC capacitor array includes: N parallel compensation units, where N is the number of bits in the analog-to-digital converter (ADC); Each of the compensation units includes a first capacitor and a second capacitor. One end of the first capacitor and one end of the second capacitor are connected to the first input terminal of the comparator. The other end of the first capacitor is used to connect to a reference voltage or ground, and the other end of the second capacitor is used to connect to the reference voltage or ground.
[0012] Optionally, each of the compensation units further includes: a first switch and a second switch; the other end of the first capacitor is connected to one end of the first switch, and the other end of the first switch is used to connect to the reference voltage or ground; the other end of the second capacitor is connected to one end of the second switch, and the other end of the second switch is used to connect to the reference voltage or ground; When the analog-to-digital converter is calibrated, the control terminals of the first switch and the second switch are respectively connected to the SAR logic control circuit to perform on / off operations under the control of the SAR logic control circuit, thereby connecting the first capacitor to the reference voltage and grounding the second capacitor.
[0013] Optionally, when the analog-to-digital converter is calibrated, the SAR logic control circuit is specifically used to: control each compensation unit in the calibration DAC capacitor array to try sequentially from the most significant bit to the least significant bit, determine the retention result of each compensation unit, and generate and latch the digital compensation code based on the retention result of each compensation unit.
[0014] Optionally, during the calibration of the analog-to-digital converter, the SAR logic control circuit is specifically configured to: send a first control signal corresponding to the current bit to the first switch and the second switch in the compensation unit corresponding to the current bit, so that the other end of the first capacitor and the other end of the second capacitor are both connected to the reference voltage or grounded; obtain the output result of the comparator, and determine the first control signal corresponding to the next bit of the current bit and the retention result of the compensation unit corresponding to the current bit based on the output result, wherein: when the output result is zero, the first control signal is used to indicate that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are both connected to the reference voltage, or, when the output result is not zero, the first control signal is used to indicate that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are both grounded.
[0015] Optionally, the SAR logic control circuit is specifically used to: when the analog-to-digital converter is performing conversion, output a second control signal to each of the compensation units based on the pre-locked digital compensation code, so that the N compensation units in the calibration DAC capacitor array sequentially output corresponding sub-compensation voltages, and obtain the compensation voltage based on the sub-compensation voltages corresponding to the N compensation units.
[0016] Secondly, embodiments of this application also provide an automatic calibration method applied to the automatically calibrated analog-to-digital converter provided in the first aspect above, the method comprising: Set the main DAC capacitor array to a zero-differential reference state; control the calibration DAC capacitor array to perform a successive approximation search to generate a digital compensation code. The digital compensation code is used to compensate for the total offset voltage at the input of the comparator when the analog-to-digital converter is performing conversion.
[0017] Thirdly, embodiments of this application also provide a sensor device, including: a signal input module and the automatically calibrated analog-to-digital converter (ADC) provided in the first aspect above.
[0018] The beneficial effects of this application are: This application provides an automatically calibrated analog-to-digital converter (ADC), an automatic calibration method, and a sensor device. In this application, an additional dedicated calibration DAC capacitor array is added to the ADC in addition to the original main DAC capacitor array. Its resolution can be lower than the main DAC capacitor array to save area. During ADC calibration, the main DAC capacitor array is controlled to be set to a zero-differential reference state via a SAR logic control circuit. At this time, the first input of the comparator only presents the total offset voltage. The calibration DAC capacitor array is then controlled to perform a successive approximation search, gradually generating a digital compensation code. This allows the ADC to output a compensation voltage based on the digital compensation code during conversion, achieving calibration without the need for a common-mode reference voltage V. CM Under the premise of [condition], it can automatically compensate for the dynamic total offset voltage at the comparator input, so that the total offset voltage at the comparator input is canceled to near zero, thereby improving the conversion accuracy of the analog-to-digital converter. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1A schematic diagram of an automatically calibrated analog-to-digital converter provided in an embodiment of this application; Figure 2 A schematic diagram of the circuit structure of the main DAC capacitor array in an automatically calibrated analog-to-digital converter provided in an embodiment of this application; Figure 3 A schematic diagram of the circuit structure of a calibration DAC capacitor array in an automatically calibrated analog-to-digital converter provided in an embodiment of this application; Figure 4 A schematic diagram of the circuit structure of a calibration DAC capacitor array in another automatically calibrated analog-to-digital converter provided in an embodiment of this application; Figure 5 A flowchart illustrating an automatic calibration method provided in an embodiment of this application; Figure 6 A timing diagram of the SAR logic control circuit in an automatically calibrated analog-to-digital converter provided in an embodiment of this application; Figure 7 This is a schematic diagram of a sensor device structure provided in an embodiment of this application. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0023] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0024] First, the background technology involved in this application will be introduced.
[0025] Optionally, refer to Figure 1 The diagram shown is a structural schematic of an automatically calibrated analog-to-digital converter provided in this application. Figure 1 As shown, the analog-to-digital converter includes: a main DAC capacitor array, a calibration DAC capacitor array, a comparator, and a successive approximation SAR logic control circuit.
[0026] Optionally, in addition to the original main DAC capacitor array of the analog-to-digital converter (ADC), an additional dedicated calibration DAC capacitor array can be added to generate offset compensation voltage. Its resolution can be lower than that of the main DAC capacitor array to save area.
[0027] The calibration DAC capacitor array uses a split capacitor cell structure, eliminating the need for a VCM voltage. Specifically, in a traditional SAR ADC, one lower plate is fixedly connected to the common-mode voltage V. CM The unit capacitor Cunit is split into two identical sub-capacitors Cunit / 2. These two sub-capacitors share the same upper plate node (i.e., the output node), but each has its own independently controllable lower plate switching network, allowing its lower plate to be selectively and independently connected to the reference voltage V. REF Or GND. When the lower plates of the two sub-capacitors are respectively connected to V... REF When connected to GND, the upper plate node exhibits a V-shape. CM = V REF The common-mode bias level of / 2, thus eliminating the need for an actual V CM Voltage is involved. Therefore, through this specific combination of switches, without introducing any V... CM Under the premise of physical nodes, V is thus eliminated from its physical root cause. CM The node cuts off the path for power supply noise to couple into the calibration loop.
[0028] The first input of the comparator is connected to the outputs of the main DAC capacitor array and the calibration DAC capacitor array, respectively; that is, the outputs of the main DAC capacitor array and the calibration DAC capacitor array are superimposed at the input of the comparator. The second input of the comparator is used to connect a preset common-mode reference voltage V. CM The output of the comparator is connected to the SAR logic control circuit.
[0029] One end of the SAR logic control circuit is connected to the main DAC capacitor array and the calibration DAC capacitor array. The SAR logic control circuit is used for: Set the main DAC capacitor array to a zero-differential reference state; The control calibration DAC capacitor array performs a successive approximation search to generate a digital compensation code. This digital compensation code is used to calibrate the output compensation voltage of the DAC capacitor array when the ADC is converting, in order to compensate for the total offset voltage at the comparator input.
[0030] In this embodiment, during the calibration phase of the analog-to-digital converter, the SAR logic control circuit sets the main DAC capacitor array to a zero-differential reference state, meaning the output voltage of the main DAC capacitor array is 0V. At this time, the first input terminal of the comparator only presents the total offset voltage V. OS,totalFurthermore, it controls the calibration DAC capacitor array to perform a successive approximation search, gradually generating digital compensation codes. This allows the ADC to convert the signal, driving the calibration DAC capacitor array to output a compensation voltage based on the digital compensation codes. This compensates for the total offset voltage at the comparator input, effectively reducing the total offset voltage at the comparator input to near zero. This achieves conversion without requiring a common-mode reference voltage V. CM Under the premise of [condition], it can automatically compensate for the dynamic total offset voltage at the comparator input, thereby improving the conversion accuracy of the analog-to-digital converter.
[0031] In summary, this application provides an automatically calibrated analog-to-digital converter (ADC). In this application, an additional dedicated calibration DAC capacitor array is added besides the original main DAC capacitor array of the ADC. Its resolution can be lower than that of the main DAC capacitor array to save area. During the calibration phase, the main DAC capacitor array is controlled to be set to a zero-differential reference state by the SAR logic control circuit. At this time, the first input terminal of the comparator only presents the total offset voltage V. OS,total The calibration DAC capacitor array is controlled to perform a successive approximation search, gradually generating a digital compensation code. This code, based on the digital compensation code, drives the calibration DAC capacitor array to output a compensation voltage to compensate for the total offset voltage at the comparator input. This effectively cancels the total offset voltage at the comparator input to near zero, achieving operation without requiring a common-mode reference voltage V. CM Under the premise of [condition], it can automatically compensate for the dynamic total offset voltage at the comparator input, thereby improving the conversion accuracy of the analog-to-digital converter.
[0032] Therefore, using the automatically calibrated analog-to-digital converter (ADC) proposed in this application, without the need for V... CM Under the premise of normal operation, it can automatically run periodically, detect and track the dynamic total offset voltage at the input of the comparator, and is not sensitive to power supply noise.
[0033] Optionally, when the analog-to-digital converter is performing the conversion, the SAR logic control circuit is specifically used to output a first digital signal to the main DAC capacitor array. The first digital signal is a set of binary digital codes, such as 0100.
[0034] The main DAC capacitor array is specifically used to generate a first analog voltage Vdac based on the first digital signal, that is, the first analog voltage Vdac is the trial analog voltage corresponding to the first digital signal.
[0035] The comparator is used to compare the first analog voltage Vdac with the input voltage Vin and output the first comparison result.
[0036] The SAR logic control circuit is also used to store the first comparison result.
[0037] In one feasible approach, during analog-to-digital conversion (ADC), the SAR logic control circuit sends a first digital signal to the main DAC capacitor array. Under the influence of the first digital signal, the main DAC capacitor array generates a first analog voltage Vdac. The comparator compares the first analog voltage Vdac with the input voltage Vin and generates a first comparison result. Based on the first comparison result, the SAR logic control circuit continuously adjusts the first digital signal sent to the main DAC capacitor array in the next round to search for a target digital signal that matches the input voltage Vin. This target digital signal is the analog-to-digital conversion result of the input voltage Vin, thus realizing the analog-to-digital conversion of the input voltage Vin.
[0038] Optionally, refer to Figure 2 As shown, the main DAC capacitor array is a split capacitor unit structure.
[0039] In this embodiment, during the calibration phase, the SAR logic control circuit controls all capacitor cells in the main DAC capacitor array to switch their lower plates to ground (GND). At this time, the output voltage of the main DAC capacitor array is 0V, i.e., the main DAC capacitor array is set to zero differential value. During the conversion phase, all capacitor cells in the main DAC capacitor array are controlled to try sequentially from the most significant bit to the least significant bit to search for a target digital signal that matches the input voltage Vin, thereby realizing the analog-to-digital conversion of the input voltage Vin.
[0040] Optionally, refer to Figure 3 The diagram shown is a schematic of the circuit structure of the calibration DAC capacitor array provided in this application. Figure 1 ,like Figure 3 As shown, the calibration DAC capacitor array includes N parallel compensation units, where N is the number of bits in the analog-to-digital converter (ADC). For example, N is 6, meaning that the ADC can convert an analog signal into a 6-bit binary digital signal.
[0041] Each compensation unit includes a first capacitor and a second capacitor. One end of the first capacitor and one end of the second capacitor are connected to the first input terminal of the comparator. The one end of the first capacitor and one end of the second capacitor can also be referred to as the upper plate of the capacitor.
[0042] The other end of the first capacitor is used to connect to the reference voltage V. ref Alternatively, ground (GND) can be used, and the other end of the second capacitor can be connected to V. ref Or grounded (GND). The other end of the first capacitor and the other end of the second capacitor can also be referred to as the lower plate of the capacitor.
[0043] In this embodiment, the compensation unit 1 includes: a first capacitor C13 and a second capacitor C14. The first capacitor C13 and the second capacitor C14 are two equivalent capacitors. According to Thevenin's equivalent theorem, when the lower plates of the two equivalent capacitors are respectively connected to V... REF When the upper plate is connected to GND and the upper plate is connected to the same node, the open-circuit voltage of the upper plate node is V. REF / 2, the equivalent capacitance is still C unit Completely equivalent to V CM The common-mode bias function, without requiring any actual V CM Voltage is involved.
[0044] Optionally, refer to Figure 4 The diagram shown is a schematic of the circuit structure of the calibration DAC capacitor array provided in this application. Figure 2 ,like Figure 4 As shown, each compensation unit also includes: a first switch and a second switch; The other end of the first capacitor is connected to one end of the first switch, and the other end of the first switch is used to connect to the reference voltage V. ref Or ground (GND); The other end of the second capacitor is connected to one end of the second switch, and the other end of the second switch is used to connect to the reference voltage V. ref Or ground (GND); During the calibration of the analog-to-digital converter, the control terminals of the first switch and the second switch are respectively connected to the SAR logic control circuit to perform on / off operations under the control of the SAR logic control circuit, thereby connecting the first capacitor to the reference voltage and grounding the second capacitor.
[0045] In this embodiment, the SAR logic control circuit sends an on / off signal to the first switch in the compensation unit to control the first capacitor in the compensation unit to be connected to the reference voltage V. ref ; and send an on / off signal to the second switch in the compensation unit to control the second capacitor in the compensation unit to be connected to ground GND, thereby realizing the connection of the two equivalent capacitors in each compensation unit to V REF Switching between GND and V physically eliminates the V. CM The node cuts off power noise through V. CM The path that couples into the calibration loop.
[0046] Optionally, when two capacitors in the same compensation unit are simultaneously connected to the reference voltage V ref When grounded to GND simultaneously, the compensation unit injects positive or negative compensation components into the summing node, and the SAR logic control circuit searches for the optimal compensation code bit by bit accordingly.
[0047] It should be noted that the two capacitors in each compensation unit can be switched to the reference voltage V via their respective switches. ref Alternatively, grounding (GND) can achieve three effective states: (1) The other end of the first capacitor is connected to the reference voltage V. ref The other end of the second capacitor is connected to ground (GND), and the output of the compensation unit provides V. CM =V REF The common-mode bias level is 2 / 2, meaning that the compensation unit does not inject any compensation component into the summing node; (2) The other end of the first capacitor and the other end of the second capacitor are both connected to the reference voltage V. ref The output of this compensation unit provides +V CM =V REF The relative offset voltage of / 2 means that the compensation unit does not inject a positive compensation component into the summing node; (3) The other end of the first capacitor and the other end of the second capacitor are both connected to ground GND. The output of this compensation unit provides -V CM =V REF The relative offset voltage of / 2 means that the compensation unit does not inject a negative compensation component into the summing node.
[0048] The above three scenarios allow the calibration DAC capacitor array to operate using only the reference voltage V. ref With grounded GND, successive approximation search can be achieved without V. CM Nodes and any additional reference power supplies.
[0049] Optionally, during the calibration of the analog-to-digital converter, the SAR logic control circuit is specifically used for: The compensation units in the control calibration DAC capacitor array are probed sequentially from the most significant bit to the least significant bit to determine the retention result of each compensation unit. Based on the retention result of each compensation unit, a digital compensation code is generated and latched.
[0050] In one feasible approach, during analog-to-digital converter (ADC) calibration, the SAR logic control circuit sends a first control signal to the calibration DAC capacitor array. This first control signal instructs the connection of the compensation unit corresponding to the most significant bit. Based on the output of the compensation unit corresponding to the most significant bit from the comparator output, the circuit determines whether to "retain" or "discard" the bit corresponding to the most significant bit. The "retain" bit is set to 1, and the "discard" bit is set to 0. The circuit then probes sequentially from the most significant bit to the least significant bit, determining whether to "retain" or "discard" the bit based on the comparator output after each probe, until all bits are determined. The retention results of the compensation units corresponding to each bit are then combined in bit order to form the final digital compensation code. This digital compensation code represents the offset calibration amount of the calibration DAC capacitor array. The digital compensation code is then stored in a register (or latch) to prevent data changes during subsequent operations.
[0051] Therefore, in this embodiment, during the ADC calibration stage, automatic offset calibration is achieved by adding a low-resolution dedicated calibration DAC capacitor array and directly reusing the ADC's inherent SAR logic and comparator. No additional successive approximation controller or comparator is required, resulting in high hardware reusability and minimal increase in area and power consumption.
[0052] Optionally, during the calibration of the analog-to-digital converter (ADC), the SAR logic control circuit is specifically used for: Send the first control signal corresponding to the current position to the first switch and the second switch in the compensation unit corresponding to the current position, so that the other end of the first capacitor and the other end of the second capacitor are connected to the reference voltage or ground. Obtain the comparator's output and, based on the output, determine the first control signal corresponding to the next bit and the retention result of the compensation unit corresponding to the current bit; where: When the output result is zero, the first control signal is used to indicate that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are connected to the reference voltage. When the output result is not zero, the first control signal is used to indicate that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are both grounded.
[0053] In one feasible approach, taking a 6-bit calibration DAC capacitor array (with the bit sequence from most significant bit to least significant bit as: b5 (MSB) -> b4 -> b3 -> b2 -> b1 -> b0 (LSB)) as an example, for instance, if the current bit is the most significant bit b5, setting the most significant bit b5 to 1 means that the SAR logic control circuit sends a first control signal to the calibration DAC capacitor array. This first control signal is used to instruct the compensation unit corresponding to the most significant bit b5 to be connected to the reference voltage V. refThis injects a +ΔV compensation component into the upper electrode node; then, based on the output result of the compensation unit corresponding to the highest bit b5 of the comparator output, the first control signal corresponding to the next bit b4 and whether the highest bit b5 is 1 or 0 are determined. The first approach is to determine the first control signal when the comparator output is 0, indicating insufficient compensation and requiring enhanced positive compensation. This signal is used to instruct the other ends of both the first and second capacitors in the compensation unit corresponding to the next bit b4 to be connected to the reference voltage V. ref Continue the forward search; and determine that the highest bit b5 is 1, that is, keep the compensation unit corresponding to the highest bit b5 connected to the reference voltage V. ref。
[0054] The second scenario involves an output of 1, indicating either excessive compensation or a reverse direction (i.e., a reverse voltage difference appears at the input after superposition). In this case, the first control signal is used to instruct the other ends of both the first and second capacitors in the compensation unit corresponding to the next bit b4 to be grounded to GND, thereby injecting... The ΔV compensation component is determined; and the highest bit b5 is set to 0, meaning that the other end of the first capacitor in the compensation unit corresponding to the highest bit b5 remains connected to the reference voltage and the other end of the second capacitor is switched to ground.
[0055] Therefore, in this embodiment, starting from the most significant bit, the process is to test each bit one by one. After each test, the output of the comparator determines whether to "keep" or "discard" the bit. This process continues until all bits have been tested. Based on the retention results (1 / 0 sequence) of each compensation unit, the final digital compensation code is formed, thus completing the automatic correction of the mismatch in the main DAC capacitor array.
[0056] Optionally, the automatic calibration process provided in this application will be described through the following embodiments, as detailed below: Phase 1 (Calibration Initialization): During power-on or periodically triggered calibration cycles, the SAR logic control circuit sets the main DAC capacitor array to zero differential value. At this time, the comparator input only presents the total offset voltage V. OS,total The initial output of the DAC is set to zero during calibration.
[0057] The second stage (successive approximation search): The SAR logic control circuit controls the calibration DAC capacitor array to perform a successive approximation search. Specifically, it probes sequentially from the most significant bit to the least significant bit, setting the current bit to 1, and generating a compensation voltage V of corresponding polarity through the calibration DAC capacitor array. cal This gradually reduces the voltage difference between the two input terminals of the comparator; the output of the comparator determines whether the bit is kept as 1 or reset to 0. After the same number of bit cycles as the number of bits in the calibration DAC capacitor array, the digital compensation code D that minimizes the input voltage difference of the comparator is obtained. cal .
[0058] Phase 3 (Compensation Code Latching and Normal Conversion): Digital Compensation Code D cal It is latched and, during subsequent normal conversions, a compensation voltage V is applied by calibrating the DAC capacitor array. cal This cancels out the equivalent offset at the comparator's input to near zero. During normal ADC conversion, the calibration DAC capacitor array takes the digital compensation code Dcal as input and outputs a compensation voltage V. cal .
[0059] Phase 4 (Adaptive Update): When temperature or power consumption changes cause VOS,total to drift, the calibration cycle can be retried to update the digital compensation code D. cal This enables adaptive tracking of offset drift caused by temperature drift and power consumption state changes, eliminating the need for one-time factory adjustments and maintaining high accuracy over the long term. The calibration process is periodically inserted into the normal conversion sequence, requiring no separate external calibration mode, dedicated calibration pins, or additional sample-and-hold circuitry, thus seamlessly integrating with the normal ADC conversion in terms of timing.
[0060] Optionally, refer to Figure 5 The diagram shown is a flowchart of an automatic calibration method provided in this application. Figure 5 As shown, this method is applied to the aforementioned automatically calibrated analog-to-digital converter (ADC), and the method includes: S101. Set the main DAC capacitor array to zero differential reference state.
[0061] S102. Control the calibration DAC capacitor array to perform successive approximation search and generate digital compensation code. The digital compensation code is used to calibrate the output compensation voltage of the DAC capacitor array during the conversion of the analog-to-digital converter (ADC) to compensate for the total offset voltage at the comparator input.
[0062] In one feasible approach, the lower plates of all capacitor cells in the main DAC capacitor array are switched to ground (GND). At this point, the output voltage of the main DAC capacitor array is 0V, effectively setting it to zero differential. In this state, the main DAC capacitor array does not contribute any differential signal, but its parasitic paths (such as bridging capacitors and substrate coupling) together with the comparator input stage constitute a set of static offset sources. The comparator flip point measured at this time represents the total system offset voltage. Then, the calibration DAC capacitor array is controlled to sequentially test each bit from the most significant bit to the least significant bit, and after testing all bits, a digital compensation code D is generated. cal Digital compensation code D calThis method is used to calibrate the output compensation voltage of the DAC capacitor array during ADC conversion and superimpose the compensation voltage onto the comparator input to compensate for the total offset voltage at the comparator input. In other words, the automatic calibration method proposed in this application is front-end compensation, which achieves calibration without the need for a common-mode reference voltage V. CM Under the premise of [condition], it can automatically compensate for the dynamic total offset voltage at the comparator input, thereby improving the conversion accuracy of the analog-to-digital converter.
[0063] Optionally, refer to Figure 6 As shown in the figure, the timing diagram of the SAR logic control circuit provided in this application embodiment is as follows: Figure 6 As shown, Figure 6 This includes the following signals: CAL_EN: Calibration enable signal, active high. It is pulled high by the digital controller when calibration is required; it is pulled low after calibration is completed.
[0064] CONV_START: Normal conversion start pulse, triggering ADC sampling and conversion once on each rising edge.
[0065] Main DAC setting signal (Main_DAC_Zero): It remains high during calibration (CAL_EN=1), indicating that the main DAC capacitor array is set to zero differential state; during normal conversion, it switches bit by bit following the SAR algorithm.
[0066] Calibrate DAC bit-by-bit output (CAL_DAC_Bit) ): The voltage changes sequentially from the most significant bit (MSB) to the least significant bit (LSB), with each bit lasting for one bit cycle, forming a step-like voltage change that approximates each other (CAL_DAC_OUT).
[0067] Comparator Output (COMP_OUT): Outputs the comparison result at the end of each bit cycle, determining whether the current bit is retained or reset.
[0068] The compensation code latch signal (CAL_LATCH) generates a rising edge after calibration is complete (all bit probes are finished), which latches the final digital compensation code D. cal Latch to register.
[0069] The specific implementation process of the SAR logic control circuit is as follows: (1) During the calibration phase, (it can be set to insert a calibration after every M normal conversions, or be triggered by an external source), in response to the calibration enable signal CAL_EN=1, the main DAC capacitor array is set to zero differential state (Main_DAC_Zero is set high), and at the same time the output of the calibration DAC capacitor array is returned to zero (or the previous value is maintained but subsequently overwritten bit by bit). Start controlling the calibration DAC capacitor array by probing bit by bit from the most significant bit (MSB) to the least significant bit (LSB). During each probe, the current bit (CAL_DAC_Bit) is... First set to 1, and after the DAC capacitor array is established and stabilized, the comparator latches the comparator output COMP_OUT on the rising edge of ADC_CLK; If the comparator output COMP_OUT=0, then the bit is set to 1; otherwise, it is reset to 0. Each bit cycle lasts for 2 ADC_CLK cycles (one setup, one comparison), and the total calibration time is (calibrate DAC bits × 2) ADC_CLK cycles.
[0070] After all bit tests are completed, the compensation code latch signal CAL_LATCH generates a pulse, latching the digital code of the currently calibrated DAC capacitor array into a new digital compensation code D. cal Subsequently, the calibration enable signal CAL_EN is pulled low, the main DAC capacitor array returns to normal conversion mode, and the next normal conversion start pulse CONV_START will start normal conversion with offset compensation.
[0071] Optionally, if the temperature or power consumption changes subsequently, the calibration enable signal CAL_EN can be retried at any idle time to repeat the above process and achieve adaptive updates.
[0072] (2) During the normal conversion phase, the calibration enable signal CAL_EN=0, responding to the CONV_START pulse, the main DAC capacitor array switches bit by bit according to the SAR algorithm, and the comparator outputs the result bit by bit, completing one N-bit conversion; at this time, the calibration DAC capacitor array outputs a constant compensation voltage (based on the previously latched D cal This is to compensate for the total offset voltage at the comparator input.
[0073] Therefore, using the automatic calibration method proposed in this application, the entire ADC is completely decoupled from the common-mode reference voltage V during both the normal conversion and offset calibration stages. CM No need for common-mode reference voltage V CM The design incorporates on-chip filter capacitors and buffers, further saving chip area and power consumption.
[0074] Optionally, refer to Figure 7 The diagram shown is a structural schematic of a sensor device provided in this application. Figure 7 As shown, the sensor device includes: a signal input module and an automatically calibrated analog-to-digital converter (ADC) mentioned in the above embodiments.
[0075] In one feasible approach, the sensor device can be an IoT sensor, which is typically battery-powered, exhibiting complex power supply noise and a large dynamic range, while also facing stringent requirements for accuracy and power consumption. Therefore, the automatically calibrated analog-to-digital converter (ADC) proposed in this application can be integrated into the sensor device, enabling V-less... CM Automatic offset calibration maintains high-precision conversion in complex power supply environments, while the periodic automatic calibration mechanism ensures that temperature drift and power mode switching do not affect accuracy.
[0076] For example, the signal input module can be a touch screen, which can detect and receive weak analog signals, and the analog signals are sampled with high precision by an automatically calibrated analog-to-digital converter (ADC), and the V signal is completely eliminated by the calibration DAC capacitor array in the ADC. CM The noise coupling path ensures that the calibration results are unaffected by the noise of digital logic switches, significantly improving the signal-to-noise ratio and sensitivity of touch detection.
[0077] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
[0078] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this application 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 application. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. An automatically calibrated analog-to-digital converter, characterized in that, The analog-to-digital converter includes: a main DAC capacitor array, a calibration DAC capacitor array, a comparator, and a successive approximation SAR logic control circuit, wherein: The calibration DAC capacitor array is a split capacitor unit structure; The first input terminal of the comparator is connected to the output terminals of the main DAC capacitor array and the calibration DAC capacitor array, respectively, and the second input terminal of the comparator is used to connect to a preset common-mode reference voltage V. CM The output of the comparator is connected to the SAR logic control circuit; One end of the SAR logic control circuit is connected to the main DAC capacitor array and the calibration DAC capacitor array. The SAR logic control circuit is used for: Set the main DAC capacitor array to a zero-differential reference state; The calibration DAC capacitor array is controlled to perform a successive approximation search to generate a digital compensation code. The digital compensation code is used to compensate for the total offset voltage at the input of the comparator when the analog-to-digital converter is performing conversion.
2. The analog-to-digital converter according to claim 1, characterized in that, When the analog-to-digital converter performs the conversion, the SAR logic control circuit is specifically used to output a first digital signal to the main DAC capacitor array; The main DAC capacitor array is specifically used to generate a first analog voltage Vdac based on the first digital signal; The comparator is used to compare the first analog voltage Vdac with the input voltage Vin and output a first comparison result; The SAR logic control circuit is also used to save the first comparison result.
3. The analog-to-digital converter according to claim 1, characterized in that, The main DAC capacitor array is a split capacitor unit structure.
4. The analog-to-digital converter according to claim 1, characterized in that, The calibration DAC capacitor array includes: N parallel compensation units, where N is the number of bits of the analog-to-digital converter (ADC); Each of the compensation units includes a first capacitor and a second capacitor, with one end of the first capacitor and one end of the second capacitor connected to the first input terminal of the comparator; The other end of the first capacitor is used to connect to a reference voltage or ground, and the other end of the second capacitor is used to connect to the reference voltage or ground.
5. The analog-to-digital converter according to claim 4, characterized in that, Each of the aforementioned compensation units further includes: a first switch and a second switch; The other end of the first capacitor is connected to one end of the first switch, and the other end of the first switch is used to connect to the reference voltage or ground. The other end of the second capacitor is connected to one end of the second switch, and the other end of the second switch is used to connect to the reference voltage or ground. During ADC calibration, the control terminals of the first switch and the second switch are respectively connected to the SAR logic control circuit to perform on / off operations under the control of the SAR logic control circuit, thereby connecting the first capacitor to the reference voltage and grounding the second capacitor.
6. The analog-to-digital converter according to claim 4, characterized in that, During the calibration of the analog-to-digital converter, the SAR logic control circuit is specifically used for: The compensation units in the calibration DAC capacitor array are controlled to try each other sequentially from the most significant bit to the least significant bit, the retention result of each compensation unit is determined, and the digital compensation code is generated and latched based on the retention result of each compensation unit.
7. The analog-to-digital converter according to claim 6, characterized in that, During the calibration of the analog-to-digital converter, the SAR logic control circuit is specifically used for: Send the first control signal corresponding to the current position to the first switch and the second switch in the compensation unit corresponding to the current position, so that the other end of the first capacitor and the other end of the second capacitor are both connected to the reference voltage or ground; Obtain the output of the comparator, and based on the output, determine the first control signal corresponding to the next bit of the current bit and the retention result of the compensation unit corresponding to the current bit, wherein: When the output result is zero, the first control signal is used to instruct that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are both connected to the reference voltage, or... When the output result is not zero, the first control signal is used to indicate that the other end of the first capacitor and the other end of the second capacitor in the compensation unit corresponding to the next bit of the current bit are both grounded.
8. The analog-to-digital converter according to claim 4, characterized in that, The SAR logic control circuit is specifically used for: When the analog-to-digital converter performs conversion, a second control signal is output to each of the compensation units based on the pre-locked digital compensation code, so that the N compensation units in the calibration DAC capacitor array sequentially output the corresponding sub-compensation voltage, and the compensation voltage is obtained based on the sub-compensation voltages corresponding to the N compensation units.
9. An automatic calibration method, characterized in that, The method, applied to the automatically calibrated analog-to-digital converter according to any one of claims 1-8, comprises: Set the main DAC capacitor array to a zero-differential reference state; The calibration DAC capacitor array is controlled to perform a successive approximation search to generate a digital compensation code. This digital compensation code is used to compensate for the total offset voltage at the input of the comparator when the analog-to-digital converter is performing the conversion.
10. A sensor device, characterized in that, include: The signal input module and the automatically calibrated analog-to-digital converter as described in any one of claims 1-8.
