* Z:\home\khalils\Downloads\files\data\raw_asc\1e1ec27b3911_Amplifier_THD_20.asc
* Generated by LTspice 26.0.1 for Windows.
* 2 mA
* 1 mA
* 10 mA
* re ~ 2.6 ohms
* + 35V
* - 35V
* 1 mA
* 110 mA
* 20 kHz, 25 watts
* 0.50%
* add SPICE directive for maxstep
* use plotwinsize directive to turn off all compression
* add the .four directive for THD readout
* set input for 20 kHz sinewave, 1.0 V peak
* run the transient simulation for 8ms
* view the lower information window to see simulation progress
* click on the Vout node and see the sinewave trace
* left click and right click in the plot window
* select FFT from the pop-up window
* V(Vout will already be highlighted for analysis
* select Specify a Time Range
* end time should be listed as 400us
* enter 200us for the start time
* hit OK and see the FFT spectrum presented in a new window
* mouse over the peaks of the spectra
* see the corresponding amplitude in the bottom window
* close the FFT window and click in the schematic window
* view -> SPICE error log to see THD
* Amplifier Total Harmonic Distortion
* copyright Cordell Audio 12/03/2010
;op
Q6 Vb7 Vb6 Vpos 0 2N5401C
R4 Vb3 0 33k
Q1 Vb4 Vb1 N002 0 2N5401C
Vneg 0 Vneg 35
Q2 Vneg Vb2 N002 0 2N5401C
R9 Vpos Vb6 62
R10 Vb7 0 33k
D1 Vpos Vb3 GREEN
R11 vb10 Vout 33
R1 Vb4 Vneg 1k
Voffset N004 0 0.0023
R8 Vb8 N003 1.2k
Vin Vb1 N004 SINE(0 1.0 20k 0 0 0 16) AC 1
Q11 Vneg vb11 vb 0 mjl21193C
R13 vt Vout 0.33
Q9 Vneg Vb9 vb11 0 mje253C
R3 Vout Vb2 19k
R6 N005 Vneg 22
RL Vout 0 8.0
Q8 Vpos Vb8 vb10 0 mje243C
R7 N003 Vb9 471
C1 Vb9 Vb4 300p
Vpos Vpos 0 35
Q10 Vpos vb10 vt 0 mjl21194C
R12 Vout vb11 33
R14 Vout vb 0.33
Q5 Vb8 N003 Vb9 0 2N5551C
Q3 N002 Vb3 N001 0 2N5401C
Q7 Vb8 Vb7 Vb6 0 2N5401C
Q4 Vb9 Vb4 N005 0 2N5551C
R5 Vpos N001 620
R2 Vb2 0 1k
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 400u
.options maxstep=0.02441555u
.option plotwinsize=0
.four 20khz 10 4 v(vout)
.include Cordell Models.txt
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2428 1412
WIRE -128 -224 -352 -224
WIRE 256 -224 -128 -224
WIRE 416 -224 256 -224
WIRE 608 -224 416 -224
WIRE 720 -224 608 -224
WIRE 928 -224 720 -224
WIRE 1136 -224 928 -224
WIRE 416 -192 416 -224
WIRE -128 -176 -128 -224
WIRE 1136 -160 1136 -224
WIRE -352 -128 -352 -224
WIRE 256 -128 256 -224
WIRE 352 -80 320 -80
WIRE 416 -80 416 -112
WIRE 416 -80 352 -80
WIRE -128 -64 -128 -96
WIRE 416 -32 416 -80
WIRE -352 -16 -352 -64
WIRE -256 -16 -352 -16
WIRE -192 -16 -256 -16
WIRE 1136 0 1136 -80
WIRE 256 16 256 -32
WIRE 304 16 256 16
WIRE 352 16 304 16
WIRE -352 32 -352 -16
WIRE 256 96 256 16
WIRE 720 96 720 -224
WIRE 416 144 416 64
WIRE 560 144 416 144
WIRE 656 144 560 144
WIRE -352 160 -352 112
WIRE 928 176 928 -224
WIRE 256 224 256 176
WIRE 720 224 720 192
WIRE 816 224 720 224
WIRE 864 224 816 224
WIRE 720 272 720 224
WIRE -128 288 -128 32
WIRE -128 288 -288 288
WIRE 32 288 -128 288
WIRE 928 288 928 272
WIRE 928 304 928 288
WIRE -288 400 -288 288
WIRE 32 400 32 288
WIRE -592 448 -608 448
WIRE -384 448 -592 448
WIRE -352 448 -384 448
WIRE 128 448 96 448
WIRE 176 448 128 448
WIRE 224 448 176 448
WIRE 720 448 720 352
WIRE 720 448 304 448
WIRE 928 448 928 384
WIRE 1040 448 928 448
WIRE 1152 448 1040 448
WIRE 720 480 720 448
WIRE 928 480 928 448
WIRE 928 480 720 480
WIRE 416 496 416 144
WIRE 528 496 416 496
WIRE -608 512 -608 448
WIRE 128 512 128 448
WIRE 528 512 528 496
WIRE 1152 528 1152 448
WIRE 416 576 416 496
WIRE 528 624 528 592
WIRE 528 624 480 624
WIRE -608 640 -608 592
WIRE 128 640 128 592
WIRE 928 640 928 480
WIRE 528 656 528 624
WIRE 1152 672 1152 608
WIRE 720 688 720 480
WIRE 928 736 928 720
WIRE -608 752 -608 720
WIRE 416 752 416 672
WIRE 528 752 528 736
WIRE 528 752 416 752
WIRE 928 752 928 736
WIRE 720 800 720 768
WIRE 800 800 720 800
WIRE 864 800 800 800
WIRE 720 832 720 800
WIRE 416 880 416 752
WIRE 576 880 416 880
WIRE 656 880 576 880
WIRE 256 896 192 896
WIRE 416 896 416 880
WIRE 416 896 320 896
WIRE 416 992 416 896
WIRE -288 1040 -288 496
WIRE -96 1040 -288 1040
WIRE 192 1040 192 896
WIRE 192 1040 -96 1040
WIRE 352 1040 192 1040
WIRE 1152 1040 1024 1040
WIRE -288 1088 -288 1040
WIRE 1024 1104 1024 1040
WIRE 1152 1104 1152 1040
WIRE 416 1120 416 1088
WIRE -288 1280 -288 1168
WIRE 32 1280 32 496
WIRE 32 1280 -288 1280
WIRE 416 1280 416 1200
WIRE 416 1280 32 1280
WIRE 560 1280 416 1280
WIRE 720 1280 720 928
WIRE 720 1280 560 1280
WIRE 928 1280 928 848
WIRE 928 1280 720 1280
WIRE 1152 1280 1152 1184
WIRE 1152 1280 928 1280
SYMBOL npn 480 576 M0
SYMATTR InstName Q5
SYMATTR Value 2N5551C
SYMBOL res 240 80 R0
SYMATTR InstName R10
SYMATTR Value 33k
SYMBOL res 320 432 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R3
SYMATTR Value 19k
SYMBOL res -144 -192 R0
SYMATTR InstName R5
SYMATTR Value 620
SYMBOL res 512 640 R0
SYMATTR InstName R7
SYMATTR Value 471
SYMBOL cap 320 880 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C1
SYMATTR Value 300p
SYMBOL res 912 624 R0
SYMATTR InstName R14
SYMATTR Value 0.33
SYMBOL voltage -608 624 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 46 42 Left 0
WINDOW 3 47 80 Left 0
SYMATTR InstName Voffset
SYMATTR Value 0.0023
SYMBOL npn 656 96 R0
WINDOW 3 55 66 Left 0
SYMATTR Value mje243C
SYMATTR InstName Q8
SYMBOL res -368 16 R0
SYMATTR InstName R4
SYMATTR Value 33k
SYMBOL pnp -352 496 M180
SYMATTR InstName Q1
SYMATTR Value 2N5401C
SYMBOL npn 352 992 R0
SYMATTR InstName Q4
SYMATTR Value 2N5551C
SYMBOL voltage 1136 -176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 45 41 Left 0
WINDOW 3 59 81 Left 0
SYMATTR InstName Vpos
SYMATTR Value 35
SYMBOL voltage 1152 1088 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 47 45 Left 0
WINDOW 3 59 83 Left 0
SYMATTR InstName Vneg
SYMATTR Value 35
SYMBOL res 400 -208 R0
SYMATTR InstName R9
SYMATTR Value 62
SYMBOL res 912 288 R0
SYMATTR InstName R13
SYMATTR Value 0.33
SYMBOL pnp 96 496 R180
SYMATTR InstName Q2
SYMATTR Value 2N5401C
SYMBOL pnp -192 32 M180
SYMATTR InstName Q3
SYMATTR Value 2N5401C
SYMBOL res -304 1072 R0
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL res 512 496 R0
SYMATTR InstName R8
SYMATTR Value 1.2k
SYMBOL pnp 656 928 M180
SYMATTR InstName Q9
SYMATTR Value mje253C
SYMBOL pnp 352 64 M180
SYMATTR InstName Q7
SYMATTR Value 2N5401C
SYMBOL voltage -608 496 R0
WINDOW 123 49 79 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -308 57 Left 0
WINDOW 0 54 42 Left 0
SYMATTR Value2 AC 1
SYMATTR Value SINE(0 1.0 20k 0 0 0 16)
SYMATTR InstName Vin
SYMBOL res 1136 512 R0
WINDOW 0 54 40 Left 0
WINDOW 3 48 76 Left 0
SYMATTR InstName RL
SYMATTR Value 8.0
SYMBOL npn 864 176 R0
SYMATTR InstName Q10
SYMATTR Value mjl21194C
SYMBOL res 112 496 R0
SYMATTR InstName R2
SYMATTR Value 1k
SYMBOL pnp 864 848 M180
SYMATTR InstName Q11
SYMATTR Value mjl21193C
SYMBOL LED -368 -128 R0
SYMATTR InstName D1
SYMATTR Value GREEN
SYMBOL res 704 672 R0
SYMATTR InstName R12
SYMATTR Value 33
SYMBOL res 400 1104 R0
SYMATTR InstName R6
SYMATTR Value 22
SYMBOL res 704 256 R0
SYMATTR InstName R11
SYMATTR Value 33
SYMBOL pnp 320 -32 R180
SYMATTR InstName Q6
SYMATTR Value 2N5401C
FLAG -608 752 0
FLAG -592 448 VIN
FLAG -352 160 0
FLAG 128 640 0
FLAG 1024 1104 0
FLAG 1136 0 0
FLAG 928 288 vt
FLAG 928 736 vb
FLAG 816 224 vb10
FLAG 800 800 vb11
FLAG 256 224 0
FLAG 1152 672 0
FLAG 560 144 Vb8
FLAG 576 880 Vb9
FLAG -384 448 Vb1
FLAG 176 448 Vb2
FLAG -256 -16 Vb3
FLAG -96 1040 Vb4
FLAG 352 -80 Vb6
FLAG 304 16 Vb7
FLAG 1040 448 Vout
FLAG 608 -224 Vpos
FLAG 560 1280 Vneg
TEXT -1080 -176 Left 0 !;op
TEXT -120 144 Left 0 ;2 mA
TEXT -280 800 Left 0 ;1 mA
TEXT 432 208 Left 0 ;10 mA
TEXT 424 1104 Left 0 ;re ~ 2.6 ohms
TEXT 56 -200 Left 0 ;+ 35V
TEXT 160 1256 Left 0 ;- 35V
TEXT -32 800 Left 0 ;1 mA
TEXT -1088 -128 Left 0 !.tran 400u
TEXT -1088 -80 Left 0 !.options maxstep=0.02441555u
TEXT -1088 -32 Left 0 !.option plotwinsize=0
TEXT -1088 16 Left 0 !.four 20khz 10 4 v(vout)
TEXT 944 -16 Left 0 ;110 mA
TEXT 224 -344 Left 0 ;20 kHz, 25 watts
TEXT 272 -296 Left 0 ;0.50%
TEXT -1096 184 Left 0 ;add SPICE directive for maxstep
TEXT -1096 232 Left 0 ;use plotwinsize directive to turn off all compression
TEXT -1096 280 Left 0 ;add the .four directive for THD readout
TEXT -1096 136 Left 0 ;set input for 20 kHz sinewave, 1.0 V peak
TEXT -1096 328 Left 0 ;run the transient simulation for 8ms
TEXT -1160 832 Left 0 ;view the lower information window to see simulation progress
TEXT -1160 872 Left 0 ;click on the Vout node and see the sinewave trace
TEXT -1160 912 Left 0 ;left click and right click in the plot window
TEXT -1160 944 Left 0 ;select FFT from the pop-up window
TEXT -1160 976 Left 0 ;V(Vout will already be highlighted for analysis
TEXT -1160 1016 Left 0 ;select Specify a Time Range
TEXT -1160 1048 Left 0 ;end time should be listed as 400us
TEXT -1160 1088 Left 0 ;enter 200us for the start time
TEXT -1160 1128 Left 0 ;hit OK and see the FFT spectrum presented in a new window
TEXT -1160 1168 Left 0 ;mouse over the peaks of the spectra
TEXT -1160 1208 Left 0 ;see the corresponding amplitude in the bottom window
TEXT -1160 1248 Left 0 ;close the FFT window and click in the schematic window
TEXT -1160 1288 Left 0 ;view -> SPICE error log to see THD
TEXT 104 -400 Left 0 ;Amplifier Total Harmonic Distortion
TEXT -1080 -224 Left 0 !.include Cordell Models.txt
TEXT 864 1376 Left 0 ;copyright Cordell Audio 12/03/2010