How does S32K148 LPI2C master support clock stretching feature?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How does S32K148 LPI2C master support clock stretching feature?

1,457 Views
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 Kudos
Reply
9 Replies

1,436 Views
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 Kudos
Reply

1,434 Views
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 Kudos
Reply

1,426 Views
Yanzhong
Contributor I

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

BR,

Yanzhong

0 Kudos
Reply

1,424 Views
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 Kudos
Reply

1,421 Views
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 Kudos
Reply

1,418 Views
danielmartynek
NXP TechSupport
NXP TechSupport

yes, that is correct.

 

0 Kudos
Reply

1,414 Views
Yanzhong
Contributor I

Thanks a lot!

0 Kudos
Reply

1,438 Views
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 Kudos
Reply

1,005 Views
Yanzhong
Contributor I

Thanks a lot!

0 Kudos
Reply