a factor in lpi2c driver

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

a factor in lpi2c driver

292 Views
fuyunezu
Contributor I

recently, i study the lpi2c driver of i.mxrt1170.

and i can't find the factor 0.52 in the driver software come from.

0.52.png

is anyone aware of it?

i.MX-RT1170 

0 Kudos
Reply
2 Replies

263 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @fuyunezu,

This 0.52 value comes from the tmpHigh function definition on line 713 of the "fsl_lpi2c.c" file:

EdwinHz_0-1722898844621.png

I hope this helps.

BR,
Edwin.

0 Kudos
Reply

249 Views
fuyunezu
Contributor I
Hi EdwinHz,

Thanks to your reply.

I have noticed it, but it still can't explian this factor. I have looked up the "UM10204" which published by NXP, and I can't find any statement to explain the relationship between tbuf and scl clock cycle except the table which tell us the recommand value.
0 Kudos
Reply