Electrical – 7805 voltage regulator reverse polarity

7805power supplyvoltage-regulator

I'm working on a project for which I need to use a 7805 voltage regulator. I feed 9V to its input pin and power a 5V board with the output. However, when the board is connected to a computer, the board outputs 5V through the same cable: even if I turned off the 9V power supply before connecting the board to a computer, would the voltage regulator be hurt by the 5V input to its output pin? Can I fix this with a diode?

Best Answer

The TI data sheet says this: -

enter image description here