a factor in lpi2c driver

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

a factor in lpi2c driver

293 次查看
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 项奖励
回复
2 回复数

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

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