This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't turn on uart interrupt enable bit. What am I overlooking?

Other Parts Discussed in Thread: MSP430WARE, MSP430FR5739

I turn on interrrupt enable in my code, but under Registers UCA0IE_UART, UCRXIE is 0. What am I doing wrong?

int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
init_clock();
init_uart0();
UCA0IE |= UCRXIE + UCTXCPTIE; //+ UCTXIE; // enable uart0 rx and tx
UCA1IE |= UCRXIE + UCTXCPTIE; //UART1 rx interrupt enable for compass
UCA0IE |= 0x09;
__bis_SR_register(GIE); //enable interrupts
while (1){}

//END OF CODE

PAUSED IN DEBUGGING

UCA0IE_UART

  • UCTXCPTIE  0
  • UCSTTIE       0
  • UCTXIE         0
  • UCRXIE        0
Same result for UCA1IE

**Attention** This is a public forum