Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP430FR5889 Timer and eUSCI Interrupt Problem (with Driverlib)

$
0
0
With the while loop, all you are doing is to wait in the loop as long as TxIFG is '0'. ie you are waiting until the TxIFG is set, before you wake-up the device and transmit the data. Without the while loop, you might be writing to the Transmit buffer before the TxIFG is set, thereby causing an erroneous data transfer. It is a must to anyway check the TxIFG before loading the TxBUF (else it could result in erroneous data transfer). Could you just replace the while loop with a delay to confirm that the delay as well causes correct transmission? The only question that's unclear is why is the delay (check of TxIFG) needed when Timer Interrupt is enabled (I hope no other interrupt is waking the device up to do the transmission again) Could you please post your complete code?

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>