CN113671243A - Voltage measurement device and method - Google Patents

Voltage measurement device and method Download PDF

Info

Publication number
CN113671243A
CN113671243A CN202110853090.9A CN202110853090A CN113671243A CN 113671243 A CN113671243 A CN 113671243A CN 202110853090 A CN202110853090 A CN 202110853090A CN 113671243 A CN113671243 A CN 113671243A
Authority
CN
China
Prior art keywords
range
adjustable
gain amplifier
analog
digital converter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202110853090.9A
Other languages
Chinese (zh)
Inventor
孙衍翀
周鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huafeng Test & Control Technology Tianjin Co ltd
Beijing Huafeng Test & Control Technology Co ltd
Original Assignee
Huafeng Test & Control Technology Tianjin Co ltd
Beijing Huafeng Test & Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huafeng Test & Control Technology Tianjin Co ltd, Beijing Huafeng Test & Control Technology Co ltd filed Critical Huafeng Test & Control Technology Tianjin Co ltd
Priority to CN202110853090.9A priority Critical patent/CN113671243A/en
Publication of CN113671243A publication Critical patent/CN113671243A/en
Priority to CN202210496260.7A priority patent/CN114755485A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques

Abstract

The present application relates to a voltage measurement device and method. The device comprises: the maximum measuring range measuring unit comprises a fixed gain amplifier and a first analog-to-digital converter; the fixed gain amplifier scales a signal to be measured by a fixed multiple, and the first analog-to-digital converter measures the signal to be measured to obtain a first voltage value; the adjustable range measuring unit comprises an adjustable gain amplifier and a second analog-to-digital converter which are connected; the adjustable gain amplifier scales the signal to be measured by adjustable times, and the second analog-to-digital converter measures the signal to be measured to obtain a second voltage value; the processor is used for controlling the adjustable gain amplifier to adjust the adjustable multiple to correspond to the target range when the range selection instruction containing the target range is received and the target range is one measuring range of the adjustable range measuring unit; when the adjustable gain amplifier is adjusting the adjustable multiple or the scaled signal to be measured is out of the measuring range of the second analog-to-digital converter, the first voltage value is output. The device can realize continuous measurement of voltage.

Description

Voltage measurement device and method
Technical Field
The present disclosure relates to circuit measurement technologies, and in particular, to a voltage measurement apparatus and method.
Background
With the development of electronic circuit technology, the requirements for the continuity and accuracy of the measured voltage are higher and higher. For different voltage signals, different measuring ranges are required to be used for measurement, so that the measurement accuracy is improved.
In the conventional technology, the switching of the measuring range is realized by controlling the action of a selection switch.
However, since the selective switch needs a certain time to operate, the conventional scheme may cause the voltage measurement channel to be disconnected during the selective switch operation, thereby causing interruption and missing of the voltage measurement, and causing inaccurate measurement. And the measurement signal exceeds the range of the switching range, which also causes inaccurate measurement.
Disclosure of Invention
In view of the above, it is desirable to provide a voltage measuring device and method that can maintain accurate voltage measurement during switching of the range or when the range is exceeded.
A voltage measurement apparatus, the apparatus comprising: the maximum measuring range measuring unit comprises a fixed gain amplifier and a first analog-to-digital converter which are connected; the fixed gain amplifier is used for scaling a signal to be measured by a fixed multiple, and the first analog-to-digital converter is used for measuring the voltage of the signal to be measured after the fixed gain amplifier is scaled and outputting a first measured voltage value; the adjustable range measuring unit comprises an adjustable gain amplifier and a second analog-to-digital converter which are connected; the adjustable gain amplifier is used for scaling the signal to be measured by an adjustable multiple, and the second analog-to-digital converter is used for measuring the voltage of the signal to be measured after the adjustable gain amplifier is scaled and outputting a second measured voltage value; the adjustable multiple corresponds to one of a plurality of measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit; the processor is respectively connected with the first analog-to-digital converter, the adjustable gain amplifier and the second analog-to-digital converter and is used for controlling the adjustable gain amplifier to adjust the adjustable multiple to be corresponding to the target range when a range selection instruction containing the target range is received and the target range is one measuring range of the adjustable range measuring unit; and when the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is out of the measurement range of the second analog-to-digital converter, outputting the first voltage value.
In one embodiment, the processor is configured to, when receiving a range selection instruction including a target range, and the target range is a measurement range of the adjustable range measurement unit, output the first voltage value within a set time length after receiving the range selection instruction.
In one embodiment, the set time period is longer than the longest time required for the adjustable gain amplifier to adjust the adjustable multiple to correspond to the target range.
In one embodiment, the processor is further configured to, when receiving a range selection instruction including a target range, and the target range is a measurement range of the adjustable range measurement unit, output the second voltage value after a set time length after receiving the range selection instruction.
In one embodiment, the processor is configured to, when receiving a range selection instruction including a target range, and the target range is a measurement range of the adjustable range measurement unit, determine whether the signal to be measured after the scaling of the adjustable gain amplifier is outside the measurement range of the second analog-to-digital converter after a set time length after receiving the range selection instruction; and when the signal to be measured after the adjustable gain amplifier is scaled is determined to be in the measuring range of the second analog-to-digital converter, outputting the second voltage value.
In one embodiment, the processor is configured to output the first voltage value when it is determined that the signal to be measured after the scaling of the adjustable gain amplifier is outside the measurement range of the second analog-to-digital converter.
In one embodiment, the processor is configured to determine a proportion of the second voltage value in a measurement range of the second analog-to-digital converter; when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter is between the upper proportion limit and the lower proportion limit, determining that the signal to be measured after the adjustable gain amplifier is scaled is in the measurement range of the second analog-to-digital converter; and when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter is greater than the upper proportion limit or less than the lower proportion limit, determining that the signal to be measured after the scaling of the adjustable gain amplifier is out of the measurement range selected by the second analog-to-digital converter.
In one embodiment, the processor is further configured to, when the second voltage value gradually increases, take a first upper ratio limit as the upper ratio limit and a first lower ratio limit as the lower ratio limit; and when the second voltage value is gradually reduced, taking a second proportion upper limit as the proportion upper limit, taking a second proportion lower limit as the proportion lower limit, wherein the second proportion upper limit is smaller than the first proportion upper limit, and the second proportion lower limit is smaller than the first proportion lower limit.
In one embodiment, the processor is further configured to output the first voltage value when a range selection instruction including a target range is received and the target range is a measurement range of the maximum range measurement unit.
A method of voltage measurement, the method comprising: zooming a signal to be measured by a fixed gain amplifier by a fixed multiple, and measuring the zoomed signal to be measured of the fixed gain amplifier by a first analog-to-digital converter to obtain a first voltage value; the fixed gain amplifier and the first analog-to-digital converter are connected to form a maximum measuring range measuring unit; the signal to be measured is zoomed by an adjustable gain amplifier by an adjustable multiple, and the zoomed signal to be measured of the adjustable gain amplifier is measured by a second analog-to-digital converter to obtain a second voltage value; the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable multiple corresponds to one of a plurality of measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit; when a range selection instruction containing a target range is received and the target range is one measurement range of the adjustable range measurement unit, controlling the adjustable gain amplifier to adjust the adjustable multiple to correspond to the target range; and when the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is out of the measurement range of the second analog-to-digital converter, outputting the first voltage value.
According to the voltage measuring device and the voltage measuring method, the fixed gain amplifier and the first analog-to-digital converter are connected to form the maximum measuring range measuring unit, the fixed gain amplifier scales the signal to be measured by a fixed multiple, and the first analog-to-digital converter measures the voltage of the signal to be measured after the fixed gain amplifier scales and outputs the measured first voltage value. Meanwhile, the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable gain amplifier scales the signal to be measured by an adjustable multiple, and the second analog-to-digital converter measures the voltage of the signal to be measured after the adjustable gain amplifier scales and outputs a second measured voltage value. Because the adjustable multiple corresponds to one of the multiple measuring ranges of the adjustable range measuring unit and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit, the adjustable range measuring unit can realize the accurate measurement of the voltage in a small range, and the maximum range measuring unit can realize the rough measurement of the voltage in the maximum range. When the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is outside the measurement range of the second analog-to-digital converter, the second voltage value measured by the adjustable range measurement unit is inaccurate, and the processor outputs the first voltage value at the moment, so that the continuity of voltage measurement can be maintained and the measurement result is accurate under the condition that the measurement of the adjustable range measurement unit is inaccurate.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a voltage measurement device according to an embodiment;
FIG. 2 is a flow diagram of voltage output during span switching in one embodiment;
FIG. 3 is a flow diagram of voltage output over-range in one embodiment;
FIG. 4 is a schematic diagram of a gradual voltage change in one embodiment;
FIG. 5 is a flowchart illustrating a voltage measurement method according to an embodiment.
Description of reference numerals:
10-fixed gain amplifier, 11-adjustable gain amplifier, 20-first analog-to-digital converter, 21-second analog-to-digital converter and 30-processor.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
In one embodiment, as shown in fig. 1, a voltage measurement device is provided that includes a fixed gain amplifier 10, an adjustable gain amplifier 11, a first analog-to-digital converter 20, a second analog-to-digital converter 21, and a processor 30. The maximum range measuring unit comprises a fixed gain amplifier 10 and a first analog-to-digital converter 20 which are connected. The fixed gain amplifier 10 is configured to scale the signal to be measured by a fixed multiple, and the first analog-to-digital converter 20 is configured to measure a voltage of the signal to be measured after the fixed gain amplifier 10 scales the signal to be measured and output a first measured voltage value. The adjustable range measuring unit comprises an adjustable gain amplifier 11 and a second analog-to-digital converter 21 which are connected. The adjustable gain amplifier 11 is configured to scale the signal to be measured by an adjustable multiple, and the second analog-to-digital converter 21 is configured to measure a voltage of the signal to be measured after the adjustable gain amplifier 11 is scaled, and output a second measured voltage value. The adjustable multiple corresponds to one of the measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit. And the processor 30 is connected with the first analog-to-digital converter 20, the adjustable gain amplifier 11 and the second analog-to-digital converter 21, and is configured to control the adjustable gain amplifier 11 to adjust the adjustable multiple to correspond to the target range when a range selection instruction including the target range is received and the target range is one measurement range of the adjustable range measurement unit. When the adjustable gain amplifier 11 is adjusting the adjustable multiple or the scaled signal to be measured is out of the measurement range of the second analog-to-digital converter 21, the first voltage value is output.
In the voltage measuring device, the fixed gain amplifier and the first analog-to-digital converter are connected to form a maximum measuring range measuring unit, the fixed gain amplifier scales the signal to be measured by a fixed multiple, and the first analog-to-digital converter measures the voltage of the signal to be measured after the fixed gain amplifier scales and outputs a first measured voltage value. Meanwhile, the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable gain amplifier scales the signal to be measured by an adjustable multiple, and the second analog-to-digital converter measures the voltage of the signal to be measured after the adjustable gain amplifier scales and outputs a second measured voltage value. Because the adjustable multiple corresponds to one of the multiple measuring ranges of the adjustable range measuring unit and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit, the adjustable range measuring unit can realize the accurate measurement of the voltage in a small range, and the maximum range measuring unit can realize the rough measurement of the voltage in the maximum range. When the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is outside the measurement range of the second analog-to-digital converter, the second voltage value measured by the adjustable range measurement unit is inaccurate, and the processor outputs the first voltage value at the moment, so that the continuity of voltage measurement can be maintained and the measurement result is accurate under the condition that the measurement of the adjustable range measurement unit is inaccurate.
Illustratively, the fixed gain amplifier 10 is an LTC6431-15 type amplifier, or an LTC6430-15 type amplifier, or an amplifying chip LM 324.
Illustratively, the adjustable Gain Amplifier 20 is a Programmable Gain Amplifier (PGA). Preferably, the adjustable gain amplifier 20 may be one of an MCP6S21 chip, an MCP6S22 chip, an MCP6S26 chip and an MCP6S28 chip manufactured by Microchip corporation of usa, or one of an AD8321 chip and an AD8250 chip manufactured by Analog Devices of Analog instruments corporation of usa.
Illustratively, the first analog-to-digital converter 20 and the second analog-to-digital converter 21 may be one of ADCs 0808, AD7678, AD9221, AD9223, and AD 9220.
Illustratively, the Processor 30 may be a Central Processing Unit (CPU), and may be one of other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or any conventional processor.
In one embodiment, as shown in FIG. 2, processor 30 is configured to perform the following steps:
s202, a range selection command including a target range is received.
And S204, judging whether the target range is the measuring range of the maximum range measuring unit. If the target range is the measurement range of the maximum range measurement unit, executing S206; if the target measuring range is one measuring range of the adjustable measuring range measuring unit, S208 and S210 are executed.
S206, outputting the first voltage value.
S208, outputting a first voltage value within the set time length after receiving the range selection instruction.
Specifically, the set time length is longer than the longest time required by the adjustable gain amplifier 11 to adjust the adjustable multiple to correspond to the target range, that is, the processor 30 controls the adjustable gain amplifier 11 to adjust the adjustable multiple to correspond to the target range within the set time length after receiving the range selection instruction.
Specifically, the user may select the target range to be switched by interacting with the processor 30, that is, issue a range selection instruction containing the target range to the processor 30. After the processor 30 receives the range selection instruction, if the target range is one measurement range of the adjustable range measurement unit, the processor 30 controls the adjustable gain amplifier 11 to adjust the adjustable multiple to correspond to the target range, so that the signal to be measured in the target range is within the measurement range of the second analog-to-digital converter 21 after being scaled by the adjustable multiple.
Illustratively, the set time period is longer than the action time of the adjustable gain amplifier 11 for switching the gain gear. For example, the action time of the adjustable gain amplifier 11 for switching the gain stage is 3 milliseconds, and the set time period may be 5 milliseconds in order to ensure that the action of the adjustable gain amplifier 11 for switching the gain stage is completed.
In the embodiment, by setting the time of the set duration to be longer than the longest time of switching the range, it is ensured that the adjustable gain amplifier completes the range switching after the set duration.
And S210, outputting a second voltage value after the set time length after the range selection instruction is received.
In this embodiment, when the processor receives the range selection command, it first determines whether the target range is the measurement range of the maximum range measurement unit. If the target range is the range of the maximum range measurement unit, the condition of switching the range does not exist, and the first voltage value can be directly output. If the target range is one measuring range of the adjustable range measuring unit, the first voltage value is output within the set time length, so that the voltage can be still measured in the process of controlling the adjustable gain amplifier to switch the measuring range by the processor. And then the second voltage value is output after the set time length, at the moment, the adjustable gain amplifier completes the range switching action, the measurement value of the adjustable range measurement unit is accurate, and a more accurate measurement result can be obtained by outputting the second voltage value.
In one embodiment, as shown in FIG. 3, processor 30 is configured to perform the following steps:
and S302, judging whether the signal to be measured after the adjustable gain amplifier is zoomed is out of the measuring range of the second analog-to-digital converter. If the signal to be measured after the scaling of the adjustable gain amplifier is outside the measurement range of the second analog-to-digital converter, executing S304; if the signal to be measured after the scaling of the adjustable gain amplifier is within the measurement range of the second analog-to-digital converter, S306 is executed.
Specifically, the processor 30 is configured to determine a ratio of the second voltage value in the measurement range of the second analog-to-digital converter 21; when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter 21 is between the upper proportion limit and the lower proportion limit, determining that the signal to be measured after the adjustable gain amplifier 11 is scaled is in the measurement range of the second analog-to-digital converter 21; when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter 21 is greater than the upper limit of the proportion or less than the lower limit of the proportion, determining that the signal to be measured after the scaling of the adjustable gain amplifier 11 is outside the measurement range selected by the second analog-to-digital converter 21.
In such a way, whether the signal to be measured after the adjustable gain amplifier is zoomed is out of the measuring range of the second analog-to-digital converter or not is judged, so that whether the adjustable gain amplifier exceeds the measuring range or not is determined, and whether the second voltage value output by the adjustable gain amplifier is reliable and accurate or not is determined.
The second voltage value is, for example, a ratio of the second voltage value to the measurement range of the second analog-to-digital converter 21, which is a difference between the second voltage value and the minimum value of the measurement range of the second analog-to-digital converter 21, divided by a difference between the maximum value and the minimum value of the measurement range of the second analog-to-digital converter 21.
S304, outputting the first voltage value.
And S306, outputting a second voltage value.
For example, S302, S304, and S306 may be executed in conjunction with S210, that is, after the set duration after receiving the range selection instruction, it is determined whether the signal to be measured after the scaling of the adjustable gain amplifier is outside the measurement range of the second adc, and if the signal to be measured after the scaling of the adjustable gain amplifier is within the measurement range of the second adc, the second voltage value is output.
In this embodiment, the processor first determines whether the current adjustable range measuring unit is out of range by determining whether the scaled signal to be measured is within the measurement range of the second analog-to-digital converter, so as to determine whether the second voltage value output by the adjustable range measuring unit is accurate. If the scaled signal to be measured is outside the measurement range of the second analog-to-digital converter, it indicates that the adjustable range measurement unit has exceeded the measurement range at this time, the output second voltage value is inaccurate, and the measurement accuracy can be ensured by using the first voltage value output by the maximum range measurement unit. If the scaled signal to be measured is within the measurement range of the second analog-to-digital converter, it indicates that the adjustable range measurement unit does not exceed the measurement range at this time, the output second voltage value is accurate, and the measurement precision can be improved by using the second voltage value output by the adjustable range measurement unit.
In one embodiment, as shown in fig. 4, the processor 30 is further configured to take the first upper scale limit as the upper scale limit and the first lower scale limit as the lower scale limit when the second voltage value is gradually increased; and when the second voltage value is gradually reduced, taking the second proportion upper limit as the proportion upper limit, taking the second proportion lower limit as the proportion lower limit, wherein the second proportion upper limit is smaller than the first proportion upper limit, and the second proportion lower limit is smaller than the first proportion lower limit.
Taking fig. 4 as an example, Vth1+ represents a first upper ratio limit, Vth0+ represents a second upper ratio limit, Vth 0-represents a first lower ratio limit, and Vth 1-represents a second lower ratio limit. As shown in fig. 4, the first upper ratio limit Vth1+ is greater than the second upper ratio limit Vth0+, and the first lower ratio limit Vth 0-is greater than the second lower ratio limit Vth 1-.
The arrows in fig. 4 represent the trend of the voltage change, and the solid line indicates the selected upper or lower proportional limit. When the second voltage value gradually increases, the first upper scale limit Vth1+ is selected as the upper scale limit as shown in the upper left diagram in fig. 4, and the first lower scale limit Vth 0-is selected as the lower scale limit as shown in the lower right diagram in fig. 4. When the second voltage value gradually decreases, as shown in the upper right diagram in fig. 4, the second upper scale limit Vth0+ is selected as the upper scale limit, and as shown in the lower left diagram in fig. 4, the second lower scale limit Vth 1-is selected as the lower scale limit.
Specifically, the second voltage value gradually increases, that is, the second voltage value at the next time is greater than the second voltage value at the previous time within the set time period. The second voltage value gradually decreases, that is, the second voltage value at the next moment is smaller than the second voltage value at the previous moment in the set time length.
Illustratively, the processor 30 includes a hysteresis comparator for changing the upper scale limit of the processor 30 to a first upper scale limit and the lower scale limit to a first lower scale limit when the voltage value is gradually increased, and changing the upper scale limit of the processor 30 to a second upper scale limit and the lower scale limit to a second lower scale limit when the voltage value is gradually decreased.
Illustratively, the first proportion upper limit, the first proportion lower limit, the second proportion upper limit and the second proportion lower limit are determined according to an actual noise value of the voltage signal to be measured.
In this embodiment, when the voltage value gradually increases, the upper proportional limit and the lower proportional limit of the processor are changed to the first upper proportional limit and the first lower proportional limit, and when the voltage value gradually decreases, the upper proportional limit and the lower proportional limit of the processor are changed to the second upper proportional limit and the second lower proportional limit, respectively. The first upper proportion limit, the first lower proportion limit, the second upper proportion limit and the second lower proportion limit are determined according to an actual noise value. Therefore, when the voltage value acquired by the analog-to-digital converter is noisy, the voltage fluctuation caused by the noise can be covered by the hysteresis width, so that the influence of the noise on the processor in judging whether the second analog-to-digital converter exceeds the measuring range is avoided, the frequent replacement and selection of the output voltage value due to the influence of the noise of the processor is avoided, and the output voltage value of the processor is more stable.
In one embodiment, as shown in fig. 5, there is provided a voltage measurement method including:
step S502, zooming a signal to be measured by a fixed multiple through a fixed gain amplifier, and measuring the zoomed signal to be measured of the fixed gain amplifier through a first analog-to-digital converter to obtain a first voltage value; the fixed gain amplifier and the first analog-to-digital converter are connected to form a maximum measuring range measuring unit.
Illustratively, the voltage measurement signal is amplified by a factor of 10 using a proportional amplifier (LM324) circuit.
Step S504, the signal to be measured is zoomed by adjustable multiple through the adjustable gain amplifier, and the zoomed signal to be measured of the adjustable gain amplifier is measured through the second analog-to-digital converter, so as to obtain a second voltage value; the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable multiple corresponds to one of a plurality of measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit.
Step S506, when the range selection instruction including the target range is received and the target range is one measurement range of the adjustable range measurement unit, controlling the adjustable gain amplifier to adjust the adjustable multiple to correspond to the target range.
Step S508, when the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is outside the measurement range of the second adc, outputting a first voltage value.
In this embodiment, a maximum measurement range unit is formed by connecting a fixed gain amplifier and a first analog-to-digital converter, the fixed gain amplifier scales a signal to be measured by a fixed multiple, and the first analog-to-digital converter measures a voltage of the signal to be measured after the fixed gain amplifier scales and outputs a first measured voltage value. Meanwhile, the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable gain amplifier scales the signal to be measured by an adjustable multiple, and the second analog-to-digital converter measures the voltage of the signal to be measured after the adjustable gain amplifier scales and outputs a second measured voltage value. Because the adjustable multiple corresponds to one of the multiple measuring ranges of the adjustable range measuring unit and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit, the adjustable range measuring unit can realize the accurate measurement of the voltage in a small range, and the maximum range measuring unit can realize the rough measurement of the voltage in the maximum range. When the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is outside the measurement range of the second analog-to-digital converter, the second voltage value measured by the adjustable range measurement unit is inaccurate, and the processor outputs the first voltage value at the moment, so that the continuity of voltage measurement can be maintained and the measurement result is accurate under the condition that the measurement of the adjustable range measurement unit is inaccurate. By the method, on one hand, the voltage measuring range can be adjusted according to the voltage value so as to accurately measure the voltage signal to be measured, and on the other hand, the voltage signal to be measured can still be measured in the voltage range gear switching process, so that the interruption or missing measurement of the voltage measurement is avoided, and the stability and accuracy of the voltage measurement are improved.
It should be understood that although the various steps in the flowcharts of fig. 2-3, 5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3, 5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternatively with other steps or at least some of the other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
In the description herein, references to the description of "some embodiments," "other embodiments," "desired embodiments," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, a schematic description of the above terminology may not necessarily refer to the same embodiment or example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A voltage measurement device, the device comprising:
the maximum measuring range measuring unit comprises a fixed gain amplifier (10) and a first analog-to-digital converter (20) which are connected; the fixed gain amplifier (10) is used for scaling a signal to be measured by a fixed multiple, and the first analog-to-digital converter (20) is used for measuring the voltage of the signal to be measured after scaling by the fixed gain amplifier (10) and outputting a first voltage value obtained by measurement;
the adjustable range measuring unit comprises an adjustable gain amplifier (11) and a second analog-to-digital converter (21) which are connected; the adjustable gain amplifier (11) is used for scaling the signal to be measured by an adjustable multiple, and the second analog-to-digital converter (21) is used for measuring the voltage of the signal to be measured after the adjustable gain amplifier (11) is scaled and outputting a second voltage value obtained through measurement; the adjustable multiple corresponds to one of a plurality of measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit;
the processor (30) is respectively connected with the first analog-to-digital converter (20), the adjustable gain amplifier (11) and the second analog-to-digital converter (21) and is used for controlling the adjustable gain amplifier (11) to adjust the adjustable multiple to correspond to the target range when a range selection instruction containing the target range is received and the target range is one measuring range of the adjustable range measuring unit; when the adjustable gain amplifier (11) is adjusting the adjustable multiple or the scaled signal to be measured is out of the measuring range of the second analog-to-digital converter (21), outputting the first voltage value.
2. The apparatus of claim 1 wherein the processor (30) is configured to output the first voltage value for a set duration after receiving the range selection command when the range selection command including a target range is received and the target range is a measurement range of the adjustable range measurement unit.
3. The apparatus of claim 2, wherein the set time period is greater than a maximum time required for the adjustable gain amplifier (11) to adjust the adjustable multiple to correspond to the target range.
4. The apparatus of claim 2 or 3, wherein the processor (30) is further configured to output the second voltage value after a set duration after receiving the range selection command when the range selection command including a target range is received and the target range is a measurement range of the adjustable range measurement unit.
5. The apparatus of claim 4, wherein the processor (30) is configured to determine whether the signal to be measured scaled by the adjustable gain amplifier (11) is outside the measurement range of the second analog-to-digital converter (21) after a set time duration after receiving the range selection command when the range selection command including a target range is received and the target range is one measurement range of the adjustable range measurement unit; when the signal to be measured after the adjustable gain amplifier (11) is scaled is determined to be in the measuring range of the second analog-to-digital converter (21), the second voltage value is output.
6. The apparatus according to claim 5, wherein the processor (30) is configured to output the first voltage value when it is determined that the signal to be measured scaled by the adjustable gain amplifier (11) is outside the measurement range of the second analog-to-digital converter (21).
7. The apparatus of claim 5, wherein the processor (30) is configured to determine a proportion of the second voltage value in a measurement range of the second analog-to-digital converter (21); when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter (21) is between the upper proportion limit and the lower proportion limit, determining that the signal to be measured after the adjustable gain amplifier (11) is scaled is in the measurement range of the second analog-to-digital converter (21); when the proportion of the second voltage value in the measurement range of the second analog-to-digital converter (21) is larger than the upper proportion limit or smaller than the lower proportion limit, determining that the signal to be measured after being scaled by the adjustable gain amplifier (11) is out of the measurement range selected by the second analog-to-digital converter (21).
8. The apparatus of claim 7, wherein the processor (30) is further configured to, when the second voltage value increases gradually, take a first upper scale limit as the upper scale limit and a first lower scale limit as the lower scale limit; and when the second voltage value is gradually reduced, taking a second proportion upper limit as the proportion upper limit, taking a second proportion lower limit as the proportion lower limit, wherein the second proportion upper limit is smaller than the first proportion upper limit, and the second proportion lower limit is smaller than the first proportion lower limit.
9. The device of claim 2 or 3, wherein the processor (30) is further configured to output the first voltage value when a range selection instruction including a target range is received, and the target range is a measurement range of the maximum range measurement unit.
10. A method of voltage measurement, the method comprising:
zooming a signal to be measured by a fixed gain amplifier by a fixed multiple, and measuring the zoomed signal to be measured of the fixed gain amplifier by a first analog-to-digital converter to obtain a first voltage value; the fixed gain amplifier and the first analog-to-digital converter are connected to form a maximum measuring range measuring unit;
the signal to be measured is zoomed by an adjustable gain amplifier by an adjustable multiple, and the zoomed signal to be measured of the adjustable gain amplifier is measured by a second analog-to-digital converter to obtain a second voltage value; the adjustable gain amplifier and the second analog-to-digital converter are connected to form an adjustable range measuring unit, the adjustable multiple corresponds to one of a plurality of measuring ranges of the adjustable range measuring unit, and each measuring range of the adjustable range measuring unit is really contained in the measuring range of the maximum range measuring unit;
when a range selection instruction containing a target range is received and the target range is one measurement range of the adjustable range measurement unit, controlling the adjustable gain amplifier to adjust the adjustable multiple to correspond to the target range;
and when the adjustable gain amplifier adjusts the adjustable multiple or the scaled signal to be measured is out of the measurement range of the second analog-to-digital converter, outputting the first voltage value.
CN202110853090.9A 2021-07-27 2021-07-27 Voltage measurement device and method Withdrawn CN113671243A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110853090.9A CN113671243A (en) 2021-07-27 2021-07-27 Voltage measurement device and method
CN202210496260.7A CN114755485A (en) 2021-07-27 2022-05-09 Voltage measurement device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110853090.9A CN113671243A (en) 2021-07-27 2021-07-27 Voltage measurement device and method

Publications (1)

Publication Number Publication Date
CN113671243A true CN113671243A (en) 2021-11-19

Family

ID=78540521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110853090.9A Withdrawn CN113671243A (en) 2021-07-27 2021-07-27 Voltage measurement device and method

Country Status (1)

Country Link
CN (1) CN113671243A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001825A1 (en) * 2022-06-30 2024-01-04 芯海科技(深圳)股份有限公司 Sigma-delta analog-to-digital converter, control method, chip and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001825A1 (en) * 2022-06-30 2024-01-04 芯海科技(深圳)股份有限公司 Sigma-delta analog-to-digital converter, control method, chip and electronic device

Similar Documents

Publication Publication Date Title
US8193836B2 (en) Techniques for measuring voltages in a circuit
US7643889B2 (en) Circuit and method of outputting temperature data of semiconductor memory apparatus
KR101632095B1 (en) Process, voltage, and temperature sensor
US7813214B2 (en) Semiconductor memory device
US5993050A (en) Method of and apparatus for extracting model parameters
JP4982677B2 (en) Temperature information output device
US8581657B2 (en) Voltage divider, constant voltage circuit using same, and trimming method in the voltage divider circuit
CN108432144B (en) Microcontroller with digital delay line analog-to-digital converter
JP4850578B2 (en) Semiconductor memory device and refresh cycle control method
CN111381152B (en) Measuring circuit for quantifying circuit operation speed change
US7791367B1 (en) Driver with selectable output impedance
CN113671243A (en) Voltage measurement device and method
US20070140308A1 (en) Calibrated built-in temperature sensor and calibration method thereof
CN113466524A (en) Current measuring device and method
CN113466523A (en) Current measuring device and method
CN114755485A (en) Voltage measurement device and method
CN112807071A (en) Data adjusting method in radio frequency operation and radio frequency host
JP2008060884A (en) Semiconductor integrated circuit
US10027285B2 (en) Semiconductor device
CN113671242A (en) Voltage measurement device and method
CN114778918A (en) Current measuring device and method
WO2020155068A1 (en) Current measuring device, method, and apparatus
JP3403127B2 (en) A / D conversion circuit
US9755640B2 (en) Resistive input system with resistor matrix
US7212064B1 (en) Methods and systems for measuring temperature using digital signals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20211119

WW01 Invention patent application withdrawn after publication