This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432 I2C how to read 16Bit register

Hi,

i need to write and read an EEPROM and its register size is 16Bit.

I am able to write it by doing this:

MAP_I2C_masterSendMultiByteStart(EUSCI_B3_BASE,ui16Reg>>8);

MAP_I2C_masterSendMultiByteNext(EUSCI_B3_BASE,(unsigned char)(ui16Reg&0xFF));
MAP_I2C_masterSendMultiByteFinish(EUSCI_B3_BASE,(unsigned char)(Data&0xFF));

I am tryng to do this but it is not working:

MAP_I2C_masterSendMultiByteStart(EUSCI_B3_BASE,(uint8_t)ui16Reg>>8);
MAP_I2C_masterSendMultiByteNext(EUSCI_B3_BASE,(uint8_t)(ui16Reg&0xFF));  <--------------------Gets stuck here

MAP_I2C_masterReceiveStart(EUSCI_B3_BASE);

How do i read 16Bit register using driverlib?

**Attention** This is a public forum