Current sampling circuit, method, device, source meter and storage medium
By using a multi-range selection circuit and sampling resistor in the source meter, and using analog switches and voltage follower circuits to achieve fast current and voltage control, the problems of unstable source output and low accuracy in the traditional source meter current sampling circuit are solved, and the measurement efficiency is improved. Accuracy.
Patent Information
- Application Number
- CN202410978505.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Due to the long relay switching time of the current sampling circuit of the traditional source meter, the source output is unstable, electromagnetic interference affects the measurement accuracy, and the analog switch has leakage current problems, which reduces the source output and measurement accuracy.
It uses multiple range selection circuits and sampling resistors to achieve fast switching through analog switches, and combines the voltage following circuit and signal output circuit to control the on and off of current and voltage to avoid leakage current and improve sampling accuracy.
The source output accuracy and measurement accuracy are improved, and the accuracy reduction problems caused by long relay switching time and analog switch leakage current are avoided.
Smart Images

Figure CN118518929B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of source meter technology, and in particular to a current sampling circuit, method, device, source meter and storage medium. Background Art
[0002] The source meter is a commonly used instrument in measurement and control technology. It combines the achievements of electronic technology, computing technology and measurement and control technology. It has become an indispensable instrument in modern measurement with its wide range of uses, easy operation, accurate readings, small size and easy portability.
[0003] The current sampling circuit of the source meter generally uses several groups of resistors in series, and performs multi-range sampling through relay switching. However, relay switching requires block time, and the current sampling of the source meter is not only used as the sampling of the meter, but also as the feedback of the source. The switching process of the relay is in milliseconds, and the switching time is relatively long, which will cause the source output to be unstable or even discontinuous. In addition, the relay is an electromagnetic component, and the switching process will generate electromagnetic interference, which will affect the output and sampling of weak currents and reduce the source output accuracy and measurement accuracy of the source meter. If the relay is replaced with an analog switch with a shorter switching time, but the analog switch has a leakage current problem, it will also reduce the source output accuracy and measurement accuracy of the source meter. Summary of the invention
[0004] The present application aims to propose a current sampling circuit, method, device, source meter and storage medium, which can solve the problem of insufficient source output accuracy and measurement accuracy of traditional source meter technology.
[0005] In a first aspect, an embodiment of the present application provides a current sampling circuit, which is applied to a source meter. The circuit includes:
[0006] a source input terminal and a source output terminal;
[0007] A plurality of range selection circuits, each of which comprises a first analog switch and a second analog switch, wherein the source input terminal is connected to the input terminal of the first analog switch, and the output terminal of the first analog switch is connected to the input terminal of the second analog switch;
[0008] A plurality of sampling resistors, the plurality of sampling resistors correspond to the plurality of range selection circuits, the plurality of sampling resistors correspond to a plurality of different ranges, the first ends of the plurality of sampling resistors are correspondingly connected to the output ends of the plurality of second analog switches, and the second ends of the plurality of sampling resistors are all connected to the source output end;
[0009] A plurality of voltage follower circuits, the plurality of voltage follower circuits corresponding to the plurality of range selection circuits, the input ends of the plurality of voltage follower circuits correspondingly connected to the second ends of the plurality of sampling resistors, and the output ends of the plurality of voltage follower circuits correspondingly connected to the input ends of the plurality of second analog switches;
[0010] A signal output circuit, wherein the first and second ends of the plurality of sampling resistors are connected to the input end of the signal output circuit; when the first analog switch and the second analog switch in the first range selection circuit corresponding to the target range are both turned on, current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor; when the first analog switch and the second analog switch of the second range selection circuit are turned off, the second terminal voltage of the second target resistor is output to the input end of the second analog switch through the voltage follower circuit, so that the input end of the second analog switch and the second terminal voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
[0011] According to some embodiments of the present application, the voltage follower circuit includes a first buffer and a third analog switch, the input end of the first buffer is connected to the second end of the sampling resistor, the output end of the first buffer is connected to the input end of the third analog switch, and the output end of the third analog switch is connected to the input end of the second analog switch.
[0012] According to some embodiments of the present application, the signal output circuit includes an output selection module and an amplification module, the first ends of the plurality of sampling resistors are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module, the second ends of the plurality of sampling resistors are all connected to the second input end of the amplification module, and the output end of the amplification module outputs the sampling signal.
[0013] According to some embodiments of the present application, the output selection module includes multiple fourth analog switches, the multiple fourth analog switches correspond to the multiple sampling resistors, the input ends of the multiple fourth analog switches are correspondingly connected to the first ends of the multiple sampling resistors, the output ends of the multiple fourth analog switches are all connected to the first input end of the amplification module, and the output end of the amplification module is used to output the sampling signal.
[0014] In a second aspect, an embodiment of the present application provides a sampling method, which is applied to the current sampling circuit as described above, and the method includes:
[0015] According to the set target range, the first analog switch and the second analog switch of the first range selection circuit are controlled to be turned on, the current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor;
[0016] The first analog switch and the second analog switch of the second range selection circuit are controlled to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch through the voltage follower circuit, so that the input end of the second analog switch and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
[0017] According to some embodiments of the present application, the voltage follower circuit includes a first buffer and a third analog switch, the input end of the first buffer is connected to the second end of the sampling resistor, the output end of the first buffer is connected to the input end of the third analog switch, and the output end of the third analog switch is connected to the input end of the second analog switch; the method further includes:
[0018] Controlling the third analog switch of the first voltage follower circuit to turn off, wherein the first voltage follower circuit is: the voltage follower circuit corresponding to the first range selection circuit;
[0019] The third analog switch of the second voltage follower circuit is controlled to be turned on, and the second voltage follower circuit is: the voltage follower circuit corresponding to the second range selection circuit.
[0020] According to some embodiments of the present application, the signal output circuit includes an output selection module and an amplification module, the first ends of the plurality of sampling resistors are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module, the second ends of the plurality of sampling resistors are all connected to the second input end of the amplification module, and the output end of the amplification module outputs the sampling signal; the output selection module includes a plurality of fourth analog switches, the plurality of fourth analog switches correspond to the plurality of sampling resistors, the input ends of the plurality of fourth analog switches are correspondingly connected to the first ends of the plurality of sampling resistors, the output ends of the plurality of fourth analog switches are all connected to the first input end of the amplification module, and the output end of the amplification module is used to output the sampling signal; the method further includes:
[0021] A fourth analog switch corresponding to the first target resistance is controlled to be turned on.
[0022] In a third aspect, an embodiment of the present application provides a sampling device, which is applied to the current sampling circuit as described above, including:
[0023] A first control module is used to control the first analog switch and the second analog switch of the first range selection circuit to be turned on according to the set target range, so that the current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: a sampling resistor corresponding to the target range; the first range selection circuit is: a range selection circuit corresponding to the first target resistor;
[0024] The second control module is used to control the first analog switch and the second analog switch of the second range selection circuit to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch through the voltage follower circuit, so that the input end of the second analog switch and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
[0025] In a fourth aspect, an embodiment of the present application provides a source meter, comprising a current sampling circuit as described above.
[0026] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the sampling method as described above when executed by the processor.
[0027] In an embodiment of the present application, based on the target range, the first analog switch and the second analog switch of the first range selection circuit are controlled to be turned on, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit. The signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor, thereby realizing sampling under the target range. The first analog switch and the second analog switch of the second range selection circuit are controlled to be turned off, and the second terminal voltage of the second target resistor is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage of the second analog switch and the second terminal voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor, thereby avoiding the leakage current of the first analog switch and the second analog switch turned off in the second range selection circuit affecting the source output accuracy and measurement accuracy. Compared with the traditional source meter technology, the embodiment of the present application improves the source output accuracy and measurement accuracy.
[0028] 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
[0029] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:
[0030] Figure 1 A schematic diagram of an embodiment of a current sampling circuit provided by the present application;
[0031] Figure 2 A flow chart of an embodiment of the sampling method provided in this application;
[0032] Figure 3 A flow chart of a control voltage follower circuit of an embodiment of a sampling method provided by the present application;
[0033] Figure 4 This is a schematic structural diagram of an embodiment of the sampling device provided in the present application.
[0034] Reference numerals:
[0035] The first analog switch 100 , the second analog switch 200 , the sampling resistor 300 , the first buffer 400 , the third analog switch 500 , the amplification module 600 , the fourth analog switch 700 , the second buffer 800 , the sampling device 900 , the first control module 910 , and the second control module 920 . DETAILED DESCRIPTION
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] Refer to the following Figures 1 to 4 A current sampling circuit, method, device, source meter, and storage medium according to an embodiment of the present application are described.
[0041] The present application embodiment provides a current sampling circuit, which is applied to a source meter, such as Figure 1 As shown, the circuit includes: a source input terminal, a source output terminal, a plurality of range selection circuits, a plurality of sampling resistors 300, a plurality of voltage follower circuits and a signal output circuit. Each range selection circuit includes a first analog switch 100 and a second analog switch 200, the source input terminal is connected to the input terminal of the first analog switch 100, and the output terminal of the first analog switch 100 is connected to the input terminal of the second analog switch 200.
[0042] The plurality of sampling resistors 300 correspond to the plurality of range selection circuits, the plurality of sampling resistors 300 correspond to a plurality of different ranges, the first ends of the plurality of sampling resistors 300 are correspondingly connected to the output ends of the plurality of second analog switches 200, and the second ends of the plurality of sampling resistors 300 are all connected to the source output end.
[0043] The multiple voltage follower circuits correspond to the multiple range selection circuits, the input ends of the multiple voltage follower circuits are correspondingly connected to the second ends of the multiple sampling resistors 300 , and the output ends of the multiple voltage follower circuits are correspondingly connected to the input ends of the multiple second analog switches 200 .
[0044] The first and second ends of the plurality of sampling resistors 300 are connected to the input end of the signal output circuit. When the first analog switch 100 and the second analog switch 200 are both turned on in the first range selection circuit corresponding to the target range, the current flows from the source input end through the first analog switch 100, the second analog switch 200 and the first target resistor, and then outputs through the source output end. The first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor 300 corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor.
[0045] When the first analog switch 100 and the second analog switch 200 of the second range selection circuit are turned off, the second end voltage of the second target resistor is output to the input end of the second analog switch 200 through the voltage follower circuit, so that the input end of the second analog switch 200 and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor; the second range selection circuit is: a range selection circuit corresponding to the second target resistor; the second target resistor is: a sampling resistor 300 other than the first target resistor.
[0046] In this embodiment, based on the target range, the first analog switch 100 and the second analog switch 200 of the first range selection circuit are controlled to be turned on, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit. The signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor, thereby realizing sampling under the target range. The first analog switch 100 and the second analog switch 200 of the second range selection circuit are controlled to be turned off, and the second terminal voltage of the second target resistor is output to the input terminal of the second analog switch 200 through the voltage follower circuit, so that the input terminal voltage of the second analog switch 200 and the second terminal voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor, thereby avoiding the leakage current of the first analog switch 100 and the second analog switch 200 turned off in the second range selection circuit affecting the source output accuracy and measurement accuracy. Compared with the traditional source meter technology, the embodiment of the present application improves the source output accuracy and measurement accuracy.
[0047] It is understandable that the models of the first analog switch 100 and the second analog switch 200 are not limited. For example, the first analog switch 100 and the second analog switch 200 may be analog switches such as metal oxide semiconductor field effect transistor switches and complementary metal oxide semiconductor switches.
[0048] It should be noted that the signal output circuit is based on a differential sampling technology and outputs a sampling signal according to a first terminal voltage and a second terminal voltage of the first target resistor, so the sampling accuracy is higher.
[0049] In one embodiment of the present application, Figure 1 As shown, the voltage follower circuit includes a first buffer 400 and a third analog switch 500, the input end of the first buffer 400 is connected to the second end of the sampling resistor 300, the output end of the first buffer 400 is connected to the input end of the third analog switch 500, and the output end of the third analog switch 500 is connected to the input end of the second analog switch 200.
[0050] In this embodiment, when the first analog switch 100 and the second analog switch 200 of the range selection circuit are turned on, the third analog switch 500 of the corresponding voltage follower circuit is controlled to be turned off, and the current flows from the source input end through the first analog switch 100 and the second analog switch 200, and then flows through the corresponding sampling resistor 300, so that a voltage is generated at both ends of the sampling resistor 300, and the voltage of the first end of the sampling resistor 300 is output to the signal output circuit. When the first analog switch 100 and the second analog switch 200 of the range selection circuit are turned off, the third analog switch 500 of the corresponding voltage follower circuit is controlled to be turned on, so that the input end voltage of the second analog switch 200 and the second end voltage of the sampling resistor 300 are equal, and no current flows through the sampling resistor 300 and the second analog switch 200, thereby preventing the leakage current of the first analog switch 100 and the second analog switch 200 from affecting the source output accuracy and sampling accuracy.
[0051] In one embodiment of the present application, Figure 1 As shown, the signal output circuit includes an output selection module and an amplification module 600, the first ends of the plurality of sampling resistors 300 are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module 600, the second ends of the plurality of sampling resistors 300 are all connected to the second input end of the amplification module 600, and the output end of the amplification module 600 outputs the sampling signal.
[0052] In this embodiment, the output selection module is used to select the first end voltage of the first target resistor to be output to the first input end of the amplifier module 600, the second end voltage of the first target resistor is output to the second input end of the amplifier module 600, and the output end of the amplifier module 600 outputs a sampling signal.
[0053] It is understandable that the amplification module 600 adopts an amplifier.
[0054] In one embodiment of the present application, Figure 1As shown, the output selection module includes multiple fourth analog switches 700, the multiple fourth analog switches 700 correspond to the multiple sampling resistors 300, the input ends of the multiple fourth analog switches 700 are correspondingly connected to the first ends of the multiple sampling resistors 300, the output ends of the multiple fourth analog switches 700 are all connected to the first input end of the amplification module 600, and the output end of the amplification module 600 is used to output the sampling signal.
[0055] In this embodiment, the fourth analog switch 700 corresponding to the first target resistor is controlled to be turned on, so that the first terminal voltage of the first target resistor is output to the first input terminal of the amplification module 600 .
[0056] In one embodiment of the present application, Figure 1 As shown, a second buffer 800 is further included, the output ends of the plurality of fourth analog switches 700 are all connected to the input end of the second buffer 800 , and the output end of the second buffer 800 is connected to the first input end of the amplification module 600 .
[0057] In this embodiment, the signal driving capability is improved by the second buffer 800 .
[0058] In addition, the present application embodiment provides a sampling method, which is applied to the current sampling circuit as described above. Figure 2 As shown, the method includes but is not limited to step S100 and step S200.
[0059] Step S100: According to the set target range, the first analog switch 100 and the second analog switch 200 of the first range selection circuit are controlled to be turned on, and the current flows from the source input end through the first analog switch 100, the second analog switch 200 and the first target resistor, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor 300 corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor;
[0060] In this step, after the first analog switch 100 and the second analog switch 200 of the first range selection circuit are turned on, the current flows from the source input end through the first analog switch 100, the second analog switch 200 and the first target resistor, and is then output through the source output end. The first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit. The signal output circuit outputs a sampling signal according to the terminal voltage of the first target resistor to complete sampling under the target range.
[0061] Step S200: Control the first analog switch 100 and the second analog switch 200 of the second range selection circuit to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch 200 through the voltage follower circuit, so that the input end of the second analog switch 200 and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor; the second range selection circuit is: a range selection circuit corresponding to the second target resistor; the second target resistor is: a sampling resistor 300 other than the first target resistor.
[0062] In this step, the first analog switch 100 and the second analog switch 200 of the second range selection circuit are turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch 200 through the voltage follower circuit, so that the input end of the second analog switch 200 and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor, thereby preventing the leakage current of the first analog switch 100 and the second analog switch 200 from affecting the source output accuracy and sampling accuracy.
[0063] In this embodiment, based on the target range, the first analog switch 100 and the second analog switch 200 of the first range selection circuit are controlled to be turned on, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit. The signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor, thereby realizing sampling under the target range. The first analog switch 100 and the second analog switch 200 of the second range selection circuit are controlled to be turned off, and the second terminal voltage of the second target resistor is output to the input terminal of the second analog switch 200 through the voltage follower circuit, so that the input terminal voltage of the second analog switch 200 and the second terminal voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor, thereby avoiding the leakage current of the first analog switch 100 and the second analog switch 200 turned off in the second range selection circuit affecting the source output accuracy and measurement accuracy. Compared with the traditional source meter technology, the embodiment of the present application improves the source output accuracy and measurement accuracy.
[0064] In one embodiment of the present application, the voltage follower circuit includes a first buffer 400 and a third analog switch 500, wherein the input end of the first buffer 400 is connected to the second end of the sampling resistor 300, the output end of the first buffer 400 is connected to the input end of the third analog switch 500, and the output end of the third analog switch 500 is connected to the input end of the second analog switch 200. Figure 3 As shown, the method further includes but is not limited to step S300 and step S400.
[0065] Step S300: controlling the third analog switch 500 of the first voltage follower circuit to be turned off, wherein the first voltage follower circuit is: a voltage follower circuit corresponding to the first range selection circuit;
[0066] In this step, when the first analog switch 100 and the second analog switch 200 of the first range selection circuit are controlled to be turned on, the switch module of the first voltage follower circuit is controlled to be turned off to prevent the first voltage follower circuit from affecting the voltage of the first target resistor and affecting the sampling.
[0067] Step S400: controlling the third analog switch 500 of the second voltage follower circuit to be turned on, the second voltage follower circuit being: a voltage follower circuit corresponding to the second range selection circuit.
[0068] In this step, when the first analog switch 100 and the second analog switch 200 of the second range selection circuit are controlled to be turned off, the switch module of the second voltage follower circuit is controlled to be turned on. Under the action of the second voltage follower circuit, the input terminal voltage of the second analog switch 200 and the second terminal voltage of the second target resistor are equal, and no current passes through the second target resistor and the second analog switch 200, thereby preventing the leakage current of the first analog switch 100 and the second analog switch 200 from affecting the source output accuracy and sampling accuracy.
[0069] In one embodiment of the present application, the signal output circuit includes an output selection module and an amplification module 600, the first ends of the plurality of sampling resistors 300 are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module 600, the second ends of the plurality of sampling resistors 300 are all connected to the second input end of the amplification module 600, and the output end of the amplification module 600 outputs the sampling signal. The output selection module includes a plurality of fourth analog switches 700, the plurality of fourth analog switches 700 correspond to the plurality of sampling resistors 300, the input ends of the plurality of fourth analog switches 700 are correspondingly connected to the first ends of the plurality of sampling resistors 300, the output ends of the plurality of fourth analog switches 700 are all connected to the first input end of the amplification module 600, and the output end of the amplification module 600 is used to output the sampling signal. The method further includes but is not limited to step S500.
[0070] Step S500: controlling the fourth analog switch 700 corresponding to the first target resistance to be turned on.
[0071] In this embodiment, by controlling the fourth analog switch 700 corresponding to the first target resistor to be turned on, the first terminal voltage of the first target resistor is output to the first input terminal of the amplifying module 600, and then the sampling signal is output from the output terminal of the amplifying module 600.
[0072] In addition, the present application embodiment provides a sampling device 900, which is applied to the current sampling circuit as described above. Figure 4 As shown, including:
[0073] The first control module 910 is used to control the first analog switch 100 and the second analog switch 200 of the first range selection circuit to be turned on according to the set target range, so that the current flows from the source input end through the first analog switch 100, the second analog switch 200 and the first target resistor, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor 300 corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor;
[0074] The second control module 920 is used to control the first analog switch 100 and the second analog switch 200 of the second range selection circuit to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch 200 through the voltage follower circuit, so that the input end of the second analog switch 200 and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch 200 and the second target resistor; the second range selection circuit is: a range selection circuit corresponding to the second target resistor; the second target resistor is: a sampling resistor 300 other than the first target resistor.
[0075] The sampling device 900 provided in the embodiment of the present application can achieve Figures 2 to 3 The various processes implemented by the method embodiment achieve the same beneficial effects, and to avoid repetition, they will not be described again here.
[0076] In addition, an embodiment of the present application provides a source meter, including the current sampling circuit as described above.
[0077] The source table provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the current sampling circuit embodiment of the present invention achieve the same beneficial effects, and to avoid repetition, they will not be described again here.
[0078] In addition, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the sampling method as described above.
[0079] The computer-readable storage medium provided in the embodiment of the present application can realize Figures 2 to 3 The various processes implemented by the method embodiment achieve the same beneficial effects, and to avoid repetition, they will not be described again here.
[0080] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program circuits, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program circuits, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0081] 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: Applied to source meter, the circuit includes: a source input terminal and a source output terminal; A plurality of range selection circuits, each of which comprises a first analog switch and a second analog switch, wherein the source input terminal is connected to the input terminal of the first analog switch, and the output terminal of the first analog switch is connected to the input terminal of the second analog switch; A plurality of sampling resistors, the plurality of sampling resistors correspond to the plurality of range selection circuits, the plurality of sampling resistors correspond to a plurality of different ranges, the first ends of the plurality of sampling resistors are correspondingly connected to the output ends of the plurality of second analog switches, and the second ends of the plurality of sampling resistors are all connected to the source output end; A plurality of voltage follower circuits, the plurality of voltage follower circuits corresponding to the plurality of range selection circuits, the input ends of the plurality of voltage follower circuits correspondingly connected to the second ends of the plurality of sampling resistors, and the output ends of the plurality of voltage follower circuits correspondingly connected to the input ends of the plurality of second analog switches; A signal output circuit, the signal output circuit includes an output selection module and an amplification module, the first ends of the plurality of sampling resistors are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module, and the second ends of the plurality of sampling resistors are all connected to the second input end of the amplification module; when the first analog switch and the second analog switch are both turned on in the first range selection circuit corresponding to the target range, the current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit generates a voltage according to the first terminal voltage and the second terminal voltage of the first target resistor. Output sampling signal; the first target resistor is: the sampling resistor corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor; when the first analog switch and the second analog switch of the second range selection circuit are turned off, the second terminal voltage of the second target resistor is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal of the second analog switch and the second terminal voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
2. The current sampling circuit according to claim 1, characterized in that: The voltage follower circuit includes a first buffer and a third analog switch, wherein the input end of the first buffer is connected to the second end of the sampling resistor, the output end of the first buffer is connected to the input end of the third analog switch, and the output end of the third analog switch is connected to the input end of the second analog switch.
3. The current sampling circuit according to claim 1, characterized in that: The output selection module includes a plurality of fourth analog switches, the plurality of fourth analog switches correspond to the plurality of sampling resistors, the input ends of the plurality of fourth analog switches are correspondingly connected to the first ends of the plurality of sampling resistors, the output ends of the plurality of fourth analog switches are all connected to the first input end of the amplification module, and the output end of the amplification module is used to output the sampling signal.
4. A sampling method, characterized in that: Applied to the current sampling circuit as claimed in claim 1, the method comprises: According to the set target range, the first analog switch and the second analog switch of the first range selection circuit are controlled to be turned on, the current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: the sampling resistor corresponding to the target range; the first range selection circuit is: the range selection circuit corresponding to the first target resistor; The first analog switch and the second analog switch of the second range selection circuit are controlled to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch through the voltage follower circuit, so that the input end of the second analog switch and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
5. The sampling method according to claim 4, characterized in that: The voltage follower circuit includes a first buffer and a third analog switch, wherein an input end of the first buffer is connected to the second end of the sampling resistor, an output end of the first buffer is connected to an input end of the third analog switch, and an output end of the third analog switch is connected to an input end of the second analog switch; the method further includes: Controlling the third analog switch of the first voltage follower circuit to turn off, wherein the first voltage follower circuit is: the voltage follower circuit corresponding to the first range selection circuit; The third analog switch of the second voltage follower circuit is controlled to be turned on, and the second voltage follower circuit is: the voltage follower circuit corresponding to the second range selection circuit.
6. The sampling method according to claim 5, characterized in that: The signal output circuit includes an output selection module and an amplification module, the first ends of the plurality of sampling resistors are all connected to the input end of the output selection module, the output end of the output selection module is connected to the first input end of the amplification module, the second ends of the plurality of sampling resistors are all connected to the second input end of the amplification module, and the output end of the amplification module outputs the sampling signal; the output selection module includes a plurality of fourth analog switches, the plurality of fourth analog switches correspond to the plurality of sampling resistors, the input ends of the plurality of fourth analog switches are correspondingly connected to the first ends of the plurality of sampling resistors, the output ends of the plurality of fourth analog switches are all connected to the first input end of the amplification module, and the output end of the amplification module is used to output the sampling signal; the method further includes: A fourth analog switch corresponding to the first target resistance is controlled to be turned on.
7. A sampling device, applied to the current sampling circuit as claimed in claim 1, characterized in that: include: A first control module is used to control the first analog switch and the second analog switch of the first range selection circuit to be turned on according to the set target range, so that the current flows from the source input end through the first analog switch, the second analog switch and the first target resistor, and the first terminal voltage and the second terminal voltage of the first target resistor are output to the signal output circuit, and the signal output circuit outputs a sampling signal according to the first terminal voltage and the second terminal voltage of the first target resistor; the first target resistor is: a sampling resistor corresponding to the target range; the first range selection circuit is: a range selection circuit corresponding to the first target resistor; The second control module is used to control the first analog switch and the second analog switch of the second range selection circuit to be turned off, and the second end voltage of the second target resistor is output to the input end of the second analog switch through the voltage follower circuit, so that the input end of the second analog switch and the second end voltage of the second target resistor are equal, and no current passes through the second analog switch and the second target resistor; the second range selection circuit is: the range selection circuit corresponding to the second target resistor; the second target resistor is: the sampling resistor other than the first target resistor.
8. A source meter, characterized in that: The invention comprises a current sampling circuit as claimed in any one of claims 1 to 3.
9. A computer-readable storage medium, characterized in that: A processor-executable program is stored therein, and when the processor-executable program is executed by the processor, it is used to implement the sampling method according to any one of claims 4 to 6.
