hello
I am interfacing with uart but i am not receiving any character. I have used msp430g2553 microcontroller and using rs232 communication.
my rx interrupt code is
#pragma vector= USCIAB0RX_VECTOR;
__interrupt void USCI0RX_ISR(void)
{
//---------echo received data to tx----------
while(!(IFG2 & UCA0RXIFG)); // WAIT UNTILL UART IS READY
rxdata=UCA0RXBUF; //READING DATA
check=1;
__bic_SR_register_on_exit(CPUOFF); // LPM0 exit
}
I am not able to go inside this ISR, since i have enabled global interrupt using in uart init
IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt
__bis_SR_register(GIE); // global interrupt enable