Hi all,
We are using the PCA6416A (IO Expander) to check the GPIO status in our project, with a microcontroller(TI MSP430F5358) and using the default configuration.
While validating the IO Expander, we are reading the pin state and connecting some of the GPIO (port 0 and 1) pins to the ground to check the state of the pins, while reading the data from it for every 2 seconds the values are coming 0xFF but after some iteration of reading only once it is giving correct values after that again starts giving 0xFF. Is there any reason for this, we are reading the ports in pairs only.
Hi Manohar,
I have not heard about such a problem before.
Could you please share oscilloscope plots of the reads from the PCA6416A? In addition to the reads on the SDA and SCL pins, please also show the GPIOx and VDD signals.
Please can you share also the schematics showing all the signals connected to the PCA6416A device?
What is the status of the power supply when you read the states of the PCA6416A I/O pins and get the “incorrect” states?
Best regards,
Tomas
Hi,
I am having trouble reading from the input pin and not sure what registers to set before reading the input register 0x00 as I have configured P0_2 pin as Input.