Electronic – UART pins to unpowered MCU

microcontrollerpoweruart

I'm using a USB-UART IC with an MCU, which is powered from a battery.

The USB-UART IC is powered from USB connector, not from the battery, so that I don't need to open up a console every time when the switch goes off and on.

schematic

simulate this circuit – Schematic created using CircuitLab

edit: I didn't draw it on the figure but the IC has an internal 3.3V regulator and every VDD is on the 3.3V level when the switch is on.

Now I'm worried about when the USB is plugged and the switch is still off.

The MCU document says that every input pin's maximum rating is VDD + 0.3, which would be 0.3 V when the MCU is not powered.

If the TX/RX pair on the USB-UART side goes high, will it destroy the pins on the MCU side?

If so, What do I need between the TX/RX pairs?

Best Answer

It depends on the MCU, but in most cases it'll power up the MCU, and possibly the rest of the board through the MCU. The MCU will try to run, and do odd things. Your board will do odder things. If your board draws enough current, it'll damage that pin on the MCU.

You need to arrange for the UART signal to stay at 0V when the MCU is off. If the UART chip (or UART) that you are using doesn't have an enable pin (the USB UART chips that I've worked with can be configured for exactly the case you're describing), then AND the UART outputs with the microprocessor's VCC.

Related Topic