Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: I want to receive a string or a character through UART in msp430g2553 but not able to receive even a single character it. If a character arrives my IFG2 flag is not getting set so what should i do in this code ?

$
0
0
I m using hypeterminal to send and receive the character and RS232 communication cable to interface. I have initialized SMCLK using UCA0CTL1 |= UCSSEL_2; command in init function. I have initialized port 1 in main function. My main function is as following: int main(void) { unsigned char trial; WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer P1OUT=0x00; P1DIR=0xFF; _enable_interrupt(); UART_INIT(); while(1) { trial=UART_getchar(); UART_PUTCHAR(trial); } } Using the same init function i have sent the character but not able to receive.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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