Successive approximation analog-to-digital converter, voltage detection circuit and switching power supply

By embedding the first D/A conversion circuit and the second D/A conversion circuit in the successive approximation analog-to-digital converter, the voltage detection circuit is simplified, the problems of complicated design and high power consumption in the existing technology are solved, and the efficiency is improved System accuracy and voltage detection speed.

CN118282406BActive Publication Date: 2024-09-17JOULWATT TECH INC LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410694333.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

The existing voltage detection circuit has complex design and high power consumption, and the non-ideal characteristics of the high-speed D/A conversion module and differential operational amplifier module affect the system accuracy.

Method used

Design a simplified successive approximation analog-to-digital converter, which embeds the first D/A conversion circuit and the second D/A conversion circuit. Through the comparator and logic control module, the high-speed D/A conversion module and differential operation are omitted. Putting module, a difference stage is added to improve accuracy.

Benefits of technology

It reduces circuit complexity, improves system accuracy and voltage detection speed, simplifies the circuit structure, avoids the impact of non-ideal characteristics of high-speed analog-to-digital conversion modules and differential operational amplifier modules, and achieves more efficient voltage detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118282406B
    Figure CN118282406B
Patent Text Reader

Abstract

The present invention discloses a successive approximation analog-to-digital converter, a voltage detection circuit and a switching power supply, comprising a first D / A conversion circuit, a second D / A conversion circuit, a comparator and a logic control module, wherein the first D / A conversion circuit receives an input signal and a first digital code, and outputs a first voltage that can characterize the difference between a reference signal and the input signal, wherein the magnitude of the reference signal is related to the first digital code; the second D / A conversion circuit receives the first voltage, and the output end is coupled to at least one input end of the comparator; the output end of the comparator is coupled to the input end of the logic control module, and the logic control module controls the second D / A conversion circuit according to the comparison result of the comparator, and outputs a digital output signal corresponding to the first voltage. The high-speed D / A conversion module and the differential operational amplifier module required in the prior art are omitted, and the complexity of the voltage detection circuit can be reduced, the system accuracy can be improved, and the voltage detection speed can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a successive approximation analog-to-digital converter, a voltage detection circuit and a switching power supply. Background Art

[0002] In a digital switching power supply, a conventional voltage detection circuit 10 is as follows Figure 1 As shown, the voltage detection circuit 10 includes a sampling circuit 110, a high-speed D / A conversion module U1, a differential operational amplifier module U2 and a successive approximation analog-to-digital converter 100. The sampling circuit 110 is used to sample the voltage to be detected VSEN to output a feedback voltage VFB. For example, the output voltage of the switching power supply is used as the voltage to be detected VSEN. The high-speed D / A conversion module U1 is used to convert the voltage identification code VID_CODE into a reference signal REF. The differential operational amplifier module U2 is used to receive the feedback voltage VFB and the reference signal REF, and output a signal representing the difference between the reference signal REF and the feedback voltage VFB as an input signal Vi of the successive approximation analog-to-digital converter 100. The successive approximation analog-to-digital converter 100 is used to convert the analog input signal Vi into a digital output signal ADC_OUT. The switching power supply adjusts the output voltage according to the digital output signal ADC_OUT. The successive approximation analog-to-digital converter (SAR ADC) is a widely used ADC. Conventional successive approximation analog-to-digital converters 100 are as follows: Figure 2 As shown, it includes a D / A conversion circuit 102, a comparator 103 and a logic control module 104. The D / A conversion circuit 102 receives an input signal Vi, and an output end is coupled to at least one input end of the comparator 103; the output end of the comparator 103 is coupled to the input end of the logic control module 104, and the logic control module 104 controls the D / A conversion circuit 102 according to the comparison result of the comparator 103, and outputs a digital output signal ADC_OUT corresponding to the input signal Vi.

[0003] However, the power supply protocol requires dynamic voltage regulation, that is, the voltage identification code (VID) code VID_CODE must change at a high speed, so the output buffer in the high-speed D / A conversion module U1 and the differential op amp module U2 are required to have a very high bandwidth, which brings about the difficulty of design and power consumption. In addition, the traditional voltage detection circuit 10 has many modules, and the non-ideal characteristics of the high-speed D / A conversion module U1 and the differential op amp module U2 will bring errors to the final digital output signal ADC_OUT, and ultimately affect the accuracy of the entire system. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a successive approximation analog-to-digital converter, a voltage detection circuit and a switching power supply to solve the technical problems in the prior art that the voltage detection circuit has many circuit modules, is difficult to design and has high power consumption, and the non-ideal characteristics of the high-speed analog-to-digital conversion module and the differential operational amplifier module will affect the accuracy of the entire system.

[0005] The technical solution of the present invention is to provide a successive approximation analog-to-digital converter, comprising a first D / A conversion circuit, a second D / A conversion circuit, a comparator and a logic control module.

[0006] The first D / A conversion circuit receives an input signal and a first digital code, and outputs a first voltage that can represent a difference between a reference signal and the input signal, wherein the magnitude of the reference signal is related to the first digital code;

[0007] The second D / A conversion circuit receives the first voltage, and an output terminal is coupled to at least one input terminal of the comparator;

[0008] The output end of the comparator is coupled to the input end of the logic control module, and the logic control module controls the second D / A conversion circuit according to the comparison result of the comparator, and outputs a digital output signal corresponding to the first voltage.

[0009] Optionally, an output terminal of the first D / A conversion circuit is coupled to at least one input terminal of the comparator.

[0010] Optionally, the first digital code includes a voltage identification code.

[0011] Optionally, the first D / A conversion circuit further receives a first reference voltage, and the magnitude of the reference signal is a function of the first reference voltage and the first digital code.

[0012] Optionally, the successive approximation analog-to-digital converter includes a sampling phase, a difference phase and a conversion phase.

[0013] In the sampling phase, the first D / A conversion circuit samples the input signal;

[0014] In the difference calculation stage, the first D / A conversion circuit outputs the first voltage according to the first digital code;

[0015] In the conversion phase, the second D / A conversion circuit receives the first voltage, and the logic control module controls the second D / A conversion circuit according to the comparison result of the comparator.

[0016] Optionally, the first D / A conversion circuit includes a first capacitor array,

[0017] The first end of each capacitor in the first capacitor array is connected to a first common end, and the first common end serves as an output end of the first D / A conversion circuit. The second end of each capacitor receives an input signal through a switch connected to the second end of each capacitor, or is connected to a reference ground, or receives a first reference voltage.

[0018] Optionally, in the sampling phase, the second end of each capacitor in the first capacitor array receives the input signal;

[0019] In the difference calculation stage, the switch connected to the second end of each capacitor in the first capacitor array is controlled according to the first digital code, so that the second end of each capacitor is connected to the reference ground or receives the first reference voltage.

[0020] Optionally, the first voltage is equal to the voltage of the first common terminal at the end of the difference-finding phase.

[0021] Optionally, the first common terminal is coupled to an input terminal of the comparator,

[0022] The first voltage is equal to the difference between the voltage at the positive phase input terminal and the voltage at the negative phase input terminal of the comparator at the end of the difference calculation stage.

[0023] Optionally, during the sampling phase, the first common terminal is connected to a common mode voltage.

[0024] Optionally, the first D / A conversion circuit further includes a first unit capacitor, the capacitance of the lowest-order capacitor in the first capacitor array is equal to the capacitance of the first unit capacitor, a first end of the first unit capacitor is connected to the first common end, and a second end is connected to an input signal or a reference ground through a switch connected thereto;

[0025] In the sampling phase, the second end of the first unit capacitor receives an input signal;

[0026] In the difference-finding stage, the second terminal of the first unit capacitor is connected to a reference ground.

[0027] Optionally, in the sampling phase and the difference phase, the first end of the capacitor in the second D / A conversion circuit is connected to the input of the comparator, the second end of the capacitor with half the capacitance connected to the same input of the comparator is connected to the reference ground, and the second end of the capacitor with the other half the capacitance receives a second reference voltage.

[0028] Optionally, the second D / A conversion circuit includes a second capacitor array,

[0029] The first end of each capacitor in the second capacitor array is connected to the first common end, and the second end of each capacitor is connected to the reference ground or receives a second reference voltage through a switch connected to the second end of each capacitor, wherein the first common end serves as an output end of the second D / A conversion circuit;

[0030] In the conversion phase, the logic control module controls the switch connected to the second end of each capacitor in the second capacitor array according to the comparison result of the comparator.

[0031] Optionally, the first D / A conversion circuit further includes a third capacitor array,

[0032] The capacitance of the capacitors in the third capacitor array is equal to the capacitance of the capacitors in the first capacitor array, the first end of each capacitor in the second capacitor array is connected to the second common end, and the second end of each capacitor is connected to the reference ground, wherein the second common end serves as another output end of the first D / A conversion circuit.

[0033] Optionally, the first common terminal is connected to the positive phase input terminal of the comparator, and the second common terminal is connected to the negative phase input terminal of the comparator; or,

[0034] The first common terminal is connected to the negative phase input terminal of the comparator, and the second common terminal is connected to the positive phase input terminal of the comparator.

[0035] Optionally, the second D / A conversion circuit includes a second capacitor array and a fourth capacitor array,

[0036] The first end of each capacitor in the second capacitor array is connected to the first common end, and the second end of each capacitor is connected to the reference ground or receives the second reference voltage through a switch connected to the second end of each capacitor;

[0037] The first end of each capacitor in the fourth capacitor array is connected to the second common end, and the second end of each capacitor is connected to the reference ground or receives the second reference voltage through a switch connected to the second end of each capacitor;

[0038] The capacitance of the capacitors in the fourth capacitor array is equal to the capacitance of the capacitors in the second capacitor array, and the first common end and the second common end serve as output ends of the second D / A conversion circuit;

[0039] In the conversion phase, the logic control module controls the switches connected to the second end of each capacitor in the second capacitor array and the fourth capacitor array according to the comparison result of the comparator.

[0040] In a second aspect, the present invention further provides a voltage detection circuit, the voltage detection circuit comprising a sampling circuit and the successive approximation analog-to-digital converter.

[0041] The sampling circuit receives the voltage to be detected and outputs a feedback signal;

[0042] The feedback signal is used as an input signal received by the successive approximation analog-to-digital converter;

[0043] The successive approximation analog-to-digital converter outputs a digital output signal according to the input signal and a first digital code.

[0044] Optionally, the sampling circuit includes a voltage follower.

[0045] In a third aspect, the present invention further provides a switching power supply, the switching power supply comprising a power stage circuit, a control circuit, and the voltage detection circuit.

[0046] The output voltage output by the power stage circuit is used as the voltage to be detected received by the voltage detection circuit;

[0047] The control circuit receives the digital output signal output by the voltage detection circuit to output a control signal, and the control signal is used to control the on and off of the power tube in the power stage circuit.

[0048] The circuit structure of the present invention has the following advantages compared with the prior art: the first D / A conversion circuit is embedded in the successive approximation analog-to-digital converter, which can simplify the voltage detection circuit, eliminate the high-speed D / A conversion module and the differential operational amplifier module required in the prior art, reduce the complexity of the circuit, and avoid the non-ideal characteristics of the high-speed analog-to-digital conversion module and the differential operational amplifier module from affecting the accuracy of the entire system, thereby improving the accuracy of the system. At the same time, the speed of voltage detection can be increased, making it easier to achieve high-speed adjustment of the first digital code. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a circuit structure diagram of a voltage detection circuit in the prior art;

[0050] Figure 2 A schematic diagram of the circuit structure of a successive approximation analog-to-digital converter in the prior art;

[0051] Figure 3 Schematic diagram of the circuit structure of a voltage detection circuit according to an embodiment of the present invention;

[0052] Figure 4 A schematic diagram of the circuit structure of a successive approximation analog-to-digital converter according to an embodiment of the present invention;

[0053] Figure 5 Based on Figure 4A schematic diagram of the circuit structure of a first embodiment of a successive approximation analog-to-digital converter;

[0054] Figure 6 Based on Figure 4 A schematic diagram of the circuit structure of a second embodiment of a successive approximation analog-to-digital converter;

[0055] Figure 7 is a timing diagram of a successive approximation analog-to-digital converter according to an embodiment of the present invention;

[0056] Figure 8 is a schematic diagram of the circuit structure of a sampling circuit according to an embodiment of the present invention;

[0057] Fig. 9 Schematic diagram of the circuit structure of a switching power supply according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, but the present invention is not limited to these embodiments. The present invention covers any substitution, modification, equivalent method and scheme made within the spirit and scope of the present invention.

[0059] In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, but those skilled in the art can fully understand the present invention without these detailed descriptions.

[0060] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. It should be noted that the accompanying drawings are all simplified and not in exact proportion, and are only used for the purpose of conveniently and clearly assisting in explaining the embodiments of the present invention.

[0061] refer to Figure 3 , Figure 4 , Figure 3 It is shown that the voltage detection circuit 20 of the embodiment of the present invention includes a sampling circuit 210 and a successive approximation analog-to-digital converter 200. The sampling circuit 210 receives the voltage to be detected VSEN and outputs a feedback voltage VFB. The feedback voltage VFB is used as the input signal Vi received by the successive approximation analog-to-digital converter 200. The successive approximation analog-to-digital converter 200 outputs a digital output signal ADC_OUT according to the input signal Vi and the first digital code. It should be noted that the input signal Vi is an analog signal, and the first digital code can be a digital code output by any circuit or device, which can be a binary code or a thermometer code. The present application does not limit the circuit or device that generates the first digital code, and the type of the first digital code. For example, the first digital code can use, for example, a voltage identification code VID_CODE provided by a CPU. Further, as Figure 4As shown, the successive approximation analog-to-digital converter 200 includes a first D / A conversion circuit 201, a second D / A conversion circuit 202, a comparator 203 and a logic control module 204. The first D / A conversion circuit 201 receives an input signal Vi and a first digital code, and outputs a first voltage that can represent the difference between a reference signal and the input signal Vi. The magnitude of the reference signal is related to the first digital code. In one embodiment, the first digital code is a voltage identification code VID_CODE. The second D / A conversion circuit 202 receives the first voltage, and an output terminal is coupled to at least one input terminal of the comparator 203. The output terminal of the comparator 203 is coupled to an input terminal of the logic control module 204. The logic control module 204 controls the second D / A conversion circuit 202 according to the comparison result of the comparator 203, and outputs a digital output signal ADC_OUT corresponding to the first voltage. In one embodiment, the first D / A conversion circuit 201 also receives a first reference voltage, and the magnitude of the reference signal is a function of the first reference voltage and the first digital code. In one embodiment, the first voltage may represent the difference between the reference signal and the input signal Vi. In another embodiment, the first voltage may also represent the difference between the input signal Vi and the reference signal.

[0062] Figure 5 Shown according to Figure 4Schematic diagram of the circuit structure of the first embodiment of the successive approximation analog-to-digital converter, illustratively, the first D / A conversion circuit 201 includes a first capacitor array 2011, a first unit capacitor C1c, a third capacitor array 2012, and a third unit capacitor C1c', the first end of each capacitor C11, C12...C1N1 in the first capacitor array 2011 is connected to the first common end A, the first common end is used as the output end of the first D / A conversion circuit, and is coupled to the second D / A conversion circuit 201, wherein N1 is an integer greater than 1, in this embodiment, the first common end A is connected to the non-inverting input end of the comparator 203, and the second end of each capacitor is switched to receive the input signal Vi through the switch S11, S12...S1N1 connected to the second end of each capacitor, or is connected to the reference ground GND, or receives the first reference voltage Vref1; the first unit capacitor C11, C12...C1N1 in the first capacitor array 2011 is connected to the first common end A, and the first common end is connected to the second D / A conversion circuit 201, wherein N1 is an integer greater than 1, in this embodiment, the first common end A is connected to the non-inverting input end of the comparator 203, and the second end of each capacitor is switched to receive the input signal Vi, or is connected to the reference ground GND, or receives the first reference voltage Vref1 through the switch S11, S12...S1N1 connected to the second end of each capacitor; The first end of the unit capacitor C1c is connected to the first common terminal A, and the second end is connected to the input signal Vi or the reference ground GND through the switch S1c connected thereto; the first end of each capacitor C11', C12'...C1N1' in the third capacitor array 2012 is connected to the second common terminal B, and the second end of each capacitor is connected to the reference ground GND. The second common end is another output end of the first D / A conversion circuit and is coupled to the second D / A conversion circuit 201. In this embodiment, the second common end B is connected to the negative input end of the comparator 203; the first end of the third unit capacitor C1c' is connected to the second common terminal B, and the second end is connected to the reference ground GND; wherein the capacitance of the first unit capacitor C1c and the third unit capacitor C1c' is equal, and the capacitance of the capacitors in the third capacitor array 2012 is equal to the capacitance of the capacitors in the first capacitor array. For example, the capacitance of the capacitor C11 and the capacitor C11', the capacitance of the capacitor C12 and the capacitor C12'...the capacitance of the capacitor C1N1 and the capacitor C1N1' can be set to be correspondingly equal. In one embodiment, the first digital code is a binary code, and the capacitances of capacitors C11 to C1N1 can be set to decrease in sequence according to a binary relationship, capacitor C11 is the highest-order capacitor, C1N1 is the lowest-order capacitor, and the capacitance of the lowest-order capacitor C1N1 is equal to the capacitance of the first unit capacitor C1c.

[0063] Please continue to refer to Figure 5, for example, in one embodiment, the second D / A conversion circuit 202 includes a second capacitor array 2021, a second unit capacitor C2c, a fourth capacitor array 2022, and a fourth unit capacitor C2c', the first end of each capacitor C21, C22...C2N2 in the second capacitor array 2021 is connected to the first common terminal A, where N2 is an integer greater than 1, and the second end of each capacitor is connected to the reference ground GND or receives the second reference voltage Vref2 through a switch S21, S22...S2N2 connected to the second end of each capacitor; the first end of the second unit capacitor C2c is connected to the first common terminal A, and the second end is connected to the reference ground GND; the structure of the fourth capacitor array 2022 is the same as that of the second capacitor array 2 021 is basically the same, wherein the first end of each capacitor C21', C22'...C2N2' is connected to the second common terminal B, and the second end of each capacitor is switched to the reference ground GND or receives the second reference voltage Vref2 through the switch S21', S22'...S2N2' connected to the second end of each capacitor; the first end of the fourth unit capacitor C2c' is connected to the second common terminal B, and the second end is connected to the reference ground GND; wherein the capacitance of the capacitors in the fourth capacitor array 2022 is equal to the capacitance of the capacitors in the second capacitor array 2021, the capacitance of the second unit capacitor C2c and the fourth unit capacitor C2c' is equal, and the first common terminal A and the second common terminal B serve as the output end of the second D / A conversion circuit. In one embodiment, the signal output by the logic control module 204 for controlling the switch in the second D / A conversion circuit 202 is a binary code, and the capacitance values ​​of the capacitors in the second capacitor array 2021 and the fourth capacitor array 2022 can be set to be in a binary relationship, and the capacitance values ​​of capacitors C21 and C21', the capacitance values ​​of capacitors C22 and C22'... the capacitance values ​​of capacitors C2N2 and C2N2' are correspondingly equal, and the capacitance values ​​of the second unit capacitor C2c and the fourth unit capacitor C2c' are equal to the capacitance values ​​of the lowest-order capacitors C2N2 and C2N2'.

[0064] Combine the following Figure 7 , the working principle of the successive approximation analog-to-digital converter of this embodiment is introduced, Figure 7 1 is a timing diagram of a successive approximation analog-to-digital converter according to an embodiment of the present invention, wherein ADC_CLK represents a clock signal of the successive approximation analog-to-digital converter 200, VID_CODE represents a voltage identification code, ADC_OUT represents a digital output signal, and the successive approximation analog-to-digital converter 200 includes a sampling phase, a difference phase, and a conversion phase.

[0065] In the sampling phase, the first D / A conversion circuit 201 samples the input signal Vi. Specifically, by controlling switches S11, S12 ... S1N1, and switch S1c, the second end of each capacitor C11, C12 ... C1N1 in the first capacitor array 2011 and the second end of the first unit capacitor C1c receive the input signal Vi; in an embodiment with a common mode voltage, the first common terminal A and the second common terminal B can be connected to the common mode voltage VCM by controlling switches Sp and Sn to be turned on; wherein the control signal (not shown in the figure) for controlling switches S11, S12 ... S1N in the sampling phase and the control signal (not shown in the figure) for controlling switches S1c, Sp, Sn in all phases can be, for example, a signal obtained according to the clock signal ADC_CLK. Further, in one embodiment, in the sampling stage, the switches S21, S22 ... S2N2, and the switches S21', S22' ... S2N2' can be controlled so that the second ends of the capacitors with half the capacitance of the capacitors connected to the same input terminal of the comparator 203 in the second D / A conversion circuit 202 are connected to the reference ground GND, and the second ends of the capacitors with the other half the capacitance receive the second reference voltage Vref2, that is, the second ends of the capacitors with half the capacitance of the total capacitance of the second capacitor array 2021 and the second unit capacitor C2c are connected to the reference ground GND, and the second ends of the capacitors with the other half the capacitance receive the second reference voltage Vref2, and the second ends of the capacitors with half the capacitance of the total capacitance of the fourth capacitor array 2022 and the fourth unit capacitor C2c' are connected to the reference ground GND, and the second ends of the capacitors with the other half the capacitance receive the second reference voltage Vref2. Assuming that the total capacitance of the first capacitor array 2011 and the first unit capacitor C1c, the total capacitance of the third capacitor array 2012 and the third unit capacitor C1c' are all C1, the total capacitance of the second capacitor array 2021 and the second unit capacitor C2c, the total capacitance of the fourth capacitor array 2022 and the fourth unit capacitor C2c' are all C2, then in the sampling stage:

[0066] VP=VN=VCM(1)

[0067] Wherein, VP represents the voltage of the positive input terminal of the comparator 203 , VN represents the voltage of the negative input terminal of the comparator 203 , and VCM represents the common mode voltage.

[0068] (2)

[0069] Wherein, QP represents the charge amount at the non-inverting input terminal of the comparator 203, Vi represents the input signal, and Vref2 represents the second reference voltage.

[0070] In the difference phase, the first D / A conversion circuit 201 outputs a first voltage according to the first digital code. Specifically, by controlling the switches Sp and Sn to be turned off, the first common terminal A and the second common terminal B are both disconnected from the common mode voltage VCM, and the switches S11, S12...S1N connected to the second end of each capacitor C11, C12...C1N1 in the first capacitor array 2011 are controlled according to the first digital code, so that the second end of each capacitor is connected to the reference ground GND or receives the first reference voltage Vref1. In this embodiment, the first digital code uses a voltage identification code VID_CODE of a binary code with a bit width of N1, for example, and controls the switches S11~S1N1 corresponding to the capacitors C11~C1N1 one by one according to each bit of the voltage identification code VID_CODE; at the same time, by controlling the switch S1c, the second end of the first unit capacitor C1c is connected to the reference ground GND. In this embodiment, the first voltage output by the first D / A conversion circuit 201 is equal to the voltage difference between the first common terminal A and the second common terminal B at the end of the difference phase, that is, the difference between the positive input terminal voltage VP and the negative input terminal voltage VN of the comparator 203. In the difference phase, the second end of the capacitor with half the capacitance of the capacitor connected to the same input terminal of the comparator 203 in the second D / A conversion circuit 202 can continue to be connected to the reference ground GND, and the second end of the capacitor with the other half the capacitance receives the second reference voltage Vref2. It can be obtained that in the difference phase:

[0071] VN=VCM(3)

[0072] Wherein, VN represents the negative input terminal voltage of the comparator 203, and VCM represents the common mode voltage.

[0073] (4)

[0074] in (5)

[0075] Wherein, QP represents the charge amount at the non-inverting input terminal of the comparator 203, VP represents the voltage at the non-inverting input terminal of the comparator 203, Vref2 represents the second reference voltage, REF represents the reference signal mentioned above, and D VID_CODE represents the decimal number corresponding to the voltage identification code VID_CODE, N1 represents the bit width of the voltage identification code VID_CODE, and Vref1 represents the first reference voltage.

[0076] According to the law of charge conservation, the charge amount at the non-inverting input terminal of the comparator 203 in the sampling phase is equal to the charge amount in the difference phase, that is, QP in formula (2) and formula (4) are equal:

[0077] ,

[0078] Available, (6)

[0079] According to formula (3) and formula (6), at the end of the difference calculation stage, the first voltage output by the first D / A conversion circuit 201 is equal to:

[0080] (7)

[0081] According to formula (7), in this embodiment, the first voltage can represent the difference between the reference signal REF and the input signal Vi. According to the above formula (5), the magnitude of the reference signal REF is related to the first digital code.

[0082] In the conversion stage, the second D / A conversion circuit 202 receives the first voltage output by the first D / A conversion circuit 201, and the logic control module 204 controls the second D / A conversion circuit 202 according to the comparison result of the comparator 203, and calculates the difference between the positive input terminal voltage and the negative input terminal voltage of the comparator 203. The first voltage is converted to output a digital output signal ADC_OUT corresponding to the first voltage, and the digital output signal ADC_OUT can represent the difference between the reference signal REF and the input signal Vi. In this embodiment, the first voltage is equal to the difference between the positive input terminal voltage VP and the negative input terminal voltage VN of the comparator 203 at the end of the difference phase. Therefore, this embodiment actually converts the first voltage in the conversion phase. Specifically, in the conversion phase, the logic control module 204 controls the switches S21, S22...S2N2, S21', S22'...S2N2' connected to the second end of each capacitor in the second capacitor array 2021 and the fourth capacitor array 2022 according to the comparison result of the comparator 203. More specifically, the logic control module 204 adjusts the on / off of the switches S21, S22 ... S2N2, S21', S22' ... S2N2' in sequence according to the comparison result of the comparator 203, gradually approaches the difference REF-Vi between the reference signal REF and the input signal Vi, and converts the difference between the reference signal REF and the input signal Vi into the digital output signal ADC_OUT.

[0083] It can be understood that in other embodiments, the first D / A conversion circuit 201 may also not include the first unit capacitor C1c and the third unit capacitor C1c', and the working principle is basically the same as that of the first embodiment, except that in these embodiments, the reference signal In some other embodiments, the first digital code may also be a thermometer code. In these embodiments, the capacitance of each capacitor in the first capacitor array 2011 and the third capacitor array 2012 in the first D / A conversion circuit 201 may be set to be equal, and the first D / A conversion circuit 201 may not include the first unit capacitor C1c and the third unit capacitor C1c'. The working principle is basically the same as that of the first embodiment. The difference is that, in these embodiments, taking the voltage identification code VID_CODE whose first digital code is an N1-bit thermometer code as an example, the reference signal . Similarly, it is easy to understand that in other embodiments, the second D / A conversion circuit 202 may not include the second unit capacitor C2c and the fourth unit capacitor C2c'. In some examples, the logic control module 204 may also use a thermometer code to control the second D / A conversion circuit 202. Accordingly, the capacitance of each capacitor in the second capacitor array 2021 and the fourth capacitor array 2022 in the second D / A conversion circuit 202 may be set to be equal. In the first embodiment, the first common terminal A is connected to the positive input terminal of the comparator 203, and the second common terminal B is connected to the negative input terminal of the comparator 203. The first voltage can specifically represent the difference between the reference signal REF and the input signal Vi. In other embodiments, the first common terminal A can also be set to connect the negative input terminal of the comparator 203, and the second common terminal B can be connected to the positive input terminal of the comparator 203. According to the above introduction to the working principle of the first embodiment, it is easy to know that in these embodiments, the first voltage can specifically represent the difference between the input signal Vi and the reference signal.

[0084] Figure 6 Shown according to Figure 4 The circuit structure diagram of the second embodiment of the successive approximation analog-to-digital converter is basically the same as the first embodiment, and will not be repeated here. The difference is that in this embodiment, the first D / A conversion circuit 201 does not include the third capacitor array 2012 and the third unit capacitor C1c', the second D / A conversion circuit 202 does not include the fourth capacitor array 2022 and the fourth unit capacitor C2c', and the negative input terminal of the comparator 203 is connected to the common mode voltage VCM. In this embodiment, at the end of the difference phase, the first voltage output by the first D / A conversion circuit 201 is equal to the voltage of the first common terminal A, wherein the first common terminal A is connected to the positive input terminal of the comparator 203. Therefore, according to the above formula (6), in this embodiment, the first voltage is equal to , the first voltage can represent the difference between the reference signal REF and the input signal Vi. In this embodiment, the logic control module 204 controls the second D / A conversion circuit 202 according to the comparison result of the comparator 203, converts the difference between the positive input terminal voltage and the negative input terminal voltage of the comparator 203, that is, the difference between the first voltage and the common mode voltage VCM. It is easy to understand that in other embodiments, the first common terminal A can also be set to be connected to the negative phase input terminal of the comparator 203, and the positive phase input terminal of the comparator 203 is connected to the common mode voltage VCM. The first voltage can also specifically represent the difference between the reference signal REF and the input signal Vi. In these embodiments, the logic control module 204 controls the second D / A conversion circuit 202 according to the comparison result of the comparator 203 to convert the difference between the positive phase input terminal voltage and the negative phase input terminal voltage of the comparator 203, that is, the difference between the common mode voltage VCM and the first voltage. to convert.

[0085] The embodiments of the present invention are all illustrated by taking a common-mode voltage VCM as an example. It is easy to understand that the successive approximation analog-to-digital converter of the present invention can also be a successive approximation analog-to-digital converter that does not require a common-mode voltage. Those skilled in the art can easily obtain the corresponding circuit structure based on the contents of this application, which will not be elaborated here.

[0086] In summary, the embodiment of the present invention embeds the first D / A conversion circuit 201 into the successive approximation analog-to-digital converter 200, which can simplify the voltage detection circuit, eliminate the high-speed D / A conversion module U1 and the differential operational amplifier module U2 required in the prior art, reduce the complexity of the circuit, and avoid the non-ideal characteristics of the high-speed D / A conversion module U1 and the differential operational amplifier module U2 affecting the accuracy of the voltage detection and even the entire system, that is, the voltage detection accuracy and system accuracy of the embodiment of the present invention are higher; at the same time, the first D / A conversion circuit 201 is embedded in the successive approximation analog-to-digital converter After 200, compared with the conventional successive approximation analog-to-digital converter 100, a difference calculation stage is added, wherein the time required for the difference calculation stage accounts for a very small proportion of the time in the clock signal cycle, and will not affect the frequency of the clock signal of the successive approximation analog-to-digital converter, that is, it will not affect the speed of the successive approximation analog-to-digital converter 200; and, the voltage detection circuit 20 of the embodiment of the present invention can avoid the influence of the delay of the high-speed analog-to-digital conversion module U1 and the differential operational amplifier module U2 on the voltage detection speed, that is, it can improve the speed of voltage detection, and it is easier to achieve high-speed adjustment of the first digital code.

[0087] Figure 8 The circuit structure diagram of the sampling circuit 210 in the voltage detection circuit 20 is shown. In one embodiment, the sampling circuit 210 includes a voltage divider circuit 211 and a voltage follower 212. The voltage divider circuit 211 includes a first resistor R1 and a second resistor R2 connected in series, receives a voltage to be detected VSEN and divides it; the input end of the voltage follower 212 is connected to the common end of the first resistor R1 and the second resistor R2, and the output end outputs a feedback voltage VFB. In another embodiment, the sampling circuit 210 may not include the voltage divider circuit 211, and the input end of the voltage follower 212 directly receives the voltage to be sampled VSEN.

[0088] Fig. 9 A schematic diagram of the circuit structure of a switching power supply according to an embodiment of the present invention is given. The switching power supply 2

[0089] The power supply 2 includes a power stage circuit 21, a control circuit 22, and a voltage detection circuit 20. In one embodiment, the output voltage Vo output by the power stage circuit 21 is used as the voltage to be detected VSEN received by the voltage detection circuit 20; the control circuit 22 receives the digital output signal ADC_OUT output by the voltage detection circuit 20, and outputs a control signal to control the on and off of the power tube in the power stage circuit 21. The circuit structure of the voltage detection circuit 20 has been introduced in the previous text, and it is not necessary to repeat it here. Since the voltage detection circuit 20 omits the high-speed D / A conversion module and the differential operational amplifier module required in the prior art, the circuit complexity is reduced, and the voltage detection accuracy is improved. Therefore, compared with the prior art, the circuit complexity of the switching power supply 2 is lower, and the output voltage accuracy is higher; and since the voltage detection circuit 20 has a higher voltage detection speed, it is easier to achieve high-speed adjustment of the first digital code. Therefore, compared with the prior art, the switching power supply 2 is easier to achieve high-speed adjustment of the output voltage.

[0090] The above-described implementation methods do not constitute a limitation on the protection scope of the technical solution. Any modification, equivalent replacement and improvement made within the spirit and principle of the above-described implementation methods shall be included in the protection scope of the technical solution.

Claims

1. A successive approximation analog-to-digital converter, characterized in that: It includes a first D / A conversion circuit, a second D / A conversion circuit, a comparator and a logic control module, The first D / A conversion circuit receives an input signal and a first digital code, and outputs a first voltage that can represent a difference between a reference signal and the input signal, wherein the magnitude of the reference signal is related to the first digital code; The second D / A conversion circuit receives the first voltage, and an output terminal is coupled to at least one input terminal of the comparator; The output terminal of the comparator is coupled to the input terminal of the logic control module, and the logic control module controls the second D / A conversion circuit according to the comparison result of the comparator, and outputs a digital output signal corresponding to the first voltage; The successive approximation analog-to-digital converter includes a sampling phase, a difference phase and a conversion phase. In the sampling phase, the first D / A conversion circuit samples the input signal; In the difference calculation stage, the first D / A conversion circuit outputs the first voltage according to the first digital code; In the conversion phase, the logic control module controls the second D / A conversion circuit according to the comparison result of the comparator; The output terminal of the first D / A conversion circuit is coupled to at least one input terminal of the comparator, and the second D / A conversion circuit is connected to the output terminal of the first D / A conversion circuit.

2. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The first digital code includes a voltage identification code.

3. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The first D / A conversion circuit also receives a first reference voltage, and the magnitude of the reference signal is a function of the first reference voltage and the first digital code.

4. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The first D / A conversion circuit includes a first capacitor array, The first end of each capacitor in the first capacitor array is connected to a first common end, and the first common end serves as an output end of the first D / A conversion circuit. The second end of each capacitor receives an input signal through a switch connected to the second end of each capacitor, or is connected to a reference ground, or receives a first reference voltage.

5. The successive approximation analog-to-digital converter according to claim 4, characterized in that: In the sampling phase, the second end of each capacitor in the first capacitor array receives the input signal; In the difference calculation stage, the switch connected to the second end of each capacitor in the first capacitor array is controlled according to the first digital code, so that the second end of each capacitor is connected to the reference ground or receives the first reference voltage.

6. The successive approximation analog-to-digital converter according to claim 5, characterized in that: The first voltage is equal to the voltage of the first common terminal at the end of the difference-finding phase.

7. The successive approximation analog-to-digital converter according to claim 5, characterized in that: The first common terminal is coupled to an input terminal of the comparator, The first voltage is equal to the difference between the voltage at the positive phase input terminal and the voltage at the negative phase input terminal of the comparator at the end of the difference calculation stage.

8. The successive approximation analog-to-digital converter according to claim 5, characterized in that: During the sampling phase, the first common terminal is connected to a common mode voltage.

9. The successive approximation analog-to-digital converter according to claim 4, characterized in that: The first D / A conversion circuit further includes a first unit capacitor, the capacitance of the lowest capacitor in the first capacitor array is equal to the capacitance of the first unit capacitor, a first end of the first unit capacitor is connected to the first common end, and a second end is connected to an input signal or a reference ground through a switch connected thereto; In the sampling phase, the second end of the first unit capacitor receives an input signal; In the difference-finding stage, the second terminal of the first unit capacitor is connected to a reference ground.

10. The successive approximation analog-to-digital converter according to claim 1, characterized in that: In the sampling phase and the difference phase, the first end of the capacitor in the second D / A conversion circuit is connected to the input of the comparator, the second end of the capacitor with half the capacitance connected to the same input of the comparator is connected to the reference ground, and the second end of the capacitor with the other half the capacitance receives a second reference voltage.

11. The successive approximation analog-to-digital converter according to claim 4, characterized in that: The second D / A conversion circuit includes a second capacitor array, The first end of each capacitor in the second capacitor array is connected to the first common end, and the second end of each capacitor is connected to the reference ground or receives a second reference voltage through a switch connected to the second end of each capacitor, wherein the first common end serves as an output end of the second D / A conversion circuit; In the conversion phase, the logic control module controls the switch connected to the second end of each capacitor in the second capacitor array according to the comparison result of the comparator.

12. The successive approximation analog-to-digital converter according to claim 4, characterized in that: The first D / A conversion circuit further includes a third capacitor array, The capacitance of the capacitors in the third capacitor array is equal to the capacitance of the capacitors in the first capacitor array, the first end of each capacitor in the third capacitor array is connected to the second common end, and the second end of each capacitor is connected to the reference ground, wherein the second common end serves as another output end of the first D / A conversion circuit.

13. The successive approximation analog-to-digital converter according to claim 12, characterized in that: The first common terminal is connected to the positive phase input terminal of the comparator, and the second common terminal is connected to the negative phase input terminal of the comparator; or, The first common terminal is connected to the negative phase input terminal of the comparator, and the second common terminal is connected to the positive phase input terminal of the comparator.

14. The successive approximation analog-to-digital converter according to claim 12, characterized in that: Said The second D / A conversion circuit includes a second capacitor array and a fourth capacitor array, The first end of each capacitor in the second capacitor array is connected to the first common end, and the second end of each capacitor is connected to the reference ground or receives the second reference voltage through a switch connected to the second end of each capacitor; The first end of each capacitor in the fourth capacitor array is connected to the second common end, and the second end of each capacitor is connected to the reference ground or receives the second reference voltage through a switch connected to the second end of each capacitor; The capacitance of the capacitors in the fourth capacitor array is equal to the capacitance of the capacitors in the second capacitor array, and the first common end and the second common end serve as output ends of the second D / A conversion circuit; In the conversion phase, the logic control module controls the switches connected to the second end of each capacitor in the second capacitor array and the fourth capacitor array according to the comparison result of the comparator.

15. A voltage detection circuit, characterized in that: comprising a sampling circuit and a successive approximation analog-to-digital converter as claimed in any one of claims 1 to 14, The sampling circuit receives the voltage to be detected and outputs a feedback signal; The feedback signal is used as an input signal received by the successive approximation analog-to-digital converter; The successive approximation analog-to-digital converter outputs a digital output signal according to the input signal and a first digital code.

16. The voltage detection circuit according to claim 15, characterized in that: The sampling circuit includes a voltage follower.

17. A switching power supply, characterized in that: comprising a power stage circuit, a control circuit, and a voltage detection circuit as claimed in claim 15, The output voltage output by the power stage circuit is used as the voltage to be detected received by the voltage detection circuit; The control circuit receives the digital output signal output by the voltage detection circuit to output a control signal, and the control signal is used to control the on and off of the power tube in the power stage circuit.