Author Topic: latching push-button controlled MOSFET switch with IRF7319  (Read 34458 times)

0 Members and 1 Guest are viewing this topic.

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
latching push-button controlled MOSFET switch with IRF7319
« on: September 10, 2021, 10:52:47 am »
Hello all

I have integrated the "soft power switch" from Sparkfun (https://cdn.sparkfun.com/assets/5/6/6/6/0/SparkFun_Soft_Power_Switch.pdf) in my handheld device.
Due to the unavailability of the SIL2308, I used the IRF7319TRPBF as in the original design (http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/raspberry-pi/on-off-power-controller).

Here is the schematic of my implementation:
1267402-0

I have the following problem:
I can only switch on the device via S1 (or ON_BUTTON_EXT) if I have vBus > 4.4V.

Is this due to the IRF7319TRPBF used (https://www.mouser.ch/datasheet/2/196/Infineon_IRF7319_DataSheet_v01_01_EN-1228230.pdf) or is there another cause of the problem?

Is there an easy fix for the problem?

Thanks for your help!

Greetings Luca
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #1 on: September 10, 2021, 03:44:17 pm »
No. The problem is not due to the IRF7319TRPBF.

Try, in the following order:

1. increase value of C3 between R14 and R15 from 0.1uF to 1uF, then retest, if still fails, then keeping C3 at 1uF, do
2. increase value of C5 from 10uF to 22uF.


 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #2 on: September 11, 2021, 11:45:12 am »
No. The problem is not due to the IRF7319TRPBF.

Try, in the following order:

1. increase value of C3 between R14 and R15 from 0.1uF to 1uF, then retest, if still fails, then keeping C3 at 1uF, do
2. increase value of C5 from 10uF to 22uF.
Hi eblc, thanks for your suggestions!
1. didn't work.
2. this just made the time longer that is needed for shutdown the device.

 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #3 on: September 11, 2021, 02:51:35 pm »
The threshold voltage of the SIL2308 has a minimum of 0.5V and a maximum of 1V.  But the IRF part has a minimum of 1.0V, with no maximum shown.  So maybe that difference is enough  to make it not operate properly at low voltages.

Would the processor power up fast enough that it could turn on the N-channel and keep the power on with just a brief button press?  If so, you could move all the latching stuff into the processor and greatly simply the circuit.
 
The following users thanked this post: luca0074

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #4 on: September 12, 2021, 08:22:04 am »
This type of circuits behave heavily on the nature of the connected load. Most hated load with large capacitor connected.

Can you also confirm the circuit does not work even if no output load is connected? This might point to a different approach in modifying the component values.
 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #5 on: September 12, 2021, 09:06:04 am »
The threshold voltage of the SIL2308 has a minimum of 0.5V and a maximum of 1V.  But the IRF part has a minimum of 1.0V, with no maximum shown.  So maybe that difference is enough  to make it not operate properly at low voltages.
Thanks for checking!

Would the processor power up fast enough that it could turn on the N-channel and keep the power on with just a brief button press?  If so, you could move all the latching stuff into the processor and greatly simply the circuit.
i wanted a solution, where i can disconnect the power via hardware completely, in case of bad programming of the microprocessor.


This type of circuits behave heavily on the nature of the connected load. Most hated load with large capacitor connected.

Can you also confirm the circuit does not work even if no output load is connected? This might point to a different approach in modifying the component values.
i have total 11.2uf capacitance on vcc. there is only my regulator.
1269040-0
the starting current is @5V 120mA. running current is @5V 100mA.
i disconnected the load; the circuit doesn't work below 4.4V.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #6 on: September 12, 2021, 02:46:21 pm »
Do you have a scope?  It would be good to know whether the p-fet turns fully on when you press the button.  In other words, what exactly isn't working?  Is the p-fet not turning on at all, or is the p-fet turning on but the n-fet isn't?

Well, I think the problem almost has to be the different threshold voltages versus the original design mosfets.  It's possible that playing with the capacitor and/or resistor values could get it to work at lower voltages, but in the end you may need to use discrete mosfets with the right threshold voltages, if you can find them.  Still, it seems like there ought to be a way to make it work with 3.7V input.

Edit:  If you start it up at 4.4V or more, then lower the input voltage, at what input voltage does it turn off?

Edit2: This may be crazy, but I wonder if replacing the n-fet with an NPN might make it work.  Well, that would be a different circuit.  Anyway, I just wondered.
« Last Edit: September 12, 2021, 02:56:00 pm by Peabody »
 
The following users thanked this post: luca0074

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #7 on: September 12, 2021, 03:59:25 pm »
i have total 11.2uf capacitance on vcc. there is only my regulator.

I did a simulation of your actual circuit, using 1uF and 22uF as stated above. I have chosen PMOS and NMOS with Vth=1V to match with IRF7319TRPBF and an external load consists of 10R and 47uF in parallel. After power is applied, a switch is close at time=2 and released a second later.

The simulation results show that the circuit can work down to 2.3V or lower. This indicates that the IRF7319TRPBF will most likely works without problem. You may have errors in pin connections or have defective components.


 
The following users thanked this post: Mecanix, luca0074

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #8 on: September 12, 2021, 09:08:45 pm »
Would it be possible to run the simulation with mosfets having Vth of 2V?  If that simulation still works well below 4.4V, then the OP may have some other problem.
 
The following users thanked this post: luca0074

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #9 on: September 13, 2021, 05:57:01 am »
Would it be possible to run the simulation with mosfets having Vth of 2V?  If that simulation still works well below 4.4V, then the OP may have some other problem.

In simulation with mosfets having Vth of 2V, the circuit won't work for Vin=2.3V. It works OK with Vin=2.5V or more.



 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #10 on: September 13, 2021, 09:29:52 am »
Do you have a scope?  It would be good to know whether the p-fet turns fully on when you press the button.  In other words, what exactly isn't working?  Is the p-fet not turning on at all, or is the p-fet turning on but the n-fet isn't?
Sadly i dont have a scope, but i could measure with a multimeter ;) I have a PowerProfilerKit2, where i could measure up to 8 digital signals.  where should i measure what?

Edit:  If you start it up at 4.4V or more, then lower the input voltage, at what input voltage does it turn off?
It turns off at 2.8V.


I did a simulation of your actual circuit, using 1uF and 22uF as stated above. I have chosen PMOS and NMOS with Vth=1V to match with IRF7319TRPBF and an external load consists of 10R and 47uF in parallel. After power is applied, a switch is close at time=2 and released a second later.
Cool! Thanks for sharing the .asc file!

The simulation results show that the circuit can work down to 2.3V or lower. This indicates that the IRF7319TRPBF will most likely works without problem. You may have errors in pin connections or have defective components.
I have 4 assembled devices here and all show the same fault behaviour.
Maybe i made a mistake with the pcb design?
1270093-0
1270099-1
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #11 on: September 13, 2021, 12:10:34 pm »
Edit:  If you start it up at 4.4V or more, then lower the input voltage, at what input voltage does it turn off?
It turns off at 2.8V.

The cut off voltage should be a lot lower.

I did the simulation with Vin at 4.4V and start decreasing at time=6s to see when the circuit will turns off. It did so at about 1.5V. The orange curve is the NMOS gate voltage during the voltage drop test.

Please repeat the same voltage dropping test starting at Vin=4.4V, then at 4.2, 4.0, 3.8..., decrease Vin at 0.2V interval and record the NMOS gate voltage(pin2 of the IC) until the circuit cut off. Post back the results.
 
 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #12 on: September 13, 2021, 01:36:35 pm »
Please repeat the same voltage dropping test starting at Vin=4.4V, then at 4.2, 4.0, 3.8..., decrease Vin at 0.2V interval and record the NMOS gate voltage(pin2 of the IC) until the circuit cut off. Post back the results.

I did the measurements, but i have very different results.
MeasurmentVBUS [V]3.3V_EN (NMOS GATE) [V]
15.02.31
24.92.28
34.82.27
44.72.26
54.62.25
64.52.24
74.42.23
84.32.22
94.22.2
104.12.2
114.02.18
123.92.17
133.82.15
143.72.14
153.62.13
163.52.1
173.42.1
183.32.1
193.22.05
203.12
213.01.98
222.91.95
232.81.93
242.71.92
252.60
262.50
272.40
282.30
292.20
302.10
3120
321.90
331.80
341.70
351.60
361.50
1270255-0
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #13 on: September 13, 2021, 02:37:40 pm »
Could you also measure Vcc at a few of these points?  Maybe I don't understand the circuit, but it seems that at VBUS of 5V, the gate should be at the zener voltage, which should be 3.3V.  Why is it lower?

Edit:  Ok, it may be your meter dragging it down.  Instead of measuring the gate voltage, try measuring the intersection of the 10K, 300K and zener.
« Last Edit: September 13, 2021, 02:59:39 pm by Peabody »
 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #14 on: September 13, 2021, 03:56:23 pm »
Could you also measure Vcc at a few of these points?  Maybe I don't understand the circuit, but it seems that at VBUS of 5V, the gate should be at the zener voltage, which should be 3.3V.  Why is it lower?

Edit:  Ok, it may be your meter dragging it down.  Instead of measuring the gate voltage, try measuring the intersection of the 10K, 300K and zener.
I measured at VCC and POWERSENSE to GND. The measured values are practically the same...

Maybe I choose the false Zenerdiode?
I choose MM3Z3V3T1G https://media.digikey.com/pdf/Data%20Sheets/ON%20Semiconductor%20PDFs/MM3ZyyyT1G_SZMM3ZyyyT1G_Series_rev.11_Sep2014.pdf
It has the correct Device Marking (05) on it.


 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #15 on: September 13, 2021, 04:47:27 pm »
The zener value is only valid at a specified minimum current, which you are probably well below.  So it will pass some current at a lower voltage.  As long as nothing is connected to 3.3V_EN or POWERSENSE, you could remove the zener and see if everything works better.  But if you really want this to work from 3.3V to 12V, you're going to need the zener to prevent high voltage from reaching the processor I/O pins.
 
The following users thanked this post: luca0074

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #16 on: September 13, 2021, 06:39:13 pm »
Judging from the results, it is probably caused by the zener diode not getting sufficient rated current via R13(10K). The zener voltage will drops quite a lot from the rated voltage under this condition.

You have one of five possible choices.

1. Change one end of resistor R13 from connecting to VCC(input of the 3V3 regulator) into connect it to output of the 3V3 regulator instead. This will ensure the gate of the NMOS be supplied by 3.3V even the Vin falls from 4.4V to 3.5V. 

2. Put in series a silicon diode like 1N4148 with the 3V3 zener. The diode's 0.65V drop will add to the current 2.31V drop to a total voltage drop of around 3V which enable your circuit to work below VBus of 4.4V, hopefully at min. 3.8V.

3. Lower the value of R13 from 10K to somewhere between 1K~330R. This would gives 5mA zener current when Vin=5V if R13=340R but higher value reduces power dissipation in zener diode. The calculation for R13 is (5V-3.3V)/5mA = 340R.

4. Use a higher voltage zener diode, e.g. 3V9 instead of 3V3. With R13=10K ~ 1K, this would hopefully gives 3.3V when Vin=5V.
 
5. Use a 3.3V reference diode to replace the zener diode,e.g. the ZRC330 by DIODE INC. The ZRC330 is a two terminal device in SOT23 package and will give 3.3V with forward current from 20uA~25mA. However, this is the most expensive option.

 
ps. edited: added three more options for a possible solution. Corrected mistake in calculation of R13 value.
« Last Edit: September 14, 2021, 10:18:44 am by eblc1388 »
 
The following users thanked this post: luca0074

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #17 on: September 13, 2021, 10:14:23 pm »
The problem is it has to work at both 3.3V and 12V.    So if you tweak it so it works at 3.3V, the voltage may be too high at 12V because the zener will actually produce a 3.3V drop, or 3.9V.

I wonder if a white LED (about 2.7V drop) in place of the zener would give a sharper knee.  Or a white LED in  series with a regular signal diode (1N4148) to give about 3.3V in total.
 
The following users thanked this post: luca0074

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #18 on: September 14, 2021, 06:31:29 am »
The problem is it has to work at both 3.3V and 12V.

Why does it has to work at 12V?

The OP's circuit in reply#5 clearly shown a regulator with Vin of max. 6V.
 
The following users thanked this post: luca0074

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #19 on: September 14, 2021, 09:24:46 am »
The problem is it has to work at both 3.3V and 12V.

Why does it has to work at 12V?

The OP's circuit in reply#5 clearly shown a regulator with Vin of max. 6V.
Sorry, it has only to work up to 5.5V. (Powered via 5V USB)


3. Lower the value of R13 from 10K to somewhere between 100R~33R. This would gives 5mA zener current when Vin=5V if R13=33R but higher value reduces power dissipation in zener diode. 
Thanks for all the choices!  ;) i choose number 3, because i can fix that with just a change in the BOM.

The Voltage on POWERSENSE, when the Device is ON is with R13=48Ohm @ 5V now at 3.9V. With R13=10kOhm @ 5V it is at 2.3V (see attachment in Reply #14).
Sadly it dosn't fix the issue. Also id would be >3.3V and could damage my microcontroller; with 10k it would be sufficient for a logic High on most controllers.

EDIT: The following informations are false, because I measured wrong. see the correct measurements in Reply #22

I dig a little deeper and recorded the current consumption of the device in state OFF. I discovered a hysteresis on the issue.
1270951-0
when VCC goes under 4.3V the current goes from 65uA up to a average of 1-2mA with 15mA peaks, till VCC is again greater than 4.8V.
The device can only be turned on, when the current is at the low value (65uA).
(i measured with R13=48 and also R13=10k. The results are the same)
1270957-1
1270963-2

also shouldn't the current consumption overall not be much smaller? or is my measurement not precise enough for that little currents?
Quote from: https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2:
Quote
200nA to 1A measurement range
Resolution varies between 100nA and 1mA depending on the measurement range
« Last Edit: September 14, 2021, 01:34:01 pm by luca0074 »
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #20 on: September 14, 2021, 10:15:22 am »
Thanks for all the choices!  ;) i choose number 3, because i can fix that with just a change in the BOM.

The Voltage on POWERSENSE, when the Device is ON is with R13=48Ohm @ 5V now at 3.9V. With R13=10kOhm @ 5V it is at 2.3V (see attachment in Reply #14).
Sadly it dosn't fix the issue. Also id would be >3.3V and could damage my microcontroller; with 10k it would be sufficient for a logic High on most controllers.

Sorry. My bad.

R13 value should be (5V-3.3V)/5mA but I mistakenly used 0.05 as the divisor instead of 5mA. Therefore the correct value of R13 for 5V should be 340R or more.

I cannot see any reason why the supply current will increase with the decrease of Vin. When the circuit is OFF, it should consume no current. Are you referring to the 3.3V microcontroller consumption only instead of this power On/OFF circuit? Have you follow the instructions on how to setup the power profiler to measure current? You need an extra 5V supply to power up the device in order to measure its current consumption. The power profiler cannot be both the source and as a current meter.

« Last Edit: September 14, 2021, 10:43:48 am by eblc1388 »
 
The following users thanked this post: luca0074

Offline jfiresto

  • Super Contributor
  • ***
  • Posts: 1049
  • Country: de
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #21 on: September 14, 2021, 10:28:16 am »
... I wonder if a white LED (about 2.7V drop) in place of the zener would give a sharper knee....

I am not sure where, but I came across the attached current vs. voltage curves for a blue LED over a wide range of currents and temperatures. Perhaps they might help address your question.
-John
 

Offline luca0074Topic starter

  • Contributor
  • Posts: 21
  • Country: ch
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #22 on: September 14, 2021, 12:53:39 pm »
Thanks for all the choices!  ;) i choose number 3, because i can fix that with just a change in the BOM.

The Voltage on POWERSENSE, when the Device is ON is with R13=48Ohm @ 5V now at 3.9V. With R13=10kOhm @ 5V it is at 2.3V (see attachment in Reply #14).
Sadly it dosn't fix the issue. Also id would be >3.3V and could damage my microcontroller; with 10k it would be sufficient for a logic High on most controllers.

Sorry. My bad.

R13 value should be (5V-3.3V)/5mA but I mistakenly used 0.05 as the divisor instead of 5mA. Therefore the correct value of R13 for 5V should be 340R or more.
320Ohm works perfect! now it looks much more as in your simulation.
1271029-0

I cannot see any reason why the supply current will increase with the decrease of Vin. When the circuit is OFF, it should consume no current. Are you referring to the 3.3V microcontroller consumption only instead of this power On/OFF circuit? Have you follow the instructions on how to setup the power profiler to measure current? You need an extra 5V supply to power up the device in order to measure its current consumption. The power profiler cannot be both the source and as a current meter.
Sorry. My bad. ;) next time I rtfm
The current draw looks now better. 1uA@5V and 100nA@4V
1271035-1

but i still can't turn on the device below VCC of 4.4V
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #23 on: September 14, 2021, 04:14:30 pm »
but i still can't turn on the device below VCC of 4.4V

If that is the case, there must be some loading pulling down on the "3.3V_EN" and/or "POWERSENSE" connections. This is possible as the MCU had no supply voltage yet and the above two signal pins could be powering up the MCU via port pin internal diodes. This affect the operation of power On/Off circuit badly.

A good circuit designer should make sure this situation could not happen, i.e. there must be no loading on these two signal pins until the MCU has properly powered up, reset and running.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2783
  • Country: us
Re: latching push-button controlled MOSFET switch with IRF7319
« Reply #24 on: September 14, 2021, 05:12:56 pm »
If VBUS is, say, 4V, and you press the button, the first thing that has to happen is the P-fet turns on.  Is that happening?  If you put your meter on Vcc, do you get any kind of blip when you push the button?

"A scope!  A scope!  My kingdom for a scope!"  - Richard III

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->