I2C implementation in Nrf NCS SDK 1.7.1

Hi,

We want to explore I2C examples in nCS SDK 1.7.1

Can you please enlist all the examples having I2C implementation.

also want to add I'm referring to I2C API's mentioned in this link & i2c.h from this path in nCS 1.7.1 (\nCS\v1.7.1\zephyr\include\drivers)

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/i2c.html 

kindly suggest the sample example we should refer for the I2C peripheral development.

Thank you,

Parents Reply
  • Hi Hitesh,

    hiteshk014 said:
    1. Changing clock frequency

    Yes, in order to change the clock frequencies, it's sufficient to pass the speed configurations as mentioned in the documentation

    hiteshk014 said:
    2. I want to have multiple slave configuration and single master in I2C

    Your overlay file seems good. You can connect up to 127 slaves on a single I2C/TWI bus. You can refer to this GitHub page.

    hiteshk014 said:
    3. I want to transfer 16 bit data through i2c bus I am referring to following api i2c_write

    I don't think this is possible since the i2c_write() expects a uint8_t pointer .

    Regards,

    Priyanka 

Children
Related