EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: deepak.midri on May 25, 2020, 10:31:06 am

Title: Latch ckt not working
Post by: deepak.midri on May 25, 2020, 10:31:06 am
Attached is latch circuit for powering a microcontroller.

"External Switch" is trigger pressed by user which will turn on the device and wake up MCU.
Once its done, MCU will pull ground to right switch and output should turn off.

On simutaltion this ckt is not working, whats wrong in it?
Even without pressing trigger, I can read output voltage.

Title: Re: Latch ckt not working
Post by: Benta on May 25, 2020, 10:48:40 am
1 M is far too high. MOSFETs have significant leakage current.
Title: Re: Latch ckt not working
Post by: deepak.midri on May 26, 2020, 12:27:28 pm
I am simulating with 12V input dc at the moment for testing.

Since 3.6V mosfets are not available in simulation software.



I think its leakage current issue. Can it be solved by using Bjt instead of mosfets?
Title: Re: Latch ckt not working
Post by: Renate on May 26, 2020, 01:21:10 pm
Put a load resistor on your simulator.
Title: Re: Latch ckt not working
Post by: deepak.midri on May 27, 2020, 12:40:54 pm
This seems to be working. Instead of N mosfet, NPN is added.
Whenever latch is pressed, output will be seen, and MCU is powered up. Now MCU pin is made inout high impedence.
When need to turn off, this MCU pin is made output low. This will eventually cut off the latch.
Will this work as intended?

We need to make as low power as it can be.
Title: Re: Latch ckt not working
Post by: deepak.midri on May 28, 2020, 11:26:37 am
Ok will the circuit work as intended?

1. Input dc range is 2V-3V. Will the selected fet work for this range?
2. Whenever latch is pressed, output will be seen, and MCU is powered up. Now MCU pin is made inout high impedence.
When need to turn off, this MCU pin is made output low. This will eventually cut off the latch.
Will this work as intended?
3. Load current is only 100mA so 36ohm resistor is connected.
Title: Re: Latch ckt not working
Post by: Wimberleytech on May 28, 2020, 01:27:25 pm
Ok will the circuit work as intended?

1. Input dc range is 2V-3V. Will the selected fet work for this range?
2. Whenever latch is pressed, output will be seen, and MCU is powered up. Now MCU pin is made inout high impedence.
When need to turn off, this MCU pin is made output low. This will eventually cut off the latch.
Will this work as intended?
3. Load current is only 100mA so 36ohm resistor is connected.

Seems to me, U1B should be a PMOS transistor.

>>LOL...I need better glasses...it is a PCH device<<
Title: Re: Latch ckt not working
Post by: deepak.midri on May 30, 2020, 04:52:20 am
Another doubt is in schematic load is shown as R5=36 for simplicity.

In actual its "Boost + MCU",  boost have input/output capacitors of 47uF each, can they can any issue?

Since they will charge in their time constant, and power will go MCU which will then wake up and put MCU pin in high impedecne?

During this time it may happen pin of MCU may behave weird?
Title: Re: Latch ckt not working
Post by: Benta on May 30, 2020, 05:02:21 pm
It will work with a load, without load it will be marginal.
In that case, the leakage current through U1B will flow into the base of Q1 and turn the circuit on.