Hello,
I have to use I2C to communicate accelerometer -MMA8450 with MSP430F2274. I have to follow these steps for multiple byte READ-
1. Send slave address
2. Send register address I want to read (0x01)
3. Send a repeated START with slave address
4. Read data from accelerometer until STOP bit is sent.
The problem is- I can only finish Step 1. I send the slave address and receive an acknowledge from the device. But I cannot send the register address(of the accelerometer) from which I need to read the value. The data is not transmitted from the UCB0TXBUF when I enter the register address after the slave address is sent( from UCB0I2CSA) .
Can anyone find what is wrong with the code?? The code gets stuck at line " UCB0TXBUF = MSData; // Load TX buffer-----------------------------2nd byte to be sent"
Thanks in advance.
