Second you need to use the "define I2C_HOLD 1" because the MPC23016 pulls the clock low in order to signify it is not ready for the next byte of data.
When I added this to the code, it locks up at the init as I suspected it would as the proc sees nothing back from the 23016 due to the proc not sending anything to it.
Bookmarks