MCXN236: Using FLEXIO pins as I2C slave

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

MCXN236: Using FLEXIO pins as I2C slave

369 Views
burcu
Contributor I

I want to use the MCXN236 as a peripheral device and use the FLEXIO pins for I2C communication. There is an example project in SDK "flexio_i2c_interrupt_lpi2c_transfer" but it only has the driver to acts as a controller. Is there any example code/drivers to use these pins for the peripheral? 

Labels (1)
1 Reply

274 Views
chris_brown
NXP Employee
NXP Employee

Hi @burcu ,

No, unfortunately we do not provide examples of the FlexIO acting as an I2C target.  There had been an effort in the past to do this but it was abandoned as it couldn’t fully meet the spec and ended up needing more shifter/timer resources than the I2C controller mode. (eg: more than 2 shifters and 2 timers).  It is more efficient in terms of FlexIO resources to use LPI2C for target mode and FlexIO for controller mode.

Best regards,

Chris 

0 Kudos
Reply