Problem 6.2 - Ideal Op Amp and the Noninverting Amplifier Circuit
*
* The circuit for this problem is from textbook Section 6.4 and
* Example 6.3.
*
* Determine the circuit overall voltage gain as a function of the open
* loop gain of the op amp. Compare the results for the practical or
* realistic values of op-amp gain used in this problem with the ideal
* op-amp circuit voltage gain Av = (1 + R2/R1).
*
* Construct a table showing error in percent of ideal gain for each
* value of the open loop gain A.
*
* The end-to-end programs below will produce all of the desired results
* in one program run if the requested data is entered correctly. There
* will be a separate output for each segment of the program, however,
* so that the compilation of the required data table must be done by
* hand calculation.
*
.OPT NOPAGE NUMDGT=5
VS 1 0 DC 1 ; Use VS=1 so that the output voltage is
; numerically equal to the voltage gain Av.
EAMP 3 0 ??? ??? ??? ; Enter the control voltage nodes and the
; gain for the VCVS representing the op-amp
; open loop gain.
RIN ??? ??? 1E15 ; Enter the + and - nodes for the added
; resistance. Does it make a difference
; whether RIN is connected in parallel with
; VIN or connected to nodes 1 and 2?
; A "PSpice experiment" to check on your
; answer would be an interesting project.
R1 2 0 1K
R2 2 3 9K
RL 3 0 4.7K
.DC VS 1 1 1
.PRINT DC V(1) V(3)
.END
Prob 6.2, Part 2. Ideal Op Amp and the Noninverting Amplifier Circuit, A=1E5
*
* Repeat Part 1 except with open loop gain A=1E5.
*
.OPT NOPAGE NUMDGT=5
VS 1 0 DC 1 ; Use VS=1 so that the output voltage is
; numerically equal to the voltage gain Av.
EAMP 3 0 ??? ??? ??? ; Enter the control voltage nodes and the
; gain for the VCVS representing the op-amp
; open loop gain.
RIN ??? ??? ??? ; Enter the nodes for the added resistance.
R1 2 0 1K
R2 2 3 9K
RL 3 0 4.7K
.DC VS 1 1 1
.PRINT DC V(1) V(3)
.END
Prob 6.2, Part 3. Ideal Op Amp and the Noninverting Amplifier Circuit, A=50k
*
* Repeat Part 1 except with open loop gain A=50k.
*
.OPT NOPAGE NUMDGT=5
VS 1 0 DC 1 ; Use VS=1 so that the output voltage is
; numerically equal to the voltage gain Av.
EAMP 3 0 ??? ??? ??? ; Enter the control voltage nodes and the
; gain for the VCVS representing the op-amp
; open loop gain.
RIN ??? ??? 1E15 ; Enter the nodes for the added resistance.
R1 2 0 1K
R2 2 3 9K
RL 3 0 4.7K
.DC VS 1 1 1
.PRINT DC V(1) V(3)
.END
Prob 6.2, Part 4. Ideal Op Amp and the Noninverting Amplifier Circuit, A=10k
*
* Repeat Part 1 except with open loop gain A=10k.
*
.OPT NOPAGE NUMDGT=5
VS 1 0 DC 1 ; Use VS=1 so that the output voltage is
; numerically equal to the voltage gain Av.
EAMP 3 0 ??? ??? ??? ; Enter the control voltage nodes and the
; gain for the VCVS representing the op-amp
; open loop gain.
RIN ??? ??? 1E15 ; Enter the nodes for the added resistance.
R1 2 0 1K
R2 2 3 9K
RL 3 0 4.7K
.DC VS 1 1 1
.PRINT DC V(1) V(3)
.END
Prob 6.2, Part 5. Ideal Op Amp and the Noninverting Amplifier Circuit, A=5k
*
* Repeat Part 1 except with open loop gain A=5k.
*
.OPT NOPAGE NUMDGT=5
VS 1 0 DC 1 ; Use VS=1 so that the output voltage is
; numerically equal to the voltage gain Av.
EAMP 3 0 ??? ??? ??? ; Enter the control voltage nodes and the
; gain for the VCVS representing the op-amp
; open loop gain.
RIN ??? ??? 1E15 ; Enter the nodes for the added resistance.
R1 2 0 1K
R2 2 3 9K
RL 3 0 4.7K
.DC VS 1 1 1
.PRINT DC V(1) V(3)
.END