This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F1611: Utilising two UART ports on TelosB

Part Number: MSP430F1611
Other Parts Discussed in Thread: MSP430FR4133

Dear all,

I am currently using TelosB(MSP430f1611), and trying to use both UART ports that are available on the board.

I have configured one UART port correctly, and it can transmit and receive with users via PuTTY. Now I am trying to configure another one, which should be easy but I am kind of struggling because I am trying to modify the code that was given to me which forms serial communication with external device.

I have succesfully completed initating the UART configuration but because the given code was written for MSP430fr4133, some of the commands need to be replaced approprittely for msp430f1611. For instance

void dn_uart_txByte(uint8_t byte){
   while(!(UCA0IFG & UTXIFG0));             // wait until TX buffer ready
   UCA0TXBUF = byte;                        // send byte
}

and now I have modified the code to this,  the below is for MSP430f1611. Is this correct?

void dn_uart_txByte(uint8_t byte){
   while(!(IFG1 & UXIFG0));             // wait until TX buffer ready
   U0TXBUF = byte;                        // send byte
}

Thank you

Kind regards

Yong Kim

**Attention** This is a public forum