Configure different frequencies for slaves on same I2C bus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure different frequencies for slaves on same I2C bus

632 Views
jemish_1990
Contributor IV

Hi All,

I have very basic question.

We have 5 slaves on same I2C bus. 4 Out of 5 slaves can support 400Khz maximum and one slave can support maximum 100Khz.

Right now I have configured I2C bus for 100Khz and everything is working fine.

I would like to know is it possible to configure different frequencies (100Khz for 1 slave and 400Khz for rest of the slaves) for different slaves.

Thanks,

Jemish

Labels (1)
Tags (1)
0 Kudos
3 Replies

514 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jemish

seems this is not possible for the same bus, also there is useful discussion on

bus speed of /dev/i2c-2 on imx6q | element14 Community

Best regards

igor

0 Kudos

514 Views
jemish_1990
Contributor IV

Hi Igor/Artur,

Thanks a lot for your suggestion ! Based on your inputs we think it would be better to keep same frequency 100Khz for all the slaves. We can close this thread now.

Thanks,

Jemish

0 Kudos

514 Views
art
NXP Employee
NXP Employee

The only way to do this is to re-configure the I2C_IFDR register of the I2C controller IP each time you need to change the frequency.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos