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.
↧