Professional paper Informacije ^efMIDEM A lonrnal of Journal of Microelectronics, Electronic Components and Materials Vol. 43, No. 1(2013), 67 - 73 A Simplified Approach to Analyze of Active Circuits Containing Operational A^mplifi^ers Ali Bekir Yildiz1, Ersoy Kelebekler2 ^Engineering Faculty, Department of Electrical Engineering, University of Kocaeli, Turkey 2Uzunciftlik Nuh Cimento VHS, Department of Alternative Energy Source, University of Kocaeli, Turkey Abstract: In this paper, a systematic and efficient formulation for analysis of active circuits containing operational amplifiers is presented. The modified nodal approach is used in obtaining system equations of active circuits. The model of operational amplifier relating to the used analysis method is given. The model is a matrix-based approach. Therefore, it allows computer-aided analysis of active circuits to be realized efficiently. Application examples are included into the study. Key words: active circuits, op amp, model, modified nodal analysis Poenostavljen pristop analize aktivnega vezja z operacijski^m ojačevalnikom Povzetek: V članku je predstavljen sistematična in učinkovita formulacija analize aktivnih vezij z operacijskim ojačevalnikom. Uporabljen je modificiran vozliščni pristop v sistemu enačb aktivnega vezja. Podan je model operacijskega ojačevalnika za uporabljeno metodo analize. Model je na osnovi matrike, kar omogoča učinkovito računalniško podprto analizo aktivnih vezij. Primeri so vključeni v študijo Ključne besede: aktivna vezja, operacijski ojačevalnik, model, modificirana vozliščna analiza ' Corresponding Author's e-mail: abyildiz@kocaeli.edu. tr 1. Introduction Operational amplifiers (Op amp) are the most important elements of active circuits. They are used in many applications, such as active filters, amplifiers, digital to analog converter and analog to digital converter in circuit analysis and control systems. The ones interested in electrical, electronics and computer engineering generally have difficulties in obtaining system equations of active circuits containing operational amplifiers. It arises from Op amp models used for the formulation. Singular network elements, nullator and norator, are used for analysis of Op amp circuits in [1]. It is very difficult to understand and realize the analysis with these elements. Wilson proposed a systematic procedure for analysis of Op amp circuits [2]. But, it has some restrictions about dependent sources and some circuit elements. Gottling presented the use of nodal and mesh methods by inspection in the analysis of active circuits [3]. It has a form similar to Wilson's matrix solution. Although it is more general, it involves very intensive mathematical processes and transformations. In general, it is very suitable to use the modified nodal method for analysis of active circuits. The classical nodal method, before the modified nodal method, is used for both resistive circuit analysis (DC analysis) and dynamic circuit analysis in many introductory electric circuit textbooks [4-7]. The node voltage method using virtual current sources for special cases is realized in [8]. The nodal voltage method is based on a systematic application of Kirchhoff's current law (KCL). In this method, the circuit variables are node voltages. It provides a simple and systematic solution for circuits that contain only independent current sources and resistances/impedances. But, the classical nodal method has some restrictions. Every circuit element cannot be easily included into to the system equations. For analysis with this method, the circuits must not contain de- pendent sources (excluding voltage-controlled current source) and voltage sources that are not transformable to current sources (independent or dependent). As an extension to the classical nodal voltage method, the modified nodal analysis (MNA) was first introduced by Ho et al [9] to overcome its shortcomings and has been developed more by including many circuit elements (transformer, semiconductor devices, short circuit, etc.) into the system equations so far. In this method, the system equations can be also obtained by inspection. Especially, it is very suitable for computer-aided analysis of active circuits. In this paper, it is shown how to include the terminal equations, the model, of operational amplifier into the MNA system. The systematic synthesis of operational amplifier circuits is realized by admittance matrix expansion in [10]. Full model and characterization of noise in operational amplifier is given in [11]. Modeling of operational amplifier based on VHDL-AMS is presented in [12]. Several applications, such as filters, amplifiers, relating to Op amps are given in [13-18]. The Op amp is the premier linear active device in present-day analog integrated circuit applications. Therefore, it is very important to model the Op amp for system analysis. The paper is organized as follows. In Section 2, the modified nodal analysis is explained. Section 3 summarizes the fundamental characteristics of Op amp, before including it into the MNA system. In Section 4, we develop the MNA model of Op amp. Application examples of the approach are given in Section 5. The paper concludes in Section 6. The MNA method allows the system equations to be obtained easily and systematically without any limitations. Therefore, it is very understandable analysis method in system analysis. The main advantage is that the system equations can be also obtained by inspection. In this method, there are both voltage variables and current variables. The modified nodal equations in Laplace (s) domain can be written in the following form. G + sC]X(s) = BU(s) (1) Where, G, C, B are coefficients matrices. All conductance and frequency-independent values arising in the MNA formulation are stored in matrix G, whereas values of capacitors and inductors are stored in matrix C because they are associated with the frequency. Inductors are included in impedance form, capacitors and resistors are included in admittance form into the MNA sys- Ga Gab + s "CA 0 " " X,(s) " = B "E(s)" _lGba Gb _ _ 0 La _ ■_X2(s)_ _J(s)_ tem. U(s) represents the source vector containing the independent current and voltage sources. X(s) is the unknown vector in s-domain. In this method, in addition to node voltages, currents of inductors, currents of independent and dependent voltage sources are also taken as variables. The idea underlying this formulation is to split the elements into two groups; the first one is formed by elements which have an admittance description and the other by those which do not. Taking into account the types of variables, the unknown vector and coefficient matrices are partitioned as follows. (2) Where, X1(s) represents the node voltage variables, X2(s) represents the current variables. X2(s) also expresses required additional variables in the formulation of MNA. Ga is conductance matrix. GAB and GBA (=GABT) are incidence matrices relating to the connection of elements, whose currents are introduced as variables, to the rest of circuit. GB contains the controlling constants of dependent sources. CA and LA are capacitance and inductances matrices, respectively. E(s) and J(s) are independent voltage and current sources. If there are n nodes and m current variables in a circuit, X1(s) vector contains n-1 nodal voltage variables except reference node (ground) and X2(s) vector contains m current variables. Thus, the unknown vector X(s) contains n-1+m variables as seen in Eq. (3). U, ' Ui " U2 A 1 ■ = X2(s) = AnaLyshs ^ X(s) = X,(s) X2(s) U„ (3) 3. Op-Amp Model Op amp circuits are fundamental building blocks in a wide range of signal processing applications, especially instrumentation, status monitoring, process control, filtering, digital to analog conversion and analog to digital conversion. Before obtaining the MNA model of Op amp, the fundamental properties of Op amp (Fig. 1) should be summarized. An ideal operational amplifier has the following characteristics: infinite gain for differential input signal, zero gain for common mode input signal, infinite input impedance, zero output impedance and infinite bandwidth. The transfer characteristic of Op amp is shown in Fig. 1. b. It explains the relationships between the input voltages (Up,Un) and I m the output voltage (Uo). In the linear region, the input-output relation is Uo = A(Up - Un) = AUd (a) (4) (b) Figure 1: (a) Op amp, (b) Op amp characteristics In analog integrated circuits, Op amps usually operate in the linear mode. The equivalent circuit model of Op amp operating in its linear range is shown in Fig. 2.a, where Ri is the input resistance, Ro the output resistance. It also contains the voltage controlled voltage source whose gain is A. The ideal Op amp has Ri=^, Ro=0, A= ^ (Fig. 2.b). In the ideal Op amp operating in the linear mode, Uo is limited, the potential difference between input terminals must be zero as A approaches infinity (A^ ^). Uo = A(Up -Un) = AUd ^ Ud = = Up -Un = 0 A U = U ^ p ^ n (5.a) (5.b) Since the input resistance of ideal Op amp is infinite, the input currents must be zero. T = 0, In = 0 (6) According to the Op amp constraints, given in Eq. (5) and Eq. (6), Op amp is a linear and time-invariant device. Because I =I =0 and U =U , the input terminals of p n p n' ' Op amp are simultaneously short circuit (Up=Un) and open circuit (Ip=In=0). It is an interesting property of the Op amp. 4. MNA model of Op amp (a) (b) Figure 2: (a) Equivalent circuit of Op Amp, (b) Ideal Op Amp model The ideal Op amp concept is a good approximation to analyze the Op amp circuits. Therefore, this concept will be used for developing the MNA model of Op amp. For MNA structure, first, the terminal equations of Op amp (Op amp constraints), given in Eq. (5) and Eq. (6), are expressed together as in Eq.(7). "t "0 0 0 0 0 0 1 -10 "Up Un 0 (7) As explained in Section 2, there are m current variables, X2(s), in the MNA system. Ip, In currents of Op amp are located in X2(s) vector. The short circuit property of input terminals of Op amp is included as an additional equation into the MNA system, as will be explained in the following. Let an active circuit contain n nodes, including three terminals (nodes) of Op amp. In the MNA system, there 1 r are n-1 nodal voltage variables, X^ls). In the ideal Op amp model (Fig. 2.b), the output voltage of Op amp is determined by other nodal voltages because of the dependent voltage source connected between the output terminal and ground. Therefore, it is not necessary to write a nodal equation at the output node of Op amp. If there is an Op amp in a circuit, we formulate nodal equations at other n-2 nonreference nodes. Since there are n-1 nodal voltages in the system, we seem to have more unknowns than equations. However, the short circuit property of input terminals of Op amp (Up-Un=0) supplies an additional equation into the system. If a circuit contains k Op amps, n-1-k nodal equations are formulated, except output terminals of Op amps, and k additional equations relating to the short circuit property of input terminals are included into the system equations. In Eq. (8), it is shown how to include the terminal equations of Op amp, input currents and short circuit property in Eq. (7), into the MNA system in Eq. (1). The constraints of Op amp are stored in matrices G and B. Eq.(8) gives the MNA model of Op amp. This model contains both the short circuit property (Up-Un=0) and the open circuit property (Ip=In=0) of input terminals of Op amp. GX(s) + sCX(s) = BU(s) " : " Up p Un 1 Ip P 1 In 1 -1 . U(s) (8) G X(s) B In the MNA model, given by Eq. (8), the current constraints of the ideal Op Amp concept, Ip=In=0, appear to be fairly useless because it draws no currents at its inputs. Therefore, these currents can be ignored when formulating the MNA system in order that the system matrix has min. dimensions, as done in Examples. It is sufficient to take into consideration the short circuit property of input terminals of Op amp. Consequently, the MNA model of Op amp can be also expressed as in Eq. (9). This model can be also included into the system equations by inspection. In the examples of Section 5, for the MNA model of Op amp, Eq. (9) is used in order that the system equations have min. variables. UP Un 1 - 1 . U(s) (9) X(s) 55. Application Examples In this section, the analysis of three active circuits containing Op amp are realized by the presented model. The first example is the differential amplifier circuit having two inputs. The second one is the high-pass Butterworth active filter circuit containing energy storage elements (capacitor). The band-pass Butterworth state-variable filter is used to demonstrate the use of Op amps in cascade connection in the last example. Example 1: Consider the differential amplifier circuit in Fig. 3. It has two input signals. The circuit has n-1=5 nonreference nodes, including input-output terminals of Op Amp. Thus, in the MNA system, X1 vector contains 5 nodal voltage variables. Normally, it requires to be obtained an equation for every node. But, it is not necessary to write a nodal equation for output node (node e) because of the features of ideal Op amp, as explained in Section 4. The voltage and current constraints of Op Amp are included into the system equations, as shown in the MNA model of Op Amp in Eq. (8) or Eq. (9). There is no need to put the input terminal currents of the Op amp into the MNA system according to Eq. (9). Therefore, the current variables in X2 vector are only source currents. They are relating to additional equations. Figure 3: Differential amplifier 0 B The nodal (main) equations of the differential amplifier: a ^ G,(Ua - Uc) + luu = 0 b ^ G2(Ub - Ud) + = 0 c ^ Gf(Uc - Ue) - G,(Ua - Uc) + In = 0 d ^ G3Ud -G2(Ub -Ud) + Ip = 0 Additional equations: uc - Ud = 0 ^ Op Amp constraint, Ip = 0, I„ = 0 Ua = U„ Ub = U,2 The overall equations constitute the MNA system (Eq. 10). They are represented in matrix form, as in Eq. (1) or Eq. (2). Since the circuit has no storage elements, Matrix C is not available. The MNA model of Op Amp, given by Eq. (9), can be also seen from system equations in Eq. (10). GX(s) = BU(s) ^ Ga : GAB GBA : GB X,(s)" X2(s) = BU(s) ■ G, 0 - G, 0 0 ; 1 0 ■ ■ U." ■ 0 0 0 G2 0 - G2 0 ; 0 1 Ub 0 0 - G, 0 G, + Gf 0 -G, M 0 0 Uc 0 0 0 - G2 0 G2 + G, 0 ; 0 0 Ud 0 0 0 0 1 -1 0 ; 0 0 U. 0 0 1 0 0 0 0 ; 0 0 Iu„ 1 0 _ 0 1 0 0 0 ; 0 0 _ _ 0 1 U„(s)" (10) The output voltage, Uo=Ue, is obtained by solving the system equations as follows; R U„(s) = -+ R3(Rf + Ri) Ri(R2 + R3) U,2(s) Example 2: Consider the high-pass Butterworth filter circuit in Fig. 4. It has two energy storage elements. The circuit has n-1=5 nonreference nodes, including input-output terminals of Op Amp. Therefore, X, vector contains 5 nodal voltage variables. It is not necessary to write a nodal equation for output node (node e) and to put the input terminal currents of the Op amp into the MNA system according to Eq. (9). The nodal (main) equations of high-pass Butterworth filter circuit: b ^ sC2(Ub -Uc)-sC,(Ua -Ub) + G,(Ub -Ue) = 0 c ^ G^Uc -sC2(Ub -Uc) + Ip = 0 d ^ GbUd - Ga(Ue - Ud) + In = 0 Additional equations : uc - Ud = 0 ^ Op Amp constraint, Ip = 0, I„ = 0 Ua = U, The overall equations constitute the MNA system (Eq.11). They are represented in matrix form, as in Eq.(1). Figure 4: High-pass Butterworth active filter circuit [G + sC]X(s) = BU(s) Additional J equations | ■ sC, -sC, 0 0 0 M 1 ■ "U. ■ " 0 ■ - sC, G, + sC, + sCj - sC2 0 - Gj M 0 Ub 0 0 - sC2 G2 + sC2 0 0 M 0 Uc 0 0 0 0 G. + Gb - G. M 0 Ud = 0 0 0 1 -1 0 M 0 Ue 0 1 0 0 0 0 M 0 IUi 1 Uj(s) (11) The output voltage, Uo=Ue, is obtained by solving the system equations as follows; Uo(s) = s2R,R2C,C2(R. + Rb) s2RjR2RbCjC2 + s(RjRbCj + RjRtCj -R.RaCa) + R -U,(s) Example 3: Consider the band-pass Butterworth statevariable filter circuit in Fig. 5. Here, the use of Op amps in cascade connection is shown. It will be seen how much the model simplify the solution of complex Op amp circuits by dint of its efficient formulation. The state-variable filter uses three Op amps, two integrators and one summing amplifier. The main advantageous of the state variable filter is that it has low-pass (LP), highpass (HP) and band-pass outputs (BP). In Fig. 5, these outputs are shown as ULp, UHP and UBp, respectively. a ^ sC,(Ua - Ub) + lu, = 0 Figure 5: Band-pass Butterworth state-variable filter circuit The circuit has n-1=8 nonreference nodes, including input-output terminals of Op Amps. Therefore, X1 vector contains 8 nodal voltage variables. It is not necessary to write nodal equations for output nodes (node d, f, h) and to put the input terminal currents of the Op amps into the MNA system according to Eq. (9). In the system equations and Fig. 5, these currents are not shown. The nodal (main) equations of the circuit: a ^ G(Ua - Ub) + lu, = 0 b ^ G(Ub -Ud)-G(Ua -Ub) + G(Ub -Uh) = 0 c ^ GUc + GQ(Uc -Uf) = 0 e ^ Gi(Ue - Ud) + sC(Ue - Uf) = 0 g ^ G,(Ug - Uf) + sC(Ug - Uh) = 0 Additional equations: Ub -Uc = 0 ,Ue = 0, Ug = 0 Ua = U, The overall equations constitute the MNA system (Eq.12). ■ G -G 0 0 0 0 0 0 ; 1 ■ ■u. ■ ■ 0 ■ - G 3G 0 -G 0 0 0 - G ; 0 Ub 0 0 0 G + GQ 0 0 - Gq 0 0 ; 0 U. 0 0 0 0 - G, G, + sC -sC 0 0 : 0 U, 0 0 0 0 0 0 - G, 1 G, + sC - sC M 0 ue 0 0 1 -1 0 0 0 0 0 M 0 u, 0 0 0 0 0 1 0 0 0 M 0 ug 0 0 0 0 0 0 0 1 0 M 0 uh 0 _ 1 0 0 0 0 0 0 0 M 0 _ -lu.. _ 1. U.(s) The filter outputs, ULP=U|, UHP=Ud, UBP=Ug are obtained by solving the system equations as below. ulp(s) = Uh(s) = 2 . 2 - (rq + R) s2Rj2C2 (rq + R) + 3sRRjC + RQ + R Uhp(S) = Ud(s) - s2Rj2C2(RQ + R) s2Rj2C2(RQ + R) + SsRRjC + RQ + R sR,C(Ro + R) ubp(s) = Uf (s) = 2 2 2-^-5- s2Rj2C2(RQ + R) + SsRRjC + RQ + R -U,(s) U,(s) U,(s) 6. Conclusion The main difficulty in obtaining the system equations of active circuits containing Op Amps in system analysis arises from Op Amp models used for the formulation. In this paper, an efficient and systematic approach for analysis of active circuits containing Op Amps has been presented. The modified nodal approach, very understandable analysis method, is used in obtaining the system equations. The fundamental characteristics of Op amp have been summarized and the MNA model of Op amp has been developed. As a result, a matrix-based framework for computer-aided analysis of active circuits has been formulated. The model is general, systematic and can be applied to all possible active circuit structures. Examples are included to show the efficiency of the analysis method and the MNA model of Op amp. Using the presented model, it can be easily obtained system equations of Op Amp circuits by inspection and also, can be written a computer program about analysis of active circuits. References 1. 2. 3. 4. 5. 6. 7. 8. 10. 11. 12. 13. 14. 1 5. M. M. Hassoun and P. M. Lin, "A formulation Method for Including Ideal Operational Amplifiers in Modifed Nodal Analysis', Proceedings of the 40th Midwest Symposium on Circuits and Systems, 1997. G. Wilson, "A systematic Procedure for the Analysis of Circuits Containing Operational Amplifiers', IEEE Trans. on Education, Vol. E-26, No. 3, 1983. J. G. Gottling, "Node and Mesh Analysis by Inspection", IEEE Trans. on Education, Vol. 38, No. 4, 1995. J. Vlach and K. Singhal, Computers Methods for Circuit Analysis and Design, Van Nostrand, 1983. R. E. Thomas and A. J. Rosa, The Analysis and Design of Linear Circuits, 5th Ed., John Wiley & Sons, 2006. J. W. Nilsson and S. A. Riedel, Electric Circuits, Prentice Hall, 2005. A. B. Yildiz, Electric Circuits, Theory and Outline Problems, Part II, Kocaeli University Press, 2006. G. E. Chatzarakis and M. D. Tortoreli, "Node voltage method using 'virtual current sources' technique for special cases", Int. Journal of Electrical Engineering Education, Vol. 41, Issue 3, 2004. C. W. Ho, et al., "The Modified Nodal Approach to Network Analysis", IEEE Trans. on Circuits and Systems, Vol. Cas-22, No. 6, 1975. D. G. Haigh, "Systematic synthesis of operational amplifier circuits by admittance matrix expansion", Proceedings of the European Conference on Circuit Theory and Design, 2005. G. Giusi, et al., "Full Model and Characterization of Noise in Operational Amplifier", IEEE Trans. on Circuits and Systems I, Vol. 56, 2009. Q. F. W. Huabiao, "Modeling of Operational Amplifier based on VHDL-AMS", Proceedings of the 13th IEEE International Conference on Electronics, Circuits and Systems (ICECS '06), 2006. E. Kelebekler, A.B. Yildiz, "Analysis of Passive and Active Filters Using Modified Nodal Approach", Compatibility in Power Electronics (CPE '07), 2007. H. Gaunholt, '"The Design of a 4th Order Bandpass Butterworth Filter with One Operational Amplifier"", Proceedings of the International Conference on Signals and Electronic Systems, (ICSES'08), 2008. D. Kubanek and K. Vrba, "Second-Order StateVariable Filter with Current Operational Amplifiers", Proceedings of 3rd International Conference on Systems (ICONS 08), 2008. B. Lipka and U. Kleine, "Design of a Cascoded Operational Amplifier with High Gain", Proceedings of the 14th International Conference on Mixed Design of Integrated Circuits and Systems (MIXDES '07), 2007. 17. E. M. Savchenko, A. S. Budyakov, N. N. Prokopenko, "Generalized current feedback operational amplifier"", Proceedings of 4th European Conference on Circuits and Systems for Communications (EC-CSC). 2008. 18. S. A. Zabihian and R. Lotfi, "A Sub-1-V High Gain Single Stage Operational Amplifier", IEICE Electronics Express, Vol. 5, No.7, 2008. Arrived: 20. 01. 2013 Accepted: 28. 01. 2013