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

I2C clock frequency problem

Hi,

I am using NRF52832 development board , to which i have interfaced LIS3DSH accelerometer sensor(3.3V i2c)

when i  configure it for 1600 sampling rate and all the axis enabled , i am not able to get any data .

could anyone help with this problem.

also the I2c clock frequency, as shown in below image, while i am capturing data when i observe in oscilloscope or logic analyzer , clock frequency is showing 200 all the setting is for 400KHz.

what could be the problem for this or is there any other way i need to follow to set the clock to 400KHz.

help me ASAP...

Thank you

Parents Reply
  • The GPIO expander is connected to P0.13 - P0.20: I/O expander for buttons and LEDs. And I believe they should work at 400kHzthrough the IO expander.

    awneil said:
    Does your peripheral default to 200kHz, and need to be configured to change to 400 ... ?

    I've not found anything in the LIS3DSH's specs that hints to a configurable I2C clock.

    Paraphrased from its spec, "The LIS3DSH supports fast I2C mode with clock speeds up to 400kHz", but, it does not say anywhere in its specification that its I2C slave runs at 400kHz, rather it supports 'fast mode I2C'.

    What you're seeing on SCL is the I2C slave clock stretching down to 200kHz.

    This is most likely the expected behavior of this device. 




Children
Related