Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Problem with I2C - using LM4F120 launchpad board

$
0
0

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.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>