1 'switch capacitor filter. Use tr 0 50u .1u. Gen freq 100k
2 .options method traponly
3 Vin 1 0 generator( 1. )
5 Y1 2 3 pulse iv=20u pv=0 width=500n period=1u
6 Y2 3 0 pulse iv=0 pv=20u width=500n period=1u
9 .print tran v(nodes) control(0)
10 .tran 0 50u .1u trace all