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.

MSP-EXP430FR5994: Baud rate calculation tool register values vs sample code register settings

Part Number: MSP-EXP430FR5994

Hi

As per sample code for EUSCI loop back code, regarding baud rate setting, it is given that for selectClockSource = 32.768KHz parameters are :

// Configure UART
    EUSCI_A_UART_initParam param = {0};
    param.selectClockSource = EUSCI_A_UART_CLOCKSOURCE_ACLK;
    param.clockPrescalar = 3;
    param.firstModReg = 0;
    param.secondModReg = 92;

But as per online tool provided by Ti, it is

Please clarify.

  • Hello Bivin,

    Found the error. The value for secondModReg is 146, the calculator is right. See User's Guide Table 30-5. Recommended Settings for Typical Crystals and Baud Rates.

    The table states that UCBRSx = 0x92 for 32kHz clock, Baud Rate = 9600 bps. Therefore the code should state:

    param.secondModReg = 146;

    I will work to get this fixed in that driverlib example. Hope this clarifies. 

**Attention** This is a public forum