I am trying to communicate an accelerometer and my Zedboard using I2C and I am facing an annoying problem. The I2C SCL signal remains in low value after the communication.
The code is very simple as you can see in the attached file exampleCode.c.
I am able to see the signals in my oscilloscope and they are correct according to the datasheet (see last picture), but after the slave sends the data, the Zedboard doesn't send the stop signal and the SCL signal remains in low value. Why is this happening? What am I doing wrong?
I would appreciate if anyone could help me with this problem.
Question
malfalf
Hello,
I am trying to communicate an accelerometer and my Zedboard using I2C and I am facing an annoying problem. The I2C SCL signal remains in low value after the communication.
The code is very simple as you can see in the attached file exampleCode.c.
I am able to see the signals in my oscilloscope and they are correct according to the datasheet (see last picture), but after the slave sends the data, the Zedboard doesn't send the stop signal and the SCL signal remains in low value. Why is this happening? What am I doing wrong?
I would appreciate if anyone could help me with this problem.
Have a nice day,
exampleCode.c
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now