Hi @danielmartynek, thanks for your reply!
I've tried to implement your solution, here's my code;
I2C_MasterInit(&i2c1_instance, &i2c1_MasterConfig0);
LPI2C0->MCR |= LPI2C_MCR_DBGEN_MASK; //MCR value is set to 9
//LPI2C0->MCR &= ~LPI2C_MCR_DBGEN_MASK; //MCR value is set to 1
for(;;){
I2C_MasterSendData(&i2c1_instance, masterTxBuffer, TRANSFER_SIZE, true);
OSIF_TimeDelay(50);
}
Probing the waveforms on my scope again, I'm not seeing any difference; the SCL waveform is still Shifted, whether MCR is 9 or 1.
As a sanity check, I set MCR_MEN to 0, to verify I was writing to the correct register. This completely stopped all waveforms, as I had expected. (Master logic is disabled)
Incidentally, I am not facing this issue when I set the Baud Rate to 400kHz; This issue only seems to present itself at 100kHz
Correct waveform observed @400kHz