** * Half wave rectifier example * * Input listing Temperature = 27.000 Deg C ** * * Specify circuit * RL 2 0 5K * C1 2 0 10u * D1 1 2 M1 * * Instead of modeling a transformer, we just use an ac source of the * desired magnitude, VM * * 2 Volt 60 Hz Sine Wave input voltage * Vin 1 0 sin(0 2 60) * * Specify the diode model parameters * .Model M1 D(N=1 IS=1.0E-14 CJO=2PF M=0.5 VJ=0.7 BV=40.0) * * Specify a transient analysis beginning at 16.67 millisec * (to allow steady-state conditions to develop) and continuing * to 66.68 ms in 0.41675ms increments * .Tran 0.41675ms 66.68ms 16.67ms * * Specify output * .width out=80 .print tran V(2) V(1) .plot tran V(2) V(1) * .END