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

Forum Post: RE: Not able to receive character on uart

$
0
0
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.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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