Hi,
I'm trying to interface expander PCA9555 with IMX233. it uses a 16 bit memory address.using i2ctool,"i2cdetect" can see it in address (0x20)
what i understand from data sheet of PCA9555 is that If I want to control the Port-Expander i set The register with the address 0x06 which will controls the direction (input/output) of all Port-0 pins and The register with the address 0x02 will controls the level of all port-0 pins.
by using #i2cset 0 0x20 0x06 0x00 command it set all pins in port 0 to low
my question is how to set and control each pin in the expander ?
and I read somewhere that I cannot use a 16-bit memory address (e.g. 0xFFFF) with i2cset or i2cget. Is that true?
if there is any tutorial or information about this subject please help me .
thanks in advance