Hello,
I am working a project where I am using PIC18F4620 MCU with PCF8574 to switch ON the 8 connected relays in their 8 Port pins. Coming to I2C communication, first I am sending start bit, then slave address and 0xFF to switch on all relays in the 8 port pins. Is this right way to deal with PCF8574?. Or should I send any commands to configure PCF8574's port direction before sending output high (0xFF) at port pins. Can anyone guide me for I2C communication between PIC18F4620 and PCF8574 . My application need Port write mode only. I don't want Port read features from PCF8574. Below is the schematic that I used to interface PIC18F4620 MCU and PCF8574. Please suggest a solution.
Thanks,
Muthu