SIMPLE BUCK-BOOST CONVERTER .opt acct nomod nopage reltol=.002 itl5=0 itl4=100 abstol=1e-9 .opt vntol=1e-4 gmin=1e-9 numdgt=8 .width out=132 .temp 30 .tran 1us 50000us 0us 1us uic .lib eval.lib vg 103 101 pulse(0 15 0 0 0 116.05us 333.333us) rg 103 104 10 vcc 10 11 sin(0 170 60 0) db1 10 100 dio db2 11 100 dio db3 0 10 dio db4 0 11 dio lt 101 0 10000uH ic=0A .model dio D(Is=0.1p Rs=0.01) dout 3 101 dio cout 3 0 400uf ic=-170V rload 3 0 1000 m1 100 104 101 101 irf150 .print tran v(3) i(lt) id(m1) v(100) i(dout) v(10,11) .probe .end