Current sampling circuit and programmable power supply device
By using a sampling resistor and a differential amplifier circuit in the programmable power supply device, and using the first diode to disconnect the input terminal of the ADC, the problem of negative current influence in the standby state is solved, ensuring the accuracy of the output current judgment and the ADC of normal operation.
Patent Information
- Application Number
- CN202420285544.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2034-02-06
AI Technical Summary
When the programmable power supply device switches to standby state, its own large-capacity filter capacitor or external capacitive load causes reverse discharge, and the sampling resistor flows through negative current, affecting the output current judgment and the normal operation and service life of the ADC.
Design a current sampling circuit that uses a sampling resistor and a differential amplifier circuit to disconnect the input terminal of the ADC through the first diode to avoid collecting negative current in the standby state and ensure that the ADC is in normal working condition.
It effectively avoids misjudgment of the output current in standby mode, extends the service life of the ADC, and prevents negative current from affecting the normal operation of the circuit.
Smart Images

Figure CN221767852U
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of programmable power supply devices, and in particular to a current sampling circuit and a programmable power supply device. Background Art
[0002] Programmable power supply devices usually need to sample the output current. However, when the programmable power supply device switches from the normal output state to the standby state, its own large-capacity filter capacitor or external capacitive load will reversely discharge the programmable power supply device, and a negative current will flow through the sampling resistor. The negative current will affect the programmable power supply device's judgment of the output current situation. In addition, the negative current makes the voltage at the ADC input terminal negative, affecting the normal operation and service life of the ADC. Utility Model Content
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a current sampling circuit and a programmable power supply device, which can solve the problem that the negative current of the traditional programmable power supply device technology affects the output current judgment, the normal operation and service life of the ADC.
[0004] According to the first aspect of the present application, the current sampling circuit is applied to a programmable power supply, including:
[0005] A sampling resistor, the sampling resistor is connected to the output circuit of the programmable power supply;
[0006] A differential amplifier circuit, wherein an input end of the differential amplifier circuit is connected to the sampling resistor so as to differentially amplify a voltage difference between two ends of the sampling resistor and output a differential voltage signal;
[0007] A first diode, the output end of the differential amplifier circuit is connected to the anode of the first diode, and the cathode of the first diode is used to connect to the input end of the ADC.
[0008] The current sampling circuit according to the first aspect of the present application has at least the following beneficial effects:
[0009] The output circuit of the programmable power supply device is sampled by the sampling resistor, and the differential amplifier circuit differentially amplifies the voltage difference across the sampling resistor and outputs a differential voltage signal, which is then input to the ADC for acquisition and conversion. Since the input end of the ADC is provided with a first diode, when the programmable power supply is output normally, the positive pole voltage of the first diode is positively conductive, and the first diode is forwardly conductive, and the ADC operates normally. When the programmable power supply device is switched to the standby state, and the programmable power supply device has a reverse discharge, the current flowing through the sampling resistor becomes a negative current, the positive pole voltage of the first diode becomes a negative voltage, and the first diode is reversely cut off, thereby disconnecting the ADC. Compared with the traditional programmable power supply device technology, the current sampling circuit of the embodiment of the present application is in a disconnected state when the programmable power supply device is switched to the standby state, and the negative current will not be collected, thereby avoiding erroneous judgment of the output current and affecting the normal operation and service life of the ADC.
[0010] According to some embodiments of the present application, the differential amplifier circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor and a first operational amplifier, one end of the sampling resistor is connected to one end of the first resistor, the other end of the first resistor is connected to the inverting input of the first operational amplifier, the other end of the sampling resistor is connected to one end of the second resistor, the other end of the second resistor is connected to the non-inverting input of the first operational amplifier, the other end of the second resistor is connected to one end of the third resistor, the other end of the third resistor is grounded, the output of the first operational amplifier is connected to one end of the fourth resistor, and the other end of the fourth resistor is connected to the inverting input of the first operational amplifier.
[0011] According to some embodiments of the present application, it also includes a fifth resistor, a sixth resistor and a second operational amplifier, the output end of the differential amplifier circuit is connected to one end of the fifth resistor, the other end of the fifth resistor is connected to the inverting input end of the second operational amplifier, the non-inverting input end of the second operational amplifier is grounded, the output end of the second operational amplifier is connected to the anode of the first diode, the cathode of the first diode is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the inverting input end of the second operational amplifier.
[0012] According to some embodiments of the present application, a second diode is further included, wherein an anode of the second diode is connected to an inverting input terminal of the second operational amplifier, and a cathode of the second diode is connected to an output terminal of the second operational amplifier.
[0013] According to some embodiments of the present application, a seventh resistor and a filter capacitor are also included, wherein the output end of the first diode is connected to one end of the seventh resistor, the other end of the seventh resistor is connected to the input end of the ADC, the other end of the seventh resistor is connected to one end of the filter capacitor, and the other end of the filter capacitor is grounded.
[0014] According to the second aspect of the present application, the programmable power supply device includes the above-mentioned current sampling circuit.
[0015] The programmable power supply device according to the second aspect of the present application has at least the following beneficial effects:
[0016] The output circuit of the programmable power supply device is sampled by the sampling resistor, and the differential amplifier circuit differentially amplifies the voltage difference across the sampling resistor and outputs a differential voltage signal, which is then input to the ADC for acquisition and conversion. Since the input end of the ADC is provided with a first diode, when the programmable power supply is output normally, the positive pole voltage of the first diode is positively conductive, and the first diode is forwardly conductive, and the ADC operates normally. When the programmable power supply device is switched to the standby state, and the programmable power supply device has a reverse discharge, the current flowing through the sampling resistor becomes a negative current, the positive pole voltage of the first diode becomes a negative voltage, and the first diode is reversely cut off, thereby disconnecting the ADC. Compared with the traditional programmable power supply device technology, the current sampling circuit of the embodiment of the present application is in a disconnected state when the programmable power supply device is switched to the standby state, and the negative current will not be collected, thereby avoiding erroneous judgment of the output current and affecting the normal operation and service life of the ADC.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:
[0019] Figure 1 A schematic diagram of the output current of the program-controlled power supply device of the present application when it is working;
[0020] Figure 2 A schematic diagram of negative current when the program-controlled power supply device of the present application is in standby mode;
[0021] Figure 3 is a circuit diagram of the current sampling circuit of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0023] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0024] In the description of this application, "a plurality" means more than two. If there is a description of "first" or "second", it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0025] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0026] Refer to the following Figures 1 to 3 A current sampling circuit and a programmable power supply device according to an embodiment of the present application are described.
[0027] According to an embodiment of the present application, the current sampling circuit is applied to a programmable power supply, such as Figure 3 As shown, it includes: a sampling resistor R9, a differential amplifier circuit and a first diode D2. The sampling resistor R9 is connected to the output loop of the programmable power supply; the input end of the differential amplifier circuit is connected to the sampling resistor R9 to differentially amplify the voltage difference between the two ends of the sampling resistor R9 and output a differential voltage signal. The output end of the differential amplifier circuit is connected to the positive electrode of the first diode D2, and the negative electrode of the first diode D2 is used to connect the input end of the ADC.
[0028] In this embodiment, the output circuit of the programmable power supply device is sampled by the sampling resistor R9, and the differential amplifier circuit performs differential amplification on the voltage difference between the two ends of the sampling resistor R9 and outputs a differential voltage signal, which is then input to the ADC for acquisition and conversion. Since the input end of the ADC is provided with a first diode D2, when the programmable power supply is output normally, the positive electrode voltage of the first diode D2, the first diode D2 is forwardly conducted, and the ADC works normally. When the programmable power supply device is switched to the standby state, and the programmable power supply device has a reverse discharge, the current flowing through the sampling resistor R9 becomes a negative current, the positive electrode voltage of the first diode D2 becomes a negative voltage, and the first diode D2 is reversely cut off, thereby disconnecting the ADC. Compared with the traditional programmable power supply device technology, the current sampling circuit of the embodiment of the present application is in a disconnected state when the programmable power supply device is switched to the standby state, and the negative current will not be collected, thereby avoiding erroneous judgment of the output current and affecting the normal operation and service life of the ADC.
[0029] In one embodiment of the present application, Figure 3 As shown, the differential amplifier circuit includes a first resistor R2, a second resistor R4, a third resistor R5, a fourth resistor R3 and a first operational amplifier U1, one end of a sampling resistor R9 is connected to one end of the first resistor R2, the other end of the first resistor R2 is connected to the inverting input terminal of the first operational amplifier U1, the other end of the sampling resistor R9 is connected to one end of the second resistor R4, the other end of the second resistor R4 is connected to the non-inverting input terminal of the first operational amplifier U1, the other end of the second resistor R4 is connected to one end of the third resistor R5, the other end of the third resistor R5 is grounded, the output end of the first operational amplifier U1 is connected to one end of the fourth resistor R3, and the other end of the fourth resistor R3 is connected to the inverting input terminal of the first operational amplifier U1.
[0030] In this embodiment, the first resistor R2, the second resistor R4, the third resistor R5, the fourth resistor R3 and the first operational amplifier U1 form a differential amplifier circuit, and the first operational amplifier U1 differentially amplifies the voltage difference across the sampling resistor R9 and outputs a differential voltage signal.
[0031] In one embodiment of the present application, Figure 3 As shown, it also includes a fifth resistor R6, a sixth resistor R7 and a second operational amplifier U2, the output end of the first operational amplifier U1 is connected to one end of the fifth resistor R6, the other end of the fifth resistor R6 is connected to the inverting input end of the second operational amplifier U2, the non-inverting input end of the second operational amplifier U2 is grounded, the output end of the second operational amplifier U2 is connected to the positive electrode of the first diode D2, the negative electrode of the first diode D2 is connected to one end of the sixth resistor R7, and the other end of the sixth resistor R7 is connected to the inverting input end of the second operational amplifier U2.
[0032] In this embodiment, the fifth resistor R6, the sixth resistor R7 and the second operational amplifier U2 constitute an inverting amplifier circuit. The differential voltage signal output by the first operational amplifier U1 is input to the second operational amplifier U2, and the second operational amplifier U2 amplifies the second differential signal and outputs it in an inverted manner.
[0033] It is understandable that when the program-controlled power supply device is working, Figure 1 As shown, the first switch S1 and the second switch S2 are switched on and off at high frequency, the third switch S3 is disconnected, the BUCK circuit works normally, the programmable power supply device outputs voltage to the outside, a forward current flows through the sampling resistor R9, and the output current of the programmable power supply device is collected through the sampling resistor R9. At this time, the voltage Vsense_p at one end of the sampling resistor R9 is greater than the voltage Vsense_n at the other end, the voltage Vsense_p is input to the inverting input terminal of the first operational amplifier U1, the voltage Vsense_n is input to the non-inverting input terminal of the first operational amplifier U1, the output terminal voltage V2 of the first operational amplifier U1 is less than zero, so that the inverting input terminal of the second operational amplifier U2 is less than zero, so that the output terminal voltage V3 of the second operational amplifier U2 is greater than zero, the first diode D2 is forward-conducted, the voltage at the ADC input terminal is positive, and the ADC works normally.
[0034] When the program-controlled power supply unit switches to standby mode, Figure 2 As shown, the first switch S1 and the second switch S2 are disconnected, and the third switch S3 is closed, which is used to discharge the voltage on the capacitor. The internal capacitor C1 and the external capacitor C2 of the programmable power supply device discharge the voltage through the eighth resistor R1, and a negative current flows through the sampling resistor R9. The voltage Vsense_p at one end of the sampling resistor R9 is less than the voltage Vsense_n at the other end. The voltage Vsense_p is input to the inverting input terminal of the first operational amplifier U1, and the voltage Vsense_n is input to the non-inverting input terminal of the first operational amplifier U1, so that the output voltage V2 of the first operational amplifier U1 is greater than zero, and then the output voltage V3 of the second operational amplifier U2 is less than zero, the first diode D2 is reversely cut off, and the ADC is disconnected.
[0035] In one embodiment of the present application, Figure 3 As shown, a second diode D1 is also included, the anode of the second diode D1 is connected to the inverting input terminal of the second operational amplifier U2, and the cathode of the second diode D1 is connected to the output terminal of the second operational amplifier U2.
[0036] In this embodiment, when the program-controlled power supply device is working, the output voltage V2 of the first operational amplifier U1 is less than zero, and the second diode D1 is in a reverse cut-off state. When the program-controlled power supply is switched to the standby state, the output voltage V2 of the first operational amplifier U1 is greater than zero, the second diode D1 is in a forward conduction state, and the current flowing through R6 will flow into the output end of the second operational amplifier U2 through the second diode D1. Because the first diode D2 is in a reverse cut-off state, no current will flow through the sixth resistor R7, and one end of the sixth resistor R7 connected to the inverting input end of the second operational amplifier U2 is "virtually shorted" to the ground, and no current flows through the sixth resistor R7, so the cathode voltage of the second diode D1 is zero, and no signal is input to the ADC.
[0037] In one embodiment of the present application, Figure 3 As shown, it also includes a seventh resistor R8 and a filter capacitor C3, the output end of the first diode D2 is connected to one end of the seventh resistor R8, the other end of the seventh resistor R8 is connected to the input end of the ADC, the other end of the seventh resistor R8 is connected to one end of the filter capacitor C3, and the other end of the filter capacitor C3 is grounded.
[0038] In this embodiment, the seventh resistor R8 and the filter capacitor C3 form an anti-aliasing filter circuit, which can filter high-frequency signals.
[0039] In addition, an embodiment of the present application discloses a programmable power supply device, including the above-mentioned current sampling circuit.
[0040] In this embodiment, the output circuit of the programmable power supply device is sampled by the sampling resistor R9, and the differential amplifier circuit performs differential amplification on the voltage difference between the two ends of the sampling resistor R9 and outputs a differential voltage signal, which is then input to the ADC for acquisition and conversion. Since the input end of the ADC is provided with a first diode D2, when the programmable power supply is output normally, the positive electrode voltage of the first diode D2, the first diode D2 is forwardly conducted, and the ADC works normally. When the programmable power supply device is switched to the standby state, and the programmable power supply device has a reverse discharge, the current flowing through the sampling resistor R9 becomes a negative current, the positive electrode voltage of the first diode D2 becomes a negative voltage, and the first diode D2 is reversely cut off, thereby disconnecting the ADC. Compared with the traditional programmable power supply device technology, the current sampling circuit of the embodiment of the present application is in a disconnected state when the programmable power supply device is switched to the standby state, and the negative current will not be collected, thereby avoiding erroneous judgment of the output current and affecting the normal operation and service life of the ADC.
[0041] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A current sampling circuit, characterized in that: Applicable to programmable power supply devices, including: A sampling resistor, the sampling resistor is connected to the output circuit of the programmable power supply; A differential amplifier circuit, wherein an input end of the differential amplifier circuit is connected to the sampling resistor so as to differentially amplify a voltage difference between two ends of the sampling resistor and output a differential voltage signal; A first diode, the output end of the differential amplifier circuit is connected to the anode of the first diode, and the cathode of the first diode is used to connect to the input end of the ADC.
2. The current sampling circuit according to claim 1, characterized in that: The differential amplifier circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor and a first operational amplifier, one end of the sampling resistor is connected to one end of the first resistor, the other end of the first resistor is connected to the inverting input terminal of the first operational amplifier, the other end of the sampling resistor is connected to one end of the second resistor, the other end of the second resistor is connected to the non-inverting input terminal of the first operational amplifier, the other end of the second resistor is connected to one end of the third resistor, the other end of the third resistor is grounded, the output end of the first operational amplifier is connected to one end of the fourth resistor, and the other end of the fourth resistor is connected to the inverting input terminal of the first operational amplifier.
3. The current sampling circuit according to claim 1, characterized in that: It also includes a fifth resistor, a sixth resistor and a second operational amplifier, the output end of the differential amplifier circuit is connected to one end of the fifth resistor, the other end of the fifth resistor is connected to the inverting input end of the second operational amplifier, the non-inverting input end of the second operational amplifier is grounded, the output end of the second operational amplifier is connected to the anode of the first diode, the cathode of the first diode is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the inverting input end of the second operational amplifier.
4. The current sampling circuit according to claim 3, characterized in that: It also includes a second diode, wherein the anode of the second diode is connected to the inverting input terminal of the second operational amplifier, and the cathode of the second diode is connected to the output terminal of the second operational amplifier.
5. The current sampling circuit according to claim 1, characterized in that: It also includes a seventh resistor and a filter capacitor, wherein the output end of the first diode is connected to one end of the seventh resistor, the other end of the seventh resistor is connected to the input end of the ADC, the other end of the seventh resistor is connected to one end of the filter capacitor, and the other end of the filter capacitor is grounded.
6. A program-controlled power supply device, characterized in that: The invention comprises a current sampling circuit as claimed in any one of claims 1 to 5.
