i am using a NXP LPC1768 to communicate with a TCA6408. I am using the I2C0 interrupt on the LPC1768. The I2C routines
are a slight modification of a NXP sample.
I can write to the TCA6408 with absolutely no problems, Whenever I try to read the Input Port the response is always the
LAST write to the Output Port, not what is actually on the 8 data lines. I have configured the chip to have P7-P4 to
be inputs and P3-P0 to be outputs. I then write 0x0E to the Output Register. The data pins the read 0xFE.
I read the Input Port and it returns 0xFE. I then tie P7 to GND. The Input port Still read 0xFE, not 0x7E
as I am expecting.
Is there extra delays needed when going from Master Transmit Mode to Master Receive Mode. I am Lost.
Any suggestions would be greatly appreciated.