Other Parts Discussed in Thread: INA219
Hi,
I am a part of undergraduate student satellite building Team, Team Anant. We are using the MSP430F5529 as the microcontroller for our Electrical Power System. I was writing a code to interface a current sensor (TI's INA219) with the MCU. While transmitting multiple bytes to the INA219, I have used the polling methodology, where the code waits for the TXIFG to be set before loading new data into the TX BUFFER.
The problem I am having is that the TXIFG is never set and hence my code gets stuck in the while loop. I am having this problem despite enabling and clearing the transmit interrupt. I have attached a snippet of the code below. Any solutions?