Content originally posted in LPCWare by starblue on Tue Mar 10 01:47:33 MST 2015
Quote: MikeSimmonds
Looks like I need to find additional app notes or examples
So far I have found AN11275 and AN11351.
There's also AN11343 (and an older version AN11196), probably not too helpful. I'm not aware of an I2C example.
In the UM there is one sentence about I2C in the SGPIO chapter: "Use oe path as data, tie the output data to 0." Which makes sense, that way you get the open-collector-like behavior needed for I2C. So I guess you are supposed to just shift out the data you need and send 1 bits where you want to read data. And shift in from the same pin into another slice. Afterwards the processor can make sense of the whole. That should for the master, but I don't know whether it could be extended to work for a slave. Maybe you could use a match interrupt to set the slice count disable register.