S32K146 I2C Master Clock Stretching

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

S32K146 I2C Master Clock Stretching

跳至解决方案
1,384 次查看
Andy_Wang_JP
Contributor III

Hi NXP Team

I got a project to implement I2C communication between S32K146(Master) and another device(Slave). 

But according to the application note of the device,"The I2C master on the MCU MUST support clock stretching.Because the ACK/NACK is not automatically responded with device's hardware block, it's from its firmware interrupt"

But I've checked the S32K RM,it seems to only when S32K as a slave support clock stretching. 

So does it have any method that S32K I2C Master support clock stretching? or I missed something in the RM then how to configure that in S32DS IDE?

Thanks and waiting for reply

Andy

 

标记 (1)
0 项奖励
回复
1 解答
1,370 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Andy_Wang_JP

you can take a look at the S32K-RM Chapter 52.3.2.5 Error Conditions.

Senlent_0-1646294823191.png

and I send you a private message, and some test cases about how to deal with slave stretching features.

BR,

     Jim,

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,371 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Andy_Wang_JP

you can take a look at the S32K-RM Chapter 52.3.2.5 Error Conditions.

Senlent_0-1646294823191.png

and I send you a private message, and some test cases about how to deal with slave stretching features.

BR,

     Jim,

 

0 项奖励
回复
246 次查看
RML_SPARKY
Contributor I

Hi, 

I am finding the same issue with my S32K144EVB in Master mode using the LPI2C examples. Can you send me some examples on how to enable clock stretching as the the Reference manual confuses me.

thanks
Rich

0 项奖励
回复
1,348 次查看
Andy_Wang_JP
Contributor III

Hi Jim

Thanks for your reply

I'll try the method you suggestion, and see what I got.

BR.

Andy

0 项奖励
回复