shijusisobhan
Newbie level 1
I am trying to simulate a diode using a square wave. code is given below
*diode test
v1 1 0 pulse(0 5 1n 1n 1n 4m 10m)
D1 1 2 D1
.model D1 D()
R1 2 0 1k
.tran 1m 5m
.plot tran v(3)
.end
But when the diode at forward bias, output voltage changes many times. Then I simulate diode with sinusoidal signal, it works properly. Why did this happened and how can I eliminate this?
*diode test
v1 1 0 pulse(0 5 1n 1n 1n 4m 10m)
D1 1 2 D1
.model D1 D()
R1 2 0 1k
.tran 1m 5m
.plot tran v(3)
.end
But when the diode at forward bias, output voltage changes many times. Then I simulate diode with sinusoidal signal, it works properly. Why did this happened and how can I eliminate this?