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: Problem with i2C communication in msp430g2553

Other Parts Discussed in Thread: MSP430G2553

Tool/software: Code Composer Studio

Hi,

I am working on interfacing hmc5883l magnetometer sensor with msp430g2553. The configuration part of i2c is done and the slave address also written. Then I have to write 2 values for selecting the mode register and continuous operation mode. So after I transmit 1 data (0x02) using UCB0TXBUF and then checking whether the data got transmitted, using

while(!(IFG2 & UCB0TXIFG));

the program getting struck in this line.

It means that the data I am transmitting doesn't go to the slave. What could be the problem for this?

Please guide me where I am going wrong.

Regards

Subash

**Attention** This is a public forum