Electronic – Why does this JFET attenuator distort the signal this way

amplifierdistortionjfetvcavga

I have been trying to build a simple VGA using an op-amp and JFET for gain control. I get good results over a small range of voltages (like factor of 10) but as soon as I try to improve this, the signal gets distorted in on or another way. I figured using multiple variable gain stages would be quite bad because the Drain-Source Voltage of the FET needs to stay as low as possible for good linearity. That's why I thought it would be best to make a single variable attenuation stage and then amplify after that. The attenuator looks like this in SPICE:

SPICE schematic of attenuator

Unfortunately, I always get this pattern of distortion (both in SPICE and on a breadboard) when I'm attenuating by a lot (\$V_{GS} < -2V\$ in this example):

Flattened out sine waveform

The negative half of the output sine (positive half of the input sine because it's inverting) gets flattened out for some reason. I'm trying to fully understand why this is happening. I thought it might be because

$$V_{DS,SAT} = V_{GS} – V_P$$

and the positive half gets into the saturation region but this doesn't seem to be the case because \$V_{GS}\$ (blue trace) rises by more than the amplitude of the sine wave without it changing the distortion:

Vgs and flattened out waveform

I hope someone can explain why this is happening.

Best Answer

Its because you did not check your device specs . Its a n-ch JFET that needs negative Vgs or use a p-ch with +Vgs.

You need to linearize the Jfet with negative feedback on the drain to gate.

Choose the feedback R ratios wisely to bias the Vgs for desired VGA response. If you want + bias then use pch JET

So include 100k D to G and series R from Vctrl to Gate to check for linearity over input control range Idss at Vgs=0 and Vth = 4V

If the inverting input is not = +Vcc/2 then it wont work well. If Vds is not sufficiently biased, it wont work well.

The Vcc/2 bias screws up the Vgs bias when feedback for JFET so start with basics with no Op Amp

enter image description here