CN108446098B - Method for calculating proportional value between two input voltages - Google Patents

Method for calculating proportional value between two input voltages Download PDF

Info

Publication number
CN108446098B
CN108446098B CN201810181153.9A CN201810181153A CN108446098B CN 108446098 B CN108446098 B CN 108446098B CN 201810181153 A CN201810181153 A CN 201810181153A CN 108446098 B CN108446098 B CN 108446098B
Authority
CN
China
Prior art keywords
voltage
input
value
output
output end
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.)
Active
Application number
CN201810181153.9A
Other languages
Chinese (zh)
Other versions
CN108446098A (en
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.)
Hunan University of Technology
Original Assignee
Hunan University of Technology
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 Hunan University of Technology filed Critical Hunan University of Technology
Priority to CN201810181153.9A priority Critical patent/CN108446098B/en
Publication of CN108446098A publication Critical patent/CN108446098A/en
Application granted granted Critical
Publication of CN108446098B publication Critical patent/CN108446098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/52Multiplying; Dividing
    • G06F7/535Dividing only

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses a method for solving a proportional value between two input voltages, which comprises the steps that a proportional value calculation unit of a parallel A/D converter is used for calculating the proportional value between a numerator voltage and a denominator voltage and outputting a digital proportional value; the calculation of the proportional value between the numerator voltage and the denominator voltage is realized by a proportional value calculation unit comprising a parallel A/D converter and the parallel D/A converter, and a digital proportional value and an analog voltage proportional value are output. The method is used for occasions with low requirement on calculation speed of the proportional value and more gradual change of two input voltages.

Description

Method for calculating proportional value between two input voltages
The invention relates to a circuit for solving a proportional value between two input voltages, which is applied by divisional application, has the original application number of 201610000412.4 and the application date of 2016, 1, month and 4 and is named as a circuit.
Technical Field
The invention relates to an analog operation method, in particular to a method for solving a proportional value between two input voltages.
Background
The conventional analog divider can realize division operation between analog voltages, the output of the operation result is also an analog signal, and a digital signal and an analog signal which reflect the operation result cannot be simultaneously output.
Disclosure of Invention
The invention aims to provide a solution for division operation between analog voltages, namely a method for calculating a proportional value between two input voltages and outputting a digital signal and an analog signal operation result.
In order to achieve the above object, the present invention provides a method for calculating a proportional value between two input voltages, which comprises calculating a proportional value between a numerator voltage and a denominator voltage by a proportional value calculating unit comprising a parallel a/D converter, and outputting a digital proportional value; the parallel A/D converter operates in an automatic continuous conversion mode.
The parallel A/D converter has an analog voltage input, a reference voltage input, and a parallel data output; the analog voltage input end of the parallel A/D converter is a numerator voltage input end, the reference voltage input end is a denominator voltage input end, and the parallel data output end is a digital proportion value output end.
The proportional value calculating unit consists of parallel A/D converters; the parallel A/D converter can be set in an automatic continuous conversion mode; or, the proportional value calculating unit is composed of parallel A/D converters; the parallel A/D converter restarts the next A/D conversion by a conversion end signal output by the parallel A/D converter; or, the proportional value calculating unit consists of a parallel A/D converter and an oscillator; the periodic pulse output by the oscillator is connected to the starting conversion input end of the parallel A/D converter, and the periodic pulse output by the oscillator enables the parallel A/D converter to work in an automatic continuous conversion mode.
The method for calculating the proportional value between the two input voltages can also be that a proportional value calculation unit comprising a parallel A/D converter and the parallel D/A converter realize the calculation of the proportional value between the numerator voltage and the denominator voltage and output a digital proportional value and an analog voltage proportional value.
The parallel D/A converter has a parallel data input, a reference voltage input, and a converted voltage output; the parallel data input end of the parallel D/A converter is a digital proportional value input end; the digital proportion value input end is connected to the digital proportion value output end; the conversion voltage output end is an analog voltage proportional value output end.
The digital proportion value output by the digital proportion value output end and the digital proportion value input by the digital proportion value input end are both binary numbers; when the binary digit number of the digital proportion value output end is equal to the binary digit number of the digital proportion value input end, directly connecting the binary digit of the digital proportion value input end with the binary digit of the digital proportion value output end in sequence; when the number of binary digits of the digital proportion value output end is more than that of the binary digits of the digital proportion value input end, the binary digits of the digital proportion value input end are sequentially connected from the high order of the digital proportion value output end, and the low order binary digits which are more than the digital proportion value output end are not connected to the digital proportion value input end; when the number of binary digits of the digital proportion value output end is less than that of the binary digits of the digital proportion value input end, the binary digits of the digital proportion value output end are connected in sequence from the high order of the digital proportion value input end, and the excessive low order binary digits of the digital proportion value input end are connected to the low level.
Setting the input numerator voltage as U1 and the input denominator voltage as U2; the digital proportion value output by the digital proportion value output end is Z, and the maximum value is Zmax; the voltage input by the reference voltage input end is 1V; the analog voltage proportion value output by the analog voltage proportion value output end is U0; then there is
Figure GDA0003348476490000021
The numerator voltage U1 and the denominator voltage U2 are positive voltages, and U1 is less than or equal to U2.
The parallel A/D converter reference voltage input end allows the input reference voltage range to be wider than the voltage range of the denominator voltage U2.
The parallel D/a converter is in a direct D/a conversion state.
The method for calculating the proportional value between the two input voltages can also be realized by a circuit comprising a proportional value calculation unit of a parallel A/D converter, the parallel D/A converter and a four-quadrant adjusting and sequencing unit, and the proportional value between the two bipolar voltages is calculated and a digital proportional value and an analog voltage proportional value are output. The four-quadrant adjusting and sorting unit consists of a voltage magnitude sorting circuit and an absolute value and sign circuit, and is provided with a first input voltage input end, a second input voltage input end, a numerator voltage output end, a denominator voltage output end, a magnitude comparison result output end and a proportion value sign output end. And the numerator voltage output end and the denominator voltage output end are connected to the numerator voltage input end and the denominator voltage input end.
The voltage magnitude sorting circuit is provided with a first input absolute value voltage input end, a second input absolute value voltage input end, a numerator voltage output end, a denominator voltage output end and a magnitude comparison result output end.
When the amplitude of the first input absolute value voltage is greater than the second input absolute value voltage, the denominator voltage output by the voltage magnitude sorting circuit is equal to the first input absolute value voltage, and the numerator voltage is equal to the second input absolute value voltage; when the amplitude of the first input absolute value voltage is smaller than the second input absolute value voltage, the denominator voltage output by the voltage magnitude sorting circuit is equal to the second input absolute value voltage, and the numerator voltage is equal to the first input absolute value voltage.
The absolute value and sign circuit is provided with a first input absolute value voltage output end, a second input absolute value voltage output end, a first input voltage input end, a second input voltage input end and a proportional value sign output end. The first input voltage and the second input voltage are bipolar voltages.
The absolute value and sign circuit includes a first absolute value circuit, a second absolute value circuit, and a sign operation circuit. The first absolute value circuit converts the first input voltage into a first input absolute value voltage and outputs the first input absolute value voltage to the voltage magnitude sorting circuit; the second absolute value circuit converts the second input voltage into a second input absolute value voltage and outputs the second input absolute value voltage to the voltage magnitude sorting circuit. The sign operation circuit outputs a proportional sign between the two input voltages in the form of a switching value according to the polarities of the first input voltage and the second input voltage.
The size comparison result output end outputs a size comparison result in the form of switching value; and the proportional value symbol output end outputs a proportional value symbol in the form of a switching value. The switching value is in the form of high and low levels.
The voltage magnitude sequencing circuit consists of a double-channel double-path analog switch and a comparator; the comparator compares the amplitude of the first input absolute value voltage and the amplitude of the second input absolute value voltage; the size comparison result output by the size comparison result output end is controlled by the output of the comparator; the channel selection of the two-channel two-way analog switch is controlled by the output of the comparator.
The invention has the advantages that the ratio value between two input voltages can be automatically obtained and output in the form of digital signals, or simultaneously output in the form of digital signals and analog signals.
Drawings
Fig. 1 is a block diagram of a circuit for obtaining a ratio between two input voltages.
Fig. 2 is embodiment 1 of the proportional value calculating unit 100.
Fig. 3 is embodiment 2 of the proportional value calculating unit 100.
Fig. 4 is embodiment 3 of the proportional value calculating unit 100.
Fig. 5 shows embodiment 1 of the simulation result output unit 200.
Fig. 6 shows embodiment 2 of the simulation result output unit 200.
FIG. 7 is a block diagram of an implementation of the four-quadrant adjusting and sorting unit 300.
Fig. 8 shows an embodiment of a voltage level ordering circuit 301.
Fig. 9 shows an embodiment of an absolute value and sign circuit 302.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
A circuit for calculating a ratio between two input voltages is shown in fig. 1, and comprises a ratio calculating unit 100, a simulation result outputting unit 200, and a four-quadrant adjusting and sorting unit 300.
The core of the proportional value calculating unit 100 is a parallel a/D converter, which has a numerator voltage input VIN, a denominator voltage input REF, and a digital proportional value output DB OUT.
The parallel A/D converter has an analog voltage input, a reference voltage input, and a parallel data output, and operates in an automatic continuous conversion mode. The analog voltage input terminal is a numerator voltage input terminal VIN of the proportional value calculating unit 100, the reference voltage input terminal is a denominator voltage input terminal REF of the proportional value calculating unit 100, and the parallel data output terminal is a digital proportional value output terminal DB OUT of the proportional value calculating unit 100.
Embodiment 1 of the proportional value calculating unit 100 is, as shown in fig. 2, composed of a parallel a/D converter 101, a resistor 102, a capacitor 103, and an and gate 104. The model of the parallel a/D converter 101 is an 8-bit parallel a/D converter ADC 0841. The analog voltage input end of the ADC0841 is VIN +, the reference voltage input end is VREF, and the 8-bit parallel data output end is DB 7-DB 0. WR of ADC0841 is the start conversion input end, negative pulse is effective; WR is connected to the output of and gate 104; one input of the and gate 104 is connected to the power-on pulse output end composed of the resistor 102 and the capacitor 103, and the other input is connected to the conversion end signal output end INTR of the ADC 0841; when the power is on, the power-on pulse starts the ADC0841 to perform the first A/D conversion, after the A/D conversion is finished, the negative pulse output by the INTR starts the ADC0841 to perform the new A/D conversion, and the operation is repeated in cycles, and the ADC0841 works in an automatic continuous conversion mode.
The analog voltage input negative terminal VIN-, the output enable terminal RD, the chip select terminal CS, the digital ground DGND and the analog ground AGND of the ADC0841 are connected to a common ground, and the power supply terminal VCC of the ADC0841 is connected to the positive power supply + VDD. When the output enable terminal RD of the ADC0841 is inputted with a low level, the data output terminals DB7 DB0 keep outputting valid. When each conversion of the ADC0841 is finished, the result is automatically output from the data output terminals DB7 DB 0.
Let the voltage connected to the numerator voltage input VIN be U1, the voltage connected to the denominator voltage input REF be U2, and the digital signal output by the digital scale value output DB OUT be Z. In embodiment 1 of the proportional value calculating unit 100, Z is Z7 to Z0 outputted from the data output terminals DB7 to DB0, and the maximum value Zmax is 255. Then there is
Figure GDA0003348476490000041
I.e. the ratio between the two input voltages U1, U2 is
Figure GDA0003348476490000042
Embodiment 2 of the proportional value calculating unit 100 is shown in fig. 3, and is composed of a parallel a/D converter 111, 555 time base device 112, resistor 113, resistor 114, and capacitor 115. The model of the parallel a/D converter 111 is an 8-bit parallel a/D converter ADC 0841. The embodiment 2 of the proportional value calculating unit 100 is different from the embodiment 1 of the proportional value calculating unit 100 in that an oscillator is composed of the 555 time base device 112, the resistor 113, the resistor 114 and the capacitor 115, a periodic pulse output by the oscillator is connected to the start switching input WR of the a/D converter 111, and a/D conversion is started once every pulse, so that the a/D converter 111 operates in the automatic continuous switching mode. The other parts of the embodiment 2 of the proportional value calculating unit 100 are the same as those of the embodiment of the proportional value calculating unit 100, and the proportional value between the two input voltages U1 and U2 is
Figure GDA0003348476490000051
Embodiment 3 of the proportional value calculating unit 100 is shown in fig. 4, and is composed of parallel a/D converters 121 and 555 time base device 122, resistor 123, resistor 124, and capacitor 125. The model of the parallel a/D converter 121 is a 12-bit parallel a/D converter AD 7492. The analog voltage input end of the AD7492 is VIN, the reference voltage input end is REF IN, and the 12-bit parallel data output ends are DB 11-DB 0. CONVST of AD7492 is the enable conversion input, the falling edge of which enables A/D conversion. The 555 time base device 122, the resistor 123, the resistor 124 and the capacitor 125 form an oscillator, periodic pulses output by the oscillator are connected to a start conversion input terminal CONVST of the A/D converter 121, and each pulse starts an A/D conversion once, so that the A/D converter 121 works in an automatic continuous conversion mode.
The output enable terminal RD, the chip select terminal CS, the sleep mode select terminal PS/FS, the digital ground DGND, and the analog ground AGND of the AD7492 are connected to a common ground, and the analog power supply terminal AVDD and the digital power supply terminal DVDD of the AD7492 are connected to the positive power supply + VDD. When the output enable terminal RD of the AD7492 receives a low input, the data output terminals DB 11-DB 0 keep outputting valid. When the AD7492 conversion is finished, the result is automatically output from the data output terminals DB11 DB 0.
In embodiment 3 of the proportional value calculating unit 100, Z is Z11 to Z0 outputted from the data output terminals DB11 to DB0, and the maximum value Zmax is 4095. Then there is
Figure GDA0003348476490000052
I.e. the ratio between the two input voltages U1, U2 is
Figure GDA0003348476490000053
The parallel a/D converter reference voltage input in the proportional value calculating unit 100 allows a wider range of input reference voltages than the input voltage U2 connected to the denominator voltage input REF of the proportional value calculating unit 100.
In addition to the automatic continuous conversion mode adopted by the parallel a/D converter in the above-described 3 embodiments, when the selected parallel a/D converter can operate in the automatic continuous conversion mode by setting, it is preferable to operate the parallel a/D converter in the automatic continuous conversion mode by setting.
The core of the analog result output unit 200 is a parallel D/a converter, which has a digital proportional value input DB IN, a scale factor voltage input VIN3, and an analog voltage proportional value output VOUT. The digital scale value input terminal DB IN is connected to the digital scale value output terminal DB OUT of the scale value calculating unit 100.
The parallel D/a converter has a parallel data input, a reference voltage input, and a converted voltage output. The parallel data input terminal is a digital proportional value input terminal DB IN of the analog result output unit 200, the reference voltage input terminal is a scale factor voltage input terminal VIN3 of the analog result output unit 200, and the conversion voltage output terminal is an analog voltage proportional value output terminal VOUT of the analog result output unit 200.
Embodiment 1 of the analog result output unit 200 is, as shown in fig. 5, composed of a parallel D/a converter 201, and the model of the parallel D/a converter 201 is an 8-bit parallel D/a converter AD 5330. The parallel data input end of the AD5330 is DB 7-DB 0, the reference voltage input end is VREF, and the conversion voltage output end is VOUT.
A buffer switch control end BUF, an output proportion control end GAIN, an input register control end WR, a DAC register control end LDAC, a chip selection end CS and a ground end GND of the AD5330 are connected to a common ground, and a zero clearing end CLR, a low power consumption control end PD and a power supply end VDD of the AD5330 are connected to a positive power supply + VDD. When the input register control end WR of the AD5330 and the DAC register control end LDAC input are in a direct D/A conversion state, and when the conversion delay is not considered, the conversion voltage output end VOUT reflects the data conversion results of the parallel data input ends DB 7-DB 0 in real time.
Assuming that the voltage connected to the scale factor voltage input terminal VIN3 is UK, the voltage output from the analog voltage scale value output terminal VOUT is U0, and the data input from the parallel data input terminals DB7 to DB0 are Z, i.e., 8 bits of Z7 to Z0, and the maximum value Zmax1 is 255, then there are some cases where the voltage is UK, the voltage output from the analog voltage scale value output terminal VOUT is U0, and the data input from the parallel data input terminals DB7 to DB0 is Z, i.e., Z7 to Z0 with 8 bits, and the maximum value Zmax1 is 255
Figure GDA0003348476490000061
When Zmax1 equals Zmax, there are
Figure GDA0003348476490000062
When UK is equal to 1V, there are
Figure GDA0003348476490000063
Obviously, if the simulation result output unit 200 employs embodiment 1 thereof, Zmax1 is equal to Zmax when the proportional value calculating unit 100 employs embodiment 1 or embodiment 2. If embodiment 1 of the analog result output unit 200 is used and embodiment 3 of the scale value calculation unit 100 is used, and Zmax1 is made equal to Zmax, the upper 8 bits of the 12-bit data output from the digital scale value output terminal DB OUT of embodiment 3 of the scale value calculation unit 100 should be selected as the digital scale value input terminal DB IN signal of embodiment 1 of the analog result output unit 200.
Embodiment 2 of the analog result output unit 200 is, as shown in fig. 6, composed of a parallel D/a converter 211, and the model of the parallel D/a converter 211 is a 12-bit parallel D/a converter AD 5340. The parallel data input end of the AD5340 is DB 11-DB 0, the reference voltage input end is VREF, and the conversion voltage output end is VOUT.
A buffer switch control end BUF, an output proportion control end GAIN, an input register control end WR, a DAC register control end LDAC, a chip selection end CS and a ground end GND of the AD5340 are connected to a common ground, and a zero clearing end CLR, a low power consumption control end PD and a power supply end VDD of the AD5340 are connected to a positive power supply + VDD. When the input register control end WR of the AD5340 and the DAC register control end LDAC input are in a direct D/A conversion state, and when the conversion delay is not considered, the conversion voltage output end VOUT reflects the data conversion results of the parallel data input ends DB 11-DB 0 in real time.
Assuming that the voltage connected to the scale factor voltage input terminal VIN3 is UK, the voltage output from the analog voltage scale value output terminal VOUT is U0, and the data input from the parallel data input terminals DB11 to DB0 are Z, i.e., 12 bits of Z11 to Z0, and the maximum value Zmax1 is 4095, then there are
Figure GDA0003348476490000071
When Zmax1 equals Zmax, there are
Figure GDA0003348476490000072
When UK is equal to 1V, there are
Figure GDA0003348476490000073
Obviously, if the simulation result output unit 200 employs embodiment 2 thereof, Zmax1 is equal to Zmax when the proportional value calculating unit 100 employs embodiment 3. If Zmax1 is to be made equal to Zmax when the simulation result output unit 200 employs its embodiment 2 and the proportional value calculating unit 100 employs its embodiment 1 or embodiment 2, the 8-bit digital proportional value data of the proportional value calculating unit 100 should be connected to the upper 8 bits of the 12-bit digital proportional value input terminal of the simulation result output unit 200 and the lower 4 bits of the 12-bit digital proportional value input terminal of the simulation result output unit 200 should be connected to the common ground.
IN the 3 embodiments of the scale value calculating unit 100 and the 2 embodiments of the analog result outputting unit 200, the data of the digital scale value output terminal DB OUT and the digital scale value input terminal DB IN are binary data. The voltage U1 of the numerator voltage input VIN and the voltage U2 of the denominator voltage input REF are both positive voltages, and U1 is less than or equal to U2.
The four-quadrant adjusting and sorting unit 300 is composed of a voltage magnitude sorting circuit 301 and an absolute value and sign circuit 302.
The voltage magnitude sorting circuit 301 is used for comparing magnitudes of two positive input voltages of a to-be-obtained proportional value, namely, a first input absolute value voltage UA and a second input absolute value voltage UB, connecting a voltage with a larger magnitude as a voltage U2 at a denominator voltage input terminal REF, and a voltage with a smaller magnitude as a voltage U1 at a numerator voltage input terminal VIN to the proportional value calculating unit 100, and outputting a comparison result in the form of a switching value.
The voltage level sorting circuit 301 is shown in fig. 8 and comprises a two-channel two-way analog switch 311 and a comparator 312. The dual channel two-way analog switch 311 selects the dual 4-out-of-one multi-way analog switch CD 4052.
The comparator 312 compares the magnitudes of the first input absolute value voltage UA and the second input absolute value voltage UB, and the magnitude switch signal SW1 has a function of being output in the form of a switching value as a comparison result and a function of being connected to the channel selection terminal a of the CD 4052. The channel select terminal B, enable input terminal INH, digital ground VSS, analog ground VEE of CD4052 are connected to common ground, and VDD of CD4052 is connected to positive supply + VDD.
UA > UB, the magnitude switch signal SW1 outputs a low level; the output X of CD4052 is selectively communicated with X0, and the output Y is selectively communicated with Y0, i.e., U1 ═ X0 ═ UB, U2 ═ Y0 ═ UA; satisfy U1< U2.
When UA < UB, the magnitude switch signal SW1 outputs high level; the output X of CD4052 is selectively communicated with X1, and the output Y is selectively communicated with Y1, i.e., U1 ═ X1 ═ UA, U2 ═ Y1 ═ UB; satisfy U1< U2.
The large and small switch signals SW1 are output as a comparison result in the form of a switching value, and in addition to the high and low levels described above, various types of conventional circuits such as an NPN transistor whose collector is open, a PNP transistor whose collector is open, and a relay may be added after the large and small switch signals SW1 to obtain the switching values output in the form of normally open and normally closed switches.
The absolute value and sign circuit 302 is used for converting the first input voltage UX into a first input absolute value voltage UA, converting the second input voltage UY into a second input absolute value voltage UB, and outputting the second input absolute value voltage UB to the voltage magnitude sorting circuit 301; the sign signal SW2 of the ratio value between the two input voltages is output in the form of a switching value according to the polarities of the first input voltage UX and the second input voltage UY.
An absolute value and sign circuit 302 embodiment is shown in fig. 9.
The operational amplifier 321, the operational amplifier 322, the diode 323, the diode 324, the resistor 325, the resistor 326, the resistor 327, the resistor 328, and the resistor 329 form a first absolute value circuit, the input of which is a first input voltage UX, and the output of which is a first input absolute value voltage UA; i.e. UA is the absolute value of UX.
The operational amplifier 331, the operational amplifier 332, the diode 333, the diode 334, the resistor 335, the resistor 336, the resistor 337, the resistor 338 and the resistor 339 form a second absolute value circuit, the input of which is a second input voltage UY, and the output of which is a second input absolute value voltage UB; i.e. UB is the absolute value of UY.
The first absolute value circuit and the second absolute value circuit can use any other absolute value circuit or a precise full-wave rectifying circuit.
The comparator 341, the comparator 342, the diode 343, the diode 344, and the exclusive or gate 345 constitute a sign operation circuit.
The comparator 341 and the diode 343 convert the positive and negative polarities of the first input voltage UX into low-level and high-level signals for output and are connected to an input terminal of the xor gate 345; the comparator 342 and the diode 344 convert the positive and negative polarities of the second input voltage UY into low-level and high-level signals, and are connected to the other input terminal of the xor gate 345; the exclusive-or gate outputs a proportional value sign signal SW2 in the form of high and low levels; if the first input voltage UX and the second input voltage UY have the same polarity, the proportional value sign signal SW2 is at a low level; if the first input voltage UX is not the same as the second input voltage UY in polarity, the proportional value symbol signal SW2 is high. The exclusive or gate 345 is replaced with an exclusive or gate, or the first input voltage UX is changed from the negative input terminal connected to the comparator 341 shown in fig. 9 to the positive input terminal of the comparator 341, or the second input voltage UY is changed from the negative input terminal connected to the comparator 342 shown in fig. 9 to the positive input terminal of the comparator 342, so that the proportional-value sign signal SW2 is high when the polarities of the first input voltage UX and the second input voltage UY are the same; when the first input voltage UX and the second input voltage UY have different polarities, the proportional value symbol signal SW2 is at a low level.
The proportional value sign signal SW2 is output in the form of a switching value, and besides the high and low levels, various conventional circuits such as an NPN transistor with an open collector, an PNP transistor with an open collector, and a relay may be added after the proportional value sign signal SW2 to obtain the switching values output in the form of normally open and normally closed switches.
Taken together, when | UX | > | UY |, there are
Figure GDA0003348476490000091
When | UX | < | UY |, there are
Figure GDA0003348476490000092
When the | UX | ═ UY | is present, UA ═ UB and U1 ═ U2 are present regardless of whether SW1 is high or low, so
Figure GDA0003348476490000093
The device is used for occasions with low requirements on the voltage proportion value calculation speed and gentle voltage change.
The above description is only an example of the present invention and is not intended to limit the present invention, and various modifications and changes may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (8)

1. A method for calculating a ratio between two input voltages, comprising:
the calculation of the proportional value between the numerator voltage and the denominator voltage is realized by a circuit comprising a proportional value calculation unit of a parallel A/D converter and a four-quadrant adjusting and sequencing unit, and a digital proportional value is output; the parallel A/D converter works in an automatic continuous conversion mode;
the parallel A/D converter has an analog voltage input, a reference voltage input, and a parallel data output; the analog voltage input end of the parallel A/D converter is a numerator voltage input end, the reference voltage input end is a denominator voltage input end, and the parallel data output end is a digital proportion value output end;
the four-quadrant adjusting and sorting unit consists of a voltage magnitude sorting circuit and an absolute value and sign circuit, and is provided with a first input voltage input end, a second input voltage input end, a numerator voltage output end, a denominator voltage output end, a magnitude comparison result output end and a proportional value sign output end; the numerator voltage output end and the denominator voltage output end are connected to the numerator voltage input end and the denominator voltage input end;
the voltage magnitude sorting circuit is provided with a first input absolute value voltage input end, a second input absolute value voltage input end, a numerator voltage output end, a denominator voltage output end and a magnitude comparison result output end;
when the amplitude of the first input absolute value voltage is larger than the second input absolute value voltage, the denominator voltage output by the voltage magnitude sorting circuit is equal to the first input absolute value voltage, and the numerator voltage is equal to the second input absolute value voltage; when the amplitude of the first input absolute value voltage is smaller than the second input absolute value voltage, the denominator voltage output by the voltage magnitude sorting circuit is equal to the second input absolute value voltage, and the numerator voltage is equal to the first input absolute value voltage;
the absolute value and sign circuit is provided with a first input absolute value voltage output end, a second input absolute value voltage output end, a first input voltage input end, a second input voltage input end and a proportional value sign output end; the first input voltage and the second input voltage are bipolar voltages;
the absolute value and sign circuit comprises a first absolute value circuit, a second absolute value circuit and a sign operation circuit; the first absolute value circuit converts the first input voltage into a first input absolute value voltage and outputs the first input absolute value voltage to the voltage magnitude sorting circuit; the second absolute value circuit converts the second input voltage into a second input absolute value voltage and outputs the second input absolute value voltage to the voltage magnitude sorting circuit; the sign operation circuit outputs a proportional value sign between the two input voltages in a switching value mode according to the polarities of the first input voltage and the second input voltage;
the size comparison result output end outputs a size comparison result in the form of switching value; the proportional value symbol output end outputs a proportional value symbol in the form of a switching value; the switching value is in the form of high and low levels;
the voltage magnitude sequencing circuit consists of a double-channel double-path analog switch and a comparator; the comparator compares the amplitude of the first input absolute value voltage and the amplitude of the second input absolute value voltage; the size comparison result output by the size comparison result output end is controlled by the output of the comparator; the channel selection of the two-channel two-way analog switch is controlled by the output of the comparator.
2. A method of scaling two input voltages as claimed in claim 1, wherein: the parallel A/D converter restarts the next A/D conversion by a conversion end signal output by itself.
3. A method of scaling two input voltages as claimed in claim 1, wherein: the proportional value calculating unit consists of a parallel A/D converter and an oscillator; the periodic pulse output by the oscillator is connected to the starting conversion input end of the parallel A/D converter, and the periodic pulse output by the oscillator enables the parallel A/D converter to work in an automatic continuous conversion mode.
4. A method of scaling two input voltages according to any one of claims 1 to 3, characterized by: calculating a proportional value between the numerator voltage and the denominator voltage by a proportional value calculating unit and a parallel D/A converter, and outputting a digital proportional value and an analog voltage proportional value;
the parallel D/A converter has a parallel data input, a reference voltage input, and a converted voltage output; the parallel data input end of the parallel D/A converter is a digital proportional value input end; the digital proportion value input end is connected to the digital proportion value output end; the conversion voltage output end is an analog voltage proportional value output end.
5. A method of scaling two input voltages as claimed in claim 4, wherein:
the digital proportion value output by the digital proportion value output end and the digital proportion value input by the digital proportion value input end are both binary numbers; when the binary digit number of the digital proportion value output end is equal to the binary digit number of the digital proportion value input end, directly connecting the binary digit of the digital proportion value input end with the binary digit of the digital proportion value output end in sequence; when the number of binary digits of the digital proportion value output end is more than that of the binary digits of the digital proportion value input end, the binary digits of the digital proportion value input end are sequentially connected from the high order of the digital proportion value output end, and the low order binary digits which are more than the digital proportion value output end are not connected to the digital proportion value input end; when the number of binary digits of the digital proportion value output end is less than that of the binary digits of the digital proportion value input end, the binary digits of the digital proportion value output end are connected in sequence from the high order of the digital proportion value input end, and the excessive low order binary digits of the digital proportion value input end are connected to the low level.
6. A method of scaling two input voltages as claimed in claim 5, wherein: setting the input numerator voltage as U1 and the input denominator voltage as U2; the digital proportion value output by the digital proportion value output end is Z, and the maximum value is Zmax; the voltage input by the reference voltage input end is 1V; the analog voltage proportion value output by the analog voltage proportion value output end is U0; then there is
Figure DEST_PATH_IMAGE001
7. A method of scaling two input voltages as claimed in claim 6, wherein: the numerator voltage and the denominator voltage are both positive voltages, and the numerator voltage is less than or equal to the denominator voltage.
8. A method of scaling two input voltages as claimed in claim 1, wherein: the parallel A/D converter reference voltage input end allows the voltage range of the input reference voltage to be wider than that of the denominator voltage.
CN201810181153.9A 2016-01-04 2016-01-04 Method for calculating proportional value between two input voltages Active CN108446098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810181153.9A CN108446098B (en) 2016-01-04 2016-01-04 Method for calculating proportional value between two input voltages

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810181153.9A CN108446098B (en) 2016-01-04 2016-01-04 Method for calculating proportional value between two input voltages
CN201610000412.4A CN105677295B (en) 2016-01-04 2016-01-04 Seek the circuit of ratio value between two input voltages

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610000412.4A Division CN105677295B (en) 2016-01-04 2016-01-04 Seek the circuit of ratio value between two input voltages

Publications (2)

Publication Number Publication Date
CN108446098A CN108446098A (en) 2018-08-24
CN108446098B true CN108446098B (en) 2022-03-18

Family

ID=56190096

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810181153.9A Active CN108446098B (en) 2016-01-04 2016-01-04 Method for calculating proportional value between two input voltages
CN201610000412.4A Active CN105677295B (en) 2016-01-04 2016-01-04 Seek the circuit of ratio value between two input voltages

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610000412.4A Active CN105677295B (en) 2016-01-04 2016-01-04 Seek the circuit of ratio value between two input voltages

Country Status (1)

Country Link
CN (2) CN108446098B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777491A (en) * 1995-03-31 1998-07-07 International Business Machines Corporation High-performance differential cascode voltage switch with pass gate logic elements
CN1363141A (en) * 2000-02-14 2002-08-07 住友金属工业株式会社 Logarithmic A/D converter, method of logarithmic A/D conversion, logartimic D/A converter, method of logarithmic D/A conversion, and system for measuring physical quantity
KR20060109397A (en) * 2006-09-28 2006-10-20 이종우 Logarithmic pipeline analog to digital converter
CN1867888A (en) * 2003-10-16 2006-11-22 佳能株式会社 Operation circuit and operation control method thereof
CN101499735A (en) * 2008-01-29 2009-08-05 台达电子工业股份有限公司 High resolution input apparatus, frequency transformer system having the apparatus and processing method for analogue input voltage signal
CN102237874A (en) * 2010-04-27 2011-11-09 原相科技股份有限公司 Analog-to-digital converter and relevant calibration comparer thereof
JP2012161146A (en) * 2011-01-31 2012-08-23 Fuji Electric Co Ltd Switching power supply device having output voltage switching function
CN103499733A (en) * 2013-09-30 2014-01-08 中国科学院微电子研究所 Circuit and method for high-precision voltage detection
CN103634007A (en) * 2012-08-27 2014-03-12 英飞凌科技奥地利有限公司 Ratiometric adc circuit arrangement

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1053775C (en) * 1995-02-14 2000-06-21 联华电子股份有限公司 Digital analoge converter
CN1041220C (en) * 1995-08-25 1998-12-16 北京师范大学低能核物理研究所 Surface treatment method of high-speed steel cutter
CN101369815A (en) * 2007-08-15 2009-02-18 黑龙江大学 Method for automatically regulating reference voltage and improving analog-to-digital conversion definition
CN101499675B (en) * 2008-01-31 2012-07-04 台达电子工业股份有限公司 Charging circuit and power supply system
CN102314187B (en) * 2010-06-30 2014-01-01 比亚迪股份有限公司 Direct-current voltage proportion output circuit and control method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777491A (en) * 1995-03-31 1998-07-07 International Business Machines Corporation High-performance differential cascode voltage switch with pass gate logic elements
CN1363141A (en) * 2000-02-14 2002-08-07 住友金属工业株式会社 Logarithmic A/D converter, method of logarithmic A/D conversion, logartimic D/A converter, method of logarithmic D/A conversion, and system for measuring physical quantity
CN1867888A (en) * 2003-10-16 2006-11-22 佳能株式会社 Operation circuit and operation control method thereof
KR20060109397A (en) * 2006-09-28 2006-10-20 이종우 Logarithmic pipeline analog to digital converter
CN101499735A (en) * 2008-01-29 2009-08-05 台达电子工业股份有限公司 High resolution input apparatus, frequency transformer system having the apparatus and processing method for analogue input voltage signal
CN102237874A (en) * 2010-04-27 2011-11-09 原相科技股份有限公司 Analog-to-digital converter and relevant calibration comparer thereof
JP2012161146A (en) * 2011-01-31 2012-08-23 Fuji Electric Co Ltd Switching power supply device having output voltage switching function
CN103634007A (en) * 2012-08-27 2014-03-12 英飞凌科技奥地利有限公司 Ratiometric adc circuit arrangement
CN103499733A (en) * 2013-09-30 2014-01-08 中国科学院微电子研究所 Circuit and method for high-precision voltage detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Analog multiplication and division scheme based on D/A converters;S.G. Stavrinides 等;《Proceedings of MELECON "94. Mediterranean Electrotechnical Conference》;20020806;第525-528页 *
一种数显模拟除法器及其在测量电路中的应用;李宏;《半导体技术》;20010331;第26卷(第3期);第35-38页 *

Also Published As

Publication number Publication date
CN105677295A (en) 2016-06-15
CN105677295B (en) 2018-06-26
CN108446098A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
KR20080007997A (en) Pipeline analog digital converter with self reference voltage driver
JPS62155620A (en) Complementary voltage interpolating circuit
JPH06152420A (en) A/d converter
CN108446098B (en) Method for calculating proportional value between two input voltages
CN108509178B (en) Analog voltage divider circuit
Ragit et al. Design of up-down counter as SAR logic for high speed SAR ADC used in health care system
CN101471668A (en) Polar-controlled D/A converter of R-2R ladder network
US7023370B2 (en) Shared parallel digital-to-analog conversion
US7960985B2 (en) Identification of integrated circuit
Shu et al. A 10$\sim $15-bit 60-MS/s Floating-Point ADC With Digital Gain and Offset Calibration
JPH06112824A (en) Interpolation type a/d converter
TWI428609B (en) Current sensing circuit
US20200287564A1 (en) Analog-to-Digital Converter and Sensor Arrangement Including the Same
CN219834120U (en) Digital-to-analog conversion circuit, digital-to-analog conversion chip and electronic equipment
JP2020123250A (en) Digital-analog converter and artificial neuron circuit
KR100502402B1 (en) Successive approximation approximation type analog to digital convering circuit
CN116800272A (en) High-speed sectional digital-to-analog conversion circuit, electronic circuit and electronic equipment
Tangel et al. An auto calibrator for TIQ based flash ADC designs
JPS6041327A (en) Analog-digital converting device
KR101143247B1 (en) Dual-slope integrating analog-to-digital converter
JP5325587B2 (en) D / A converter circuit
JP3837014B2 (en) Digital-analog converter
JPH02268523A (en) Digital/analog converter
JPS617727A (en) Analog-to-digital converter circuit
JPS62200824A (en) Analog-digital conversion circuit

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Wen Dingdu

Inventor after: Ling Yun

Inventor after: Zeng Hongbing

Inventor after: Wang Bing

Inventor before: Ling Yun

Inventor before: Zeng Hongbing

Inventor before: Wang Bing

Inventor before: Wen Dingdu

GR01 Patent grant
GR01 Patent grant