1 Reply Latest reply on Feb 22, 2013 3:30 AM by helic_263931

    PSOC5 LP, I2C Master


       How to use interrupt method to do I2C master transfer with EEPROM(I2C Slave)?


      Is there any reference code?


      Because when I try this method, it always failed.


      I have used start(write)->sendbyte()->start(read)->receivebyte()->stop() to do the operation, it works fine.


      But I still want to try interrupt method: writebuffer(no_stop)->readbuffer(repeatstart) to do the same thing. Because sometime, the first method will fail... It hangup in start(write), there was a while(1)  loop in BSP, that's not good.