Hi,
I have a little problem using the UART interface of the MSP430FG4618. I want to send a byte to the controller and the controller should send an echo back to the pc. When I use the hyperterminal it works fine. But when I use my own tool (serialport-class by Visual c# .Net ), the controller doesn't send this echo. In both cases the controller receives the correct byte (it's really the same), an interrupt accures, the byte is written to the TX buffer, but only when I use the hyperterminal the byte arrives.
Has anyone an idea?
Thank you very much!
I use the following code by ti:
#pragma vector=USART1RX_VECTOR
__interrupt void USART1_rx (void)
{
while (!(IFG2 & UCA0TXIFG)); // TX buffer ready?
UCA0TXBUF= UCA0RXBUF; // RXBUF to TXBUF
}