Gain control amplification device
10447223 ยท 2019-10-15
Assignee
Inventors
Cpc classification
H03F2203/45528
ELECTRICITY
H03F2203/45594
ELECTRICITY
H03F2203/45138
ELECTRICITY
H03G1/0088
ELECTRICITY
International classification
Abstract
Provided is a gain control amplification device having a wide range and high accuracy and configured to adapt measurement target current to the input range of an A/D converter. The gain control amplification device includes: a plurality of differential amplifiers having different gains with respect to measurement target current or voltage; a threshold control circuit for comparing output of the differential amplifier with threshold voltage; a switch for selecting output of one of the plurality of differential amplifiers on the basis of output of the threshold control circuit; and an offset control circuit OF and an addition circuit for adding offset voltage to output of one of the differential amplifiers.
Claims
1. A gain control amplification device comprising: a plurality of differential amplifiers having different gains with respect to measurement target current or voltage; a threshold control circuit configured to compare output of any of the differential amplifiers with threshold voltage; a switch configured to select output of one of the plurality of differential amplifiers on the basis of output of the threshold control circuit; and an offset control circuit and an addition circuit configured to add offset voltage to output of one of the differential amplifiers.
2. The gain control amplification device according to claim 1, wherein for the plurality of differential amplifiers, a high-accuracy amplifier and a low-accuracy amplifier are allocated, and the threshold control circuit compares output voltage of the low-accuracy amplifier with the threshold voltage, and if the output voltage is smaller than the threshold voltage, the switch selects output of the high-accuracy amplifier.
3. The gain control amplification device according to claim 1, wherein for the plurality of differential amplifiers, a high-accuracy amplifier and a low-accuracy amplifier are allocated, and the threshold control circuit compares output voltage of the low-accuracy amplifier with the threshold voltage, and if the output voltage is greater than the threshold voltage, the switch selects output of the low-accuracy amplifier, and the offset control circuit and the addition circuit add the offset voltage to the output of the low-accuracy amplifier.
4. The gain control amplification device according to claim 2, wherein if the output voltage is greater than the threshold voltage, the switch selects output of the low-accuracy amplifier, and the offset control circuit and the addition circuit add the offset voltage to the output of the low-accuracy amplifier.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS OF THE INVENTION
First Embodiment
(7) Hereinafter, a gain control amplification device according to embodiment 1 of the present invention will be described with reference to
(8)
(9) Here, the differential amplifier A1 is a high-accuracy amplifier realizing a high gain R2/R1, and the differential amplifier A2 is a low-accuracy amplifier realizing a low gain R3/R1. In addition, the threshold voltage Vref is a reference value for excluding measurement results that are outside the ranges of measurements performed with the respective differential amplifiers A1, A2, and is variably set as appropriate.
(10) In the present invention, the differential amplifiers A1, A2 having a plurality of detection accuracies and a plurality of gains are prepared depending on the required detection accuracy. For example, if, as in the above example, the detection accuracy for a range from 0 [A] to 0.5 [A] is required to be 2 [mA] and the detection accuracy for a range from 0.5 [A] to 5 [A] is required to be 6 [mA], two differential amplifiers having these detection accuracies are prepared.
(11) As shown in
(12) Since the former current measurement range is from 0 [A] to 0.5 [A], as shown in
(13) In order to exclude measurement results that are outside the range, as shown in
(14) As described above, in the present invention, the voltage difference (V2V1) between voltages applied to the terminal V1 and the terminal V2 via the shunt resistor Rshunt on the basis of the measurement target current I0 is converted to predetermined output voltage V3 while the differential amplifier to be used is dynamically switched between the differential amplifier A1 and the differential amplifier A2 depending on the measurement amount thereof, and then, on the basis of the voltage V3, determination for the measurement target current I0 is performed using the MCU.
(15) That is, from the voltage value inputted via the A/D converter, the MCU normalizes the input voltage in accordance with the measurement accuracy thereof, in this example, at intervals of 4.88 m[V] because the range is from 0 [V] to 5 [V] and the number of steps is 10 bits, i.e., 2.sup.10=1024. Then, the original input current value is backwardly calculated using a conversion map stored in the MCU.
Example 1
(16) In this example, an example in which input current shown in
(17) In
(18) At time T1, V2V1 is 0.3 [A]0.001 []=0.3 [mV], and therefore Va1 and Va2 are 0.32500=0.75 [V] and 0.3833=0.25 [V], respectively. Here, since Va2<Vref is satisfied, the PMOS switch M1 is turned on and the NMOS switch M2 is turned off. Thus, voltage 0.75 [V] of output Va1 of the differential amplifier A1 is directly outputted to the output voltage terminal V3 and is read into the A/D converter. As shown in
(19) At time T2, V2V1 is 0.5 [A]0.001 []=0.5 [mV], and therefore Va1 and Va2 are 0.52500=1.25 [V] and 0.5833=0.4165 [V], respectively. Here, since the value of Va2 is to exceed the threshold voltage Vref, the PMOS switch M1 is turned from on to off and the NMOS switch M2 is turned from off to on. Thus, the voltage value to be outputted to the output voltage terminal V3 is switched to a value obtained by adding an addition (offset) value by the addition circuit KA, in this example, 0.8335 [V], to output Va2 of the differential amplifier A2, i.e., 0.4165+0.8335=1.25 [V].
(20) At time T3, V2V1 is 1.6 [A]0.001 []=1.6 [mV], and therefore Va1 and Va2 are 1.62500=4.000 [V] and 1.6833=1.333 [V], respectively. Here, since Va2>Vref is satisfied, the PMOS switch M1 is turned off and the NMOS switch M2 is turned on. Thus, voltage 2.1665 [V] obtained by adding 0.8335 [V] to voltage 1.333 [V] of output Va2 of the differential amplifier A2 is outputted to the output voltage terminal V3 and is read into the A/D converter. As described above, the MCU calculates the original current value by using the table for backwardly converting the input voltage value read in the A/D converter.
(21) At time T4, V2V1 is 0.5 [A]0.001 []=0.5 [mV], and therefore Va1 and Va2 are 0.52500=1.25 [V] and 0.5833=0.4165 [V]. Here, since Va2 is to become smaller than the threshold voltage Vref, the PMOS switch M1 is turned from off to on and the NMOS switch M2 is turned from on to off. Thus, the voltage value to be outputted to the output voltage terminal V3, which has been the value obtained by adding the addition value by the addition circuit KA to output Va2 of the differential amplifier A2 until now, is switched to 1.25 [V] of output Va1 of the differential amplifier A1.
(22) At time T5, V2V1 is 0.4 [A]0.001 []=0.4 [mV], and therefore Va1 and Va2 are 0.42500=1.000 [V] and 0.4833=0.333 [V]. Here, since Va2<Vref is satisfied, the PMOS switch M1 is turned on and the NMOS switch M2 is turned off. Thus, the voltage 1.000 [V] of output Va1 of the differential amplifier A1 is directly outputted to the output voltage terminal V3 and is read into the A/D converter. As described above, the MCU calculates the original current value by using the table for backwardly converting the input voltage value read in the A/D converter.
(23) Thus, a necessary gain and the offset voltage can be dynamically switched depending on the input current, whereby required current accuracy can be ensured. It is noted that, although the case where the measurement target is current has been described, the same applies to the case where the measurement target is voltage.
(24) As described above, in the present invention, differential amplifiers having different detection accuracies and different gains are used, and the required accuracy switching threshold is calculated on the basis of the stored number of bits and the input voltage standard of the A/D converter serving as an output interface. In order that the input range of the A/D converter is matched with output voltage of each amplifier, the high-accuracy amplifier and the low-accuracy amplifier are allocated and the gain of each amplifier is set. The output of the amplifier to be made effective is switched by the threshold control circuit using a set switching point as a threshold. In order to buffer a difference caused due to the different gains of both amplifiers, the offset control circuit is used and the offset voltage value given by the offset control circuit is added to a measurement result by the addition circuit.
(25) In this way, even if the measurement range is wide and high accuracy is required, it becomes possible to dynamically control the measurement accuracy automatically on the basis of the measurement value of current or voltage.
(26) While the embodiments of the present invention have been described above, the present invention is not limited to the above embodiment, but various design modifications can be made. Accordingly, within the scope of the present invention, the above embodiment may be modified or simplified as appropriate.
(27) Various modifications and alterations of this invention will be apparent to those skilled in the art without departing from the scope and spirit of this invention, and it should be understood that this is not limited to the illustrative embodiments set forth herein.