SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519
A typical I2C transaction must first write the target to set the register number and then do a repeated start + read to read the data value. However, the RD_ON_EMPTY flag enables two I2C transactions with a single setup of the I2C controller. Software can set up both the write and read together, with the limitation being that the "write" phase cannot send more data than fits in the TX FIFO. This is an optimization to minimize interrupt processing requirements. The high-level set up is:
The expected behavior with this set up is that the controller does a START, transmits all TXFIFO data, and when TXFIFO is empty automatically does a repeated START, reads the MBLEN bytes, then STOP.