MCXA153 i2c timeout

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

MCXA153 i2c timeout

568 Views
_Ferrari_
Contributor V

Dear all,

I am currently developing a project based on the MCXA153VLH microprocessor, that use the I2C peripheral.

Using your 'lpi2c_interrupt_b2b_transfer_master' example as a reference, I have successfully managed to read from and write to a 24C02 EEPROM.

I would now like to implement a timeout mechanism to prevent the process from stalling or hanging if a communication line issues occurs. Could you provide a guideline or best practices for implementing this type of control within the LPI2C driver framework?

Thank you very much for your help and cooperation.

Best regards,

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

445 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @_Ferrari_ 

You can insert the MSR->PLTF checking logic into the LPI2C_MasterTransferNonBlocking() function of the I2C driver to detect the pin-low timeout condition.

Alice_Yang_1-1769423981030.png

 

Thank you.

 

BR

Alice

0 Kudos
Reply