Hello,
I'm using a MSP430F2272 and work with IAR Workbench. I have a problem in SPI mode of UCB0.
Here is a short description what I try to do:
- Write 0xFF to UCB0TXBUF ('by hand')
- Enable the interrupt for UCB0
- Handle the next four bytes of SPI communication in the interrupt service routine
After enabling the interrupt, the ISR immediately overwrites the 0xFF which is still in the UCB0TXBUF, because the UCB0TXIFG was not reset.
Why is the UCB0TXIFG not reset when I write data to UCB0TXBUF 'by hand'? What do I do wrong?
Thanks for your help!