2379799_en-US

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

2379799_en-US

2379799_en-US

Inquiry about PINCFG Field Configuration in S32K146 LPI2C MCFGR1 Register

Hello everyone,

I'm working with the LPI2C module on the S32K146 and have some questions about the PINCFG field in the MCFGR1 (Master Configuration Register 1) register.

According to the reference manual, the PINCFG field is used to configure the I2C pin operating mode. However, I need to understand the following specific information:

  1. What are the application scenarios for each of the 8 different PINCFG configuration values (000 to 111)?
  2. What is the pin output type for each configuration value? Is it Open-Drain or Push-Pull output?

Any application notes, reference code, or practical experience you can share would be greatly appreciated.

Thank you!

Re: Inquiry about PINCFG Field Configuration in S32K146 LPI2C MCFGR1 Register

Hi @GXY 

The PINCFG field defines how the LPI2C pins are electrically driven and used, depending on whether a standard 2‑pin I2C bus or a separated 4‑pin configuration is required.

  • 000 – Standard mode: bidirectional open-drain
  • 001 – Both signals configured as output-only open-drain
  • 010 – Bidirectional push-pull
  • 011 – SCL/SDA used as inputs; SCLS/SDAS used as push-pull outputs
  • 100 – SCL/SDA: bidirectional open-drain for master; SCLS/SDAS: bidirectional open-drain for slave
  • 101 – SCL/SDA: output-only open-drain for master; SCLS/SDAS: output-only open-drain for slave
  • 110 – SCL/SDA: bidirectional push-pull for master; SCLS/SDAS: bidirectional push-pull for slave
  • 111 – SCL/SDA: input-only open-drain; SCLS/SDAS: inverted output-only push-pull

For additional information, please refer to the UM10204: I2C-bus Specification and User Manual.

Additionally, example codes demonstrating standard I2C pin configurations are available within the S32K1 software packages.


BR, VaneB

Tags (1)
No ratings
Version history
Last update:
yesterday
Updated by: