2387151_en-US

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

2387151_en-US

2387151_en-US

MCXN FlexCOMM support for dual I2C and UART?

Per the FlexCOMM configuration, it is possible to set PERSEL to 0x7 to enable dual UART and I2C functionality on a single FlexCOMM (with four pins).

Several questions regarding this functionality:

  1. Do both channels operate simultaneously and independently?
  2. How is this handled in the interrupt handler?
  3. Is there support in the MCUXpresso Config Tool for configuring the peripheral driver to operate in this mode?
  4. Is there support in the SDK for utilizing this mode?

Thank you for your time.

Board DesignCommunication & Control(I3C | I2C | SPI | FlexCAN | Ethernet | FlexIO)MCXNRe: MCXN FlexCOMM support for dual I2C and UART?

Hi @WilliamDavy 

Yes, simultaneous UART+I2C is possible on MCXN.

1. Do both channels operate simultaneously and independently?

They can operate simultaneously, but not fully independently. The MCX N23x RM says “UART and I2C can be used simultaneously with limited functionality”
, and the detailed LP_FLEXCOMM description says LPUART and LPI2C “can be selected at the same time with reduced interface”

2 How is this handled in the interrupt handler?

The LP_FLEXCOMM interface generates a single interrupt from the configured peripheral communications function(s). When the LP_FLEXCOMM interface is configured for both LPUART and LPI2C functions, you can read the source of the interrupt from ISTAT.

Harry_Zhang_0-1782700350163.pngHarry_Zhang_0-1782700350163.png

3.Is there support in the MCUXpresso Config Tool for configuring the peripheral driver to operate in this mode?

No

4.Is there support in the SDK for utilizing this mode?

Yes, you can refer to this example.

Harry_Zhang_1-1782700439039.pngHarry_Zhang_1-1782700439039.png


BR

Harry


标记 (1)
无评分
版本历史
最后更新:
‎06-30-2026 02:31 AM
更新人: