SFFS624B March 2024 – August 2025 MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1
The I2C modules can be placed into an internal loopback mode for diagnostic, or debug work, by setting the LPBK bit in the I2C controller configuration I2Cx.MCR register. In loopback mode, the SDA and SCL signals from the controller part of the I2C are tied to the SDA and SCL signals of the target part of the I2C module to allow internal testing of the device without having to connect the I/Os.
This loopback mechanism can be used to transmit known data from transmit to receive. The I2C configuration can be similar to the application configuration, regarding bit rate, FIFO usage, and so forth. The completion of the test can be timed to be within expected limits to detect any faults in the bit rate timing.