This is a general question about USCI modules in MSP430s, but I am working with the MSP430F5528.
After receiving junk data (e.g. from a SPI transfer), I have always cleared the UCRXIFG flag by performing a dummy read of the UCAxRXBUF register, instead of manually resetting the flag with an instruction like "UCAxIFG &= ~UCRXIFG". Someone questioned me about this and I went looking in the user's guide for a note about not manually modifying the USCI interrupt flags. However, I could not find anything about this in the user's guide or after several google searches.
Is it safe to write to the UCAxIFG register (i.e. writing to the register won't prevent the hardware from updating it correctly)? Does anyone remember seeing a note from TI about this? Performing a dummy read seems to be the more common way to clear UCRXIFG. Why?
Thanks,
Austin