6.Simulate the transient response of OPAMP INTEGRATOR with linear AC model of OPAMP.
PSPICE CODING:
*opamp integrator
VIN 1 0 PWL(0 0 1NS -1V 1MS -1V 1.0001MS 1V 2MS 1V 2.0001MS -1V 3MS -1V 3.0001MS 1V 4MS 1V)
R1 1 2 2.5K
RF 2 4 1MEG
RX 3 0 2.5K
RL 4 0 100K
C1 2 4 0.1UF
XA1 2 3 4 0 OPAMP
.SUBCKT OPAMP 1 2 7 4
RI 1 2 2.0E6
GB 4 3 1 2 0.1M
R1 3 4 10K
C1 3 4 1.5619UF
EA 4 5 3 4 2E+5
RO 5 7 75
.ENDS
.TRAN 50US 4mS
.OP
.PROBE
.END
GRAPHICAL ANALYZER:
7. SIMULATE the OPAMP DIFFERENTIATOR circuit for transient response.
PSPICE CODING: *opamp differentiator
VIN 1 0 PWL (0 0 1MS 1 2MS 0 3MS 1 4MS 0)
R1 1 2 100
RF 3 4 10K
RX 5 0 10K
RL 4 0 100K
C1 2 3 0.4UF
XA1 3 5 4 0 OPAMP
.SUBCKT OPAMP 1 2 7 4
RI 1 2 2.0E6
GB 4 3 1 2 0.1M
R1 3 4 10K
C1 3 4 1.5619UF
EA 4 5 3 4 2E+5
RO 5 7 75
.ENDS OPAMP
.TRAN 10US 4MS
.OP
.PROBE
.END
GRAPHICAL ANALYZER: