JPH07143003A - Gain control circuit for operational amplifier - Google Patents

Gain control circuit for operational amplifier

Info

Publication number
JPH07143003A
JPH07143003A JP28357193A JP28357193A JPH07143003A JP H07143003 A JPH07143003 A JP H07143003A JP 28357193 A JP28357193 A JP 28357193A JP 28357193 A JP28357193 A JP 28357193A JP H07143003 A JPH07143003 A JP H07143003A
Authority
JP
Japan
Prior art keywords
operational amplifier
digital value
register
gain
input voltage
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.)
Pending
Application number
JP28357193A
Other languages
Japanese (ja)
Inventor
Tsunehiko Tanitsu
常彦 谷津
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP28357193A priority Critical patent/JPH07143003A/en
Publication of JPH07143003A publication Critical patent/JPH07143003A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Control Of Amplification And Gain Control (AREA)

Abstract

PURPOSE:To improve the accuracy of an A/D converter by varying the gain of an operational amplifier corresponding to the change of an input voltage. CONSTITUTION:When the input voltage Vin is increased up to, for example, 0-0.1V in an initial state, an output voltage Vout is increased to 0-4V. Therefore, since the change width of the output voltage is increased, an A/D conversion result with high accuracy can be obtained. When the input voltage Vin reaches 0.1V, the storage areas A, B, and C of a second register 18 are changed to 0, 1, and 0 according to the detection signal of a comparator 17. In other words, a transmission gate 13 is energized, and the gain of the operational amplifier 7 is changed from 40 times to 20 times. After that, when the input voltage Vin is increased up to 0.1-0.2V, the storage areas A, B and C are changed to 1, 0 and 0, a transmission gate 12 is energized, and the gain of the operational amplifier 7 is changed from 20 times to 10 times. After that, when the input voltage Vin is increased up to 0.2-0.4V, the output voltage Vout is increased up to 2-4V.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、演算増幅器の利得制御
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gain control circuit for an operational amplifier.

【0002】[0002]

【従来の技術】図3は従来の演算増幅器を示している。
図3において、(1)は演算増幅器であり、−(反転入
力)端子及び接地の間に入力抵抗(2)が接続されると
共に、−端子及び出力端子の間に帰還抵抗(3)が接続
されている。尚、端子(4)(5)(6)を境に、演算
増幅器(1)はマイクロコンピュータ内部に集積化さ
れ、入力抵抗(2)及び帰還抵抗(3)はマイクロコン
ピュータ外部に接続されている。例えば、入力抵抗
(2)及び帰還抵抗(3)の抵抗値が各々R、9Rの
時、演算増幅器(1)の利得は(R+9R)/R=10
倍となる。即ち、演算増幅器(1)の+(非反転入力)
端子に或る入力電圧Vinが印加されると、演算増幅器
(1)の出力端子から前記入力電圧Vinの10倍の出力
電圧Voutが発生する。
2. Description of the Related Art FIG. 3 shows a conventional operational amplifier.
In FIG. 3, (1) is an operational amplifier, and an input resistor (2) is connected between the − (inverting input) terminal and ground, and a feedback resistor (3) is connected between the − terminal and the output terminal. Has been done. The operational amplifier (1) is integrated inside the microcomputer, and the input resistance (2) and the feedback resistance (3) are connected to the outside of the microcomputer at the terminals (4), (5) and (6). . For example, when the resistance values of the input resistance (2) and the feedback resistance (3) are R and 9R, respectively, the gain of the operational amplifier (1) is (R + 9R) / R = 10.
Doubled. That is, + (non-inverting input) of the operational amplifier (1)
When a certain input voltage Vin is applied to the terminal, an output voltage Vout that is 10 times the input voltage Vin is generated from the output terminal of the operational amplifier (1).

【0003】図4は図3の演算増幅器の入出力電圧特性
を示している。例えば、入力電圧Vinが0〜0.4Vま
で上昇すると、出力電圧Voutは1次関数的に0〜4V
まで上昇する。
FIG. 4 shows input / output voltage characteristics of the operational amplifier of FIG. For example, when the input voltage Vin rises to 0 to 0.4V, the output voltage Vout becomes a linear function of 0 to 4V.
Rise to.

【0004】[0004]

【発明が解決しようとする課題】さて、演算増幅器
(1)の出力電圧Voutは、AD変換器でAD変換され
た後、プログラム命令に応じて所定の論理演算を施され
る様になっている。しかしながら、演算増幅器(1)の
利得が常に一定である為、出力電圧Voutは入力電圧Vi
nの変化に追従して1次関数的に上昇するだけである。
従って、入力電圧Vinが低いと、出力電圧Voutも必然
的に低くなり、AD変換精度が低下する問題があった。
The output voltage Vout of the operational amplifier (1) is AD-converted by an AD converter and then subjected to a predetermined logical operation according to a program command. . However, since the gain of the operational amplifier (1) is always constant, the output voltage Vout is equal to the input voltage Vi.
It only increases linearly following changes in n.
Therefore, when the input voltage Vin is low, the output voltage Vout is inevitably low, and there is a problem that the AD conversion accuracy is lowered.

【0005】そこで、本発明は、AD変換精度を向上で
きる演算増幅器の利得制御回路を提供することを目的と
する。
Therefore, an object of the present invention is to provide a gain control circuit for an operational amplifier which can improve the AD conversion accuracy.

【0006】[0006]

【課題を解決するための手段】本発明は、前記問題点を
解決する為に成されたものであり、その特徴とするとこ
ろは、一方の入力端子に接続された入力抵抗、及び、該
一方の入力端子及び出力端子の間に直列接続された複数
の帰還抵抗を含む演算増幅器と、前記複数の帰還抵抗の
接続点及び前記演算増幅器の出力端子の間に接続された
複数のトランスミッションゲートと、前記演算増幅器の
出力電圧をアナログ値からデジタル値に変換するAD変
換器と、基準デジタル値がセットされる第1レジスタ
と、前記AD変換器のデジタル値が前記第1レジスタの
基準デジタル値より大きくなった状態を検出する比較器
と、前記比較器の検出結果に応じて、前記複数のトラン
スミッションゲートを選択的に導通又は遮断する為の制
御デジタル値がセットされる第2レジスタと、を備え、
前記AD変換器のデジタル値が前記第1レジスタの基準
デジタル値より大きくなる毎に、前記複数のトランスミ
ッションゲートを選択的に導通又は遮断し、前記演算増
幅器の利得を小さくして行く点である。
The present invention has been made to solve the above-mentioned problems, and is characterized in that an input resistance connected to one input terminal and the one An operational amplifier including a plurality of feedback resistors connected in series between the input terminal and the output terminal, and a plurality of transmission gates connected between the connection point of the plurality of feedback resistors and the output terminal of the operational amplifier, An AD converter for converting the output voltage of the operational amplifier from an analog value to a digital value, a first register in which a reference digital value is set, and a digital value in the AD converter is larger than the reference digital value in the first register. And a control digital value for selectively turning on or off the plurality of transmission gates according to the detection result of the comparator. Comprising a second register that is, a,
Each time the digital value of the AD converter becomes larger than the reference digital value of the first register, the plurality of transmission gates are selectively turned on or off to reduce the gain of the operational amplifier.

【0007】[0007]

【作用】本発明によれば、AD変換器のデジタル値が第
1レジスタの基準デジタル値より大きくなる毎に、比較
器の検出結果に従って第2レジスタの制御デジタル値を
変更し、複数のトランスミッションゲートの導通又は遮
断を制御し、演算増幅器の利得を小さくして行く様にし
ている。これにより、演算増幅器の入力電圧が低くて
も、出力電圧を高くでき、AD変換器の変換精度を向上
できる。
According to the present invention, each time the digital value of the AD converter becomes larger than the reference digital value of the first register, the control digital value of the second register is changed according to the detection result of the comparator, and the plurality of transmission gates are changed. Is controlled so as to reduce the gain of the operational amplifier. Thus, even if the input voltage of the operational amplifier is low, the output voltage can be increased and the conversion accuracy of the AD converter can be improved.

【0008】[0008]

【実施例】本発明の詳細を図面に従って具体的に説明す
る。図1は本発明の演算増幅器の利得制御回路を示して
いる。図1において、(7)は演算増幅器であり、−端
子及び接地の間に入力抵抗(8)が接続され、−端子及
び出力端子の間に帰還抵抗(9)(10)(11)が直
列接続されている。(12)(13)(14)はトラン
スミッションゲートであり、帰還抵抗(9)(10)
(11)の接続点及び演算増幅器(7)の出力端子の間
に接続されている。尚、入力抵抗(8)及び帰還抵抗
(9)(10)(11)の抵抗値は各々R、9R、10
R、20Rを使用している。即ち、演算増幅器(7)の
利得は、トランスミッションゲート(12)(13)
(14)が各々閉じている時に10倍、20倍、40倍
になる。(15)はAD変換器であり、演算増幅器
(7)の出力電圧VoutをAD変換するものであり、逐
次比較型でも一括比較型でも何れでも良い。(16)は
第1レジスタであり、入力電圧Vinが最大且つ利得が最
小の時の出力電圧Voutに対応する基準デジタル値がセ
ットされる。具体的には、入力電圧Vin=0.4V且つ
利得=10倍の時の出力電圧Vout=4Vに対応する基
準デジタル値がセットされる。例えば、20mVをAD
変換の最小単位とすると、第1レジスタ(16)はC8
H(Hはヘキサデシマル)の基準デジタル値がセットさ
れる。(17)は比較器であり、AD変換器(15)の
デジタル値がレジスタ(16)の基準デジタル値に達し
たことを検出し、検出信号を発生するものである。(1
8)は第2レジスタであり、3ビットの記憶領域A、
B、Cを有する。尚、初期状態の時、第2レジスタ(1
8)の記憶領域A、B、Cは、比較器(17)の検出信
号に従って、0、0、1になっている。即ち、トランス
ミッションゲート(14)が導通し、演算増幅器(7)
の利得は40倍になっている。尚、端子(19)(2
0)(21)(22)を境に、入力抵抗(8)及び帰還
抵抗(9)(10)(11)は、マイクロコンピュータ
に外部接続されている。
The details of the present invention will be described in detail with reference to the drawings. FIG. 1 shows a gain control circuit for an operational amplifier according to the present invention. In FIG. 1, (7) is an operational amplifier, an input resistor (8) is connected between the-terminal and the ground, and a feedback resistor (9) (10) (11) is connected in series between the-terminal and the output terminal. It is connected. (12), (13) and (14) are transmission gates and feedback resistors (9) and (10).
It is connected between the connection point of (11) and the output terminal of the operational amplifier (7). The resistance values of the input resistance (8) and the feedback resistances (9), (10) and (11) are R, 9R and 10 respectively.
R and 20R are used. That is, the gain of the operational amplifier (7) is the same as that of the transmission gates (12) (13).
When (14) is closed, it becomes 10 times, 20 times, and 40 times. Reference numeral (15) is an AD converter, which AD-converts the output voltage Vout of the operational amplifier (7) and may be either a successive approximation type or a batch comparison type. Reference numeral (16) is a first register, and a reference digital value corresponding to the output voltage Vout when the input voltage Vin is maximum and the gain is minimum is set. Specifically, the reference digital value corresponding to the output voltage Vout = 4V when the input voltage Vin = 0.4V and the gain = 10 times is set. For example, 20 mV AD
Assuming that the minimum unit of conversion is the first register (16),
A reference digital value of H (H is hexadecimal) is set. Reference numeral (17) is a comparator, which detects that the digital value of the AD converter (15) has reached the reference digital value of the register (16) and generates a detection signal. (1
8) is a second register, which is a 3-bit storage area A,
It has B and C. In the initial state, the second register (1
The storage areas A, B and C of 8) are 0, 0 and 1 according to the detection signal of the comparator (17). That is, the transmission gate (14) becomes conductive, and the operational amplifier (7)
Has gained 40 times. The terminals (19) (2
The input resistance (8) and the feedback resistances (9), (10) and (11) are externally connected to the microcomputer at the boundaries of 0 (21) and (22).

【0009】以下、図1の動作を図2の特性図を基に説
明する。尚、電源電圧Vddは5Vとする。先ず、初期状
態において、入力電圧Vinが0V〜0.1Vまで上昇す
ると、出力電圧Voutは0V〜4Vまで上昇する。従っ
て、出力電圧Voutの変化幅が従来に比べて大きくなる
為、精度の良いAD変換結果が得られる。そして、入力
電圧Vinが0.1Vに達した時、比較器(17)の検出
信号に従って、第2レジスタ(18)の記憶領域A、
B、Cは0、1、0に変化する。即ち、トランスミッシ
ョンゲート(13)が導通し、演算増幅器(7)の利得
は40倍から20倍に変化する。
The operation of FIG. 1 will be described below with reference to the characteristic diagram of FIG. The power supply voltage Vdd is 5V. First, in the initial state, when the input voltage Vin rises to 0V to 0.1V, the output voltage Vout rises to 0V to 4V. Therefore, the change width of the output voltage Vout becomes larger than that in the conventional case, and thus an accurate AD conversion result can be obtained. When the input voltage Vin reaches 0.1 V, the storage area A of the second register (18) is detected according to the detection signal of the comparator (17).
B and C change to 0, 1, 0. That is, the transmission gate (13) is turned on, and the gain of the operational amplifier (7) changes from 40 times to 20 times.

【0010】その後、入力電圧Vinが0.1V〜0.2
Vまで上昇すると、出力電圧Voutは2V〜4Vまで上
昇する。従って、出力電圧Voutの変化幅が従来に比べ
て大きくなる為、精度の良いAD変換結果が得られる。
そして、入力電圧Vinが0.2Vに達した時、比較器
(17)の検出信号に従って、第2レジスタ(18)の
記憶領域A、B、Cは1、0、0に変化する。即ち、ト
ランスミッションゲート(12)が導通し、演算増幅器
(7)の利得は20倍から10倍に変化する。
After that, the input voltage Vin is 0.1V to 0.2V.
When it rises to V, the output voltage Vout rises to 2V to 4V. Therefore, the change width of the output voltage Vout becomes larger than that in the conventional case, and thus an accurate AD conversion result can be obtained.
When the input voltage Vin reaches 0.2V, the storage areas A, B, C of the second register (18) change to 1, 0, 0 according to the detection signal of the comparator (17). That is, the transmission gate (12) becomes conductive, and the gain of the operational amplifier (7) changes from 20 times to 10 times.

【0011】その後、入力電圧Vinが0.2V〜0.4
Vまで上昇すると、出力電圧Voutは2V〜4Vまで上
昇する。この場合、従来と同様のAD変換精度が得られ
る。以上より、入力電圧Vinの変化に応じて、演算増幅
器(7)の利得を可変する様にしたので、従来に比べて
精度の良いAD変換結果が得られ、正確な演算処理を実
行できることになる。又、マイクロコンピュータに仕様
に応じて、入力抵抗(8)及び帰還抵抗(9)(10)
(11)の抵抗値を適宜選択し、演算増幅器(7)の利
得を自由に可変する事も可能である。
After that, the input voltage Vin is 0.2V to 0.4.
When it rises to V, the output voltage Vout rises to 2V to 4V. In this case, the AD conversion accuracy similar to the conventional one can be obtained. As described above, since the gain of the operational amplifier (7) is changed according to the change of the input voltage Vin, the AD conversion result with higher precision than the conventional one can be obtained, and the accurate arithmetic processing can be executed. . In addition, the input resistance (8) and the feedback resistance (9) (10) according to the specifications of the microcomputer.
It is also possible to freely change the gain of the operational amplifier (7) by appropriately selecting the resistance value of (11).

【0012】[0012]

【発明の効果】本発明によれば、入力電圧の変化に応じ
て、演算増幅器の利得を可変する様にしたので、従来に
比べて精度の良いAD変換結果が得られ、正確な演算処
理を実行できることになる。又、マイクロコンピュータ
に仕様に応じて、入力抵抗及び帰還抵抗の抵抗値を適宜
選択し、演算増幅器の利得も自由に可変できる等の利点
が得られる。
According to the present invention, since the gain of the operational amplifier is changed according to the change of the input voltage, more accurate AD conversion result than the conventional one can be obtained, and the accurate arithmetic processing can be performed. You can do it. Further, there are advantages that the resistance values of the input resistance and the feedback resistance are appropriately selected according to the specifications of the microcomputer, and the gain of the operational amplifier can be freely changed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の演算増幅器の利得制御回路を示す図で
ある。
FIG. 1 is a diagram showing a gain control circuit of an operational amplifier according to the present invention.

【図2】図1の特性を示す図である。FIG. 2 is a diagram showing the characteristics of FIG.

【図3】従来の演算増幅器を示す図である。FIG. 3 is a diagram showing a conventional operational amplifier.

【図4】図3の特性を示す図である。FIG. 4 is a diagram showing the characteristics of FIG.

【符号の説明】[Explanation of symbols]

(7) 演算増幅器 (8) 入力抵抗 (9)(10)(11) 帰還抵抗 (12)(13)(14) トランスミッションゲート (15) AD変換器 (16) 第1レジスタ (17) 比較器 (18) 第2レジスタ (7) Operational amplifier (8) Input resistance (9) (10) (11) Feedback resistance (12) (13) (14) Transmission gate (15) AD converter (16) First register (17) Comparator ( 18) Second register

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一方の入力端子に接続された入力抵抗、
及び、該一方の入力端子及び出力端子の間に直列接続さ
れた複数の帰還抵抗を含む演算増幅器と、 前記複数の帰還抵抗の接続点及び前記演算増幅器の出力
端子の間に接続された複数のトランスミッションゲート
と、 前記演算増幅器の出力電圧をアナログ値からデジタル値
に変換するAD変換器と、 基準デジタル値がセットされる第1レジスタと、 前記AD変換器のデジタル値が前記第1レジスタの基準
デジタル値より大きくなった状態を検出する比較器と、 前記比較器の検出結果に応じて、前記複数のトランスミ
ッションゲートを選択的に導通又は遮断する為の制御デ
ジタル値がセットされる第2レジスタと、を備え、 前記AD変換器のデジタル値が前記第1レジスタの基準
デジタル値より大きくなる毎に、前記複数のトランスミ
ッションゲートを選択的に導通又は遮断し、前記演算増
幅器の利得を小さくして行くことを特徴とする演算増幅
器の利得制御回路。
1. An input resistor connected to one input terminal,
And an operational amplifier including a plurality of feedback resistors connected in series between the one input terminal and the output terminal, and a plurality of operational amplifiers connected between a connection point of the plurality of feedback resistors and an output terminal of the operational amplifier. A transmission gate, an AD converter that converts the output voltage of the operational amplifier from an analog value to a digital value, a first register in which a reference digital value is set, and a digital value of the AD converter is a reference of the first register A comparator for detecting a state in which the digital value is larger than a digital value; and a second register in which a control digital value for selectively turning on or off the plurality of transmission gates is set according to the detection result of the comparator. , Each time the digital value of the AD converter becomes larger than the reference digital value of the first register, Gate selectively conduct or cut off, the gain control circuit of the operational amplifier, characterized in that to continue to reduce the gain of the operational amplifier.
【請求項2】 前記複数の帰還抵抗は、前記AD変換器
のデジタル値が前記第1レジスタの基準デジタル値より
大きくなる毎に、前記演算増幅器の利得を小さくできる
値であることを特徴とする請求項1記載の演算増幅器の
利得制御回路。
2. The plurality of feedback resistors are values capable of reducing the gain of the operational amplifier each time the digital value of the AD converter becomes larger than the reference digital value of the first register. A gain control circuit for an operational amplifier according to claim 1.
JP28357193A 1993-11-12 1993-11-12 Gain control circuit for operational amplifier Pending JPH07143003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28357193A JPH07143003A (en) 1993-11-12 1993-11-12 Gain control circuit for operational amplifier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28357193A JPH07143003A (en) 1993-11-12 1993-11-12 Gain control circuit for operational amplifier

Publications (1)

Publication Number Publication Date
JPH07143003A true JPH07143003A (en) 1995-06-02

Family

ID=17667254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28357193A Pending JPH07143003A (en) 1993-11-12 1993-11-12 Gain control circuit for operational amplifier

Country Status (1)

Country Link
JP (1) JPH07143003A (en)

Similar Documents

Publication Publication Date Title
US11041888B2 (en) Current detection circuit, semiconductor device and semiconductor system
KR920003447B1 (en) Schmittrigger circuit
US6621259B2 (en) Current sense amplifier and method
CN100434886C (en) Low Power Consumption and Small Circuit Area Temperature Sensor
US7576524B2 (en) Constant voltage generating apparatus with simple overcurrent/short-circuit protection circuit
JP7763758B2 (en) Amplification circuit that enables accurate measurement of minute electrical signals
US7382150B2 (en) Sensitivity switchable detection circuit and method
US20210021275A1 (en) Resolution control apparatus and resolution control method
WO1996021282B1 (en) D/a converter with constant gate voltage
JP3418506B2 (en) Output load detector
US6281831B1 (en) Analog to digital converter
US6727693B2 (en) Circuit configuration and sensor device
US5563541A (en) Load current detection circuit
JPH07254830A (en) Electronic volume circuit
US12085593B2 (en) Current measurement circuit with multiple operation modes
US6232804B1 (en) Sample hold circuit having a switch
US5777513A (en) Voltage amplifier having a large range of variations, and A/D converter comprising such an amplifier
US4864304A (en) Analog voltage signal comparator circuit
US6271669B1 (en) Sensor circuit that converts detected change value from analog to digital value
JP2560980B2 (en) 1-bit cell and analog / digital converter
JP2644774B2 (en) Amplifier circuit
JPH03145330A (en) Latching comparator circuit
JP3814222B2 (en) Analog-to-digital converter
JPS579114A (en) Limiter circuit
JP2965409B2 (en) Control voltage generation circuit