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 Kevin,

    If you are running an unmodified version of the twi_sensor example from the SDK, but you are not seeing anything on your oscilloscope - then I suspect that there might be a hardware or pin-configuration issue.
    Could you post the modifications you did to the pca10056.h file? Does the code compile properly, and flash to the nRF52810?
    Do you see where in the code the application stops? If it is a hardware connection I would think it stops in the loop waiting for a successful TWI transfer.
    Which pins are you using for SDA and SCL, in your modified version, and how have you made these modifications?

    Best regards,
    Karl

Reply
  • Hi Kevin,

    If you are running an unmodified version of the twi_sensor example from the SDK, but you are not seeing anything on your oscilloscope - then I suspect that there might be a hardware or pin-configuration issue.
    Could you post the modifications you did to the pca10056.h file? Does the code compile properly, and flash to the nRF52810?
    Do you see where in the code the application stops? If it is a hardware connection I would think it stops in the loop waiting for a successful TWI transfer.
    Which pins are you using for SDA and SCL, in your modified version, and how have you made these modifications?

    Best regards,
    Karl

Children
No Data
Related