S32K314 Simulate IIC using GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K314 Simulate IIC using GPIO

58件の閲覧回数
Joker_Y
Contributor II

Hi,

我在使用S32K314,172管脚封装,这三个管脚做模拟IIC的时候,PTD13用作SDA数据管脚,发现MCU无法将SDA配置成开漏输入,导致IIC设备无法拉低SDA。请问应该怎么解决?

Joker_Y_0-1780480319081.png

Joker_Y_1-1780480548110.png

Joker_Y_2-1780480652479.png

 

Joker_Y_3-1780480658189.png

Joker_Y_4-1780480838753.png

在绿色波形箭头位置,我将蓝色的SDA设置为了输入模式,此时应该由外部设备拉低SDA,但实际上并没有被拉低,请问这是为什么?

 

 

0 件の賞賛
返信
1 返信

6件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Joker_Y 

There is no dedicated open-drain configuration available in the SIUL2 module. However, when a pin is configured (muxed) to a peripheral that supports open-drain behavior like LPI2C the pin will behave accordingly and can be used in open-drain mode with other devices.

In these situations, the actual behavior comes from how the peripheral (e.g., LPI2C) is configured rather than SIUL2 itself.

VaneB_0-1780518215080.png

You can configure the following options in the Pins Tool and Siul2 Port driver:

  • Enable/disable the input buffer
  • Enable/disable the output buffer
  • Configure internal pull-up or pull-down
Please note that S32K3 devices already include a native LPI2C designed to handle I2C communication. While it is technically possible to emulate I2C via GPIO using custom software, this approach falls outside the scope of our support. As a result, we are unable to guarantee its functionality or performance.

 

BR, VaneB

0 件の賞賛
返信