JP2016223947A - Phase margin gain margin measuring circuit - Google Patents

Phase margin gain margin measuring circuit Download PDF

Info

Publication number
JP2016223947A
JP2016223947A JP2015111573A JP2015111573A JP2016223947A JP 2016223947 A JP2016223947 A JP 2016223947A JP 2015111573 A JP2015111573 A JP 2015111573A JP 2015111573 A JP2015111573 A JP 2015111573A JP 2016223947 A JP2016223947 A JP 2016223947A
Authority
JP
Japan
Prior art keywords
margin
gain
phase
circuit
operational amplifier
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
JP2015111573A
Other languages
Japanese (ja)
Inventor
純 五月女
Jun Saotome
純 五月女
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2015111573A priority Critical patent/JP2016223947A/en
Publication of JP2016223947A publication Critical patent/JP2016223947A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To allow measurements of a phase margin and a gain margin of a measurement target circuit without cutting connection between an output terminal of an operational amplifier and a feedback circuit and inserting a measurement device between the output terminal and the feedback circuit, even if a measurement resistor is not inserted in a part of a closed loop.SOLUTION: The measurement device includes: a phase gain calculating part 22 calculating a phase and a gain of a measurement target circuit 1; a frequency control part 24 making the frequency of a signal VS output from a signal source 21 variable; and a margin specification part 25 specifying a phase margin and a gain margin of the measurement target circuit 1 based on phases and gains of the measurement target circuit 1 at various different frequencies.SELECTED DRAWING: Figure 1

Description

この発明は、測定対象回路であるクローズドループのオペアンプ回路の位相余裕及びゲイン余裕を測定する位相余裕ゲイン余裕測定回路に関するものである。   The present invention relates to a phase margin gain margin measuring circuit for measuring the phase margin and gain margin of a closed loop operational amplifier circuit which is a circuit to be measured.

一般的なクローズドループのオペアンプ回路は、非反転入力端子(+)に電圧Vinが印加され、出力端子から電圧Voutを出力するオペアンプと、一端がオペアンプの出力端子に接続され、他端がオペアンプの反転入力端子(−)に接続されるフィードバック回路(帰還回路)とから構成されている。
ここで、オペアンプのオープンループゲインをA、フィードバック回路の伝達関数をβとすると、オペアンプの非反転入力端子(+)に印加される電圧Vinと、オペアンプの出力端子から出力される電圧Voutとの関係は、下記の式(1)のように表される。

Figure 2016223947
Operational amplifier circuit of a general closed-loop, non-inverting input terminal (+) to the voltage V in is applied, an operational amplifier for outputting a voltage V out from the output terminal, one end connected to the output terminal of the operational amplifier, the other end And a feedback circuit (feedback circuit) connected to the inverting input terminal (−) of the operational amplifier.
Here, when the open loop gain of the operational amplifier is A 0 and the transfer function of the feedback circuit is β, the voltage V in applied to the non-inverting input terminal (+) of the operational amplifier and the voltage V output from the output terminal of the operational amplifier. The relationship with out is expressed as in the following formula (1).
Figure 2016223947

式(1)において、Aβはオペアンプ回路のループゲインであり、Aβ=−1であれば、Vout=∞になる。
out=∞になる状態が発振であり、発振になる条件を絶対式で表すと、下記の式(2)(3)のようになる。この発振になる条件はバルクハウゼンの発振条件と呼ばれる。
|Aβ|=1 (2)
位相=−180°±(360°×n) (3)
n=0,±1,±2,・・・
式(2)において、|Aβ|=1は、ゲインが0dBであることに相当する。
In Expression (1), A 0 β is a loop gain of the operational amplifier circuit. If A 0 β = −1, V out = ∞.
The state in which V out = ∞ is oscillation, and the conditions for oscillation are expressed by the following equations (2) and (3). This oscillation condition is called Barkhausen oscillation condition.
| A 0 β | = 1 (2)
Phase = −180 ° ± (360 ° × n) (3)
n = 0, ± 1, ± 2, ...
In equation (2), | A 0 β | = 1 corresponds to a gain of 0 dB.

オペアンプ回路の位相余裕は、ゲインが0dBであるときのオペアンプ回路の位相が、式(3)に示す発振条件を満足している位相に対して、どの程度の差があるかを示すものである。
また、オペアンプ回路のゲイン余裕は、位相が−180°±(360°×n)であるときのオペアンプ回路のゲインが、0dBに対して、どの程度のマイナスの値を有しているかを示すものである。
一般的に、位相余裕については45°以上、ゲイン余裕については10dB以上あることが望ましいとされている。
The phase margin of the operational amplifier circuit indicates how much the phase of the operational amplifier circuit when the gain is 0 dB is different from the phase satisfying the oscillation condition shown in Expression (3). .
Further, the gain margin of the operational amplifier circuit indicates how much negative value the gain of the operational amplifier circuit has when the phase is −180 ° ± (360 ° × n) with respect to 0 dB. It is.
Generally, it is desirable that the phase margin is 45 ° or more and the gain margin is 10 dB or more.

一般的には、オペアンプ回路の位相余裕及びゲイン余裕を測定する場合、オペアンプの出力端子とフィードバック回路との間の接続を切断して、オペアンプの出力端子とフィードバック回路との間に測定器を挿入する。
このとき、測定器の信号源が、フィードバック回路に対してP2の信号を出力すると、オペアンプの出力端子から出力されるP1の信号は、P2の信号が−Aβ倍されたものとなるため、測定器が、P1の信号とP2の信号を測定することで、オペアンプ回路のループゲインAβを算出し、ループゲインAβから位相余裕及びゲイン余裕を求めるようにする。
Generally, when measuring the phase margin and gain margin of an operational amplifier circuit, disconnect the connection between the operational amplifier output terminal and the feedback circuit, and insert a measuring instrument between the operational amplifier output terminal and the feedback circuit. To do.
At this time, if the signal source of the measuring device outputs the P2 signal to the feedback circuit, the P1 signal output from the output terminal of the operational amplifier is obtained by multiplying the P2 signal by −A 0 β. The measuring device measures the P1 signal and the P2 signal, thereby calculating the loop gain A 0 β of the operational amplifier circuit, and obtaining the phase margin and gain margin from the loop gain A 0 β.

なお、オペアンプ回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの出力端子とフィードバック回路との間の接続を切断して、オペアンプの出力端子とフィードバック回路との間に測定器を挿入する手間を省くために、以下の特許文献1には、測定対象回路のクローズドループの一部に測定用抵抗を事前に挿入し、その測定用抵抗の両端の電圧を測定することで、ループ特性を得る方法が開示されている。   When measuring the phase margin and gain margin of an operational amplifier circuit, disconnect the connection between the operational amplifier output terminal and the feedback circuit, and insert a measuring instrument between the operational amplifier output terminal and the feedback circuit. In order to eliminate the problem, in Patent Document 1 below, a measurement resistance is inserted in advance in a part of a closed loop of a circuit to be measured, and a loop characteristic is obtained by measuring a voltage at both ends of the measurement resistance. A method is disclosed.

特開昭62−182674号公報JP-A-62-218274

従来の位相余裕ゲイン余裕測定回路は以上のように構成されているので、測定対象回路が、クローズドループの一部に測定用抵抗が事前に挿入されているオペアンプ回路であれば、オペアンプ回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの出力端子とフィードバック回路との間の接続を切断して、オペアンプの出力端子とフィードバック回路との間に測定器を挿入するという手間を省くことができる。しかし、全ての測定対象回路が、クローズドループの一部に測定用抵抗が事前に挿入されているオペアンプ回路であるとは限らず、測定用抵抗が挿入されていないオペアンプ回路については、位相余裕やゲイン余裕を測定することができない。したがって、測定用抵抗が挿入されていないオペアンプ回路については、オペアンプの出力端子とフィードバック回路との間の接続を切断して、オペアンプの出力端子とフィードバック回路との間に測定器を挿入する必要があり、位相余裕及びゲイン余裕の測定に多くの手間と時間を要するという課題があった。
また、測定対象回路が、クローズドループの一部に測定用抵抗が事前に挿入されているオペアンプ回路である場合、位相余裕及びゲイン余裕を測定する際の手間が省けても、測定用抵抗が挿入されていることで、オペアンプ回路の設計上の特性と異なるものになっているという課題があった。
Since the conventional phase margin gain margin measurement circuit is configured as described above, if the measurement target circuit is an operational amplifier circuit in which a measurement resistor is inserted in advance in a part of a closed loop, the phase of the operational amplifier circuit When measuring the margin and gain margin, the connection between the output terminal of the operational amplifier and the feedback circuit can be disconnected, and the trouble of inserting a measuring instrument between the output terminal of the operational amplifier and the feedback circuit can be saved. . However, not all measurement target circuits are operational amplifier circuits in which a measurement resistor is inserted in advance in a part of a closed loop. The gain margin cannot be measured. Therefore, for an operational amplifier circuit in which no measurement resistor is inserted, it is necessary to disconnect the connection between the output terminal of the operational amplifier and the feedback circuit and insert a measuring instrument between the output terminal of the operational amplifier and the feedback circuit. In addition, there is a problem that much labor and time are required to measure the phase margin and the gain margin.
In addition, when the measurement target circuit is an operational amplifier circuit in which a measurement resistor is inserted in advance in a part of a closed loop, the measurement resistor can be inserted even if the time required for measuring the phase margin and gain margin is eliminated. As a result, there is a problem that the operational characteristics of the operational amplifier circuit are different.

この発明は上記のような課題を解決するためになされたもので、クローズドループの一部に測定用抵抗が挿入されていなくても、オペアンプの出力端子と帰還回路との間の接続を切断して、オペアンプの出力端子と帰還回路との間に測定器を挿入することなく、測定対象回路の位相余裕及びゲイン余裕を測定することができる位相余裕ゲイン余裕測定回路を得ることを目的とする。   The present invention has been made to solve the above-described problems, and disconnects the connection between the output terminal of the operational amplifier and the feedback circuit even when a measurement resistor is not inserted in a part of the closed loop. An object of the present invention is to obtain a phase margin gain margin measuring circuit capable of measuring the phase margin and gain margin of a circuit to be measured without inserting a measuring instrument between the output terminal of the operational amplifier and the feedback circuit.

この発明に係る位相余裕ゲイン余裕測定回路は、オペアンプの出力端子と反転入力端子との間に帰還回路が接続されている測定対象回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの非反転入力端子に接続される信号源と、測定対象回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの出力端子と、オペアンプの反転入力端子と、オペアンプの非反転入力端子とに接続され、オペアンプの出力端子から帰還回路に出力される信号、帰還回路からオペアンプの反転入力端子に出力される信号及び信号源からオペアンプの非反転入力端子に出力される信号を用いて、測定対象回路の位相及びゲインを算出する位相ゲイン算出部と、信号源から出力される信号の周波数を可変する周波数制御部とを設け、余裕特定部が、周波数制御部により信号の周波数が変えられる毎に、位相ゲイン算出部により算出された位相及びゲインを収集し、各々の周波数での前記測定対象回路の位相及びゲインから、測定対象回路の位相余裕及びゲイン余裕を特定するようにしたものである。   The phase margin gain margin measuring circuit according to the present invention is a non-inverted operational amplifier when measuring the phase margin and gain margin of a circuit to be measured in which a feedback circuit is connected between the output terminal and the inverting input terminal of the operational amplifier. When measuring the phase margin and gain margin of the signal source connected to the input terminal and the circuit to be measured, it is connected to the output terminal of the operational amplifier, the inverting input terminal of the operational amplifier, and the non-inverting input terminal of the operational amplifier. Using the signal output from the output terminal to the feedback circuit, the signal output from the feedback circuit to the inverting input terminal of the operational amplifier, and the signal output from the signal source to the non-inverting input terminal of the operational amplifier, A phase gain calculation unit for calculating the gain and a frequency control unit for changing the frequency of the signal output from the signal source are provided, and the margin specifying unit is configured to control the frequency. Each time the signal frequency is changed by the unit, the phase and gain calculated by the phase gain calculation unit are collected, and the phase margin and gain margin of the measurement target circuit are obtained from the phase and gain of the measurement target circuit at each frequency. Is specified.

この発明によれば、測定対象回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの非反転入力端子に接続される信号源と、測定対象回路の位相余裕及びゲイン余裕を測定する際に、オペアンプの出力端子と、オペアンプの反転入力端子と、オペアンプの非反転入力端子とに接続され、オペアンプの出力端子から帰還回路に出力される信号、帰還回路からオペアンプの反転入力端子に出力される信号及び信号源からオペアンプの非反転入力端子に出力される信号を用いて、測定対象回路の位相及びゲインを算出する位相ゲイン算出部と、信号源から出力される信号の周波数を可変する周波数制御部とを設け、余裕特定部が、周波数制御部により信号の周波数が変えられる毎に、位相ゲイン算出部により算出された位相及びゲインを収集し、各々の周波数での前記測定対象回路の位相及びゲインから、測定対象回路の位相余裕及びゲイン余裕を特定するように構成したので、クローズドループの一部に測定用抵抗が挿入されていなくても、オペアンプの出力端子と帰還回路との間の接続を切断して、オペアンプの出力端子と帰還回路との間に測定器を挿入することなく、測定対象回路の位相余裕及びゲイン余裕を測定することができる効果がある。   According to the present invention, when measuring the phase margin and gain margin of the measurement target circuit, when measuring the phase margin and gain margin of the signal source connected to the non-inverting input terminal of the operational amplifier and the measurement target circuit, Connected to the output terminal of the operational amplifier, the inverting input terminal of the operational amplifier, and the non-inverting input terminal of the operational amplifier, the signal output from the output terminal of the operational amplifier to the feedback circuit, and the signal output from the feedback circuit to the inverting input terminal of the operational amplifier And a phase gain calculation unit that calculates the phase and gain of the circuit to be measured using a signal output from the signal source to the non-inverting input terminal of the operational amplifier, and a frequency control unit that varies the frequency of the signal output from the signal source The margin specifying unit collects the phase and gain calculated by the phase gain calculation unit every time the frequency of the signal is changed by the frequency control unit. Since the phase margin and gain margin of the measurement target circuit are specified from the phase and gain of the measurement target circuit at each frequency, the measurement resistor is not inserted in a part of the closed loop. Disconnect the connection between the output terminal of the operational amplifier and the feedback circuit, and measure the phase margin and gain margin of the circuit under measurement without inserting a measuring instrument between the output terminal of the operational amplifier and the feedback circuit. There is an effect that can.

この発明の実施の形態1による位相余裕ゲイン余裕測定回路を示す構成図である。It is a block diagram which shows the phase margin gain margin measurement circuit by Embodiment 1 of this invention. この発明の実施の形態1による位相余裕ゲイン余裕測定回路の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the phase margin gain margin measurement circuit by Embodiment 1 of this invention. 各周波数でのループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)を示すボード線図である。It is a Bode diagram showing gain dB (A 0 β) and phase phase (A 0 β) of loop gain A 0 β at each frequency. 位相余裕ゲイン余裕測定回路により測定される位相余裕及びゲイン余裕をコンピュータでシミュレーションした場合のシミュレーション結果を示す説明図である。It is explanatory drawing which shows the simulation result at the time of simulating with a computer the phase margin and gain margin which are measured by the phase margin gain margin measurement circuit. 位相余裕及びゲイン余裕を増やす方策の一例を示す説明図である。It is explanatory drawing which shows an example of the policy which increases a phase margin and a gain margin. この発明の実施の形態2による位相余裕ゲイン余裕測定回路を示す構成図である。It is a block diagram which shows the phase margin gain margin measurement circuit by Embodiment 2 of this invention. 可変コンデンサ32の容量値を調整することによる位相補償処理前後の位相余裕及びゲイン余裕を示すボード線図である。It is a Bode diagram which shows the phase margin before and behind the phase compensation process by adjusting the capacitance value of the variable capacitor | condenser 32, and a gain margin. この発明の実施の形態3による位相余裕ゲイン余裕測定回路を示す構成図である。It is a block diagram which shows the phase margin gain margin measurement circuit by Embodiment 3 of this invention. この発明の実施の形態4による位相余裕ゲイン余裕測定回路を示す構成図である。It is a block diagram which shows the phase margin gain margin measurement circuit by Embodiment 4 of this invention. この発明の実施の形態5による位相余裕ゲイン余裕測定回路を示す構成図である。It is a block diagram which shows the phase margin gain margin measurement circuit by Embodiment 5 of this invention. この発明の実施の形態5による位相余裕ゲイン余裕測定回路の可変素子回路61を示す構成図である。It is a block diagram which shows the variable element circuit 61 of the phase margin gain margin measurement circuit by Embodiment 5 of this invention. オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ76を接続する場合のスイッチの開閉状態を示す説明図である。It is explanatory drawing which shows the opening-and-closing state of the switch in the case of connecting the variable capacitor 76 between the output terminal of the operational amplifier 12, and an inverting input terminal (-). オペアンプ12の出力端子とグランドとの間に、可変抵抗73と可変コンデンサ76からなる直列回路を接続する場合のスイッチの開閉状態を示す説明図である。It is explanatory drawing which shows the opening-and-closing state of the switch in the case of connecting the series circuit which consists of the variable resistor 73 and the variable capacitor 76 between the output terminal of operational amplifier 12, and a ground. オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に、可変抵抗73と可変コンデンサ76からなる直列回路を接続する場合のスイッチの開閉状態を示す説明図である。FIG. 6 is an explanatory diagram showing an open / close state of a switch when a series circuit composed of a variable resistor 73 and a variable capacitor 76 is connected between a non-inverting input terminal (+) and an inverting input terminal (−) of the operational amplifier 12.

以下、この発明をより詳細に説明するために、この発明を実施するための形態について、添付の図面にしたがって説明する。   Hereinafter, in order to describe the present invention in more detail, modes for carrying out the present invention will be described with reference to the accompanying drawings.

実施の形態1.
図1はこの発明の実施の形態1による位相余裕ゲイン余裕測定回路を示す構成図である。
図1において、測定対象回路1は位相余裕ゲイン余裕測定回路2により位相余裕及びゲイン余裕が測定される回路であり、クローズドループの一部に測定用抵抗が挿入されていない。
入力回路11はオペアンプ12の非反転入力端子(+)に対して信号を与える回路である。
オペアンプ12は非反転入力端子(+)と反転入力端子(−)と出力端子を有する演算増幅器である。
フィードバック回路13はオペアンプ12の出力端子と反転入力端子(−)との間に接続されている帰還回路である。
Embodiment 1 FIG.
1 is a block diagram showing a phase margin gain margin measuring circuit according to Embodiment 1 of the present invention.
In FIG. 1, a measurement target circuit 1 is a circuit in which a phase margin and a gain margin are measured by a phase margin gain margin measurement circuit 2, and no measurement resistor is inserted in a part of the closed loop.
The input circuit 11 is a circuit that gives a signal to the non-inverting input terminal (+) of the operational amplifier 12.
The operational amplifier 12 is an operational amplifier having a non-inverting input terminal (+), an inverting input terminal (−), and an output terminal.
The feedback circuit 13 is a feedback circuit connected between the output terminal of the operational amplifier 12 and the inverting input terminal (−).

位相余裕ゲイン余裕測定回路2の信号源21は測定対象回路1の位相余裕及びゲイン余裕を測定する際に、オペアンプ12の非反転入力端子(+)に接続され、例えば、正弦波の信号VSを出力する。このとき、入力回路11は、オペアンプ12の非反転入力端子(+)から外される。
位相ゲイン算出部22は測定対象回路1の位相余裕及びゲイン余裕を測定する際に、オペアンプ12の出力端子と、オペアンプ12の反転入力端子(−)と、オペアンプ12の非反転入力端子(+)とに接続される。
位相ゲイン算出部22はオペアンプ12の出力端子からフィードバック回路13に出力される信号P1、フィードバック回路13からオペアンプ12の反転入力端子(−)に出力される信号P2及び信号源21からオペアンプ12の非反転入力端子(+)に出力される信号VSを測定する測定器22aと、その測定器22aにより測定された信号P1,P2,VSを用いて、測定対象回路1の位相及びゲインを算出する演算器22bとを備えている。
The signal source 21 of the phase margin gain margin measuring circuit 2 is connected to the non-inverting input terminal (+) of the operational amplifier 12 when measuring the phase margin and gain margin of the circuit 1 to be measured. Output. At this time, the input circuit 11 is removed from the non-inverting input terminal (+) of the operational amplifier 12.
When the phase gain calculation unit 22 measures the phase margin and gain margin of the measurement target circuit 1, the output terminal of the operational amplifier 12, the inverting input terminal (−) of the operational amplifier 12, and the non-inverting input terminal (+) of the operational amplifier 12. And connected to.
The phase gain calculation unit 22 outputs the signal P1 output from the output terminal of the operational amplifier 12 to the feedback circuit 13, the signal P2 output from the feedback circuit 13 to the inverting input terminal (−) of the operational amplifier 12, and the non-operation of the operational amplifier 12 from the signal source 21. An operation for calculating the phase and gain of the measurement target circuit 1 using the measuring device 22a for measuring the signal VS output to the inverting input terminal (+) and the signals P1, P2, and VS measured by the measuring device 22a. And a container 22b.

位相ゲイン記憶部23は例えばRAMやハードディスクなどの記憶装置から構成されており、位相ゲイン算出部22により算出された測定対象回路1の位相及びゲインを保存する。
周波数制御部24は信号源21から出力される信号VSの周波数を可変する制御回路である。
余裕特定部25は例えばCPUを実装している半導体集積回路あるいはワンチップマイコンなどから構成されており、位相ゲイン記憶部23から周波数制御部24により可変された各々の周波数での測定対象回路1の位相及びゲインを読み出し、各々の周波数での測定対象回路1の位相及びゲインから、測定対象回路1の位相余裕及びゲイン余裕を特定する処理を実施する。
図2はこの発明の実施の形態1による位相余裕ゲイン余裕測定回路の処理内容を示すフローチャートである。
The phase gain storage unit 23 includes a storage device such as a RAM or a hard disk, and stores the phase and gain of the measurement target circuit 1 calculated by the phase gain calculation unit 22.
The frequency control unit 24 is a control circuit that varies the frequency of the signal VS output from the signal source 21.
The margin specifying unit 25 is composed of, for example, a semiconductor integrated circuit on which a CPU is mounted or a one-chip microcomputer, and the measurement target circuit 1 at each frequency varied from the phase gain storage unit 23 by the frequency control unit 24. The phase and gain are read out, and processing for specifying the phase margin and gain margin of the measurement target circuit 1 from the phase and gain of the measurement target circuit 1 at each frequency is performed.
FIG. 2 is a flowchart showing the processing contents of the phase margin gain margin measuring circuit according to the first embodiment of the present invention.

次に動作について説明する。
測定対象回路1の位相余裕及びゲイン余裕を測定する際に、位相余裕ゲイン余裕測定回路2の信号源21の出力端子がオペアンプ12の非反転入力端子(+)に接続される。
また、位相ゲイン算出部22の測定器22aが、例えば、プローブなどを用いて、オペアンプ12の出力端子とフィードバック回路13を結ぶ信号線に接続されるとともに、フィードバック回路13とオペアンプ12の反転入力端子(−)を結ぶ信号線に接続される。
なお、位相ゲイン算出部22の測定器22aは、信号源21の出力端子と常に接続されているため、信号源21の出力端子がオペアンプ12の非反転入力端子(+)に接続されることで、位相ゲイン算出部22の測定器22aも、オペアンプ12の非反転入力端子(+)と接続される。
Next, the operation will be described.
When measuring the phase margin and gain margin of the measurement target circuit 1, the output terminal of the signal source 21 of the phase margin gain margin measurement circuit 2 is connected to the non-inverting input terminal (+) of the operational amplifier 12.
In addition, the measuring instrument 22a of the phase gain calculating unit 22 is connected to a signal line connecting the output terminal of the operational amplifier 12 and the feedback circuit 13 using, for example, a probe, and the inverting input terminal of the feedback circuit 13 and the operational amplifier 12 Connected to signal line connecting (-).
Since the measuring instrument 22a of the phase gain calculation unit 22 is always connected to the output terminal of the signal source 21, the output terminal of the signal source 21 is connected to the non-inverting input terminal (+) of the operational amplifier 12. The measuring device 22a of the phase gain calculation unit 22 is also connected to the non-inverting input terminal (+) of the operational amplifier 12.

この実施の形態1では、説明の便宜上、信号源21から周波数がf,f,・・・,fの信号VSが出力されたときのオペアンプ12のオープンループゲインA及びフィードバック回路13の伝達関数βを算出するものとする。
以下、信号源21から出力される信号VSの周波数をfで表記する。nは信号VSの周波数を示す変数であり、n=1,2,・・・,Nである。
ただし、位相余裕及びゲイン余裕の測定を開始する初期段階では、n=1に設定され、順次、nの値がインクリメントされるものとする。
In the first embodiment, for convenience of explanation, the signal source 21 f 1 is the frequency of, f 2, · · ·, the open loop gain of the operational amplifier 12 when the signal VS of f N is output A 0 and feedback circuit 13 The transfer function β is calculated.
Hereinafter referred to the frequency of the signal VS output from the signal source 21 at f n. n is a variable indicating the frequency of the signal VS, and n = 1, 2,.
However, in the initial stage of starting the measurement of the phase margin and the gain margin, n = 1 is set, and the value of n is sequentially incremented.

まず、位相余裕ゲイン余裕測定回路2の周波数制御部24は、オペアンプ12の非反転入力端子(+)及び位相ゲイン算出部22に出力する信号VSの周波数をfに初期設定する(図2のステップST1)。
信号源21は、周波数制御部24が信号VSの周波数をfに初期設定すると、周波数fの信号VSをオペアンプ12の非反転入力端子(+)及び位相ゲイン算出部22に出力する(ステップST2)。
信号源21からオペアンプ12の非反転入力端子(+)に出力される信号がVSであるとき、オペアンプ12の出力端子からフィードバック回路13に出力される信号がP1、フィードバック回路13からオペアンプ12の反転入力端子(−)に出力される信号がP2であるとすると、位相ゲイン算出部22の測定器22aが、信号P1,P2,VSを測定する(ステップST3)。
First, the frequency control unit 24 of the phase margin gain margin measurement circuit 2 initially sets the frequency of the signal VS output to the non-inverting input terminal (+) of the operational amplifier 12 and the phase gain calculation unit 22 to f 1 (FIG. 2). Step ST1).
Signal source 21, the frequency control unit 24 initializes the frequency of the signal VS to f 1, and outputs the signal VS of the frequency f 1 to the non-inverting input terminal (+) and phase gain calculating unit 22 of the operational amplifier 12 (step ST2).
When the signal output from the signal source 21 to the non-inverting input terminal (+) of the operational amplifier 12 is VS, the signal output from the output terminal of the operational amplifier 12 to the feedback circuit 13 is P1, and the feedback circuit 13 inverts the operational amplifier 12. Assuming that the signal output to the input terminal (−) is P2, the measuring device 22a of the phase gain calculation unit 22 measures the signals P1, P2, and VS (step ST3).

位相余裕ゲイン余裕測定回路2の演算器22bは、測定器22aが信号P1,P2,VSを測定すると、下記の式(4)に示すように、その信号P1,P2,VSを用いて、オペアンプ12のオープンループゲインAを算出する(ステップST4)。
また、位相余裕ゲイン余裕測定回路2の演算器22bは、下記の式(5)に示すように、その信号P1,P2を用いて、フィードバック回路13の伝達関数βを算出する(ステップST4)。

Figure 2016223947

Figure 2016223947
When the measuring device 22a measures the signals P1, P2, and VS, the arithmetic unit 22b of the phase margin gain margin measuring circuit 2 uses the signals P1, P2, and VS as shown in the following equation (4) to obtain an operational amplifier. calculating the open loop gain a 0 of 12 (step ST4).
Further, the calculator 22b of the phase margin gain margin measuring circuit 2 calculates the transfer function β of the feedback circuit 13 using the signals P1 and P2 as shown in the following equation (5) (step ST4).
Figure 2016223947

Figure 2016223947

ここで、オープンループゲインAのゲインdB(A)及び位相phase(A)は、下記の式(6)(7)のように表される。
dB(A)=dB(P1)−dB(P2−VS) (6)
phase(A)=phase(P1)−phase(P2−VS) (7)
また、伝達関数βのゲインdB(β)及び位相phase(β)は、下記の式(8)(9)のように表される。
dB(β)=dB(P2)−dB(P1) (8)
phase(β)=phase(P2)−phase(P1) (9)
測定対象回路1の全体のループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)は、下記の式(10)(11)のように表される。
dB(Aβ)=dB(A)+dB(β) (10)
phase(Aβ)=phase(A)+phase(β) (11)
Here, the gain dB (A 0 ) and the phase phase (A 0 ) of the open loop gain A 0 are expressed by the following equations (6) and (7).
dB (A 0 ) = dB (P1) −dB (P2−VS) (6)
phase (A 0 ) = phase (P1) −phase (P2-VS) (7)
Further, the gain dB (β) and the phase phase (β) of the transfer function β are expressed by the following equations (8) and (9).
dB (β) = dB (P2) −dB (P1) (8)
phase (β) = phase (P2) −phase (P1) (9)
The gain dB (A 0 β) and the phase phase (A 0 β) of the entire loop gain A 0 β of the measurement target circuit 1 are expressed by the following equations (10) and (11).
dB (A 0 β) = dB (A 0 ) + dB (β) (10)
phase (A 0 β) = phase (A 0 ) + phase (β) (11)

位相余裕ゲイン余裕測定回路2の演算器22bにより算出されたオペアンプ12のオープンループゲインA及びフィードバック回路13の伝達関数βは、周波数制御部24により初期設定された周波数fと組みにして、位相ゲイン記憶部23に記憶される。
周波数制御部24は、nの値をインクリメントし(ステップST5)、nの値がNを超えていなければ(ステップST6:NOの場合)、インクリメント後のnの値にしたがって、オペアンプ12の非反転入力端子(+)及び位相ゲイン算出部22に出力する信号VSの周波数をfに変更する(ステップST7)。
The open loop gain A 0 of the operational amplifier 12 and the transfer function β of the feedback circuit 13 calculated by the calculator 22 b of the phase margin gain margin measuring circuit 2 are combined with the frequency f 1 initially set by the frequency control unit 24, It is stored in the phase gain storage unit 23.
The frequency controller 24 increments the value of n (step ST5). If the value of n does not exceed N (step ST6: NO), the non-inversion of the operational amplifier 12 is performed according to the incremented value of n. input terminal (+) and the frequency of the signal VS to be output to the phase gain calculating unit 22 is changed to f n (step ST7).

信号源21は、周波数制御部24が信号VSの周波数をfに変更すると、周波数fの信号VSをオペアンプ12の非反転入力端子(+)及び位相ゲイン算出部22に出力する(ステップST2)。
位相ゲイン算出部22の測定器22aは、信号源21が周波数fの信号VSを出力すると、信号P1,P2,VSを測定する(ステップST3)。
位相余裕ゲイン余裕測定回路2の演算器22bは、測定器22aが信号P1,P2,VSを測定すると、上記の式(4)に示すように、その信号P1,P2,VSを用いて、オペアンプ12のオープンループゲインAを算出する(ステップST4)。
また、位相余裕ゲイン余裕測定回路2の演算器22bは、上記の式(5)に示すように、その信号P1,P2を用いて、フィードバック回路13の伝達関数βを算出する(ステップST4)。
Signal source 21, the frequency controller 24 changes the frequency of the signal VS to f n, and outputs the signal VS of the frequency f n to the non-inverting input terminal (+) and phase gain calculating unit 22 of the operational amplifier 12 (step ST2 ).
Instrument 22a of the phase gain calculating unit 22, the signal source 21 and outputs the signal VS of the frequency f n, measuring the signal P1, P2, VS (step ST3).
When the measuring device 22a measures the signals P1, P2, and VS, the arithmetic unit 22b of the phase margin gain margin measuring circuit 2 uses the signals P1, P2, and VS as shown in the above equation (4) to obtain an operational amplifier. calculating the open loop gain a 0 of 12 (step ST4).
Further, the calculator 22b of the phase margin gain margin measurement circuit 2 calculates the transfer function β of the feedback circuit 13 using the signals P1 and P2 as shown in the above equation (5) (step ST4).

位相余裕ゲイン余裕測定回路2の演算器22bにより算出されたオペアンプ12のオープンループゲインA及びフィードバック回路13の伝達関数βは、周波数制御部24により変更された周波数fと組みにして、位相ゲイン記憶部23に記憶される。
周波数制御部24は、nの値をインクリメントし(ステップST5)、nの値がNを超えていなければ(ステップST6:NOの場合)、インクリメント後のnの値にしたがって、オペアンプ12の非反転入力端子(+)及び位相ゲイン算出部22に出力する信号VSの周波数fを変更する(ステップST7)。
以下、nの値がNを超えるまで、ステップST2〜ST7の処理が繰り返し実施され、nの値がNを超えると(ステップST6:YESの場合)、ステップST8の処理に移行する。
The open loop gain A 0 of the operational amplifier 12 and the transfer function β of the feedback circuit 13 calculated by the arithmetic unit 22 b of the phase margin gain margin measuring circuit 2 are combined with the frequency f n changed by the frequency control unit 24 to obtain the phase Stored in the gain storage unit 23.
The frequency controller 24 increments the value of n (step ST5). If the value of n does not exceed N (step ST6: NO), the non-inversion of the operational amplifier 12 is performed according to the incremented value of n. The frequency f n of the signal VS output to the input terminal (+) and the phase gain calculation unit 22 is changed (step ST7).
Thereafter, the processes of steps ST2 to ST7 are repeatedly performed until the value of n exceeds N, and when the value of n exceeds N (step ST6: YES), the process proceeds to step ST8.

余裕特定部25は、位相ゲイン記憶部23に周波数f,f,・・・,fと組になって記憶されているオペアンプ12のオープンループゲインA及びフィードバック回路13の伝達関数βの読み出しを行う(ステップST8)。
余裕特定部25は、周波数f,f,・・・,fでのオープンループゲインA及び伝達関数βを読み出すと、周波数f,f,・・・,fでのオープンループゲインA及び伝達関数βを上記の式(10)(11)に代入することで、周波数f,f,・・・,fでのループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)を算出する(ステップST9)。
Margin specifying unit 25, the frequency f 1 to the phase gain storage section 23, f 2, · · ·, the transfer function of the open loop gain A 0 and feedback circuit 13 of operational amplifier 12 stored it becomes f N and set β Is read (step ST8).
Margin specifying unit 25, the frequency f 1, f 2, · · ·, reading the β open loop gain A 0 and the transfer function at f N, the frequency f 1, f 2, · · ·, open at f N the loop gain a 0 and transfer functions beta by substituting the above equation (10) (11), the frequency f 1, f 2, · · ·, the gain of the loop gain a 0 beta at f N dB (a 0 β) and phase phase (A 0 β) are calculated (step ST9).

図3は各周波数でのループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)を示すボード線図である。ただし、図3では、説明の便宜上、ゲインdB(Aβ)及び位相phase(Aβ)をデフォルメして描画している。
測定対象回路1の位相余裕は、図3に示すように、ゲインdB(Aβ)が0dBであるときの位相phase(Aβ)と180°の差で表される。
また、測定対象回路1のゲイン余裕は、図3に示すように、位相phase(Aβ)が180°であるときのゲインdB(Aβ)と0dBの差で表される。
そこで、余裕特定部25は、周波数f,f,・・・,fでのループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)を算出すると、ゲインdB(Aβ)が0dBであるときの位相phase(Aβ)と180°の差を求めることで、測定対象回路1の位相余裕を算出する(ステップST10)。
また、余裕特定部25は、位相phase(Aβ)が180°であるときのゲインdB(Aβ)と0dBの差を求めることで、測定対象回路1のゲイン余裕を算出する(ステップST10)。
FIG. 3 is a Bode diagram showing the gain dB (A 0 β) and phase phase (A 0 β) of the loop gain A 0 β at each frequency. However, in FIG. 3, the gain dB (A 0 β) and the phase phase (A 0 β) are deformed and drawn for convenience of explanation.
As shown in FIG. 3, the phase margin of the measurement target circuit 1 is expressed by a difference of 180 ° from the phase phase (A 0 β) when the gain dB (A 0 β) is 0 dB.
Further, as shown in FIG. 3, the gain margin of the circuit 1 to be measured is represented by the difference between the gain dB (A 0 β) and 0 dB when the phase phase (A 0 β) is 180 °.
Therefore, a margin specifying unit 25, the frequency f 1, f 2, · · ·, calculating the gain of the loop gain A 0 beta at f N dB (A 0 β) and the phase phase (A 0 β), Gain dB The phase margin of the measurement target circuit 1 is calculated by calculating the difference between the phase phase (A 0 β) when (A 0 β) is 0 dB and 180 ° (step ST10).
Further, the margin specifying unit 25 calculates the gain margin of the circuit 1 to be measured by obtaining the difference between the gain dB (A 0 β) and 0 dB when the phase phase (A 0 β) is 180 ° (step S1). ST10).

図4は位相余裕ゲイン余裕測定回路により測定される位相余裕及びゲイン余裕をコンピュータでシミュレーションした場合のシミュレーション結果を示す説明図である。
図4(a)はオペアンプ12の出力端子とフィードバック回路13との間の接続を切断して、オペアンプ12の出力端子とフィードバック回路13との間に測定器を挿入することで測定された場合を示し、図4(b)は実施の形態1の位相余裕ゲイン余裕測定回路2により測定された場合を示している。
このシミュレーション結果では、図4(a)(b)のどちらでも、位相余裕及びゲイン余裕がほぼ同様に測定されることを示している。
即ち、図4(a)(b)のどちらでも、位相余裕は18°である。また、図4(a)のゲイン余裕は27dB、図4(b)のゲイン余裕は26dBであり、1dBの差があるだけである。
FIG. 4 is an explanatory diagram showing simulation results when the phase margin and gain margin measured by the phase margin gain margin measurement circuit are simulated by a computer.
FIG. 4A shows a case where measurement is performed by cutting the connection between the output terminal of the operational amplifier 12 and the feedback circuit 13 and inserting a measuring instrument between the output terminal of the operational amplifier 12 and the feedback circuit 13. FIG. 4B shows a case where measurement is performed by the phase margin gain margin measuring circuit 2 of the first embodiment.
This simulation result shows that the phase margin and the gain margin are measured in substantially the same manner in both FIGS. 4 (a) and 4 (b).
That is, in both FIGS. 4A and 4B, the phase margin is 18 °. Further, the gain margin of FIG. 4A is 27 dB, and the gain margin of FIG. 4B is 26 dB, which is only 1 dB.

以上で明らかなように、この実施の形態1によれば、測定対象回路1の位相余裕及びゲイン余裕を測定する際に、オペアンプ12の非反転入力端子(+)に接続される信号源21と、測定対象回路1の位相余裕及びゲイン余裕を測定する際に、オペアンプ12の出力端子と、オペアンプ12の反転入力端子(−)と、オペアンプ12の非反転入力端子(+)とに接続され、オペアンプ12の出力端子からフィードバック回路13に出力される信号P1、フィードバック回路13からオペアンプ12の反転入力端子(−)に出力される信号P2及び信号源21からオペアンプ12の非反転入力端子(+)に出力される信号VSを用いて、測定対象回路1の位相及びゲインを算出する位相ゲイン算出部22と、信号源21から出力される信号VSの周波数fを可変する周波数制御部24とを設け、余裕特定部25が、周波数制御部24により信号の周波数fが変えられる毎に、位相ゲイン算出部22により算出された位相及びゲインを収集し、各々の周波数での測定対象回路1の位相及びゲインから、測定対象回路1の位相余裕及びゲイン余裕を特定するように構成したので、クローズドループの一部に測定用抵抗が挿入されていなくても、オペアンプ12の出力端子とフィードバック回路13との間の接続を切断して、オペアンプ12の出力端子とフィードバック回路13との間に測定器を挿入することなく、測定対象回路1の位相余裕及びゲイン余裕を測定することができる効果を奏する。 As apparent from the above, according to the first embodiment, when measuring the phase margin and the gain margin of the circuit 1 to be measured, the signal source 21 connected to the non-inverting input terminal (+) of the operational amplifier 12 When measuring the phase margin and gain margin of the circuit 1 to be measured, it is connected to the output terminal of the operational amplifier 12, the inverting input terminal (−) of the operational amplifier 12, and the non-inverting input terminal (+) of the operational amplifier 12. The signal P1 output from the output terminal of the operational amplifier 12 to the feedback circuit 13, the signal P2 output from the feedback circuit 13 to the inverting input terminal (−) of the operational amplifier 12, and the non-inverting input terminal (+) of the operational amplifier 12 from the signal source 21. A phase gain calculation unit 22 that calculates the phase and gain of the circuit 1 to be measured using the signal VS output to the signal VS, and the signal VS output from the signal source 21 And a frequency controller 24 for varying the frequency f n provided, allowance specifying unit 25, each time the frequency f n of the signal is varied by the frequency control unit 24, collects phase and gain calculated by the phase gain calculation section 22 In addition, since the phase margin and gain margin of the measurement target circuit 1 are specified from the phase and gain of the measurement target circuit 1 at each frequency, the measurement resistor is not inserted in a part of the closed loop. However, the connection between the output terminal of the operational amplifier 12 and the feedback circuit 13 is disconnected, and the phase margin of the measurement target circuit 1 is not inserted between the output terminal of the operational amplifier 12 and the feedback circuit 13. In addition, there is an effect that the gain margin can be measured.

実施の形態2.
上記実施の形態1では、余裕特定部25が、周波数f,f,・・・,fでのループゲインAβのゲインdB(Aβ)及び位相phase(Aβ)から、測定対象回路1の位相余裕及びゲイン余裕を算出するものを示したが、測定対象回路1の位相余裕及びゲイン余裕が足りない場合には、測定対象回路1の位相余裕及びゲイン余裕を増やすようにしてもよい。
Embodiment 2. FIG.
In the first embodiment, a margin specifying unit 25, the frequency f 1, f 2, · · ·, the loop gain at f N A 0 gain β dB (A 0 β) and the phase phase (A 0 β) Although the calculation of the phase margin and gain margin of the measurement target circuit 1 is shown, if the phase margin and gain margin of the measurement target circuit 1 are insufficient, the phase margin and gain margin of the measurement target circuit 1 are increased. It may be.

一般的に、位相余裕については45°以上、ゲイン余裕については10dB以上あることが望ましいとされており、位相余裕及びゲイン余裕を増やす方策として、例えば、位相補償用コンデンサを追加する方法、スナバ回路を追加する方法、入力端子間の位相補償を行う方法などが考えられる。
図5は位相余裕及びゲイン余裕を増やす方策の一例を示す説明図である。
図5(a)は位相補償用コンデンサを追加する方法を示し、図5(b)はスナバ回路を追加する方法を示し、図5(c)は入力端子間の位相補償を行う方法を示している。
In general, it is desirable that the phase margin is 45 ° or more and the gain margin is 10 dB or more. For example, as a method for increasing the phase margin and the gain margin, for example, a method of adding a phase compensation capacitor, a snubber circuit A method of adding a signal and a method of performing phase compensation between input terminals are conceivable.
FIG. 5 is an explanatory diagram showing an example of a measure for increasing the phase margin and the gain margin.
5A shows a method of adding a phase compensation capacitor, FIG. 5B shows a method of adding a snubber circuit, and FIG. 5C shows a method of performing phase compensation between input terminals. Yes.

図6はこの発明の実施の形態2による位相余裕ゲイン余裕測定回路を示す構成図であり、図6において、図1と同一符号は同一または相当部分を示すので説明を省略する。
スイッチ31は一端がオペアンプ12の出力端子に接続されている。
可変コンデンサ32は容量値の可変が可能なコンデンサであり、一端がスイッチ31の他端に接続されて、他端がオペアンプ12の反転入力端子(−)に接続されている。
コンデンサ制御部33はスイッチ31の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変コンデンサ32の容量値を調整する回路である。
6 is a block diagram showing a phase margin gain margin measuring circuit according to Embodiment 2 of the present invention. In FIG. 6, the same reference numerals as those in FIG.
One end of the switch 31 is connected to the output terminal of the operational amplifier 12.
The variable capacitor 32 is a capacitor whose capacitance value can be varied. One end is connected to the other end of the switch 31 and the other end is connected to the inverting input terminal (−) of the operational amplifier 12.
The capacitor control unit 33 is a circuit that controls the opening and closing of the switch 31 and adjusts the capacitance value of the variable capacitor 32 according to the phase margin and the gain margin of the measurement target circuit 1 specified by the margin specifying unit 25.

次に動作について説明する。
ただし、スイッチ31、可変コンデンサ32及びコンデンサ制御部33を追加している点以外は、上記実施の形態1と同様であるため、ここでは、スイッチ31、可変コンデンサ32及びコンデンサ制御部33について説明する。
最初に、測定対象回路1の位相余裕及びゲイン余裕を測定する際には、コンデンサ制御部33がスイッチ31を開状態に制御することで、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32が接続されていない状態にする。
この状態で、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕が足りない場合、例えば、位相余裕が45°未満、あるいは、ゲイン余裕が10dB未満であるような場合、コンデンサ制御部33が、スイッチ31を閉状態に制御して、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32が接続されている状態にしてから、その位相余裕やゲイン余裕が少ない程、可変コンデンサ32の容量値が増えるように可変コンデンサ32を制御する。
Next, the operation will be described.
However, the switch 31, the variable capacitor 32, and the capacitor control unit 33 are the same as those in the first embodiment except that the switch 31, the variable capacitor 32, and the capacitor control unit 33 are added. .
First, when measuring the phase margin and gain margin of the circuit 1 to be measured, the capacitor control unit 33 controls the switch 31 to be in an open state, so that the output terminal of the operational amplifier 12 and the inverting input terminal (−) are connected. The variable capacitor 32 is not connected between them.
In this state, when the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25 are insufficient, for example, when the phase margin is less than 45 ° or the gain margin is less than 10 dB, the capacitor The control unit 33 controls the switch 31 to be closed so that the variable capacitor 32 is connected between the output terminal and the inverting input terminal (−) of the operational amplifier 12, and then the phase margin and gain margin are set. The variable capacitor 32 is controlled so that the capacitance value of the variable capacitor 32 increases as the value decreases.

可変コンデンサ32が、オペアンプ12の出力端子と反転入力端子(−)との間に接続されている状態は、図5(a)に示すように、位相補償用コンデンサが追加されているものに相当し、可変コンデンサ32の容量値を増やすことで、高域で位相を進ませると、位相余裕を増やすことができる。
コンデンサ制御部33が可変コンデンサ32の容量値を調整したのち、上記実施の形態1と同様に、測定対象回路1の位相余裕及びゲイン余裕を測定する。
測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になるまで、可変コンデンサ32の容量値の調整と、位相余裕及びゲイン余裕の測定とを繰り返し実施する。
これにより、測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になる可変コンデンサ32の容量値が分かれば、適宜、その容量値を有するコンデンサをフィードバック回路13と並列に接続することが可能になり、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることができる。
The state in which the variable capacitor 32 is connected between the output terminal and the inverting input terminal (−) of the operational amplifier 12 corresponds to a state in which a phase compensation capacitor is added as shown in FIG. If the phase is advanced at a high frequency by increasing the capacitance value of the variable capacitor 32, the phase margin can be increased.
After the capacitor control unit 33 adjusts the capacitance value of the variable capacitor 32, the phase margin and the gain margin of the measurement target circuit 1 are measured as in the first embodiment.
The adjustment of the capacitance value of the variable capacitor 32 and the measurement of the phase margin and the gain margin are repeatedly performed until the phase margin and gain margin of the measurement target circuit 1 reach the desired phase margin and gain margin.
As a result, if the capacitance value of the variable capacitor 32 at which the phase margin and gain margin of the measurement target circuit 1 become the desired phase margin and gain margin is known, a capacitor having the capacitance value is appropriately connected in parallel with the feedback circuit 13. Therefore, it is possible to optimize the phase margin and gain margin of the circuit 1 to be measured.

図7は可変コンデンサ32の容量値を調整することによる位相補償処理前後の位相余裕及びゲイン余裕を示すボード線図である。
図7(a)は位相補償処理前の位相余裕及びゲイン余裕を示し、図7(b)は位相補償処理後の位相余裕及びゲイン余裕を示している。
図7の例では、可変コンデンサ32の容量値を調整することで、位相余裕が18°から61°に改善し、ゲイン余裕が26dBから35dBに改善していることが分かる。
FIG. 7 is a Bode diagram showing the phase margin and the gain margin before and after the phase compensation processing by adjusting the capacitance value of the variable capacitor 32.
FIG. 7A shows the phase margin and gain margin before the phase compensation processing, and FIG. 7B shows the phase margin and gain margin after the phase compensation processing.
In the example of FIG. 7, it can be seen that the phase margin is improved from 18 ° to 61 ° and the gain margin is improved from 26 dB to 35 dB by adjusting the capacitance value of the variable capacitor 32.

以上で明らかなように、この実施の形態2によれば、一端がオペアンプ12の出力端子に接続されるスイッチ31と、一端がスイッチ31の他端に接続されて、他端がオペアンプ12の反転入力端子(−)に接続される可変コンデンサ32と、スイッチ31の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変コンデンサ32の容量値を調整するコンデンサ制御部33とを備えるように構成したので、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることが可能になる効果を奏する。   As apparent from the above, according to the second embodiment, one end is connected to the output terminal of the operational amplifier 12, one end is connected to the other end of the switch 31, and the other end is the inversion of the operational amplifier 12. The variable capacitor 32 connected to the input terminal (−) and the opening / closing of the switch 31 are controlled, and the capacitance of the variable capacitor 32 is determined according to the phase margin and the gain margin of the measurement target circuit 1 specified by the margin specifying unit 25. Since the capacitor control unit 33 that adjusts the value is provided, the phase margin and gain margin of the measurement target circuit 1 can be optimized.

実施の形態3.
上記実施の形態2では、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32を接続することで、測定対象回路1の位相余裕及びゲイン余裕を増やすものを示したが、この実施の形態3では、図5(b)に示すようなスナバ回路を追加することで、測定対象回路1の位相余裕及びゲイン余裕を増やすものについて説明する。
Embodiment 3 FIG.
In the second embodiment, the variable capacitor 32 is connected between the output terminal and the inverting input terminal (−) of the operational amplifier 12 to increase the phase margin and the gain margin of the circuit 1 to be measured. In the third embodiment, a description will be given of an example in which the phase margin and gain margin of the measurement target circuit 1 are increased by adding a snubber circuit as shown in FIG.

図8はこの発明の実施の形態3による位相余裕ゲイン余裕測定回路を示す構成図であり、図8において、図1と同一符号は同一または相当部分を示すので説明を省略する。
スイッチ41は一端がオペアンプ12の出力端子に接続されている。
可変抵抗42は抵抗値の可変が可能な抵抗であり、一端がスイッチ41の他端に接続されている。
可変コンデンサ43は容量値の可変が可能なコンデンサであり、一端が可変抵抗42の他端に接続され、他端がグランドに接地されている。
抵抗コンデンサ制御部44はスイッチ41の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変抵抗42の抵抗値及び可変コンデンサ43の容量値を調整する回路である。
8 is a block diagram showing a phase margin gain margin measuring circuit according to Embodiment 3 of the present invention. In FIG. 8, the same reference numerals as those in FIG.
One end of the switch 41 is connected to the output terminal of the operational amplifier 12.
The variable resistor 42 is a resistor whose resistance value can be varied, and one end is connected to the other end of the switch 41.
The variable capacitor 43 is a capacitor whose capacitance value can be varied. One end is connected to the other end of the variable resistor 42 and the other end is grounded.
The resistance capacitor control unit 44 controls the opening and closing of the switch 41, and the resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43 according to the phase margin and gain margin of the circuit 1 to be measured specified by the margin specifying unit 25. It is a circuit that adjusts.

次に動作について説明する。
ただし、スイッチ41、可変抵抗42、可変コンデンサ43及び抵抗コンデンサ制御部44を追加している点以外は、上記実施の形態1と同様であるため、ここでは、スイッチ41、可変抵抗42、可変コンデンサ43及び抵抗コンデンサ制御部44について説明する。
最初に、測定対象回路1の位相余裕及びゲイン余裕を測定する際には、抵抗コンデンサ制御部44がスイッチ41を開状態に制御することで、オペアンプ12の出力端子とグランドとの間に、可変抵抗42と可変コンデンサ43からなる直列回路が接続されていない状態にする。
この状態で、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕が足りない場合、例えば、位相余裕が45°未満、あるいは、ゲイン余裕が10dB未満であるような場合、抵抗コンデンサ制御部44が、スイッチ41を閉状態に制御して、オペアンプ12の出力端子とグランドとの間に、可変抵抗42と可変コンデンサ43からなる直列回路が接続されている状態にしてから、その位相余裕及びゲイン余裕に応じて、可変抵抗42の抵抗値及び可変コンデンサ43の容量値を調整する。
Next, the operation will be described.
However, since the switch 41, the variable resistor 42, the variable capacitor 43, and the resistor capacitor control unit 44 are added except that the switch 41, the variable resistor 42, the variable capacitor 43, and the resistor capacitor control unit 44 are added, here, the switch 41, the variable resistor 42, the variable capacitor 43 and the resistor capacitor control unit 44 will be described.
First, when measuring the phase margin and the gain margin of the circuit 1 to be measured, the resistance capacitor control unit 44 controls the switch 41 to be in an open state so that it can be varied between the output terminal of the operational amplifier 12 and the ground. A series circuit composed of the resistor 42 and the variable capacitor 43 is not connected.
In this state, when the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25 are insufficient, for example, when the phase margin is less than 45 ° or the gain margin is less than 10 dB, the resistance The capacitor control unit 44 controls the switch 41 to be in a closed state so that a series circuit including the variable resistor 42 and the variable capacitor 43 is connected between the output terminal of the operational amplifier 12 and the ground. The resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43 are adjusted according to the phase margin and the gain margin.

可変抵抗42と可変コンデンサ43からなる直列回路が、オペアンプ12の出力端子とグランドとの間に接続されている状態は、図5(b)に示すように、スナバ回路が追加されているものに相当する。スナバ回路は、ゲインのピークを抑える作用をもたらすため、クローズドループの安定化を図ることができる。
抵抗コンデンサ制御部44が、可変抵抗42の抵抗値及び可変コンデンサ43の容量値を調整したのち、上記実施の形態1と同様に、測定対象回路1の位相余裕及びゲイン余裕を測定する。
測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になるまで、可変抵抗42の抵抗値及び可変コンデンサ43の容量値の調整と、位相余裕及びゲイン余裕の測定とを繰り返し実施する。
これにより、測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になる可変抵抗42の抵抗値及び可変コンデンサ43の容量値が分かれば、適宜、その抵抗値を有する抵抗と、その容量値を有するコンデンサとの直列回路をオペアンプ12の出力端子とグランドとの間に接続することが可能になり、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることができる。
The state in which the series circuit composed of the variable resistor 42 and the variable capacitor 43 is connected between the output terminal of the operational amplifier 12 and the ground is that in which a snubber circuit is added as shown in FIG. Equivalent to. Since the snubber circuit has an effect of suppressing the gain peak, the closed loop can be stabilized.
After the resistance capacitor control unit 44 adjusts the resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43, the phase margin and the gain margin of the measurement target circuit 1 are measured as in the first embodiment.
The adjustment of the resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43 and the measurement of the phase margin and the gain margin are repeated until the phase margin and gain margin of the measurement target circuit 1 reach the desired phase margin and gain margin. carry out.
Thus, if the resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43 at which the phase margin and gain margin of the measurement target circuit 1 become the desired phase margin and gain margin are known, the resistance having the resistance value is appropriately selected. In addition, a series circuit with a capacitor having the capacitance value can be connected between the output terminal of the operational amplifier 12 and the ground, so that the phase margin and gain margin of the measurement target circuit 1 can be optimized.

以上で明らかなように、この実施の形態3によれば、一端がオペアンプ12の出力端子に接続されているスイッチ41と、一端がスイッチ41の他端に接続されている可変抵抗42と、一端が可変抵抗42の他端に接続され、他端がグランドに接地されている可変コンデンサ43と、スイッチ41の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変抵抗42の抵抗値及び可変コンデンサ43の容量値を調整する抵抗コンデンサ制御部44とを備えるように構成したので、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることが可能になる効果を奏する。   As is apparent from the above, according to the third embodiment, the switch 41 whose one end is connected to the output terminal of the operational amplifier 12, the variable resistor 42 whose one end is connected to the other end of the switch 41, and one end Is connected to the other end of the variable resistor 42 and the other end of the variable resistor 43 is grounded, and controls the opening and closing of the switch 41, and the phase margin of the measurement target circuit 1 specified by the margin specifying unit 25 and Since the resistance capacitor control unit 44 that adjusts the resistance value of the variable resistor 42 and the capacitance value of the variable capacitor 43 according to the gain margin is provided, the phase margin and the gain margin of the measurement target circuit 1 are optimized. There is an effect that can be achieved.

実施の形態4.
上記実施の形態2では、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32を接続することで、測定対象回路1の位相余裕及びゲイン余裕を増やすものを示したが、この実施の形態4では、図5(c)に示すように、入力端子間の位相補償を行うことで、測定対象回路1の位相余裕及びゲイン余裕を増やすものについて説明する。
Embodiment 4 FIG.
In the second embodiment, the variable capacitor 32 is connected between the output terminal and the inverting input terminal (−) of the operational amplifier 12 to increase the phase margin and the gain margin of the circuit 1 to be measured. In the fourth embodiment, as shown in FIG. 5C, a description will be given of an example in which the phase margin and gain margin of the measurement target circuit 1 are increased by performing phase compensation between the input terminals.

図9はこの発明の実施の形態4による位相余裕ゲイン余裕測定回路を示す構成図であり、図9において、図1と同一符号は同一または相当部分を示すので説明を省略する。
スイッチ51は一端がオペアンプ12の非反転入力端子(+)に接続されている。
可変抵抗52は抵抗値の可変が可能な抵抗であり、一端がスイッチ51の他端に接続されている。
可変コンデンサ53は容量値の可変が可能なコンデンサであり、一端が可変抵抗52の他端に接続され、他端がオペアンプ12の反転入力端子(−)に接続されている。
抵抗コンデンサ制御部54はスイッチ51の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変抵抗52の抵抗値及び可変コンデンサ53の容量値を調整する回路である。
FIG. 9 is a block diagram showing a phase margin gain margin measuring circuit according to Embodiment 4 of the present invention. In FIG. 9, the same reference numerals as those in FIG.
One end of the switch 51 is connected to the non-inverting input terminal (+) of the operational amplifier 12.
The variable resistor 52 is a resistor whose resistance value can be varied, and one end is connected to the other end of the switch 51.
The variable capacitor 53 is a capacitor whose capacitance value can be varied. One end of the variable capacitor 53 is connected to the other end of the variable resistor 52, and the other end is connected to the inverting input terminal (−) of the operational amplifier 12.
The resistance capacitor control unit 54 controls the opening and closing of the switch 51, and the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53 according to the phase margin and gain margin of the circuit 1 to be measured specified by the margin specifying unit 25. It is a circuit that adjusts.

次に動作について説明する。
ただし、スイッチ51、可変抵抗52、可変コンデンサ53及び抵抗コンデンサ制御部54を追加している点以外は、上記実施の形態1と同様であるため、ここでは、スイッチ51、可変抵抗52、可変コンデンサ53及び抵抗コンデンサ制御部54について説明する。
最初に、測定対象回路1の位相余裕及びゲイン余裕を測定する際には、抵抗コンデンサ制御部54がスイッチ51を開状態に制御することで、オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に、可変抵抗52と可変コンデンサ53からなる直列回路が接続されていない状態にする。
この状態で、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕が足りない場合、例えば、位相余裕が45°未満、あるいは、ゲイン余裕が10dB未満であるような場合、抵抗コンデンサ制御部54が、スイッチ51を閉状態に制御して、オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に、可変抵抗52と可変コンデンサ53からなる直列回路が接続されている状態にしてから、その位相余裕及びゲイン余裕に応じて、可変抵抗52の抵抗値及び可変コンデンサ53の容量値を調整する。
Next, the operation will be described.
However, except that a switch 51, a variable resistor 52, a variable capacitor 53, and a resistor capacitor control unit 54 are added, the configuration is the same as that of the first embodiment. Therefore, here, the switch 51, the variable resistor 52, the variable capacitor 53 and the resistor capacitor control unit 54 will be described.
First, when measuring the phase margin and gain margin of the circuit 1 to be measured, the resistance capacitor control unit 54 controls the switch 51 to be in an open state, whereby the non-inverting input terminal (+) and the inverting input of the operational amplifier 12 are controlled. A series circuit including the variable resistor 52 and the variable capacitor 53 is not connected between the terminal (−).
In this state, when the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25 are insufficient, for example, when the phase margin is less than 45 ° or the gain margin is less than 10 dB, the resistance The capacitor control unit 54 controls the switch 51 to be closed, and a series circuit including a variable resistor 52 and a variable capacitor 53 is provided between the non-inverting input terminal (+) and the inverting input terminal (−) of the operational amplifier 12. After being connected, the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53 are adjusted according to the phase margin and gain margin.

可変抵抗52と可変コンデンサ53からなる直列回路が、オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に接続されている状態は、図5(c)に示すように、入力端子間の位相補償を行うものに相当する。
抵抗コンデンサ制御部54が、可変抵抗52の抵抗値及び可変コンデンサ53の容量値を調整したのち、上記実施の形態1と同様に、測定対象回路1の位相余裕及びゲイン余裕を測定する。
測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になるまで、可変抵抗52の抵抗値及び可変コンデンサ53の容量値の調整と、位相余裕及びゲイン余裕の測定とを繰り返し実施する。
これにより、測定対象回路1の位相余裕及びゲイン余裕が、所望の位相余裕及びゲイン余裕になる可変抵抗52の抵抗値及び可変コンデンサ53の容量値が分かれば、適宜、その抵抗値を有する抵抗と、その容量値を有するコンデンサとの直列回路をオペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に接続することが可能になり、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることができる。
As shown in FIG. 5C, a series circuit composed of the variable resistor 52 and the variable capacitor 53 is connected between the non-inverting input terminal (+) and the inverting input terminal (−) of the operational amplifier 12. This is equivalent to performing phase compensation between input terminals.
After the resistance capacitor control unit 54 adjusts the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53, the phase margin and the gain margin of the measurement target circuit 1 are measured as in the first embodiment.
The adjustment of the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53 and the measurement of the phase margin and gain margin are repeated until the phase margin and gain margin of the measurement target circuit 1 reach the desired phase margin and gain margin. carry out.
Thus, if the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53 at which the phase margin and gain margin of the measurement target circuit 1 become the desired phase margin and gain margin are known, the resistor having the resistance value is appropriately selected. , A series circuit with a capacitor having the capacitance value can be connected between the non-inverting input terminal (+) and the inverting input terminal (−) of the operational amplifier 12, and the phase margin and gain of the circuit 1 to be measured It is possible to optimize the margin.

以上で明らかなように、この実施の形態4によれば、一端がオペアンプ12の非反転入力端子(+)に接続されているスイッチ51と、一端がスイッチ51の他端に接続されている可変抵抗52と、一端が可変抵抗52の他端に接続され、他端がオペアンプ12の反転入力端子(−)に接続されている可変コンデンサ53と、スイッチ51の開閉を制御するとともに、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変抵抗52の抵抗値及び可変コンデンサ53の容量値を調整する抵抗コンデンサ制御部54とを備えるように構成したので、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることが可能になる効果を奏する。   As is apparent from the above, according to the fourth embodiment, the switch 51 having one end connected to the non-inverting input terminal (+) of the operational amplifier 12 and the variable having one end connected to the other end of the switch 51. The resistor 52, one end connected to the other end of the variable resistor 52, the other end connected to the inverting input terminal (−) of the operational amplifier 12, and the opening / closing of the switch 51, and a margin specifying unit Since it is configured to include a resistance capacitor control unit 54 that adjusts the resistance value of the variable resistor 52 and the capacitance value of the variable capacitor 53 in accordance with the phase margin and gain margin of the circuit 1 to be measured specified by 25. There is an effect that the phase margin and the gain margin of the target circuit 1 can be optimized.

実施の形態5.
上記実施の形態2では、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32を接続し、上記実施の形態3では、オペアンプ12の出力端子とグランドとの間に可変抵抗42と可変コンデンサ43からなる直列回路を接続し、上記実施の形態4では、オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に可変抵抗52と可変コンデンサ53からなる直列回路を接続するものを示している。
この実施の形態5では、上記実施の形態2の接続状態、上記実施の形態3の接続状態、あるいは、上記実施の形態4の接続状態を必要に応じて選択可能な位相余裕ゲイン余裕測定回路について説明する。
Embodiment 5. FIG.
In the second embodiment, the variable capacitor 32 is connected between the output terminal of the operational amplifier 12 and the inverting input terminal (−). In the third embodiment, the variable resistor is connected between the output terminal of the operational amplifier 12 and the ground. In the fourth embodiment, a variable resistor 52 and a variable capacitor 53 are provided between the non-inverting input terminal (+) and the inverting input terminal (−) of the operational amplifier 12 in the fourth embodiment. It shows what connects a series circuit.
In the fifth embodiment, a phase margin gain margin measuring circuit capable of selecting the connection state of the second embodiment, the connection state of the third embodiment, or the connection state of the fourth embodiment as necessary. explain.

図10はこの発明の実施の形態5による位相余裕ゲイン余裕測定回路を示す構成図であり、図11はこの発明の実施の形態5による位相余裕ゲイン余裕測定回路の可変素子回路61を示す構成図である。図10において、図1と同一符号は同一または相当部分を示している。
図10及び図11において、可変素子回路61はオペアンプ12の非反転入力端子(+)、反転入力端子(−)及び出力端子と接続されており、可変素子として可変抵抗73と可変コンデンサ76を備えるとともに、複数のスイッチ71,72,74,75,77,78を備えている回路である。
スイッチ制御部62は可変素子回路61を構成しているスイッチ71,72,74,75,77,78の開閉を制御する回路である。
抵抗コンデンサ制御部63は余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変素子回路61を構成している可変抵抗73の抵抗値及び可変コンデンサ76の容量値を調整する回路である。
10 is a block diagram showing a phase margin gain margin measuring circuit according to Embodiment 5 of the present invention, and FIG. 11 is a block diagram showing a variable element circuit 61 of the phase margin gain margin measuring circuit according to Embodiment 5 of the present invention. It is. 10, the same reference numerals as those in FIG. 1 denote the same or corresponding parts.
10 and 11, the variable element circuit 61 is connected to the non-inverting input terminal (+), the inverting input terminal (−), and the output terminal of the operational amplifier 12, and includes a variable resistor 73 and a variable capacitor 76 as variable elements. In addition, the circuit includes a plurality of switches 71, 72, 74, 75, 77, 78.
The switch control unit 62 is a circuit that controls opening and closing of the switches 71, 72, 74, 75, 77, and 78 that constitute the variable element circuit 61.
The resistance capacitor control unit 63 determines the resistance value of the variable resistor 73 and the capacitance value of the variable capacitor 76 constituting the variable element circuit 61 in accordance with the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25. It is a circuit that adjusts.

スイッチ71は一端がオペアンプ12の非反転入力端子(+)に接続されている第1のスイッチである。
スイッチ72は一端がオペアンプ12の出力端子に接続されている第2のスイッチである。
可変抵抗73は抵抗値の可変が可能な抵抗であり、一端がスイッチ71,72の他端に接続されている。
スイッチ74は一端が可変抵抗73の他端に接続されている第3のスイッチである。
The switch 71 is a first switch having one end connected to the non-inverting input terminal (+) of the operational amplifier 12.
The switch 72 is a second switch having one end connected to the output terminal of the operational amplifier 12.
The variable resistor 73 is a resistor whose resistance value can be varied, and one end is connected to the other ends of the switches 71 and 72.
The switch 74 is a third switch having one end connected to the other end of the variable resistor 73.

スイッチ75は一端がオペアンプ12の出力端子に接続されている第4のスイッチである。
可変コンデンサ76は容量値の可変が可能なコンデンサであり、一端がスイッチ74,75の他端に接続されている。
スイッチ77は一端がオペアンプ12の反転入力端子(−)に接続されている第5のスイッチである。
スイッチ78は一端が可変コンデンサ76及びスイッチ77の他端に接続されて、他端がグランドに接地されている第6のスイッチである。
The switch 75 is a fourth switch having one end connected to the output terminal of the operational amplifier 12.
The variable capacitor 76 is a capacitor whose capacitance value can be varied, and one end is connected to the other ends of the switches 74 and 75.
The switch 77 is a fifth switch having one end connected to the inverting input terminal (−) of the operational amplifier 12.
The switch 78 is a sixth switch having one end connected to the other end of the variable capacitor 76 and the switch 77 and the other end grounded to the ground.

次に動作について説明する。
最初に、測定対象回路1の位相余裕及びゲイン余裕を測定する際には、スイッチ制御部62が、図11に示すように、可変素子回路61を構成しているスイッチ71,72,74,75,77,78を開状態に制御することで、可変素子回路61が接続されていない状態にする。
この状態で、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕が足りない場合、スイッチ制御部62が、図12に示すように、可変素子回路61を構成しているスイッチ75,77を閉状態に制御してから、抵抗コンデンサ制御部63が、その位相余裕及びゲイン余裕に応じて、可変素子回路61を構成している可変コンデンサ76の容量値を調整する。
スイッチ75,77が閉状態で、スイッチ71,72,74,78が開状態であるときの回路構成は、オペアンプ12の出力端子と反転入力端子(−)との間に可変コンデンサ32が接続されている上記実施の形態2と同様の構成である。
Next, the operation will be described.
First, when measuring the phase margin and gain margin of the circuit 1 to be measured, the switch control unit 62, as shown in FIG. 11, switches 71, 72, 74, and 75 that constitute the variable element circuit 61. , 77, 78 are controlled to be in an open state, so that the variable element circuit 61 is not connected.
In this state, when the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25 are insufficient, the switch control unit 62 configures the switch constituting the variable element circuit 61 as shown in FIG. After controlling 75 and 77 to the closed state, the resistance capacitor control unit 63 adjusts the capacitance value of the variable capacitor 76 constituting the variable element circuit 61 according to the phase margin and the gain margin.
The circuit configuration when the switches 75 and 77 are closed and the switches 71, 72, 74 and 78 are open is such that the variable capacitor 32 is connected between the output terminal of the operational amplifier 12 and the inverting input terminal (−). The configuration is the same as that of the second embodiment.

ここでは、スイッチ制御部62が、スイッチ75,77を閉状態に制御する例を示したが、スイッチ71,72,74,75,77,78が開の状態である図11の状態から、スイッチ制御部62が、図13に示すように、可変素子回路61を構成しているスイッチ72,74,78を閉状態に制御するようにしてもよい。
抵抗コンデンサ制御部63は、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変素子回路61を構成している可変抵抗73の抵抗値及び可変コンデンサ76の容量値を調整する。
スイッチ72,74,78が閉状態で、スイッチ71,75,77が開状態であるときの回路構成は、オペアンプ12の出力端子とグランドとの間に、可変抵抗42と可変コンデンサ43からなる直列回路が接続されている上記実施の形態3と同様の構成である。
Here, an example is shown in which the switch control unit 62 controls the switches 75 and 77 to the closed state. However, from the state of FIG. 11 in which the switches 71, 72, 74, 75, 77, and 78 are open, The control unit 62 may control the switches 72, 74, and 78 constituting the variable element circuit 61 to be closed as shown in FIG.
The resistance capacitor control unit 63 determines the resistance value of the variable resistor 73 and the capacitance of the variable capacitor 76 constituting the variable element circuit 61 in accordance with the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25. Adjust the value.
The circuit configuration when the switches 72, 74, 78 are closed and the switches 71, 75, 77 are open is a series of a variable resistor 42 and a variable capacitor 43 between the output terminal of the operational amplifier 12 and the ground. The configuration is the same as in the third embodiment to which a circuit is connected.

また、スイッチ71,72,74,75,77,78が開の状態である図11の状態から、スイッチ制御部62が、図14に示すように、可変素子回路61を構成しているスイッチ71,74,77を閉状態に制御するようにしてもよい。
この場合も、抵抗コンデンサ制御部63は、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変素子回路61を構成している可変抵抗73の抵抗値及び可変コンデンサ76の容量値を調整する。
スイッチ71,74,77が閉状態で、スイッチ72,75,78が開状態であるときの回路構成は、オペアンプ12の非反転入力端子(+)と反転入力端子(−)との間に、可変抵抗52と可変コンデンサ53からなる直列回路が接続されている上記実施の形態4と同様の構成である。
Further, from the state of FIG. 11 in which the switches 71, 72, 74, 75, 77, 78 are open, the switch control unit 62 forms the variable element circuit 61 as shown in FIG. 74, 77 may be controlled to be closed.
Also in this case, the resistance capacitor control unit 63 determines the resistance value and variable of the variable resistor 73 constituting the variable element circuit 61 according to the phase margin and gain margin of the measurement target circuit 1 specified by the margin specifying unit 25. The capacitance value of the capacitor 76 is adjusted.
The circuit configuration when the switches 71, 74, 77 are closed and the switches 72, 75, 78 are open is between the non-inverting input terminal (+) and the inverting input terminal (−) of the operational amplifier 12. The configuration is similar to that of the fourth embodiment, in which a series circuit composed of a variable resistor 52 and a variable capacitor 53 is connected.

以上で明らかなように、この実施の形態5によれば、可変素子回路61を構成しているスイッチ71,72,74,75,77,78の開閉を制御するスイッチ制御部62と、余裕特定部25により特定された測定対象回路1の位相余裕及びゲイン余裕に応じて、可変素子回路61を構成している可変抵抗73の抵抗値及び可変コンデンサ76の容量値を調整する抵抗コンデンサ制御部63とを備えるように構成したので、上記実施の形態2〜4と同様に、測定対象回路1の位相余裕及びゲイン余裕の適正化を図ることが可能になる効果を奏する。また、位相余裕及びゲイン余裕を増やすための回路構成を必要に応じて切り換えることができる効果を奏する。   As is apparent from the above, according to the fifth embodiment, the switch control unit 62 that controls opening and closing of the switches 71, 72, 74, 75, 77, and 78 constituting the variable element circuit 61, and the margin specification A resistance capacitor control unit 63 that adjusts the resistance value of the variable resistor 73 and the capacitance value of the variable capacitor 76 constituting the variable element circuit 61 in accordance with the phase margin and gain margin of the measurement target circuit 1 specified by the unit 25. As in the second to fourth embodiments, the phase margin and the gain margin of the measurement target circuit 1 can be optimized. In addition, the circuit configuration for increasing the phase margin and the gain margin can be switched as necessary.

なお、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。   In the present invention, within the scope of the invention, any combination of the embodiments, or any modification of any component in each embodiment, or omission of any component in each embodiment is possible. .

1 測定対象回路、2 位相余裕ゲイン余裕測定回路、11 入力回路、12 オペアンプ、13 フィードバック回路(帰還回路)、21 信号源、22 位相ゲイン算出部、22a 測定器、22b 演算器、23 位相ゲイン記憶部、24 周波数制御部、25 余裕特定部、31 スイッチ、32 可変コンデンサ、33 コンデンサ制御部、41 スイッチ、42 可変抵抗、43 可変コンデンサ、44 抵抗コンデンサ制御部、51 スイッチ、52 可変抵抗、53 可変コンデンサ、54 抵抗コンデンサ制御部、61 可変素子回路、62 スイッチ制御部、63 抵抗コンデンサ制御部、71 スイッチ(第1のスイッチ)、72 スイッチ(第2のスイッチ)、73 可変抵抗、74 スイッチ(第3のスイッチ)、75 スイッチ(第4のスイッチ)、76 可変コンデンサ、77 スイッチ(第5のスイッチ)、78 スイッチ(第6のスイッチ)。   DESCRIPTION OF SYMBOLS 1 Measurement object circuit, 2 Phase margin gain margin measurement circuit, 11 Input circuit, 12 Operational amplifier, 13 Feedback circuit (feedback circuit), 21 Signal source, 22 Phase gain calculation part, 22a Measuring instrument, 22b Calculator, 23 Phase gain storage Unit, 24 frequency control unit, 25 margin specifying unit, 31 switch, 32 variable capacitor, 33 capacitor control unit, 41 switch, 42 variable resistor, 43 variable capacitor, 44 resistor capacitor control unit, 51 switch, 52 variable resistor, 53 variable Capacitor, 54 Resistor Capacitor Control Unit, 61 Variable Element Circuit, 62 Switch Control Unit, 63 Resistor Capacitor Control Unit, 71 Switch (First Switch), 72 Switch (Second Switch), 73 Variable Resistor, 74 Switch (1st 3 switch), 75 switch (No. Switch), 76 a variable capacitor, 77 switch (fifth switch) 78 switch (sixth switch of).

Claims (8)

オペアンプの出力端子と反転入力端子との間に帰還回路が接続されている測定対象回路の位相余裕及びゲイン余裕を測定する際に、前記オペアンプの非反転入力端子に接続される信号源と、
前記測定対象回路の位相余裕及びゲイン余裕を測定する際に、前記オペアンプの出力端子と、前記オペアンプの反転入力端子と、前記オペアンプの非反転入力端子とに接続され、前記オペアンプの出力端子から前記帰還回路に出力される信号、前記帰還回路から前記オペアンプの反転入力端子に出力される信号及び前記信号源から前記オペアンプの非反転入力端子に出力される信号を用いて、前記測定対象回路の位相及びゲインを算出する位相ゲイン算出部と、
前記信号源から出力される信号の周波数を可変する周波数制御部と、
前記周波数制御部により信号の周波数が変えられる毎に、前記位相ゲイン算出部により算出された位相及びゲインを収集し、各々の周波数での前記測定対象回路の位相及びゲインから、前記測定対象回路の位相余裕及びゲイン余裕を特定する余裕特定部と
を備えた位相余裕ゲイン余裕測定回路。
A signal source connected to the non-inverting input terminal of the operational amplifier when measuring the phase margin and the gain margin of the measurement target circuit in which the feedback circuit is connected between the output terminal and the inverting input terminal of the operational amplifier;
When measuring the phase margin and the gain margin of the circuit to be measured, the operational amplifier is connected to the output terminal of the operational amplifier, the inverting input terminal of the operational amplifier, and the non-inverting input terminal of the operational amplifier, and from the output terminal of the operational amplifier Using the signal output to the feedback circuit, the signal output from the feedback circuit to the inverting input terminal of the operational amplifier, and the signal output from the signal source to the non-inverting input terminal of the operational amplifier, And a phase gain calculation unit for calculating the gain;
A frequency control unit that varies the frequency of the signal output from the signal source;
Each time the frequency of the signal is changed by the frequency control unit, the phase and gain calculated by the phase gain calculation unit are collected, and from the phase and gain of the measurement target circuit at each frequency, the measurement target circuit A phase margin gain margin measuring circuit including a margin identifying unit for identifying a phase margin and a gain margin.
一端が前記オペアンプの出力端子に接続されて、他端が前記オペアンプの反転入力端子に接続される可変コンデンサと、
前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記可変コンデンサの容量値を調整するコンデンサ制御部と
を備えたことを特徴とする請求項1記載の位相余裕ゲイン余裕測定回路。
A variable capacitor having one end connected to the output terminal of the operational amplifier and the other end connected to the inverting input terminal of the operational amplifier;
The phase margin gain according to claim 1, further comprising: a capacitor control unit that adjusts a capacitance value of the variable capacitor according to a phase margin and a gain margin of the measurement target circuit identified by the margin identification unit. Margin measuring circuit.
前記オペアンプの出力端子とグランドとの間に接続される可変抵抗と可変コンデンサからなる直列回路と、
前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記直列回路を構成している前記可変抵抗の抵抗値及び前記可変コンデンサの容量値を調整する抵抗コンデンサ制御部と
を備えたことを特徴とする請求項1記載の位相余裕ゲイン余裕測定回路。
A series circuit composed of a variable resistor and a variable capacitor connected between the output terminal of the operational amplifier and the ground;
A resistance capacitor control unit that adjusts the resistance value of the variable resistor and the capacitance value of the variable capacitor constituting the series circuit according to the phase margin and the gain margin of the measurement target circuit specified by the margin specifying unit; The phase margin gain margin measuring circuit according to claim 1, further comprising:
前記オペアンプの非反転入力端子と反転入力端子との間に接続される可変抵抗と可変コンデンサからなる直列回路と、
前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記直列回路を構成している前記可変抵抗の抵抗値及び前記可変コンデンサの容量値を調整する抵抗コンデンサ制御部と
を備えたことを特徴とする請求項1記載の位相余裕ゲイン余裕測定回路。
A series circuit comprising a variable resistor and a variable capacitor connected between a non-inverting input terminal and an inverting input terminal of the operational amplifier;
A resistance capacitor control unit that adjusts the resistance value of the variable resistor and the capacitance value of the variable capacitor constituting the series circuit according to the phase margin and the gain margin of the measurement target circuit specified by the margin specifying unit; The phase margin gain margin measuring circuit according to claim 1, further comprising:
一端が前記オペアンプの非反転入力端子に接続される第1のスイッチと、
一端が前記オペアンプの出力端子に接続される第2のスイッチと、
一端が前記第1及び第2のスイッチの他端に接続される可変抵抗と、
一端が前記可変抵抗の他端に接続される第3のスイッチと、
一端が前記オペアンプの出力端子に接続される第4のスイッチと、
一端が前記第3及び第4のスイッチの他端に接続される可変コンデンサと、
一端が前記オペアンプの反転入力端子に接続される第5のスイッチと、
一端が前記可変コンデンサ及び前記第5のスイッチの他端に接続されて、他端がグランドに接地される第6のスイッチとから構成されている可変素子回路と、
前記可変素子回路を構成している第1から第6のスイッチの開閉を制御するスイッチ制御部と、
前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記可変素子回路を構成している前記可変抵抗の抵抗値及び前記可変コンデンサの容量値を調整する抵抗コンデンサ制御部と
を備えたことを特徴とする請求項1記載の位相余裕ゲイン余裕測定回路。
A first switch having one end connected to the non-inverting input terminal of the operational amplifier;
A second switch having one end connected to the output terminal of the operational amplifier;
A variable resistor having one end connected to the other end of the first and second switches;
A third switch having one end connected to the other end of the variable resistor;
A fourth switch having one end connected to the output terminal of the operational amplifier;
A variable capacitor having one end connected to the other end of the third and fourth switches;
A fifth switch having one end connected to the inverting input terminal of the operational amplifier;
A variable element circuit having one end connected to the other end of the variable capacitor and the fifth switch and the other end grounded to the ground;
A switch control unit for controlling opening and closing of the first to sixth switches constituting the variable element circuit;
A resistance capacitor control unit that adjusts the resistance value of the variable resistor and the capacitance value of the variable capacitor constituting the variable element circuit in accordance with the phase margin and gain margin of the measurement target circuit specified by the margin specifying unit. The phase margin gain margin measuring circuit according to claim 1, further comprising:
前記スイッチ制御部は、前記第1から第3及び第6のスイッチを開状態に制御するとともに、前記第4及び第5のスイッチを閉状態に制御し、
前記抵抗コンデンサ制御部は、前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記可変コンデンサの容量値を調整することを特徴とする請求項5記載の位相余裕ゲイン余裕測定回路。
The switch control unit controls the first to third and sixth switches to an open state, and controls the fourth and fifth switches to a closed state.
6. The phase margin gain according to claim 5, wherein the resistance capacitor control unit adjusts a capacitance value of the variable capacitor according to a phase margin and a gain margin of the measurement target circuit specified by the margin specifying unit. Margin measuring circuit.
前記スイッチ制御部は、前記第1、第4及び第5のスイッチを開状態に制御するとともに、前記第2、第3及び第6のスイッチを閉状態に制御し、
前記抵抗コンデンサ制御部は、前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記可変抵抗の抵抗値及び前記可変コンデンサの容量値を調整することを特徴とする請求項5記載の位相余裕ゲイン余裕測定回路。
The switch control unit controls the first, fourth, and fifth switches to an open state, and controls the second, third, and sixth switches to a closed state,
The resistance capacitor control unit adjusts a resistance value of the variable resistor and a capacitance value of the variable capacitor according to a phase margin and a gain margin of a measurement target circuit specified by the margin specifying unit. Item 6. A phase margin gain margin measuring circuit according to Item 5.
前記スイッチ制御部は、前記第2、第4及び第6のスイッチを開状態に制御するとともに、前記第1、第3及び第5のスイッチを閉状態に制御し、
前記抵抗コンデンサ制御部は、前記余裕特定部により特定された測定対象回路の位相余裕及びゲイン余裕に応じて、前記可変抵抗の抵抗値及び前記可変コンデンサの容量値を調整することを特徴とする請求項5記載の位相余裕ゲイン余裕測定回路。
The switch control unit controls the second, fourth, and sixth switches to an open state, and controls the first, third, and fifth switches to a closed state,
The resistance capacitor control unit adjusts a resistance value of the variable resistor and a capacitance value of the variable capacitor according to a phase margin and a gain margin of a measurement target circuit specified by the margin specifying unit. Item 6. A phase margin gain margin measuring circuit according to Item 5.
JP2015111573A 2015-06-01 2015-06-01 Phase margin gain margin measuring circuit Pending JP2016223947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015111573A JP2016223947A (en) 2015-06-01 2015-06-01 Phase margin gain margin measuring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015111573A JP2016223947A (en) 2015-06-01 2015-06-01 Phase margin gain margin measuring circuit

Publications (1)

Publication Number Publication Date
JP2016223947A true JP2016223947A (en) 2016-12-28

Family

ID=57748002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015111573A Pending JP2016223947A (en) 2015-06-01 2015-06-01 Phase margin gain margin measuring circuit

Country Status (1)

Country Link
JP (1) JP2016223947A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021060558A1 (en) * 2019-09-27 2021-04-01 学校法人福岡大学 Circuit characteristic measurement system and circuit characteristic measurement method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021060558A1 (en) * 2019-09-27 2021-04-01 学校法人福岡大学 Circuit characteristic measurement system and circuit characteristic measurement method

Similar Documents

Publication Publication Date Title
CN107076789B (en) System and method for measuring and determining noise parameters
US20200041357A1 (en) On-chip temperature sensor circuits
JP6314543B2 (en) Method and apparatus for estimating state of charge of storage battery
US20090187367A1 (en) Electronic load device for power supply product to be tested and method for regulating bandwidth thereof
JP2016223947A (en) Phase margin gain margin measuring circuit
US10684148B2 (en) Temperature compensation for eddy current sensors
US10393727B2 (en) Digital patch-clamp amplifier
US20170054427A1 (en) Adaptive matching network
JP2010288133A (en) Method for designing high frequency circuit, and high frequency circuit
WO2010067880A1 (en) Equivalent circuit of inductance element, method of analyzing circuit constant, circuit constant analysis program, device for analyzing circuit constant, circuit simulator
US9160313B2 (en) Compensated temperature variable resistor
DOĞRUER et al. PID controller design for a fractional order system using bode’s ideal transfer function
RU2707394C2 (en) Generator
TWI653458B (en) Method and device for estimating battery and battery management system
JP2017182179A (en) Control system
TWI559694B (en) Parameter automatic adjusting system, computer program product, and parameter automatic adjusting method thereof
JP4966803B2 (en) Semiconductor circuit and computer and communication apparatus using the same
RU2638573C2 (en) Method of determining static stability margin of electric network load node with induction motors
JP7348468B2 (en) Dead time estimation device and testing device equipped with the same
JPWO2020144740A1 (en) Transmission line design support device, transmission line design support method and program
US11703411B2 (en) Signal processing device and signal processing method
Antonini et al. A comparative study of vector fitting and orthonormal vector fitting techniques for EMC applications
JP5843953B1 (en) Electronic load device
EP3930184A1 (en) Amplifier circuit with temperature compensation
JP2023084605A (en) Impedance measurement circuit, voltage control device and impedance adjustment method