Why is the clock frequency of imx8m's i2c very inaccurate?

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

Why is the clock frequency of imx8m's i2c very inaccurate?

1,981 Views
baijinlong
Contributor III

I tried to set the three i2c bus frequencies of imx8m to 400kHz. The input clock of I2C is 25M_REF_CLK.

pastedImage_2.png

pastedImage_1.png

However, the actual test found that i2c0 clk is only 342kHz, i2c1 clk is 373kHz, and i2c2 clk is 373kHz. According to the frequency division formula, i2c clk should be 384kHz.

Why does i2c clk output different frequencies when the same 400K is set?

Why is the clock frequency of i2c very inaccurate?

Labels (2)
0 Kudos
Reply
1 Reply

1,852 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jinlong

slave devices may slow frequency as described on

Speed - I2C Bus 

Clock Stretching - I2C Bus 

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

0 Kudos
Reply