S32K146 I2C Master Clock Stretching

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

S32K146 I2C Master Clock Stretching

Jump to solution
1,268 Views
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

 

Tags (1)
0 Kudos
Reply
1 Solution
1,254 Views
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,

 

View solution in original post

0 Kudos
Reply
3 Replies
1,255 Views
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 Kudos
Reply
130 Views
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 Kudos
Reply
1,232 Views
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 Kudos
Reply