Hello
This chapter >> http://www.allaboutcircuits.com/vol_1/chpt_16/2.html
on Capacitor Transient Response has a spice program at the end as follows :
capacitor charging
v1 1 0 dc 15
r1 1 2 10k
c1 2 0 100u ic=0
.tran .5 10 uic
.plot tran v(2,0) v(1,2)
.end
When I run the program in spice i get the correct plot.
I want to see the current also.
so I added
.plot tran v(2,0) v(1,2) i(v1)
but the current graph is flat i.e. near zero values right from the beginning.
Current is supposed to start from v/r and then slowly become zero. But I cant see that in the plot.
Is my program wrong ?
Please help
This chapter >> http://www.allaboutcircuits.com/vol_1/chpt_16/2.html
on Capacitor Transient Response has a spice program at the end as follows :
capacitor charging
v1 1 0 dc 15
r1 1 2 10k
c1 2 0 100u ic=0
.tran .5 10 uic
.plot tran v(2,0) v(1,2)
.end
When I run the program in spice i get the correct plot.
I want to see the current also.
so I added
.plot tran v(2,0) v(1,2) i(v1)
but the current graph is flat i.e. near zero values right from the beginning.
Current is supposed to start from v/r and then slowly become zero. But I cant see that in the plot.
Is my program wrong ?
Please help