Hello, I have initialized the code in the following way: void UART_INIT() { P1SEL |= RXD+TXD; P1SEL2 |= RXD+TXD; DCOCTL = 0; BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; UCA0CTL1 |= UCSSEL_2; UCA0CTL0 = 0x00; UCA0BR0=104; UCA0BR1=0; UCA0CTL1 &=~UCSWRST; UCA0MCTL=UCBRS0; IE2 |= UCA0RXIE; __bis_SR_register(GIE); } I tried by removing the IFG check line in ISR but not useful.
↧