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