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.

MSP430FR5869: UART configuration

Part Number: MSP430FR5869

Hi,

I want to config MSP430FR5869 UCA0 port for UART communication with other MCU. My baud rate is 115200 and I am using SMCLK for frequency. My configuration is below but when I use oscillosope to measure I am not sending anything at TXD of MCU. Is the configuration not correct. Thank you.

void config_uart(void)
{
    // Configure GPIO
    P2SEL1 |= BIT0 | BIT1; // USCI_A1 UART operation
    P2SEL0 &= ~(BIT0 | BIT1);

    UCA0CTLW0 = UCSWRST; // Put eUSCI in reset
    UCA0CTL1 |= UCSSEL__SMCLK; // CLK = SMCLK
    UCA0BR0 = 69; // 1000000/115200 = 8.68
    UCA0MCTLW = 0x5500; // 1000000/115200 - INT(1000000/115200)=0.68
    // UCBRSx value = 0xD6 (See UG)
    UCA0BR1 = 0;
    UCA0CTL1 &= ~UCSWRST; // release from reset
    UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt
}