Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

P-MOSFET Latch Turns Itself On

Status
Not open for further replies.
I'm working on a small latch circuit, which I would like to default to OFF when the power is first applied.

When I simulate the following circuit, it works as expected. However, when I build it on perfboard, on power being applied the LED turns on by itself. I can turn the latch off and on correctly from here, but powering itself on has me scratching my head. I assume there's something obvious I'm overlooking

The P fet is an IRF9630, the N fet is a 2N7002

Also, I think the falstad circuit sim has the arrows reversed in its P & N fets

upload_2016-1-24_13-48-5.png
 
Ron, you nailed it! Adding a 100n cap solved it.

Out of curiosity, any idea why this is necessary in real life (but not in the sim)?
 
The voltage at which the FET turns on, varies from one part to another.
At turn on there probably is a race to see who turns on first.
 
................
Out of curiosity, any idea why this is necessary in real life (but not in the sim)?
That's a caution when using simulations.
They generally give reasonably accurate results for the circuit models used but those models have "typical" idealized parameters with no tolerances, which are highly unlikely to be the exactly the same as the particular parts used in an actual circuit.
So certain undefined conditions, like which state a bistable circuit takes when power is applied, can be different in the sim as compared to the actual circuit. You must be aware of such situations and add power-on reset circuitry to insure a particular state, if that is important.
 
Your schematic was an odd negative so I changed it to a normal positive image.
Your Mosfets looked odd, I made them look normal.

EDIT: I also had them wrong, I fixed it again.
 

Attachments

  • Mosfets.png
    Mosfets.png
    35.2 KB · Views: 164
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top