Hello,
find attached my code (2 years old and not the best!).
I have removed the maincode.
I2C reads in bytes and fills up a buffer I2C_In.
The maincode generates data in a second buffer I2C_Out.
The incoming bytes are only single bytes, I don't know if the routine will manage more than 1 data in a message.
Just read the code and try to understand the statemachine of the I2C-hardware.
Bookmarks