Lab 02
AC Circuit Analysis
*this is my AC circuit
R1 1 2 1k
V0 1 0 AC 1
*element Node+ Node- AC Amplitude sin(off-set, amplitude, frequence)
C1 2 0 1u
* --------(R1)-----
* |
|
* |
|
*(V0)
(C1)
* |
|
* |
|
* -----------------0 (Ground)
.AC LIN 20 1 60000Hz
*AC Linear #-of-points Start Stop
.PLOT AC V(2, 0)
.END
DC Circuit Analysis
*this is my DC circuit
* Circuit Diagram
* --------(R1)-----
* |
|
* |
|
*(V0)
(R2)
* |
|
* |
|
* -----------------0 (Ground)
R1 1 2 1k
V0 1 0 5
R2 2 0 1k
.DC V0 0 5 1.0
*DC element start stop step
.PLOT DC V(1,0)
.END
TRAN Circuit Analysis
*this is my AC circuit
R1 1 2 1k
V0 1 0 AC 1 sin(0 1 10MEG)
*element Node+ Node- AC Amplitude sin(off-set amplitude frequence)
C1 2 0 1u
* Circuit Diagram
* --------(R1)-----
* |
|
* |
|
*(V0)
(C1)
* |
|
* |
|
* -----------------0 (Ground)
.TRAN 1n 100n
*TRAN time-step Stop-time (start-time), in this case, 1 nano-second step add up
to 10 micro second
.PLOT TRAN V(2, 0)
.END
|