Skip to content

Instantly share code, notes, and snippets.

@hemmer
Created August 10, 2023 12:04
Show Gist options
  • Save hemmer/cc708518fb8307bcc68eba65184a854b to your computer and use it in GitHub Desktop.
Save hemmer/cc708518fb8307bcc68eba65184a854b to your computer and use it in GitHub Desktop.
# input and DC coupling
V0 1 0 Vin
Pgain 0 2 1 100000
Cdc 2 3 1e-6
R100k 3 4 100000
R1k 4 0 1000
Oamp 4 5 5 # buffer
R33k 5 6 33000
R33k 6 7 33000
R2k 7 8 2000
Oamp 0 6 8
R33k 9 6 33000
R33k 9 10 33000
R33k 10 0 33000
Oamp 10 11 12
R33k 5 11 33000
R33k 11 12 33000
# 7 top of ladder, 12 bottom
# cutoff and cv section
Vneg1 13 0 -12.0
R100k 13 9 100000
R27k 9 0 27000
Dcv 14 9
Oamp 0 15 14
R14k 14 15 14000
Vpos 16 0 +12.0
Vneg 18 0 -12.0
Poffset 17 19 16 100000
R27k 17 18 27000
R100k 15 19 100000
# cv inputs
Vcv1 20 0 Vin_cv1
Pcv1 0 21 20 100000
R68k 21 15 68000
Vcv2 22 0 Vin_cv2
Pcv2 0 23 22 100000
R68k 23 15 68000
# 7 top of ladder, 12 bottom
D1 7 24
C1 24 32 1e-9 m=0.5
D2 24 25
C2 25 0 1e-9 m=0.5
D3 25 26
C3 26 0 1e-9 m=0.5
D4 26 27
C4 27 0 1e-9 m=0.5
D5 27 28
C5 28 32 1e-9 m=0.5
D6 28 12
# resonance / output
Oamp 26 29 29
Pr 0 30 29 100000
Oamp 30 31 32
R100k 31 32 100000
Dp1 31 32
Dp2 32 31
Rtrim 31 0 20000 # effectively trimmer
# output gain stage and ac coupling
R1k 29 33 1000
Oamp 0 33 34
R33k 33 34 33000
Cac 34 35 1e-6
R100k 35 0 100000
Oamp 35 36 36
J 36 0
Jpos 7 0
Jneg 12 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment