Sampling circuit, method, device and source meter

Through the design of the range selection circuit and voltage following circuit, and using analog switches and buffers to control the current flow through the target resistor, the problems of unstable source output and low measurement accuracy in the traditional source meter sampling circuit are solved, and higher accuracy is achieved.

CN118518928BActive Publication Date: 2024-09-24HUNAN NEXT GENERATION INSTRUMENTAL T&C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410978499.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-24
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Due to the long relay switching time of the 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.

Method used

It uses multiple range selection circuits and voltage following circuits, and uses analog switches and buffer designs to control the current flowing through the target resistor to avoid leakage current and improve sampling accuracy.

Benefits of technology

The source output accuracy and measurement accuracy are improved, and the negative impact of relay switching time and analog switch leakage current on measurement is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118518928B
    Figure CN118518928B
Patent Text Reader

Abstract

The present application discloses a sampling circuit, method, device and source meter, wherein the circuit includes a source input terminal, a source output terminal, a plurality of range selection circuits, a plurality of voltage follower circuits and a signal output circuit. A plurality of first sampling resistors are connected in series between the source input terminal and the source output terminal, and the plurality of first sampling resistors correspond to a plurality of different ranges. The range selection circuit corresponds to the first sampling resistor. The range selection circuit includes a first analog switch and a second analog switch, wherein the input terminal of the first analog switch is connected to the source input terminal, the output terminal of the first analog switch is connected to the input terminal of the second analog switch, and the output terminal of the second analog switch is connected to one end of the corresponding first sampling resistor. The voltage follower circuit corresponds to the range selection circuit, wherein the input terminal of the voltage follower circuit is connected to the output terminal of the corresponding second analog switch, and the output terminal of the voltage follower circuit is connected to the input terminal of the corresponding second analog switch. The output terminals of the plurality of voltage follower circuits are all connected to the input terminal of the signal output circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of source meters, and in particular to a sampling circuit, method, device and source meter. 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 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 switching 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 sampling circuit, method, device and source meter, 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 sampling circuit, which is applied to a source meter, and the circuit includes:

[0006] Source input terminal;

[0007] A source output terminal, wherein a plurality of first sampling resistors are sequentially connected in series between the source input terminal and the source output terminal, and the plurality of first sampling resistors correspond to a plurality of different measurement ranges;

[0008] A plurality of range selection circuits, wherein the plurality of range selection circuits correspond to the plurality of first sampling resistors, each of the range selection circuits comprises a first analog switch and a second analog switch, wherein the input end of the first analog switch is connected to the source input end, the output end of the first analog switch is connected to the input end of the second analog switch, and the output end of the second analog switch is connected to one end of the corresponding first sampling resistor;

[0009] A plurality of voltage follower circuits, wherein the plurality of voltage follower circuits correspond to the plurality of range selection circuits, the input end of each of the voltage follower circuits is connected to the output end of the corresponding second analog switch, and the output end of the voltage follower circuit is connected to the input end of the corresponding second analog switch;

[0010] A signal output circuit, wherein the output ends of the plurality of voltage follower circuits are all 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, the current is allowed to flow from the source input end through the first analog switch, the second analog switch and the first target resistor, and the voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is the first 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 in the second range selection circuit are turned off, the output end voltage of the second analog switch is output to the input end of the second analog switch through the voltage follower circuit, so that the input end voltage and the output end voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistor; the second target resistor is the first sampling resistor except the first target resistor.

[0011] According to some embodiments of the present application, the voltage follower circuit includes a buffer and a current limiting resistor, the input end of the buffer is connected to the output end of the second analog switch, the output end of the buffer is connected to one end of the current limiting resistor, and the other end of the current limiting resistor is connected to the input end of the second analog switch.

[0012] According to some embodiments of the present application, the voltage follower circuit includes a buffer and a third analog switch, the input end of the buffer is connected to the output end of the second analog switch, the output end of the 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.

[0013] According to some embodiments of the present application, a second sampling resistor is further included, wherein the second sampling resistor and the plurality of the first sampling resistors correspond to different ranges, one end of the second sampling resistor is respectively connected to the source input end and the input end of the signal output circuit, and the other end of the second sampling resistor is connected to one end of the first of the first sampling resistors.

[0014] According to some embodiments of the present application, the signal output circuit includes an output selection module and an amplification module, the output ends of the multiple voltage follower circuits are all connected to the input end of the output selection module, the output end of the output selection module is connected to the input end of the amplification module, and the output end of the amplification module outputs the sampling signal.

[0015] In a second aspect, an embodiment of the present application provides a sampling method, which is applied to the sampling circuit as described above, and the method includes:

[0016] 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, 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 voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is a first sampling resistor corresponding to the target range; and the first range selection circuit is a range selection circuit corresponding to the first target resistor;

[0017] The first analog switch and the second analog switch of the second range selection circuit are controlled to be turned off, and the output terminal voltage of the second analog switch is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance except the first target resistance.

[0018] According to some embodiments of the present application, the voltage follower circuit includes a buffer and a third analog switch, the input end of the buffer is connected to the output end of the second analog switch, the output end of the 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: controlling the third analog switch of the first voltage follower circuit to turn off, 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, a second sampling resistor is further included, wherein the second sampling resistor and multiple first sampling resistors correspond to different ranges, one end of the second sampling resistor is respectively connected to the source input end and the input end of the signal output circuit, and the other end of the second sampling resistor is connected to one end of the first first sampling resistor; the method further includes: if the target range is the range corresponding to the second sampling resistor, controlling the first analog switch and the second analog switch of each of the range selection circuits to be turned off.

[0021] In a third aspect, an embodiment of the present application provides a sampling device, which is applied to the sampling circuit as described above, including:

[0022] 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 voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is a first sampling resistor corresponding to the target range; and the first range selection circuit is a range selection circuit corresponding to the first target resistor;

[0023] 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 output terminal voltage of the second analog switch is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance except the first target resistance.

[0024] In a fourth aspect, an embodiment of the present application provides a source meter, including the sampling circuit as described above.

[0025] In a fifth aspect, an embodiment of the present application provides an electronic device, including:

[0026] at least one processor;

[0027] at least one memory for storing at least one program;

[0028] When at least one of the programs is executed by at least one of the processors, the sampling method described above is implemented.

[0029] In a sixth 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.

[0030] In the embodiment of the present application, the target range is selected by the range selection circuit, and the first analog switch and the second analog switch of the first range selection circuit are controlled to be turned on, so that the voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the 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 output terminal voltage of the second analog switch is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch are equal, and no current passes through the second analog switch, thereby avoiding the leakage current of the turned-off first analog switch and the second analog switch 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.

[0031] 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

[0032] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0033] Figure 1 A is a schematic diagram of an embodiment of a sampling circuit provided by the present application;

[0034] Figure 2 A schematic diagram b of an embodiment of a sampling circuit provided in the present application;

[0035] Figure 3 A flowchart of an embodiment of the sampling method provided by the present application;

[0036] Figure 4 A flow chart of controlling a voltage follower circuit in an embodiment of a sampling method provided by the present application;

[0037] Figure 5 The present invention provides a schematic diagram of the structure of an embodiment of the sampling device.

[0038] Reference numerals:

[0039] A first sampling resistor 100 , a first analog switch 200 , a second analog switch 300 , a signal output circuit 400 , a buffer 500 , a current limiting resistor 600 , a third analog switch 700 , a second sampling resistor 800 , a sampling device 900 , a first control module 910 , and a second control module 920 . DETAILED DESCRIPTION

[0040] 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] Refer to the following Figures 1 to 5 A sampling circuit, method, device and source meter according to an embodiment of the present application are described.

[0045] The present application embodiment provides a 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, multiple range selection circuits, multiple voltage follower circuits and a signal output circuit 400.

[0046] A plurality of first sampling resistors 100 are sequentially connected in series between the source input terminal and the source output terminal, and the plurality of first sampling resistors 100 correspond to a plurality of different ranges; a plurality of range selection circuits correspond one to one to the plurality of first sampling resistors 100, and each range selection circuit includes a first analog switch 200 and a second analog switch 300, an input terminal of the first analog switch 200 is connected to the source input terminal, an output terminal of the first analog switch 200 is connected to an input terminal of the second analog switch 300, and an output terminal of the second analog switch 300 is connected to one end of the corresponding first sampling resistor 100.

[0047] The multiple voltage follower circuits correspond one-to-one to the multiple range selection circuits. The input end of each voltage follower circuit is connected to the output end of the corresponding second analog switch 300 , and the output end of the voltage follower circuit is connected to the input end of the corresponding second analog switch 300 .

[0048] The output ends of multiple voltage follower circuits are all connected to the input end of the signal output circuit 400; when the first analog switch 200 and the second analog switch 300 in the first range selection circuit corresponding to the target range are both turned on, the current is allowed to flow from the source input end through the first analog switch 200, the second analog switch 300 and the first target resistor, and the voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit, and the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is the first sampling resistor 100 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 200 and the second analog switch 300 in the second range selection circuit are turned off, the output end voltage of the second analog switch 300 is output to the input end of the second analog switch 300 through the voltage follower circuit, so that the input end voltage and the output end voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300. The second range selection circuit is a range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance 100 except the first target resistance.

[0049] In this embodiment, the target range is selected by the range selection circuit, and the first analog switch 200 and the second analog switch 300 of the first range selection circuit are controlled to be turned on, so that the voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit, and the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor, thereby realizing sampling under the target range. The first analog switch 200 and the second analog switch 300 of the second range selection circuit are controlled to be turned off, and the output terminal voltage of the second analog switch 300 is output to the input terminal of the second analog switch 300 through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300, so as to avoid the leakage current of the turned-off first analog switch 200 and the second analog switch 300 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.

[0050] It is understandable that the models of the first analog switch 200 and the second analog switch 300 are not limited. For example, the first analog switch 200 and the second analog switch 300 can be analog switches such as metal oxide semiconductor field effect transistor switches and complementary metal oxide semiconductor switches.

[0051] It can be understood that the source output terminal is connected to the input terminal of the signal output circuit 400. Based on the differential sampling technology, the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor and the voltage of the source output terminal, and the sampling accuracy is high.

[0052] In one embodiment of the present application, Figure 1 As shown, the voltage follower circuit includes a buffer 500 and a current limiting resistor 600, the input end of the buffer 500 is connected to the output end of the second analog switch 300, the output end of the buffer 500 is connected to one end of the current limiting resistor 600, and the other end of the current limiting resistor 600 is connected to the input end of the second analog switch 300.

[0053] In this embodiment, when the first analog switch 200 and the second analog switch 300 of the range selection circuit are turned on, since the impedance of the second analog switch 300 after being turned on is much smaller than the resistance of the current limiting resistor 600, the current will flow from the source input end through the first analog switch 200 and the second analog switch 300, and then flow through the corresponding first sampling resistor 100 to form a terminal voltage. When the first analog switch 200 and the second analog switch 300 of the range selection circuit are turned off, the output terminal voltage of the second analog switch 300 is input to the input terminal of the second analog switch 300 through the current limiting resistor 600. Since the resistance of the current limiting resistor 600 is much smaller than the impedance when the second analog switch 300 is turned off, the input terminal voltage and the output terminal voltage of the second analog switch 300 can be equal, and no current passes through the second analog switch 300, thereby preventing the leakage current of the first analog switch 200 and the second analog switch 300 from affecting the source output accuracy and sampling accuracy.

[0054] In one embodiment of the present application, Figure 2 As shown, the voltage follower circuit includes a buffer 500 and a third analog switch 700, the input end of the buffer 500 is connected to the output end of the second analog switch 300, the output end of the buffer 500 is connected to the input end of the third analog switch 700, and the output end of the third analog switch 700 is connected to the input end of the second analog switch 300.

[0055] In this embodiment, when the first analog switch 200 and the second analog switch 300 of the range selection circuit are turned on, the third analog switch 700 of the corresponding voltage follower circuit is controlled to be turned off, and the current flows from the source input terminal through the first analog switch 200 and the second analog switch 300, and then flows through the corresponding first sampling resistor 100 to form a terminal voltage. When the first analog switch 200 and the second analog switch 300 of the range selection circuit are turned off, the third analog switch 700 of the corresponding voltage follower circuit is controlled to be turned on, so that the input terminal voltage and the output terminal voltage of the second analog switch 300 are equal, and no current flows through the second analog switch 300, thereby preventing the leakage current of the first analog switch 200 and the second analog switch 300 from affecting the source output accuracy and sampling accuracy.

[0056] In one embodiment of the present application, Figure 1As shown, a second sampling resistor 800 is also included. The second sampling resistor 800 and the plurality of first sampling resistors 100 correspond to different ranges. One end of the second sampling resistor 800 is respectively connected to the source input end and the input end of the signal output circuit 400, and the other end of the second sampling resistor 800 is connected to one end of the first first sampling resistor 100.

[0057] In this embodiment, if the target range is the range corresponding to the second sampling resistor 800, the first analog switch 200 and the second analog switch 300 of each range selection circuit are disconnected, so that the current flows from the source input end through the second sampling resistor 800, and a terminal voltage is formed on the second sampling resistor 800. The terminal voltage on the second sampling resistor 800 is output to the input end of the signal output circuit 400, and the signal output circuit 400 outputs a sampling signal according to the terminal voltage.

[0058] In one embodiment of the present application, the signal output circuit 400 includes an output selection module and an amplification module, the output ends of multiple voltage follower circuits are all connected to the input end of the output selection module, the output end of the output selection module is connected to the input end of the amplification module, and the output end of the amplification module outputs a sampling signal.

[0059] In this embodiment, the terminal voltages of the second sampling resistor 800 and the voltages of the plurality of first sampling resistors 100 are input to the output selection module, and the output selection module is used to select the terminal voltage of the first sampling resistor 100 or the second sampling resistor 800 corresponding to the target range to be output to the amplification module for signal amplification, and then the amplified sampling signal is output from the output end of the amplification module.

[0060] It can be understood that the output selection module can adopt a multi-channel switch, and the terminal voltages of the second sampling resistor 800 and multiple first sampling resistors 100 are input to different channels of the multi-channel switch, and the channels corresponding to the target range are turned on, so that the terminal voltages of the corresponding first sampling resistors 100 are input to the amplification module, and the voltage of the source output terminal is also input to the amplification module. Based on the differential sampling technology, the amplification module outputs a sampling signal.

[0061] It is understandable that the amplification module may be an amplifier.

[0062] In addition, the present application embodiment provides a sampling method, which is applied to the sampling circuit as described above. Figure 3 As shown, the method includes but is not limited to step S100 and step S200.

[0063] Step S100: according to the set target range, the first analog switch 200 and the second analog switch 300 of the first range selection circuit are controlled to be turned on, so that the current flows from the source input end through the first analog switch 200, the second analog switch 300 and the first target resistor, and the voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit, and the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is the first sampling resistor 100 corresponding to the target range; the first range selection circuit is the range selection circuit corresponding to the first target resistor;

[0064] In this step, after the first analog switch 200 and the second analog switch 300 of the first range selection circuit are turned on, the current flows from the source input end through the first analog switch 200, the second analog switch 300 and the first target resistor, forming a terminal voltage on the first target resistor. The voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit. The signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor to complete the sampling under the target range.

[0065] Step S200: Control the first analog switch 200 and the second analog switch 300 of the second range selection circuit to be turned off, and the output voltage of the second analog switch 300 is output to the input end of the second analog switch 300 through the voltage follower circuit, so that the input voltage and the output voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300; the second range selection circuit is a range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance 100 other than the first target resistance.

[0066] In this step, the first analog switch 200 and the second analog switch 300 of the second range selection circuit are turned off, and the output voltage of the second analog switch 300 is output to the input voltage of the second analog switch 300 through the voltage follower circuit, so that the input voltage and the output voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300, thereby preventing the leakage current of the first analog switch 200 and the second analog switch 300 from affecting the source output accuracy and sampling accuracy.

[0067] In this embodiment, the target range is selected by the range selection circuit, and the first analog switch 200 and the second analog switch 300 of the first range selection circuit are controlled to be turned on, so that the voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit, and the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor, thereby realizing sampling under the target range. The first analog switch 200 and the second analog switch 300 of the second range selection circuit are controlled to be turned off, and the output terminal voltage of the second analog switch 300 is output to the input terminal of the second analog switch 300 through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300, so as to avoid the leakage current of the turned-off first analog switch 200 and the second analog switch 300 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.

[0068] In one embodiment of the present application, the voltage follower circuit includes a buffer 500 and a third analog switch 700, wherein the input end of the buffer 500 is connected to the output end of the second analog switch 300, the output end of the buffer 500 is connected to the input end of the third analog switch 700, and the output end of the third analog switch 700 is connected to the input end of the second analog switch 300; Figure 4 As shown, the method further includes but is not limited to step S300 and step S400.

[0069] Step S300: controlling the third analog switch 700 of the first voltage follower circuit to be turned off, where the first voltage follower circuit is a voltage follower circuit corresponding to the first range selection circuit;

[0070] In this step, while controlling the first analog switch 200 and the second analog switch 300 of the first range selection circuit to be turned on, the third analog switch 700 of the first voltage follower circuit is turned off to prevent the first voltage follower circuit from affecting the voltage across the second analog switch 300.

[0071] Step 400: Control the third analog switch 700 of the second voltage follower circuit to be turned on, where the second voltage follower circuit is a voltage follower circuit corresponding to the second range selection circuit.

[0072] In this step, the first analog switch 200 and the second analog switch 300 of the second range selection circuit are controlled to be turned off, and the third analog switch 700 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 and the output terminal voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300, thereby preventing the leakage current of the first analog switch 200 and the second analog switch 300 from affecting the source output accuracy and sampling accuracy.

[0073] An embodiment of the present application further includes a second sampling resistor 800, and the second sampling resistor 800 and multiple first sampling resistors 100 correspond to different ranges. One end of the second sampling resistor 800 is respectively connected to the source input end and the input end of the signal output circuit 400, and the other end of the second sampling resistor 800 is connected to one end of the first first sampling resistor 100; if the target range is the range corresponding to the second sampling resistor 800, the first analog switch 200 and the second analog switch 300 of each range selection circuit are controlled to be turned off.

[0074] In this embodiment, if the target range is the range corresponding to the second sampling resistor 800, the first analog switch 200 and the second analog switch 300 of each range selection circuit are disconnected, so that the current flows from the source input end through the second sampling resistor 800, and a terminal voltage is formed on the second sampling resistor 800. The terminal voltage on the second sampling resistor 800 is output to the input end of the signal output circuit 400, and the signal output circuit 400 outputs a sampling signal according to the terminal voltage.

[0075] In addition, the present application embodiment provides a sampling device 900, which is applied to the sampling circuit as described above. Figure 5 As shown, including:

[0076] The first control module 910 is used to control the first analog switch 200 and the second analog switch 300 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 200, the second analog switch 300 and the first target resistor, and the voltage of the first target resistor is output to the signal output circuit 400 through the voltage follower circuit, and the signal output circuit 400 outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is the first sampling resistor 100 corresponding to the target range; and the first range selection circuit is the range selection circuit corresponding to the first target resistor;

[0077] The second control module 920 is used to control the first analog switch 200 and the second analog switch 300 of the second range selection circuit to be turned off, and the output terminal voltage of the second analog switch 300 is output to the input terminal of the second analog switch 300 through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch 300 are equal, and no current passes through the second analog switch 300; the second range selection circuit is a range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance 100 other than the first target resistance.

[0078] The sampling device 900 provided in the embodiment of the present application can achieve Figure 3 to Figure 4 The various processes implemented by the method embodiment and achieving the same beneficial effects are not described here to avoid repetition.

[0079] In addition, an embodiment of the present application provides a source meter, including the sampling circuit as described above.

[0080] The source table provided in the embodiment of the present application can achieve Figure 1 to Figure 2 The various processes implemented by the sampling circuit embodiment of the present invention achieve the same beneficial effects, and to avoid repetition, they will not be described again here.

[0081] In addition, an embodiment of the present application provides an electronic device, including:

[0082] at least one processor;

[0083] at least one memory for storing at least one program;

[0084] When at least one program is executed by at least one processor, the sampling method as described above is implemented.

[0085] The electronic device provided in the embodiment of the present application can achieve Figure 3 to Figure 4 The various processes implemented by the method embodiment and achieving the same beneficial effects are not described here to avoid repetition.

[0086] 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.

[0087] The computer-readable storage medium provided in the embodiment of the present application can realize Figure 3 to Figure 4 The various processes implemented by the method embodiment and achieving the same beneficial effects are not described here to avoid repetition.

[0088] 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 modules, 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, 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 modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0089] 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 sampling circuit, characterized in that: Applied to source meter, the circuit includes: Source input terminal; A source output terminal, wherein a plurality of first sampling resistors are sequentially connected in series between the source input terminal and the source output terminal, and the plurality of first sampling resistors correspond to a plurality of different measurement ranges; A plurality of range selection circuits, wherein the plurality of range selection circuits correspond to the plurality of first sampling resistors, each of the range selection circuits comprises a first analog switch and a second analog switch, wherein the input end of the first analog switch is connected to the source input end, the output end of the first analog switch is connected to the input end of the second analog switch, and the output end of the second analog switch is connected to one end of the corresponding first sampling resistor; A plurality of voltage follower circuits, wherein the plurality of voltage follower circuits correspond to the plurality of range selection circuits, the input end of each of the voltage follower circuits is connected to the output end of the corresponding second analog switch, and the output end of the voltage follower circuit is connected to the input end of the corresponding second analog switch; A signal output circuit, wherein the output ends of the plurality of voltage follower circuits are all 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, the current is allowed to flow from the source input end through the first analog switch, the second analog switch and the first target resistor, and the voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is the first 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 in the second range selection circuit are turned off, the output end voltage of the second analog switch is output to the input end of the second analog switch through the voltage follower circuit, so that the input end voltage and the output end voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistor; the second target resistor is the first sampling resistor except the first target resistor.

2. The sampling circuit according to claim 1, characterized in that: The voltage follower circuit includes a buffer and a current limiting resistor, the input end of the buffer is connected to the output end of the second analog switch, the output end of the buffer is connected to one end of the current limiting resistor, and the other end of the current limiting resistor is connected to the input end of the second analog switch.

3. The sampling circuit according to claim 1, characterized in that: The voltage follower circuit includes a buffer and a third analog switch, the input end of the buffer is connected to the output end of the second analog switch, the output end of the 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.

4. The sampling circuit according to claim 1, characterized in that: It also includes a second sampling resistor, which corresponds to different ranges with the first sampling resistors, one end of the second sampling resistor is respectively connected to the source input end and the input end of the signal output circuit, and the other end of the second sampling resistor is connected to one end of the first of the first sampling resistors.

5. The sampling circuit according to claim 1, characterized in that: The signal output circuit includes an output selection module and an amplification module. The output ends of the multiple voltage follower circuits are all connected to the input end of the output selection module. The output end of the output selection module is connected to the input end of the amplification module. The output end of the amplification module outputs the sampling signal.

6. A sampling method, characterized in that: Applied to the sampling circuit according to any one of claims 1 to 2, 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, 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 voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is a first sampling resistor corresponding to the target range; and the first range selection circuit is a 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 output terminal voltage of the second analog switch is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance except the first target resistance.

7. The sampling method according to claim 6, characterized in that: The voltage follower circuit includes a buffer and a third analog switch, the input end of the buffer is connected to the output end of the second analog switch, the output end of the 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: Controlling a third analog switch of a 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.

8. The sampling method according to claim 6, characterized in that: It also includes a second sampling resistor, the second sampling resistor and the plurality of the first sampling resistors correspond to different ranges, one end of the second sampling resistor is respectively connected to the source input end and the input end of the signal output circuit, and the other end of the second sampling resistor is connected to one end of the first of the first sampling resistors; the method further includes: If the target measurement range is the measurement range corresponding to the second sampling resistor, the first analog switch and the second analog switch of each of the measurement range selection circuits are controlled to be turned off.

9. A sampling device, applied to the sampling circuit according to any one of claims 1 to 5, 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 voltage of the first target resistor is output to the signal output circuit through the voltage follower circuit, and the signal output circuit outputs a sampling signal according to the voltage of the first target resistor; the first target resistor is a first sampling resistor corresponding to the target range; and 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 output terminal voltage of the second analog switch is output to the input terminal of the second analog switch through the voltage follower circuit, so that the input terminal voltage and the output terminal voltage of the second analog switch are equal, and no current passes through the second analog switch; the second range selection circuit is the range selection circuit corresponding to the second target resistance; the second target resistance is the first sampling resistance except the first target resistance.

10. A source meter, characterized in that: The method comprises the sampling circuit as claimed in any one of claims 1 to 5.