AnsweredAssumed Answered

I need an I2C Slave sample

Question asked by shuichiy on Mar 16, 2016
Latest reply on Oct 18, 2016 by Lucas Magasweran

Hi, I'm looking for sample codes for I2C on MK22F which works as I2C slave just like EEPROM device.

A external master (maybe PC) sends 1 or 2 bytes register address followed by write data, or a master sends 1 or 2 bytes register address then read data.


I have already tested I2C slave interrupt and slave interrupt_transfer samples in the KSDK, but they are not enough cause it seems they need fixed buffer length for slave transfer.


Do you have any ideas ?

I'm a new to Kinetis so your any advice will be appreciated.