I2C/FLEX IO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C/FLEX IO

851 次查看
imsiya_k
Contributor I

Hi,

I have some doubts regarding S32K146/LQFP 144 microcontroller. If somebody will know,please answer it.

1. In the refernce manual of S32K146/LQFP 144, for I2C clock setting they mentioned one equation (2 + FILTSCL) / 2^PRESCALE cycles. How this equation works?

2. What will be the difference in the coding when flexio emulating as I2C and what will be the clock using in flexio i2c?

标记 (2)
0 项奖励
1 回复

746 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello imsiya.k@tataelxsi.co.in‌,

Please check my answers bellow:

1. In the refernce manual of S32K146/LQFP 144, for I2C clock setting they mentioned one equation (2 + FILTSCL) / 2^PRESCALE cycles. How this equation works?

The setup time is extended by the time it takes to detect a rising edge on the external SCL pin. The FITSCL is set in the MCFGR2 register and the PRESCALE is set at the MCFGR1.

 

2. What will be the difference in the coding when flexio emulating as I2C and what will be the clock using in flexio i2c?

The I2C module and the FlexIO are different and each one can select from which clock is feed it. I will suggest to check the SDK example flexio_i2c_s32K146 to have an idea about how to configurate the module.

pastedImage_3.png


I hope this helps you.

Best Regards,

Alexis Andalon

0 项奖励