How does S32K148 LPI2C master support clock stretching feature?

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

How does S32K148 LPI2C master support clock stretching feature?

1,457 次查看
Yanzhong
Contributor I

We want to use S32K148 LPI2C to config ADI A2B network, which needs the I2C master to support clock stretching feature. How does S32K148 LPI2C master support clock stretching feature?

 

Thanks,

Yanzhong Wang

0 项奖励
回复
9 回复数

1,436 次查看
Yanzhong
Contributor I

Thanks.

The reset value of register MCFGR3 is zero, so the clock stretching is disabled by default. Is it right?

 

BR,

Yanzhong

0 项奖励
回复

1,434 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

No, if set to 0, the timeout feature is disabled, but not the clock stretching:

danielmartynek_0-1678786074279.png

It can be also enabled on SDA in MCFGR1[TIMECFG].

danielmartynek_1-1678786161697.png

 

Regards,

Daniel

0 项奖励
回复

1,426 次查看
Yanzhong
Contributor I

You mean the Pin Low Timeout feature can be used to confirm whether clock stretching is generated?

BR,

Yanzhong

0 项奖励
回复

1,424 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Yanzhong,

No, the clock stretching is functional by default.

But you can limit the time this way.

 

BR, Daniel

0 项奖励
回复

1,421 次查看
Yanzhong
Contributor I

The Pin Low Timeout feature is disabled by default. So,  the time of clock stretching is unlimited, isn't it?

 

Br,

Yanzhong

0 项奖励
回复

1,418 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

yes, that is correct.

 

0 项奖励
回复

1,414 次查看
Yanzhong
Contributor I

Thanks a lot!

0 项奖励
回复

1,438 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Yanzhong,

In the master mode, the clock stretching is always enabled.

It follows the I2C specification (UM10204).

In the MCFGR3 register, timeout can be set.

 

BR, Daniel

0 项奖励
回复

1,005 次查看
Yanzhong
Contributor I

Thanks a lot!

0 项奖励
回复