How to open the clock stretching for master I2C of RT1176?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to open the clock stretching for master I2C of RT1176?

354件の閲覧回数
vwsncr
Contributor II
 
0 件の賞賛
返信
1 返信

324件の閲覧回数
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @vwsncr ,

Thanks for your interest in NXP MIMXRT series!

I am glad to provide service for you. 

Here is a detailed documentation that you can refer to.It helps you to understand this feature. Also, please refer to the code in the SDK that enables Tx and Rx SCL clock stretching in the official SDK.

 

We don't need to send ACK/NACK manually, so enable clock stretching except ACKSTALL.
When ACKSTALL is enabled, there is no need to set either RX SCL Stall
(SCFGR1[RXSTALL]) or Address SCL Stall (SCFGR1[ADRSTALL]).
 
Code:
Gavin_Jia_0-1721036002171.png

void LPI2C_SlaveInit(:

Gavin_Jia_1-1721036066202.png

 

Best regards,
Gavin
 
0 件の賞賛
返信