Buck-boost converter, averaged circuit * example of Section B.1.4 .lib switch.lib Vg 1 0 15V Xswitch 1 2 2 3 5 CCM2 +PARAMS: Ron=0.05 VD=0.8 RD=0 RL 2 4 0.1 L1 4 0 15uH ic=0 C1 3 0 50uF ic=0 R 3 0 20 Vc 5 0 0.8 .tran 10u 1.2m 0m 10u uic .probe .end