Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22273

Not able to receive character on uart

$
0
0

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


Viewing all articles
Browse latest Browse all 22273

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>