0
\$\begingroup\$

I have a fuel gauge which has a push-pull interrupt pin working at 1.8v. I need to connect this pin to a MCU working at 3v. Theoretically I don't need a level shifter since the 1.8v are above the high level threshold of the MCU.

My concern is that the absolute maximum input rating of the fuel gauge pin is 2.75v so if I accidentally program the MCU pin as an output and I set it to high it might burn the fuel gauge, yes, I know that it sounds crazy but these kind of things happen sometimes.

So the question is, how I can connect this pin keeping the fuel gauge safe?

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

You could use a zener diode and resistor.

schematic

simulate this circuit – Schematic created using CircuitLab

Pick a Zener voltage between 1.8V and 2.75V. Pay attention to the tolerances to make sure it won't sink current simply from the 1.8V output of the gauge. Also make sure it has a low enough Zener voltage to keep the gauge's pin at a safe level.

For example, pick a diode with a 2.2V Zener voltage. If you want to keep current less than 10mA, you'd need 110 ohm resistor. This assumes the MCU high output is 3.3V, and it can safely drive 10mA of course.

\$\ {3.3V-2.2V\over 10mA}= 110\Omega \$

EDIT: This assumes the gauge has some reasonable source impedance. You may want to add another resistor of the same value between the diode and the gauge A schematic/datasheet would be helpful. However, at that point, you're at the same component count as a simple, MOSFET level shifter.

\$\endgroup\$
2
  • \$\begingroup\$ Thanks Justin, looks like a simple neat solution. I'm curious, now that you mentioned that, would a MOSFET level shifter keep the gauge safe as well? \$\endgroup\$
    – Mark Hardy
    Commented Jan 23, 2015 at 17:04
  • \$\begingroup\$ A level shifter would make sure the voltages stay safe, but not the current. If one end is high, and the other is low, you'll get some current flowing. The circuit I'm thinking of assumes one end is high-z. Or at least an open-drain output. Check out this post for a good reference: electronics.stackexchange.com/questions/18457/…. To protect against current, some resistors in series should still work. Just be mindful how much current each device can source and sink. \$\endgroup\$ Commented Jan 23, 2015 at 21:51
1
\$\begingroup\$

If you don't mind the signal being inverted, something like the below would be very robust. Even transients of +/-60V on the input won't harm anything, nor will a continuous short to +13.8V.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.