I have designed a battery powered device where there is a need to measure the battery voltage (VBAT, 2xAAA batteries) during operation. The VBAT rail is connected through the TS5A3166 analog switch to a GPIO/ADC input of the applied microcontroller. There is a boost regulator in the design which provides the internal 3.3V power rail from the VBAT input. The TS5A3166 is powered from the internal 3.3V rail. The reason I selected the TS5A3166 for the job was the "Isolation in Powered-Off Mode, V+=0" feature highlighted in the datasheet. The theory behind was that if the unit is switched off (boost regulator shuts down and 3.3V -> 0V) the VBAT connected through the TS5A3166 (VBAT connected to NO, pin#1) will not feed the microcontroller through the GPIO/ADC pin. However, this is what I see. Assuming a 3V VBAT input, when the booster shuts down, the 3.3V rail starts to collapse exponentially but stops at around 1.6V and remains there. In this state the switch is open and I can see the VBAT voltage at the COM (pin#2) pin as well, despite the fact that the IN pin (pin#4) is solid '0'. Removing the switch, the 3.3V rail goes down to 0V when the booster shuts down.
Looks like to me there is protection diode between the NO (pin#1) and the power pin (pin#5) of the TS5A3166 and the VBAT input directly feeds back the 3.3V rail through the diode and doesn't allow the 3.3V rail going down to 0V. Please clarify if my understanding is correct.
Thanks: Tom Ledeczi