Hi,
First of all, I have initialized the I2C bus. Then send data through i2c interrupt concept. Hereby I have attached the code for your reference.
SYSCON->AHBCLKCTRLSET[1] = 1 << 12;
SYSCON->PRESETCTRLSET[1] = 1 << 12;
SYSCON
->PRESETCTRLCLR[1] = 1 << 12;
FLEXCOMM1->PSELID = 0x101073;
I2C1->CFG = 0x01;
I2C1->CLKDIV = 0x07;
I2C1->TIMEOUT = 5000;
I2C1->MSTTIME = 0x56;
I2C1->INTENCLR = (1 << 0) | (1 << 4) | (1 << 6) | (1 << 24) | (1 << 25);
And the following i have used it while transmitting data through I2C interrupt.
I2C1->INTENCLR = (1 << 0) | (1 << 4) | (1 << 6) | (1 << 24) | (1 << 25);
I2C1->STAT = (1 << 4) | (1 << 6) | (1 << 24) | (1 << 25);
I2C1->INTENSET = (1 << 0) | (1 << 4) | (1 << 6) | (1 << 24) | (1 << 25);
I2C1->MSTDAT = I2C_Slave_addr | write_bit;
I2C1->MSTCTL = 0x02;