2
\$\begingroup\$

This question already has an answer here:

I have an FT232RL connected to an AVR Atmega2184P (running the Arduino core) UART. The microcontroller has two power supplies - a LiPo battery (VBat), and USB power (Vin). The way I've designed the circuit is that if the USB is plugged in the battery is disconnected from the circuit and Vin powers the entire circuit. When the USB is unplugged, VBat takes over

The VCC and VCCIO on the FT232 is connected to Vin. Therefore the FTDI chip should only be powered on when the USB device is connected.

I'm noticing weird behavior when the battery is plugged in but the USB is not. As soon as I initiate the UART bus on the microcontroller, and current is sent down the RX and TX lines, the FT232 powers itself up. What is strange is the power is then transferred into the Vin power rail.

This is affecting other parts in my circuit that rely on there not being any power in Vin when the USB is unplugged. If my code doesn't initiate the UART bus, everything works as it should.

Has anybody seen this behavior? I can't see any reason why the FTDI chip would be relaying power back into the VCC line.

I've tested this with multiple processors (different Arduino boards), and multiple FTDI breakout boards. Initially thought it might be a chip issue, but the behavior described is consistent across each device.

\$\endgroup\$

marked as duplicate by Ignacio Vazquez-Abrams, PeterJ, Ricardo, Daniel Grillo, Matt Young Dec 23 '14 at 18:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
  • \$\begingroup\$ Thx for the links guys! That definitely seems to be the issue. \$\endgroup\$ – darudude Dec 23 '14 at 5:35
  • \$\begingroup\$ @Passerby - I saw in the other questions you recommended optocouplers. Another option I was thinking was that instead of using the FT232 in Bus Powered mode (i.e. USB powers FT232), to operate it in self-powered mode instead. I was planning on powering the FT232 from my VCC5 line (5V regulated supply that both Vin and Vbat feed into). That way, my micrcontroller and FT232 are always powered from the same bus, and I won't run into this issue, as Vin is isolated. Does this make sense? \$\endgroup\$ – darudude Dec 23 '14 at 5:38
3
\$\begingroup\$

Your FTDI chip is being powered through the input protection diode on the input line.

Although FTDI does not appear to have shown it in their data sheet the inputs of IC chips are very often protected from ESD by having a diode clamping structure that clamps input pin voltages to be between GND and VDD. When the supply pin is not connected to anything a high level signal on the input pin can source current through the upper clamp diode and "power up the chip".

\$\endgroup\$
2
\$\begingroup\$

I can confirm that using two 74LVC1T45 will work, as answered in (my question): A circuit to prevent parasitic powering of FT232RL by MCU, will it work?

This is my working circuit:

enter image description here

I use a jumper (not shown) to connect FTDI3.3V as the 3.3V supply to the rest of the circuit.

\$\endgroup\$
  • \$\begingroup\$ DO you only connect the jumper when the FTDI is in operation? Or is the jumper permanent? I'm looking for a solution where no manual intervention is necessary. \$\endgroup\$ – darudude Dec 23 '14 at 12:31
  • \$\begingroup\$ @darudude The circuit is normally powered by the battery using a LTC3525-3.3v boost converter, except for the FTDI which is bus powered. The jumper lets the FTDI power the rest of the circuit when no battery is present; it is not permanent. To automatically switch between the two you need some extra circuitry. Your circuit runs on 5v? There are quite a few ways to do this... \$\endgroup\$ – geometrikal Dec 24 '14 at 21:32

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