Author Topic: MOSFET magically conducts (simple SPICE simulation)  (Read 726 times)

0 Members and 1 Guest are viewing this topic.

Offline zphazeTopic starter

  • Contributor
  • Posts: 34
  • Country: ca
MOSFET magically conducts (simple SPICE simulation)
« on: April 27, 2021, 08:17:37 pm »
Hi,

I simulated this circuit in MicroCap, a simple switch using a NMOS (NX138BK) and a PMOS.

1215086-0

I get those results :

1215088-1

Normally, I would expect VLOGIC to become 3.3V when VTRIG switches to 3.0V (0 -> 3V transition).
The PMOS being high impedance, it should be to ground until the VTRIG applies a voltage at the gate which should then close the NMOS and thus close the PMOS so that 3.3V can appear at VLOGIC.
Except it just doesn't happen. As soon as 3V3 starts (0 -> 3.3V), VLOGIC goes to 3.3V.

Could someone rationally explain what is happening?
And perhaps a solution?

I tried different PMOS, but in vain (greyed out ones).

I have attached the .cir file (MicroCap file). It is portable, thus the models are embedded in the file.

« Last Edit: April 27, 2021, 08:21:54 pm by zphaze »
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: MOSFET magically conducts (simple SPICE simulation)
« Reply #1 on: April 27, 2021, 09:12:11 pm »
The drain and source seem to be mixed up on the nmos. This should allow the body diode to conduct, essentially you have a froward biased diode between 3.3 and vlogic
 

Offline zphazeTopic starter

  • Contributor
  • Posts: 34
  • Country: ca
Re: MOSFET magically conducts (simple SPICE simulation)
« Reply #2 on: April 27, 2021, 09:28:38 pm »
The drain and source seem to be mixed up on the nmos. This should allow the body diode to conduct, essentially you have a froward biased diode between 3.3 and vlogic

This doesn't look to be the case when checking in the component editor.

 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: MOSFET magically conducts (simple SPICE simulation)
« Reply #3 on: April 27, 2021, 10:06:56 pm »
Check again 3v3 connects to source via 0 ohm resistor drain goes to earth via 47k resistor
« Last Edit: April 27, 2021, 10:09:08 pm by AlfBaz »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: MOSFET magically conducts (simple SPICE simulation)
« Reply #4 on: April 27, 2021, 11:45:42 pm »
It could be because of the effects of parasitic capacitance being simulated.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: MOSFET magically conducts (simple SPICE simulation)
« Reply #5 on: April 28, 2021, 12:14:13 am »
I think R38, R48, R47 needs a rethink. In reality it would depend on the nature and voltage of the Vtrig source. open collector, push pull etc.

The voltage on the n channel gate should go between 0 and Vtrig. and Vtrig needs to be higher than the Vgs threshold which it certainly is.

The p channel gate voltage is important but you haven't shown it. It is certainly not allowing the FET to turn off.
Hope that helps.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf