Some question about the I2C mode in s32k118

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

Some question about the I2C mode in s32k118

Jump to solution
1,641 Views
Jerry_xie
Contributor II

Dear sir,

I am new to the  I2C in S32K118. I have some question about it with some old projects in the company.

How should I use MCU as the Master to configure Standard mode, Fast mode, and High-speed mode ?

And How to configure Standard mode, Fast mode, and High-speed mode as  Slaver ? 

 

Looking forward  to your reply.

Thanks & BRs,

0 Kudos
Reply
1 Solution
1,617 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Please refer to the RM rev.12.1 first.

Master mode: 52.3.2.4 Timing Parameters.

Slave Mode: 52.3.3.4 Timing Parameters.

 

Thank you,

BR, Daniel

 

 

View solution in original post

0 Kudos
Reply
3 Replies
1,635 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Xie,

The S32K1xx does not support High-speed mode (above 400kbps).
RM, Section 52.1 Chip-specific LPI2C information.

Please use SDK in S32DS IDE.
Examples lpi2c_master_s32k118, lpi2c_slave_s32k118 show how to configure the bit rate.

 

Thank you,

BR, Daniel

0 Kudos
Reply
1,626 Views
Jerry_xie
Contributor II

Hello Daniel!

Thanks for your reply. I still have some question about it. Could you  give me a hand?

1.Which register is used to configure the I2C bus speed mode when the MCU is used as the master ? And what about the slave? 

2.how to calculate the current I2C bus speed ?

Thanks & BRs,

 

0 Kudos
Reply
1,618 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Please refer to the RM rev.12.1 first.

Master mode: 52.3.2.4 Timing Parameters.

Slave Mode: 52.3.3.4 Timing Parameters.

 

Thank you,

BR, Daniel

 

 

0 Kudos
Reply