This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

example I2C bus talking to MMA8653FC

I am having a problem talking to a MMA8653FC 3-axis Accelerometer from NXP.

I never see the clock signal generated.

I am using the nRF52 lib, communicating to a nRF5280 chip mounted on a MDBT50Q module from Raytac Corp.

Can someone point me to some example code using the nRF52 talking to any Accelerometer.

Parents
  • Hi,

    I never see the clock signal generated.

    Does this mean that you are using an oscilloscope on the SCL pin, and seeing nothing?
    If so, could you please share your code? That way I would more easily be able to pinpoint what is not working.

    Can someone point me to some example code using the nRF52 talking to any Accelerometer.

    Have you seen the TWI sensor example? In this example, it is demonstrated how to setup and communicate between a Nordic SoC and an arbitrary sensor, using TWI.
    If you are unable to see anything on your SCL pin, you need to make sure that the initialization and usage is correct.
    Do you have a debugger available, so you may step through your code to see what is going on?

    Best regards,
    Karl

     

Reply
  • Hi,

    I never see the clock signal generated.

    Does this mean that you are using an oscilloscope on the SCL pin, and seeing nothing?
    If so, could you please share your code? That way I would more easily be able to pinpoint what is not working.

    Can someone point me to some example code using the nRF52 talking to any Accelerometer.

    Have you seen the TWI sensor example? In this example, it is demonstrated how to setup and communicate between a Nordic SoC and an arbitrary sensor, using TWI.
    If you are unable to see anything on your SCL pin, you need to make sure that the initialization and usage is correct.
    Do you have a debugger available, so you may step through your code to see what is going on?

    Best regards,
    Karl

     

Children
No Data
Related