Configure different frequencies for slaves on same I2C bus

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Configure different frequencies for slaves on same I2C bus

1,757 次查看
jemish_1990
Contributor V

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

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,639 次查看
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 项奖励
回复

1,639 次查看
jemish_1990
Contributor V

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 项奖励
回复

1,639 次查看
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 项奖励
回复