Hello Everyone,
I am doing I2C interfacing with MMA8451Q accelerometer using my LM4F120H5QR launchpad board.
I am unable to do it successfully.
I have examples for that but there is no steps which I can follow to establish the communication.
I am confused for using I2C API functions. I want to know the sequence to initiate the communication with start bit - send data - detect acknowledgement - recieve data - repeat start bit.
I am not able to detect acknowledgement. I don't know how I can do it.
after sending a data using I2CMasterDataPut & I2CMasterControl when I am checking whether the master is busy or not using "while(I2CMasterBusy(I2C0_MASTER_BASE));"
then the program is get stop at this instruction !!
I mean master is going in busy state forever...
what should I do?Please help.
Thanks for your time.