and I see the program stucks in that last while loop and "prints 2" all the way! Why?
I have my I2C1 interrupt based so master should receive the "ACK signal" before interrupting that "I sent all data", correct?
also the last command (" I2C1_MasterSendBlock(I2C1ptr, &passin, 1, [[LDD_I2C_SEND_STOP/ OR /LDD_I2C_NO_SEND_STOP]]);"), I tried with no send stop and it did not work. On page 9, it says, it should send with stop signal.