Part Number: TIC12400
I need to configure IN0 to read a ground or VBAT supply. I have it partially working so let me explain what I am doing.
I enable IN0 (Bit 0, Register 0x1B), next, I leave Register 0x1C Bit 0 to its default which is current source. Then I monitor Register 0x05, Bit 0. When nothing is attached to IN0, I read a 1 at Bit 0, when I touch the input to ground, it reads 0. So that is working as expected. So, I call this the VBAT supply case.
Now, I want to test the ground case. I set Register 0x1C, Bit 0 to a 1 which sets the current sink option for IN0. So, with nothing attached, I expect to now read a 0 for Bit 0, Register 0x05, but instead, it continues to read a 1 which doesn't seem right. When I set the current source/sink register, I always read it back to make sure I set it right. Am I doing something wrong here with my configuration? I assume the current source/sink should pull the floating pin low or high.