I am using an MSP430 USCI in SPI mode. I would like to confirm my understanding of this:

If UCTXIE and UCRXIE are explicitly disabled when the interface is initialized after UCSWRST is cleared the UCTXIFG and UCRXIFG should still operate as expected even though the interrupts are disabled, right?

From SLAU208M

The UCTXIFG interrupt flag is set by the transmitter to indicate that UCxTXBUF is ready to accept another character. An interrupt request is generated if UCTXIE and GIE are also set.


1 Answer 1


Yes. That is how polled data transmissions are implemented.

Interrupt flags are independent from interrupt enables. IFG bits are set when specific hardware conditions are met and may trigger interrupt when associated IE bit is also set. Procedure for clearing the flag is the same for both cases.

There might be an exception when the flag triggers a DMA transfer, in that case the flag is cleared automatically.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.