* SPICE netlist
Q1 N005 N005 N003 0 BC557B
Q2 Vlc N005 N004 0 BC557B
Q3 N005 Vref N008 0 BC547B
Q4 Vlc Vf N008 0 BC547B
Q9 N002 N001 Vreg 0 TIP42C
Q8 N001 Vlc N002 0 BC547B
R2 N006 Vf 390
R3 Vf N013 1K
RL Vo 0 {RL}
V1 Vref N017 {VREFDC} AC {VREFAC}
Vreg1 Vreg 0 {VINDC} AC {VINAC}
RE1 Vreg N003 470
RE2 Vreg N004 470
CL Vo 0 {CL}
Rs Vo N002 0.1
R14 Sum N022 100k
R15 N022 N021 1k
R25 N023 0 100
Q7 Vlc N021 N023 0 BC547B
R22 N019 0 1.5k
R18 Sum N020 1.5k
R21 N024 Vf 6.8k
R20 N025 N029 6.8k
R19 Sum N026 1.5k
R4 N013 N016 680
M1 N013 SELA 0 0 2N7002
VSELA1 SELA 0 {SELA}
Q6 N008 N009 0 0 BC547B
Q5 N009 N009 0 0 BC547B
R6 Vreg N009 3.3k
R1 N002 N006 2.7k
XU2A N012 N011 +VPOSA -VPOSA N015 LM324 ;pnba In+)In-)V+)V-)OUT
XU2B 0 Sum +VPOSA -VPOSA N022 LM324 ;pnba In+)In-)V+)V-)OUT
XU1A N019 N020 +VPOSA -VPOSA N020 LM324 ;pnba In+)In-)V+)V-)OUT
VPOSA1 +VPOSA 0 5
R23 N018 Vref 5.6k
R10 N012 0 10k
R26 N002 N011 1k
R27 Vo N012 1k
R5 N016 0 270
XU1B N025 N026 +VPOSA -VPOSA N026 LM324 ;pnba In+)In-)V+)V-)OUT
R7 N019 N018 2.7k
VPulso N017 0 PULSE(-10m 10m 0 1f 1f 1m 2m)
R16 N015 Sum 1.5k
VPOSA2 -VPOSA 0 -5
R9 N011 N015 10k
R8 N029 0 510
R11 N025 N024 1.2k
Cp N027 N028 1Meg
Vp N028 0 AC 1
Lp N027 0 1Meg
C4 N002 Vf 100p
C1 Vf N007 2.2n
R12 N007 Vlc 220
L1 0 N010 1Meg
C2 N010 N014 1Meg
V2 N014 0 AC 1
C5 0 +VPOSA {Cdes}
C6 0 -VPOSA {Cdes}
C7 0 Vreg {Cdes}
C8 0 Vref {Cdes}
C9 0 SELA {Cdes}
.op
.param VINDC 6.35
.param VINAC 1
.param VREFDC=1.2
.param VREFAC 0
.step param RL 1u 12 0.2
.inc LM324.lib
.param SELA=0
.param CL 2.2u
.param Cdes 10u

* LTspice schematic (.asc)
Version 4
SHEET 1 4784 2048
WIRE -680 -1024 -776 -1024
WIRE -184 -1024 -680 -1024
WIRE 40 -1024 -184 -1024
WIRE 952 -1024 40 -1024
WIRE -184 -960 -184 -1024
WIRE 40 -960 40 -1024
WIRE 952 -928 952 -1024
WIRE 888 -880 792 -880
WIRE 728 -832 504 -832
WIRE -680 -816 -680 -1024
WIRE 952 -784 952 -832
WIRE 952 -784 792 -784
WIRE -184 -752 -184 -880
WIRE 40 -752 40 -880
WIRE 952 -736 952 -784
WIRE 952 -736 840 -736
WIRE 1816 -736 952 -736
WIRE 1848 -736 1816 -736
WIRE 1960 -736 1928 -736
WIRE 2200 -736 1960 -736
WIRE 2312 -736 2200 -736
WIRE 2392 -736 2312 -736
WIRE -72 -704 -120 -704
WIRE -24 -704 -72 -704
WIRE 952 -688 952 -736
WIRE 2200 -672 2200 -736
WIRE 2312 -672 2312 -736
WIRE -184 -624 -184 -656
WIRE -72 -624 -72 -704
WIRE -72 -624 -184 -624
WIRE 840 -624 840 -736
WIRE 40 -608 40 -656
WIRE 104 -608 40 -608
WIRE 504 -608 504 -832
WIRE 504 -608 104 -608
WIRE 584 -608 504 -608
WIRE 952 -576 952 -608
WIRE 104 -528 104 -608
WIRE 136 -528 104 -528
WIRE 264 -528 216 -528
WIRE 360 -528 328 -528
WIRE -184 -512 -184 -624
WIRE 40 -512 40 -608
WIRE 2200 -512 2200 -592
WIRE 2312 -512 2312 -608
WIRE 1816 -480 1816 -736
WIRE 1960 -480 1960 -736
WIRE -248 -464 -360 -464
WIRE 360 -464 360 -528
WIRE 360 -464 104 -464
WIRE 728 -464 360 -464
WIRE 840 -464 840 -560
WIRE 840 -464 728 -464
WIRE 952 -464 952 -496
WIRE 952 -464 840 -464
WIRE 728 -400 728 -464
WIRE -2344 -352 -2392 -352
WIRE -2216 -352 -2280 -352
WIRE -2152 -352 -2216 -352
WIRE -1720 -352 -1768 -352
WIRE -1592 -352 -1656 -352
WIRE -1528 -352 -1592 -352
WIRE -1336 -352 -1384 -352
WIRE -1208 -352 -1272 -352
WIRE -1144 -352 -1208 -352
WIRE -184 -336 -184 -416
WIRE -72 -336 -184 -336
WIRE 40 -336 40 -416
WIRE 40 -336 -72 -336
WIRE 952 -320 952 -464
WIRE -680 -288 -680 -736
WIRE -536 -288 -680 -288
WIRE 472 -288 424 -288
WIRE 1816 -288 1816 -400
WIRE 1816 -288 1672 -288
WIRE 1880 -288 1816 -288
WIRE -2216 -272 -2216 -352
WIRE -1592 -272 -1592 -352
WIRE -1208 -272 -1208 -352
WIRE 424 -256 424 -288
WIRE 1960 -256 1960 -400
WIRE 1960 -256 1912 -256
WIRE 2104 -256 1960 -256
WIRE -680 -240 -680 -288
WIRE -72 -240 -72 -336
WIRE 1672 -224 1672 -288
WIRE 1880 -208 1880 -288
WIRE 1912 -208 1912 -256
WIRE 2104 -208 2104 -256
WIRE -536 -192 -536 -288
WIRE -536 -192 -616 -192
WIRE -136 -192 -536 -192
WIRE 952 -192 952 -240
WIRE 1224 -192 952 -192
WIRE 1864 -176 1848 -176
WIRE 1976 -176 1928 -176
WIRE 424 -160 424 -192
WIRE 952 -144 952 -192
WIRE -2392 -112 -2392 -352
WIRE -2216 -112 -2216 -192
WIRE -1768 -112 -1768 -352
WIRE -1592 -112 -1592 -192
WIRE -1384 -112 -1384 -352
WIRE -1208 -112 -1208 -192
WIRE 1224 -96 1224 -192
WIRE -680 -64 -680 -144
WIRE -72 -64 -72 -144
WIRE -72 -64 -680 -64
WIRE 1672 -64 1672 -144
WIRE 1896 -64 1896 -144
WIRE 1896 -64 1672 -64
WIRE 2104 -64 2104 -128
WIRE 424 -48 424 -80
WIRE 952 -32 952 -64
WIRE -2344 -16 -2392 -16
WIRE -2216 -16 -2280 -16
WIRE -2152 -16 -2216 -16
WIRE -1800 -16 -1848 -16
WIRE -1672 -16 -1736 -16
WIRE -1608 -16 -1672 -16
WIRE -72 -16 -72 -64
WIRE 1368 -16 1272 -16
WIRE 1896 -16 1896 -64
WIRE -2216 48 -2216 -16
WIRE -1672 64 -1672 -16
WIRE 952 96 952 48
WIRE 1224 96 1224 0
WIRE 1896 192 1896 64
WIRE -2392 224 -2392 -16
WIRE -2216 224 -2216 128
WIRE -1848 224 -1848 -16
WIRE -1672 272 -1672 144
WIRE -40 368 -40 336
WIRE -456 384 -504 384
WIRE -328 384 -376 384
WIRE -200 384 -248 384
WIRE -72 384 -200 384
WIRE 56 400 -8 400
WIRE 136 400 56 400
WIRE 312 400 216 400
WIRE 376 400 312 400
WIRE -72 416 -104 416
WIRE -1672 432 -1672 352
WIRE -40 448 -40 432
WIRE -200 464 -200 384
WIRE 856 480 856 368
WIRE 1800 496 1800 464
WIRE 1928 512 1832 512
WIRE 968 528 920 528
WIRE 1640 528 1048 528
WIRE 1768 528 1640 528
WIRE 1880 544 1832 544
WIRE -104 560 -104 416
WIRE 56 560 56 400
WIRE 56 560 -104 560
WIRE 1928 560 1928 512
WIRE 1800 592 1800 560
WIRE -200 608 -200 544
WIRE 856 624 856 576
WIRE 1640 704 1640 528
WIRE 1704 704 1640 704
WIRE 1880 704 1880 544
WIRE 1880 704 1784 704
WIRE -40 720 -40 688
WIRE -456 736 -504 736
WIRE -328 736 -376 736
WIRE -200 736 -248 736
WIRE -72 736 -200 736
WIRE 56 752 -8 752
WIRE 136 752 56 752
WIRE 312 752 312 400
WIRE 312 752 216 752
WIRE 856 752 856 704
WIRE 1272 752 1192 752
WIRE 1384 752 1352 752
WIRE -72 768 -104 768
WIRE -200 784 -200 736
WIRE 1192 784 1192 752
WIRE -104 896 -104 768
WIRE 56 896 56 752
WIRE 56 896 -104 896
WIRE 1192 896 1192 848
WIRE -200 912 -200 864
WIRE -200 1024 -200 992
WIRE 1192 1024 1192 976
FLAG 728 -400 Vf
FLAG 856 752 0
FLAG -200 608 0
FLAG -200 1024 0
FLAG 2200 -512 0
FLAG 2312 -512 0
FLAG -40 448 +VPOSA
FLAG 1848 -176 +VPOSA
FLAG 1800 592 +VPOSA
FLAG -40 784 +VPOSA
FLAG -2216 224 0
FLAG 1224 96 0
FLAG 952 96 0
FLAG -2216 -112 0
FLAG -72 -16 0
FLAG -1592 -112 0
FLAG -1528 -352 +VPOSA
FLAG -360 -464 Vref
FLAG -504 736 Vf
FLAG -504 384 Vref
FLAG 1880 704 Sum
FLAG 856 368 Vlc
FLAG 584 -608 Vlc
FLAG 376 400 Sum
FLAG -776 -1024 Vreg
FLAG -2152 -16 Vreg
FLAG 1368 -16 SELA
FLAG -2152 -352 SELA
FLAG 2392 -736 Vo
FLAG 1896 192 Sum
FLAG -1208 -112 0
FLAG -1144 -352 -VPOSA
FLAG 2104 -64 0
FLAG 1976 -176 -VPOSA
FLAG -40 336 -VPOSA
FLAG -40 688 -VPOSA
FLAG 1800 464 -VPOSA
FLAG 1928 560 0
FLAG 1192 1024 0
FLAG -1608 -16 Vref
FLAG -1672 432 0
FLAG 424 -48 0
FLAG -1768 -112 0
FLAG -1384 -112 0
FLAG -2392 224 0
FLAG -1848 224 0
FLAG -2392 -112 0
FLAG 552 -288 0
FLAG 1384 752 0
SYMBOL pnp -120 -656 R180
SYMATTR InstName Q1
SYMATTR Value BC557B
SYMBOL pnp -24 -656 M180
SYMATTR InstName Q2
SYMATTR Value BC557B
SYMBOL npn -248 -512 R0
SYMATTR Value BC547B
SYMATTR InstName Q3
SYMBOL npn 104 -512 M0
SYMATTR Value BC547B
SYMATTR InstName Q4
SYMBOL pnp 888 -832 M180
SYMATTR InstName Q9
SYMATTR Value TIP42C
SYMBOL npn 728 -880 R0
SYMATTR InstName Q8
SYMATTR Value BC547B
SYMBOL res 936 -592 R0
SYMATTR InstName R2
SYMATTR Value 390
SYMBOL res 936 -336 R0
SYMATTR InstName R3
SYMATTR Value 1K
SYMBOL res 2184 -688 R0
SYMATTR Value {RL}
SYMATTR InstName RL
SYMBOL voltage -1672 48 R0
SYMATTR Value2 AC {VREFAC}
SYMATTR InstName V1
SYMATTR Value {VREFDC}
SYMBOL voltage -2216 32 R0
SYMATTR Value2 AC {VINAC}
SYMATTR InstName Vreg1
SYMATTR Value {VINDC}
SYMBOL res -200 -976 R0
SYMATTR InstName RE1
SYMATTR Value 470
SYMBOL res 24 -976 R0
SYMATTR InstName RE2
SYMATTR Value 470
SYMBOL cap 2296 -672 R0
SYMATTR InstName CL
SYMATTR Value {CL}
SYMBOL res 1944 -752 R90
SYMATTR InstName Rs
SYMATTR Value 0.1
SYMBOL res 1800 688 R90
SYMATTR InstName R14
SYMATTR Value 100k
SYMBOL res 1064 512 R90
SYMATTR InstName R15
SYMATTR Value 1k
SYMBOL res 840 608 R0
SYMATTR InstName R25
SYMATTR Value 100
SYMBOL npn 920 480 M0
SYMATTR InstName Q7
SYMATTR Value BC547B
SYMBOL res -216 448 R0
SYMATTR InstName R22
SYMATTR Value 1.5k
SYMBOL res 232 384 R90
SYMATTR InstName R18
SYMATTR Value 1.5k
SYMBOL res -360 720 R90
SYMATTR InstName R21
SYMATTR Value 6.8k
SYMBOL res -216 768 R0
SYMATTR InstName R20
SYMATTR Value 6.8k
SYMBOL res 232 736 R90
SYMATTR InstName R19
SYMATTR Value 1.5k
SYMBOL res 936 -160 R0
SYMATTR InstName R4
SYMATTR Value 680
SYMBOL nmos 1272 -96 M0
SYMATTR InstName M1
SYMATTR Value 2N7002
SYMBOL voltage -2216 -288 R0
SYMATTR Value {SELA}
SYMATTR InstName SELA1
SYMBOL npn -136 -240 R0
SYMATTR InstName Q6
SYMATTR Value BC547B
SYMBOL npn -616 -240 M0
SYMATTR InstName Q5
SYMATTR Value BC547B
SYMBOL res -696 -832 R0
SYMATTR InstName R6
SYMATTR Value 3.3k
SYMBOL res 936 -704 R0
SYMATTR InstName R1
SYMATTR Value 2.7k
SYMBOL OpAmps\\opamp2 1832 -176 M90
SYMATTR InstName U2A
SYMATTR Value LM324
SYMBOL OpAmps\\opamp2 1800 592 R180
SYMATTR Value LM324
SYMATTR InstName U2B
SYMBOL OpAmps\\opamp2 -40 464 M180
SYMATTR InstName U1A
SYMATTR Value LM324
SYMBOL voltage -1592 -288 R0
SYMATTR InstName VPOSA1
SYMATTR Value 5
SYMBOL res -360 368 R90
SYMATTR InstName R23
SYMATTR Value 5.6k
SYMBOL res 2088 -224 R0
SYMATTR InstName R10
SYMATTR Value 10k
SYMBOL res 1800 -496 R0
SYMATTR InstName R26
SYMATTR Value 1k
SYMBOL res 1944 -496 R0
SYMATTR InstName R27
SYMATTR Value 1k
SYMBOL res 936 -48 R0
SYMATTR InstName R5
SYMATTR Value 270
SYMBOL OpAmps\\opamp2 -40 816 M180
SYMATTR InstName U1B
SYMATTR Value LM324
SYMBOL res -232 368 R90
SYMATTR InstName R7
SYMATTR Value 2.7k
SYMBOL voltage -1672 256 R0
SYMATTR InstName Pulso
SYMATTR Value PULSE(-10m 10m 0 1f 1f 1m 2m)
SYMBOL res 1880 -32 R0
SYMATTR InstName R16
SYMATTR Value 1.5k
SYMBOL voltage -1208 -288 R0
SYMATTR InstName VPOSA2
SYMATTR Value -5
SYMBOL res 1656 -240 R0
SYMATTR InstName R9
SYMATTR Value 10k
SYMBOL res -216 896 R0
SYMATTR InstName R8
SYMATTR Value 510
SYMBOL res -232 720 R90
SYMATTR InstName R11
SYMATTR Value 1.2k
SYMBOL cap 1208 784 M0
SYMATTR InstName Cp
SYMATTR Value 1Meg
SYMBOL voltage 1192 880 M0
SYMATTR Value2 AC 1
SYMATTR Value ""
SYMATTR InstName Vp
SYMBOL ind 1256 736 M90
SYMATTR InstName Lp
SYMATTR Value 1Meg
SYMBOL cap 824 -624 R0
SYMATTR InstName C4
SYMATTR Value 100p
SYMBOL cap 328 -544 R90
SYMATTR InstName C1
SYMATTR Value 2.2n
SYMBOL res 232 -544 R90
SYMATTR InstName R12
SYMATTR Value 220
SYMBOL ind 568 -304 R90
SYMATTR InstName L1
SYMATTR Value 1Meg
SYMBOL cap 408 -256 R0
SYMATTR InstName C2
SYMATTR Value 1Meg
SYMBOL voltage 424 -176 R0
SYMATTR Value ""
SYMATTR Value2 AC 1
SYMATTR InstName V2
SYMBOL cap -1720 -336 R270
SYMATTR InstName C5
SYMATTR Value {Cdes}
SYMBOL cap -1336 -336 R270
SYMATTR InstName C6
SYMATTR Value {Cdes}
SYMBOL cap -2344 0 R270
SYMATTR InstName C7
SYMATTR Value {Cdes}
SYMBOL cap -1800 0 R270
SYMATTR InstName C8
SYMATTR Value {Cdes}
SYMBOL cap -2344 -336 R270
SYMATTR InstName C9
SYMATTR Value {Cdes}