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,
Solved! Go to Solution.
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
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
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,
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