How does S32K148 LPI2C master support clock stretching feature?

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

How does S32K148 LPI2C master support clock stretching feature?

4,386件の閲覧回数
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 返答(返信)

4,365件の閲覧回数
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 件の賞賛
返信

4,363件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

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

danielmartynek_0-1678786074279.pngdanielmartynek_0-1678786074279.png

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

danielmartynek_1-1678786161697.pngdanielmartynek_1-1678786161697.png

 

Regards,

Daniel

0 件の賞賛
返信

4,355件の閲覧回数
Yanzhong
Contributor I

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

BR,

Yanzhong

0 件の賞賛
返信

4,353件の閲覧回数
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 件の賞賛
返信

4,350件の閲覧回数
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 件の賞賛
返信

4,347件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

yes, that is correct.

 

0 件の賞賛
返信

4,343件の閲覧回数
Yanzhong
Contributor I

Thanks a lot!

0 件の賞賛
返信

4,367件の閲覧回数
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 件の賞賛
返信

3,934件の閲覧回数
Yanzhong
Contributor I

Thanks a lot!

0 件の賞賛
返信