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.
Hello,
I'm going to read some data from a gyroscope connected to the MSP430F5529 microcontroller through the I2C connection.I also use the driverlib from the Ti version 2_10_00_09. The problem comes when I try to get a value from the sensor, it stays blocked at the following line.
.......... // Poll for transmit interrupt flag. while(!(HWREG8(baseAddress + OFS_UCBxIFG) & UCTXIFG)) { ; } .........
Could someone explain me why happens this ?
Hello,
Thank you for your answer and sorry for my late.
Yes, that's right, but why gets stuck there? It means that value is not shifted ? If yes, what would be the reason ?
Thank you,
Hello,
I think it is not a HW problem, because these values are taken from the device datasheet. By the way, I try to connect the A3G4250D gyroscope module. Should be a problem the address of the slave ? I mean,the slave address for this device is a little bit confusing..
Thank you,
The blue text says "Setup Write to [Q(0x51)] + NAK", if Q is the slave address then you're not sending the correct address. Once again, it's hard to tell from that screenshot but at any rate I doubt you are receiving the NACK needed to clear UCTXIFG.
**Attention** This is a public forum