HI Mike
thanks for your suggestion, I am using KINETIS K10 , which doesn't have
STOPF flag. And I tested checking the BUSY bit in the i2c interrupt
routine after receiving last byte , seems it failed . So as your
suggestion, if the slave i2c needs to know whether it is the last byte, it
has to set up a timer in the i2c interrupt routine after receiving each
byte?
and another question is after a transfer finishing , if the mater starts
another transfer immediately, which means the I2C slave receives a start
signal immediately and change its BUSY bit to 0, in this case, is it
possible to fail to check the BUSY bit?
Have a good day.
Alven