I want to perform I2C loopback test in my standalone application.But I dont know its flow for performing it.
Do I have followed polling FIFO method.But I am not getting loopback performed.
My code flow:
->disable the I2C module
->configure I2C_SYSTEST register for loopback mode
->add thresold value in Rx FIFO & tx FIFO
->enable the module (set I2C_EN bit )
-> XRDY bit of I2C_STAT register...if 1 then write to I2C_DATA register for txthresold+1 times
->poll RRDY bit of I2C_STAT register...If 1 read the I2C_data register...
Please let me know if I forget anything to be done in my code.