MOSFETs as a Bidirectional Switch

Thread Starter

PIC-User

Joined Sep 25, 2015
63
Hi,

I'm trying to make a bidirectional switch using MOSFETs for a signal of 3V, 1 MHz, and around 100mA. When I use the TSM2N7000KCT MOSFETs the switch works fine. Here is the datasheet and schematics,

http://www.mouser.com/ds/2/395/TSM2N7000K_B12-522765.pdf

MOSFET_Switch-01.jpg

However, when I use another MOSFET like the BS170_D27Z the switch doesn't work. Here is the datasheet and schematics,

http://www.mouser.com/ds/2/149/BS170-39309.pdf

MOSFET_Switch-02.jpg

One MOSFET has a static protection and the other one doesn't. I don't see why the circuit works with one MOSFET, but it doesn't work with the other. Any help is appreciated.

Thank you,

Robert
 

Alec_t

Joined Sep 17, 2013
14,313
Driving the gate with only 5V may not be enough to turn the FET on hard enough to pass 100mA. Note that the two devices have different gate voltage sensitivities at their Vgs(th) values, so probably quite different Id/Vgs characteristics.
 

Bordodynov

Joined May 20, 2015
3,179
For the system to work for different transistors is necessary that the transistors are always included. You are applying to the gates of transistors 2.5 volt and signal at 3 volts (Vampl=3V*1.4142). it is not right. Remove the lower resistor and everything will work with your transistors (Vg=5V).
Transistors have a large variation in the threshold voltage! In addition, it is not clear what you mean about 3 volts. This acting value (RMS) or the peak-to-peak.
 

Thread Starter

PIC-User

Joined Sep 25, 2015
63
For the two circuits above, the one with the TSM2N7000KCT MOSFETs works great. It works as a switch that can be controlled with the MOSFETs Gate voltage.

Now, the circuit with the BS170_D27Z MOSFETs is supposed to work as well, but it just doesn't work. The 'switch' stays in the closed position all the time. So, it doesn't matter what voltage you apply at the MOSFETs gate it is always conducting current. I was hopping that somebody spots a difference between the two transistors that might cause this.

The voltage of the signal is 3V amplitude or 6Vpp. If the 1K resistor that goes to ground is removed the transistor's gates won't discharge fast enough and the switch won't turn off fast enough.
 

crutschow

Joined Mar 14, 2008
34,420
The others have already told you the problem but you seem not to be listening. :rolleyes:

The TSM2N7000KCT requires 5V Vgs to fully turn on.
The BS170_D27Z requires 10V Vgs to fully turn on.

There's your problem. You need to apply 10V Vgs to the BS170_D27Z, not 5V.
Also remove the top 1k resistor (not the bottom one) since that cuts the Vgs voltage in half.
 

dl324

Joined Mar 30, 2015
16,916
The voltage of the signal is 3V amplitude or 6Vpp.
You still haven't stated what you're trying to do. Using N channel MOSETS to pass AC signals will introduce distortion as the channel resistance will vary with the signals being passed. Passing negative signals will be even worse. A better approach would be to use an N and P MOSFET with their bulk connected an appropriate supply voltage to give a more consistent "on" resistance.
If the 1K resistor that goes to ground is removed the transistor's gates won't discharge fast enough and the switch won't turn off fast enough.
It wasn't obvious from your schematic that the MOSFET was being switched. Change the ratio of the resistors so most of the supply voltage is applied to the gates when the devices are on and/or change the supply voltage to turn them on harder. I thought I read that the threshold voltage of the two devices was 3V max (but this is just starting to turn on).
 

dl324

Joined Mar 30, 2015
16,916
Also remove the top 1k resistor (not the bottom one) since that cuts the Vgs voltage in half.
I assumed that MOSFETs were on constantly; so removing the bottom resistor would provide 5V to the gates through an unnecessary 1K resistor. If they're being switched, then the top resistor should be removed...
 

Thread Starter

PIC-User

Joined Sep 25, 2015
63
The others have already told you the problem but you seem not to be listening. :rolleyes:

The TSM2N7000KCT requires 5V Vgs to fully turn on.
The BS170_D27Z requires 10V Vgs to fully turn on.

There's your problem. You need to apply 10V Vgs to the BS170_D27Z, not 5V.
Also remove the top 1k resistor (not the bottom one) since that cuts the Vgs voltage in half.
Hmm, where do you see that in the datasheet? The problem with the BS170_D27Z is that it is always in the on state. The Gate Threshold Voltage for the BS170_D27Z is from 0.8V to 3V. :confused::confused::confused:

Table-01.jpg
 

Thread Starter

PIC-User

Joined Sep 25, 2015
63
You still haven't stated what you're trying to do. Using N channel MOSETS to pass AC signals will introduce distortion as the channel resistance will vary with the signals being passed. Passing negative signals will be even worse. A better approach would be to use an N and P MOSFET with their bulk connected an appropriate supply voltage to give a more consistent "on" resistance.
Hmm, what do you mean by their "bulk"? Do you have any schematics available for this circuit?
 

Brownout

Joined Jan 10, 2012
2,390
One interestin thing: the pinout for the BS170 is reversed from the TSM2N7000. When switching parts, you'll need to rotate the part you're placing by 180 degrees so that the pins connect correctly.
 

dl324

Joined Mar 30, 2015
16,916
Hmm, what do you mean by their "bulk"? Do you have any schematics available for this circuit?
This is from an appnote on analog.com.
cmosAnalogSwitch.jpg
The bulk of the N device should be connected to a voltage more negative than the lowest signal voltage; P device should be connected to a more positive voltage.
 

Thread Starter

PIC-User

Joined Sep 25, 2015
63
DL324, the signal that I'm trying to switch on and off is the 3V, 1MHz signal. I'm using the gate voltage to switch that signal on/off. The 1MHz wave is a bidirectional one, so I don't see how I can implement your circuit.

CRUTSCHOW, no that wasn't the problem. I checked the pinout of the MOSFETs again and I wired it correctly. I can't figure out what the problem is.
 

dl324

Joined Mar 30, 2015
16,916
the signal that I'm trying to switch on and off is the 3V, 1MHz signal. I'm using the gate voltage to switch that signal on/off. The 1MHz wave is a bidirectional one, so I don't see how I can implement your circuit.
Resistance of the MOSFET will change depending on the magnitude and polarity of the signal. If distortion matters, you need to use a CMOS switch. Below is a graph of relative switch resistance for NMOS, PMOS, and CMOS (from the same appnote I referenced earlier):
analogSwResistance.jpg
 
Last edited:

crutschow

Joined Mar 14, 2008
34,420
I think I see another problem.
Try connecting the 1 MΩ resistor between the sources and the gate connections instead of source to ground.
It might also be better to reduce its value, say to 100kΩ or less.
 
Last edited:

Thread Starter

PIC-User

Joined Sep 25, 2015
63
I think I see another problem.
Try connecting the 1 MΩ resistor between the sources and the gate connections instead of source to ground.
It might also be better to reduce its value, say to 100kΩ or less.
Hmm, no that didn't work. I need to get different types of MOSFETs and figure out what is going on.
 

dl324

Joined Mar 30, 2015
16,916
I need to get different types of MOSFETs and figure out what is going on.
Have you tried testing the MOSFETs from the second circuit individually to make sure they're good? If you remove the gate bias voltage, do both transistors turn off?
 

kubeek

Joined Sep 20, 2005
5,795
Why do you want to make an analog switch out of discrete mosfets? Unless you have mosfets with four terminals you need to use an analog switch. See dl324's posts #8 and #13, pay attention to where the middle bar from the mosfet symbol is connected in the switch, it is not the source like in a typical mosfet but rather Vcc or Gnd.
 
Top