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.
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
Hello,
Can you tell me which exact example this is so I can take a closer look? Maybe you can find it here and give me the link: http://dev.ti.com/tirex/explore/node?node=ADoDWIZc5WTuUbxxkAgevQ__z-lQYNj__LATEST
Also, can you give me the version of the MSP432P4 SDK you are using?
Thanks,
JD
EUSCI_B_I2COA2_OAEN == EUSCI_B_I2COA0_OAEN (i.e., OAEN is the same in each of the registers), so this looks like a typo, but a harmless one.
Hi ,
The version of the SDK am using is 3.00.20.06. The program can be found in the SDK /examples/nortos/MSP432P401R/RegisterLevel/msp432p401x_euscib0_i2c_multislave.
Anyways i think, i got clarified.Thank you so much for your response.
Thanks
Indulekshmi.
Hi,
Thank you so much for your response.I think I got clarified.
Thanks
Indulekshmi.
**Attention** This is a public forum