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:
Thank you for your time.
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.
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.
BR
Harry