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
Thanks.
The reset value of register MCFGR3 is zero, so the clock stretching is disabled by default. Is it right?
BR,
Yanzhong
No, if set to 0, the timeout feature is disabled, but not the clock stretching:
It can be also enabled on SDA in MCFGR1[TIMECFG].
Regards,
Daniel
You mean the Pin Low Timeout feature can be used to confirm whether clock stretching is generated?
BR,
Yanzhong
Hello @Yanzhong,
No, the clock stretching is functional by default.
But you can limit the time this way.
BR, Daniel
The Pin Low Timeout feature is disabled by default. So, the time of clock stretching is unlimited, isn't it?
Br,
Yanzhong
yes, that is correct.
Thanks a lot!
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
Thanks a lot!