This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I2C port in RM48 HDK

I have issue in connecting SDA and SCL pin of my sensor module with I2C port in Expansion connector.

i2c_SDA pin RM48 HDK is multiplexed with MIBSPI3NCS[2] and N2HET[27].

i2c_SCL pin RM48 HDK is multiplexed with MIBSPI3NCS[3] and N2HET[29].

in Pinmux i have enabled I2C port and SDA and SCL pin. 

I have used MIBSPI3NCS[2]  and MIBSPI3NCS[3] pins in SPI3 port for SDA and SCL. I have not found any I2C port.

is it right way to access the I2C interface or what i have to do?

  • What do you mean that you did not find I2C port? To confirm PINMUX, you can configure the I2C pins as GIO outputs from I2C control registers and check if you can change the pin states by writing to the the corresponding i2C register. I2C operation needs pull up resistors on both pins.

    Thanks and regards,

    Zhaohong
  • Thank you Mr.Zhaohong,

    please confirm

    1.To use I2C communication I have to configure any two GPIO pins as SDA and SCL.

  • For I2C operation.

    (1) Configure PINMUX for I2C SCL and SDA..

    (2) Add pull up resistors.

    (3) In the I2C module, configure the pin function as I2C.

    If there are issues, you need to first check if the pinmux is set correctly.

    To verify if PINMUX is configured correctly.

    (1) Configure PINMUX for I2C SCL and SDA..

    (2) In the I2C module, configure the two I2C pins as GIO outputs.

    (3) Toggle the pins by writing to I2C register

    Thanks and regards,

    Zhaohong