Author Topic: Low Voltage Detection & Power Cut IC  (Read 9602 times)

0 Members and 5 Guests are viewing this topic.

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Low Voltage Detection & Power Cut IC
« on: August 26, 2019, 12:22:55 am »
I am working on a design that uses a 3.3V fingerprint sensor with onboard UART and ARM MCU.  I experienced the memory getting suddenly wiped a few times for reasons unknown, so I contacted the sensor manufacturer and they replied that when the voltage falls between 2.0V and 2.5V the memory might be erased. They suggest I add my own circuitry to power off the sensor module when voltage falls below 2.7V.  To me, that seems like an oversight on their part for not having that critically important voltage detection and power-down built-in, but since I've already written the code for this module, I'd like to continue using it.  Therefore, I am curious if there is a low-cost, single IC solution to this problem?

In other words, I am looking for a single IC that can detect when the voltage rail fails from a nominal 3.3V to below 2.7V and then it will cut 3.3V power to the sensor (or perhaps cut the GND side).  The Sensor draws about 75mA in its full power state (and microamps when sleeping) so the switch would need to handle that current.

If there is no single chip IC solution, what discrete circuit would you propose?

Thank you.
 

Offline pigrew

  • Frequent Contributor
  • **
  • Posts: 680
  • Country: us
Re: Low Voltage Detection & Power Cut IC
« Reply #1 on: August 26, 2019, 01:08:38 am »
One of the better ways to detect an undervoltage is a power supervisor IC. It outputs a signal (usually open drain) when the voltage is low. As an example, there is a Rohm BD4828G-TR which triggers at 2.8 V. These chips have some hysteresis, and the threshold isn't exact (within a few percent normally), so you need to dig into the datasheets. There are thousands of variations available on DigiKey, active low/high, different voltages, adjustable hysteresis, etc.... With this sort of chip, you would need to pair it with some sort of power switch which could be as simple as a high-side pFET (if you find an active high reset)....

Your voltage is quite close to the minimum voltage of a Li-Ion battery. You may be able to find an undervoltage protection IC designed for batteries, which would have an integrated switch.

There also exist various over-voltage/over-current/under-voltage protect switches (like 5V ones for USB) that also do this.

Maybe you'd want to use a "load switch" IC  (e.g. MIC2091-1YM5-TR) instead of a single FET... might end up being lower power. Also, these are available with inverting or non-inverting inputs.

EDIT: Another idea, can you use the supervisor IC to send the reset/shutdown signal to the sensor, instead of cutting its power?
« Last Edit: August 26, 2019, 01:14:25 am by pigrew »
 
The following users thanked this post: T3sl4co1l

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17220
  • Country: us
  • DavidH
Re: Low Voltage Detection & Power Cut IC
« Reply #2 on: August 26, 2019, 04:20:06 am »
Microprocessor supervisory ICs often include that function as part of their reset or power good output signals.  Typically they would be combined with a regulator which supports disabling its output because open loop transistor switching of a logic supply can be tricky.  Some regulators support or can be configured to do this without an external IC.
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #3 on: August 26, 2019, 06:24:53 am »
Thank you for the suggestions.

I'm still trying to figure out why the sensor's onboard Flash memory IC containing learned fingerprints is suddenly getting erased.  Again, the manufacturer told me such could occur if voltage falls between 2.7V and 2.0V, but it seems they have the circuit on their PCB to accommodate such, as shown below.  Furthermore, when you kill power to the device, the voltage will always fall below 2.7V and to 2.0V as it proceeds to 0V, so perhaps I am totally misunderstanding what they are saying, or perhaps they don't know what they are talking about.  Any thoughts?

820047-0
« Last Edit: August 26, 2019, 06:27:51 am by JDW »
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17220
  • Country: us
  • DavidH
Re: Low Voltage Detection & Power Cut IC
« Reply #4 on: August 26, 2019, 05:35:09 pm »
I'm still trying to figure out why the sensor's onboard Flash memory IC containing learned fingerprints is suddenly getting erased.  Again, the manufacturer told me such could occur if voltage falls between 2.7V and 2.0V, but it seems they have the circuit on their PCB to accommodate such, as shown below.  Furthermore, when you kill power to the device, the voltage will always fall below 2.7V and to 2.0V as it proceeds to 0V, so perhaps I am totally misunderstanding what they are saying, or perhaps they don't know what they are talking about.  Any thoughts?

The problem is when the device is operated outside of its specified voltage range and this includes low voltages and when the voltage momentarily dips below the minimum specified operating voltage which is a particularly dangerous condition leading to undefined behavior.

Flash memory is especially a problem if a power dip or power loss occurs during an erase or programming operation but the same applies to other memory types.

The solution is to detect the possibility of operation out of bounds and immediately reset or shut down.  Operations which cannot be interrupted need to have backup power, sometimes with capacitors, to finish.

Sometimes the supply voltage is increased closer to the maximum giving more time to detect a low voltage condition and this is reflected in voltage supervisors which may come in different versions to support slightly different trip voltages.

 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #5 on: August 26, 2019, 09:25:13 pm »
Flash memory is especially a problem if a power dip or power loss occurs during an erase or programming operation but the same applies to other memory types.

But it’s my external MCU that indirectly controls reads and writes when I initiate fingerprint Learn Mode of that fingerprint sensor (via UART command), and I assure you I am not actively learning anything (i.e., the sensor module shouldn’t be writing to that Flash chip) when I toggle the main power as a test and sometimes subsequently find the memory is wiped (as per the fact that fingerprints I had previously learned no longer work).   So what would you say about this?
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29503
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Low Voltage Detection & Power Cut IC
« Reply #6 on: August 26, 2019, 09:44:11 pm »
There might be better products available now but when I went looking for supply monitoring for micro power and low quiescent ICL7665 was pretty good.

 
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #7 on: August 27, 2019, 12:36:25 am »
There might be better products available now but when I went looking for supply monitoring for micro power and low quiescent ICL7665 was pretty good.

Thank you for the IC suggestion.  US$1.31 in 1000pc quantities is a bit high, but then most "MAXIM" branded chips are on the high side.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6978
  • Country: nl
Re: Low Voltage Detection & Power Cut IC
« Reply #8 on: August 27, 2019, 02:57:40 pm »
They might already have a low power detection routine in the firmware which triggers flash access and which is just buggy. For instance it detects voltage going low and tries to do some last minute dumps of some cached values.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3339
  • Country: gb
Re: Low Voltage Detection & Power Cut IC
« Reply #9 on: August 27, 2019, 03:57:54 pm »
Flash memory is especially a problem if a power dip or power loss occurs during an erase or programming operation but the same applies to other memory types.

But it’s my external MCU that indirectly controls reads and writes when I initiate fingerprint Learn Mode of that fingerprint sensor (via UART command), and I assure you I am not actively learning anything (i.e., the sensor module shouldn’t be writing to that Flash chip) when I toggle the main power as a test and sometimes subsequently find the memory is wiped (as per the fact that fingerprints I had previously learned no longer work).   So what would you say about this?

If a microcontroller has no internal brownout/reset controller or a buggy/inadequate one then it's quite possible for a a micro to start doing unpredictable things during a slow supply voltage rise/fall, including executing from random bits of program memory that may contain the flash erase/write functions.

Some of the earlier AVR micros were known for corrupting the first address in their onboard EEPROM during power up/down events.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 733
  • Country: us
Re: Low Voltage Detection & Power Cut IC
« Reply #10 on: August 27, 2019, 05:59:51 pm »
Depending on your ARM MCU, you might be able to do brownout detection there with no additional parts needed.  I know that some of the STM32 families, for example, have a lot of configurability where you can get interrupts at different voltage levels.
 

Offline Gribo

  • Frequent Contributor
  • **
  • Posts: 644
  • Country: ca
Re: Low Voltage Detection & Power Cut IC
« Reply #11 on: August 27, 2019, 07:44:48 pm »
A MAX809 might do the trick. It is ~0.8$ at Digikey. You have several threshold voltages to choose from. Also, make sure the CPU clock has the correct setting for the supply voltage. Usually, you can't run at the highest clock rate when the voltage is low.
I am available for freelance work.
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #12 on: August 28, 2019, 12:00:30 am »
If a microcontroller has no internal brownout/reset controller or a buggy/inadequate one then it's quite possible for a a micro to start doing unpredictable things during a slow supply voltage rise/fall, including executing from random bits of program memory that may contain the flash erase/write functions.

I don't think the Brown-out feature of my PIC16F1508 (which I am using) is "inadequate" but it applies to my PIC and not the Fingerprint Sensor.  it is the Fingerprint Sensor that, according to the manufacturer, needs to be powered off (since there's no way to easily "RESET" it) when the sensor's input voltage falls below 2.7V.

A MAX809 might do the trick. It is ~0.8$...

Page 2 of the MAX809 datasheet in the Absolute Maximum Ratings section does mention that the Output Current of the Reset pin is up to 20 mA. But are these reset chips really best for my application where I would need to use the Reset output to power the Base of a BJT PNP transistor in order to cut +3.3V power to my fingerprint sensor (to completely power-off that sensor)? 

Because the fingerprint module is a self-contained unit from the factory, I cannot expect an assembly factory to hand-solder a tiny wire to multiple reset pins on the various SMD IC’s of that fingerprint sensor, and that is why I would need to cut power to the entire sensor if the voltage falls below a predetermined threshold.
« Last Edit: August 28, 2019, 01:45:22 am by JDW »
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 733
  • Country: us
Re: Low Voltage Detection & Power Cut IC
« Reply #13 on: August 28, 2019, 03:34:41 am »
I don't think the Brown-out feature of my PIC16F1508 (which I am using) is "inadequate" but it applies to my PIC and not the Fingerprint Sensor.  it is the Fingerprint Sensor that, according to the manufacturer, needs to be powered off (since there's no way to easily "RESET" it) when the sensor's input voltage falls below 2.7V.

Ah, I thought you said you were using an ARM.  In any case, there are various MCU-based approaches that might not require a separate chip.  E.g. if your MCU has a comparator, or its dedicated brown-out detector has a configurable threshold, and the MCU can run at lower voltages than your fingerprint sensor can.  Then it's just a matter of wiring up the interrupt and controlling a MOSFET with a spare GPIO to turn off the sensor.
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #14 on: August 28, 2019, 04:36:04 am »
I thought you said you were using an ARM.

An ARM is inside the fingerprint sensor module which is made by another company, yes.  And to see a photo and description of the bottom of that sensor, please see my previous post and click on the graphic I attached.


Note that the manufacturer of the fingerprint sensor told me the following:

When the module's power supply (powered by battery) is between 2.0v and 2.5v, the memory might be erased.  We suggest you add a low voltage detection circuit.  For example, when Vcc falls below 2.7V, power to the sensor would be cut.

My MCU is a PIC16F1508 and has a Brown-out Voltage Reset feature and selectable threshold voltage of:

Min. 2.55v, Typ. 2.70v, Max. 2.85v

Since 2.55v is higher than the 2.50v the fingerprint sensor manufacturer mentioned, that brown-out range would qualify BUT I am using that to keep my PIC in RESET.  And while my PIC is in RESET, I cannot trigger interrupts or do anything with the PIC at all.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3339
  • Country: gb
Re: Low Voltage Detection & Power Cut IC
« Reply #15 on: August 30, 2019, 01:58:56 pm »
If a microcontroller has no internal brownout/reset controller or a buggy/inadequate one then it's quite possible for a a micro to start doing unpredictable things during a slow supply voltage rise/fall, including executing from random bits of program memory that may contain the flash erase/write functions.

I don't think the Brown-out feature of my PIC16F1508 (which I am using) is "inadequate" but it applies to my PIC and not the Fingerprint Sensor.  it is the Fingerprint Sensor that, according to the manufacturer, needs to be powered off (since there's no way to easily "RESET" it) when the sensor's input voltage falls below 2.7V.

I am talking about the fingerprint sensor, which clearly has a micro inside it and it apparently doesn't behave well during slow power rise/fall times.
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #16 on: August 31, 2019, 03:00:19 am »
I am talking about the fingerprint sensor, which clearly has a micro inside it and it apparently doesn't behave well during slow power rise/fall times.

The fingerprint sensor has two MCU's inside it and a 3.0V regulator too, as shown in the following photo:

https://www.eevblog.com/forum/projects/low-voltage-detection-power-cut-ic/?action=dlattach;attach=820047;image

But I don't know what your specific recommendation to me is.  As I mentioned before, the pins are too tiny for me to expect a factory to hand-solder a teensy, tiny wire to the RESET pin(s) of the various ICs shown in the photo of the bottom of the fingerprint sensor.  As such, the only means of dealing with a brown-out situation would be for that detection to occur on my PIC board (separated from the fingerprint sensor by a 1.5 meter long set of cables, mind you), such that when the low voltage case is detected (say, 2.8V and less), then I would need some kind of circuit on my PIC board that would kill power completely to the fingerprint sensor until the voltage rises above that 2.8V threshold. I am just trying to figure out the best way to deal with all that in light of the 1.5 meter cable length.

Consider the5  wires in that 1.5 meter cable leading from my PIC and PSU board to the Fingerprint sensor:

1. +3.3V Power
2. GND
3. Tx (9600baud, rests at +3.3v, drops to 0v when sending data)
4. Rx (9600 baud, rests at +3.3v, drops to 0v when sending data)
5. +3.3v Analog Touch Wire (sends 3.3v from the sensor only while a finger is touching the metal frame of the sensor).

Adding some sort of ESD chip (with diodes and zener inside) on Tx & Rx would be needed with perhaps an inline 100-ohm or 200-ohm resistor with the PIC's Tx and Rx pints for protection, but protecting the other 3 pins is a bit more complex.  And to completely power off the fingerprint sensor I would need cut off all current flow to it, and that would require cutting 4 of the wires and leaving its GND intact.  Then add to that the need for brown-out detection and the means to cut all those wires too.  Any specific thoughts on a circuit to accomplish all that would be appreciated.

At least one person in another thread suggested I route higher voltage to the sensor, then build a tiny PSU board as a buck regulator to drop that voltage down to 3.3V for the sensor.  But the design requirements are such that there won't be space for such, and adding the needed protection circuitry for both 12V and 24V operation would make that tiny board not so tiny at all.  In other words, I have no choice but to run 3.3V from my PIC board to the fingerprint sensor.

Thank you!
 

Offline TimNJ

  • Super Contributor
  • ***
  • Posts: 1720
  • Country: us
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #18 on: August 31, 2019, 06:03:36 am »
How about something like LM8364?

http://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=http%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm8364

Thank you for your kindness in providing a link to a specific voltage reset IC.  I always appreciate specifics.

But as mentioned in my previous post, I need more than that. I need to find the best approach to not only detect the low voltage but also to cut power and protect.  Simply put, I need to:

1. Detect when voltage drops below 2.8v. (That's rather easy.)
2. Cut power to my fingerprint sensor (I assume the best way is to cut 4 of the 5 wires -- all but ground, but what is the best way to cut those 4 wires at once?)
3. Protect all 5 wires in light of the fact they connect via 1.5m cable.  ESD filtering on Tx and Rx alone would not be enough.  What if someone connects the 3.3V power line to ground?  What if someone cuts the wires and causes a short as a result of the cutting (at the instant the scissors touches all 5 wires at once)?

What is the best approach to this, do you think?
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29503
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Low Voltage Detection & Power Cut IC
« Reply #19 on: August 31, 2019, 08:48:54 am »
How about something like LM8364?

http://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=http%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm8364

Thank you for your kindness in providing a link to a specific voltage reset IC.  I always appreciate specifics.

But as mentioned in my previous post, I need more than that. I need to find the best approach to not only detect the low voltage but also to cut power and protect.
:-//
And you couldn't imagine to use the IC in reply #6 with a MOSFET and/or a quad logic switch like HEF4066B ?  :-/O
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13133
Re: Low Voltage Detection & Power Cut IC
« Reply #20 on: August 31, 2019, 10:02:45 am »
In JDW's other thread I suggested:
You need the capability to power-up/power-down the sensor module cleanly to prevent it corrupting its FLASH, so using a linear LDO with an enable pin to go from a nominal 5V down to 3.3V at the sensor head wouldn't be too much of an imposition.  At an active current of 75mA, that would only be 130mW of extra dissipation.     A small board connected to the sensor's power and I/O header could also have the voltage supervisor IC and and a buffer for the frame touch signal, as an off-board floating when inactive 3.3V logic level signal is asking for trouble in an automotive environment.
I'm not suggesting a buck regulator at the sensor, I'm suggesting a linear regulator.  IMHO its advisable to have the sensor's Vcc rail monitoring and undervoltage cutoff at the sensor head, not in the main unit, as connectors fret and contact surfaces oxidise with age, which will reduce the Vcc available to the sensor and increase its impedance, so its likely that it will become unreliable with age if one tries to implement the undervoltage cutout purely in the main unit.

There's no need to isolate most of the signal wires when the sensor is powered down. With its Vcc at 0V, the two outputs from the sensor will effectively be at logic '0'.  However one probably should isolate the sensor's serial RX pin, as that line probably idles at logic '1', and allowing the input protection to clamp it could result in out of spec voltages on the sensor Vcc rail and a return of the memory corruption problem.    A simple N-MOSFET, source to sensor RX, gate to +5V and drain to the cable from the main unit will do nicely, or use a single gate logic buffer that can tolerate logic '1' in while powered down without loading the input signal.

Why 5V to the sensor head?, well its a low enough voltage to minimise dissipation in the local LDO, may already be needed in the base unit, and is low enough to be maintainable during cranking.   If the base unit doesn't already have a 5V rail, getting 75mA @5v from a 14V power input with a linear regulator would be possible, as that's only 675mW dissipation, and that 75mA is only needed intermittently when the sensor is active.   Of cource one could also use a buck regulator.   There shouldn't be any need for extra power input protection as that should already be in place for the main unit's own power supply - just T into the feed after the existing protection circuit.
« Last Edit: August 31, 2019, 10:14:05 am by Ian.M »
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #21 on: September 02, 2019, 03:06:30 am »
...one probably should isolate the sensor's serial RX pin, as that line probably idles at logic '1', and allowing the input protection to clamp it could result in out of spec voltages on the sensor Vcc rail and a return of the memory corruption problem.    A simple N-MOSFET, source to sensor RX, gate to +5V and drain to the cable from the main unit will do nicely, or use a single gate logic buffer that can tolerate logic '1' in while powered down without loading the input signal.

Thank you for your reply, and yes the Rx pin does idle at 1 so it would need to be switched.  But could you explain why you suggest I use a MOSFET (e.g., 2N7000G) instead of an NPN BJT for the signal switching?  The required current flow would be in the microampere level, and a sufficiently high base resistor on an NPN (more than 10k) would keep current consumption on part with a MOSFET.

And you couldn't imagine to use the IC in reply #6 with a MOSFET and/or a quad logic switch like HEF4066B ?  :-/O

Thank you for proposing the HEF4066B, but I see it is an "analog" switch as opposed to a dedicated "logic" switch (even though logic can be used with analog switches, I am aware) and the datasheet says Ron(rail)=340-ohm max & Ron(peak)=2.5k-ohm max (@Vdd=5v & Isw=200A). That Ron seems a bit high to run 9600bps logic level data through it.
« Last Edit: September 02, 2019, 07:33:41 am by JDW »
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #22 on: September 02, 2019, 07:35:41 am »
To be sure that the problem is power glitches I would first solder a small lipo to VIN and GND of that sensor and see if it really stops misbehaving then.

"lipo"?
 

Offline JDWTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
Re: Low Voltage Detection & Power Cut IC
« Reply #23 on: September 02, 2019, 08:45:30 am »
Here is a simplified schematic so everyone can better see what I am attempting.  (The power supply is complete and not simplified. Note it accepts either 12V or 24V vehicle power -- so about 29V when a truck's engine is running.)

825441-0

This is my current bench-test setup, not the final product.  The final product must move the fingerprint sensor 1.5m away using the 5 wires shown.

Note that while the UART section of the Fingerprint sensor can accommodate 5.0V just fine, the Holtek MCU side is restricted to 3.3v only.  And it's power wire goes straight into that MCU as shown, with no protection at all.  The same for "Out" -- it's an MCU output pin that has no protection at all.

I added a 1k pulldown on RA2 because I was sometimes getting some oddball readings without it.

I added a weak 22k pulldown on RB5 because if that wire gets disconnected from the sensor, I can't leave RB5 floating.

RB7 is kept at HI by the PIC, so no pull-up or pull-down is needed.

There is other capacitance on the 3.3v rail not shown in the schematic.  0.1uF ceramics and a couple 47uF aluminum electrolytics.

The manufacturer said that I need to power off the fingerprint sensor for Vin lower than 2.7V, since there is no RESET that I can access.  It has been suggested that change my switcher power supply to 5V and then add an LDO (5.0V to 3.3V drop-down) on the PIC side.  But if I drive my PIC with that LDO, I cannot switch that LDO off to power-down ONLY the fingerprint sensor.  And if I drive my PIC at 5.0V and add the LDO only for the fingerprint sensor, then I would need voltage level conversion because the signals coming from the sensor would be 3.3V.  Another consideration with that is that driving my PIC at 5.0V instead of 3.3V consumes more current (not a lot, but a consideration nonetheless).  I would then need to add a RESET IC that would kill the 3.3V LDO (killing power to the fingerprint sensor) when voltage drops below say 2.8V, then enabling the LDO again when the voltage rises.  But cutting voltage via LDO alone is insufficient, and I would need to cut the RB5 line and the RA2 line.  ESD protection would be needed as well.

So if you have any new thoughts to share in light of this schematic, I am happy to hear them.
« Last Edit: September 02, 2019, 08:47:16 am by JDW »
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13133
Re: Low Voltage Detection & Power Cut IC
« Reply #24 on: September 02, 2019, 08:51:35 am »
Thank you for your reply, and yes the Rx pin does idle at 1 so it would need to be switched.  But could you explain why you suggest I use a MOSFET (e.g., 2N7000G) instead of an NPN BJT for the signal switching?  The required current flow would be in the microampere level, and a sufficiently high base resistor on an NPN (more than 10k) would keep current consumption on part with a MOSFET.
Nobody gives a flying F-word about a few mA current consumption in an automotive application.   The self-discharge of a Lead Acid battery is of the order of 4% per month, which for a 90AH battery, the smallest you are likely to find in a four wheel vehicle, is equivalent to a standing load current of 5mA.   The problems start when you have *far* too many systems  that draw tens of mA in standby with the ignition off, then you get a vehicle that you cant  leave on airport long term parking for a few weeks, and expect to it to start when you return, without  a solar panel to keep the battery topped off.  When the vehicle is running, tens of mA is still negligible.

A BJT could be used, but will give *SLOW* rising edges, as all that's available (unless you add an extra pullup) to drive high is the base current *(1 + reverse HFE), and the reverse HFE) of most transistors is pretty lousy.  It will also compromise your logic levels, lifting Logic '0' slightly by Vce_on and dropping logic '1' by Vbe, affecting noise immunity   A small MOSFET with its gate pulled above the logic '1' level has low on resistance in both directions, and as long as the driving signal source can handle its channel to gate capacitance as a load, will have negligible effect on logic levels and nois immunity.  It also takes less PCN area as it doesn't need a resistor.

N.B. a 2N7000 is *NOT* suitable unless  you run your supply to the sensor at >7V as its max. Vgs threshold voltage is 3V, so it wont reliably stay on with 5V on the gate and a 3.3V logic '1' signal on the channel, which only gives 1.7V Vgs.   You need one with a max threshold voltage <1.5V to guarantee a full logic '1' level at the sensor RX pin.  <1.8V  threshold will work with a possible slight reduction of the logic '1' level but still within spec.

You could also do the level conversion with 74LVC1T45 or 74LVC2T45 level translating buffers, (one of each or three of the 1T45) as they support partial power-down applications by going hi-Z if both sides aren't powered.  That would let you run 5V logic levels over the sensor cable, for better noise immunity and let you run the PIC at 5V.  The extra current consumption will be negligible for an automotive application (see above) and if it was important, by judicious use of either reducing the clock speed or sleeping when inactive, in most applications you can save more than going from 3.3V to 5V at a fixed clock speed costs you.  The 74LVC1T45 is available in packages as small as the 1mm x 1mm DFN1010-6, so doesn't need much board area at the sensor.

Why do you think the sensor needs significant ESD protection on its cable (as long as that cable is screened)?  If your usage case includes dumb users in nylon shell-suits fiddling with the connectors, and the 2KV HBM model ESD rating of the 74LVC1T45 isn't good enough, you *might* consider adding some, but remember the PIC is just as vulnerable so *IF* you need it, you need it *BOTH* ends of the cable.
« Last Edit: September 02, 2019, 09:25:43 am by Ian.M »
 
The following users thanked this post: JDW


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf