Hi!
I want to use PCF8575 to drive a series of 5V optocouplers from my RaspberryPi. The optoculper is internally connected to VCC and the control pin must be lowered to activate them. Each one draws ~3.8mA when connected to the GND. (16 channel 12V SaintSmart relay board) I imagine that the total power drain when all the optocuplors are set to low is 3.8 * 16 ~=60mA. That's below 100mA specified in PCF8575 datasheet.
I tested first the cirucit:
One i2C level shifter between RPI and PCF8575. PCF8575 is powered by 5V. I Put a LED+1K between P0x and VCC. I write the correct bytes (eg 0x00) to I2C and everything works.
Q1: I accidentally unplugged the VCC from the PCF8575 while the LED was still on and surprise, it did not shut down. Why? Did it worked with the power drawn through I2C intrerface? In the tech sheet, there is a power reset (I believe below 1V or sth). Should I put a large pulldown to VCC pin to shut the PCF8575 down when not powered?
Q2: Above scenario is not unrealistic, the relay board (optocuplers) have a spearate 5V power supply and I intend to power the PCF8575 using that power supply. When that one is off, how much current will PCF8575 draw from I2C? Am i in danger to burn something? [The goal is to reduce the burden of 60mA from raspberry and put it to the relay board. (That one is powered with 12V 2A anyway, and is not that sensitive to voltage drops). On RaPi I have ADCs, 4 1Wire busses, wireless network, storage, etc)
Thak you!