Hello, I have a SC18IM704-EVB and I want to pair it with PCF8575, is there a way for the SC18 to accomodate the INT pin of the PCF? How does the host get the interrupt?
Solved! Go to Solution.
Hello Joshua,
yes, that is correct. You need to poll for checking if the !INT was asserted low by reading the IOState register.
With Best Regards,
Jozef
Hello Joshua,
you can connect the !INT pin to one of the GPIOs pin in the SC18IM704. The GPIO pins are configured as inputs after reset.
You can make sure, that the used GPIO is set as input only by setting the PortConfx registers to 00 or 01.
Then you by reading the IOState register of the GPIO pin, you can check if the !INT pin is asserted (LOW).
With Best Regards,
Jozef
i have thought of this as well, setting the GPIO as input, but how about on the host side? Should the host poll everytime for the input from the INT pin, and if there's one, the host then read the inputs from the PCF?
I am also thinking of ditching the INT pin and just let the host poll for the PCF inputs directly
Hello Joshua,
yes, that is correct. You need to poll for checking if the !INT was asserted low by reading the IOState register.
With Best Regards,
Jozef