I2C with EZUSB (FX,FX1,FX2,FX2LP)

Question: I'm using the available functions (EZUSB_WriteI2C & EZUSB_ReadI2C) to read and write to an external device. Is there a timeout setting if a read transfer is in progress but the slave is not responding where the transfer would be aborted?

 

Answer:

I2C_rw.c in C:\Cypress\USB\Target\Lib\Ezusb contains these functions and the files for generating the ezusb.lib. There is not a timeout functionality. This may be something that could be added using a timer.

Reference Documentation:

     

  

AN1193 - Using Timer Interrupt in Cypress EZ-USB® FX2LP™ Based Applications