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.

CCS/MSP432P401R: eUSCI I2C Slave Configuration code Issue

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

 I am having a doubt in the line which is being highlighted in the instance of  "eUSCI I2C Slave Configuration" code of MSP432 which is give below.Here we can see that in the previous line we are using the own address offset as 0 and and we are enabling it in the next parameter.But in the highlighted line we are using the slave address and enabling the own address of offset 2.What is the significance of doing so? Instead of enabling the own address of offset 2 we are supposed to enable the own address offset of 0 right?

MAP_I2C_initSlave(EUSCI_B3_BASE, SLAVE_ADDRESS, EUSCI_B_I2C_OWN_ADDRESS_OFFSET0,EUSCI_B_I2C_OWN_ADDRESS_ENABLE);
EUSCI_B3->I2COA0 = 0x48 | EUSCI_B_I2COA2_OAEN;

I have gone through various examples, and most of them shows the similar case. A clarification from your part would be helpful for me. Hoping for a positive response.

Thanks,

K Indulekshmi

**Attention** This is a public forum