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.

MSP430F5252: Open UART with different baud rates with TIRTOS

Part Number: MSP430F5252

Hello,

In my design, I came across an issue with the Uart configuration : it seems to have different speeds between multiple devices with the same configuration.

On some of my products, I have a better result with uart with the following configuration :

{
    .outputBaudrate = 9600,
    .inputClockFreq = 32768,
    .prescalar = 3,
    .hwRegUCBRFx = 0,
    .hwRegUCBRSx = 4,
    .oversampling = 0
},

and on other devices, lowest error rate is obtained with this configuration :

{
    .outputBaudrate = 9600,
    .inputClockFreq = 32768,
    .prescalar = 3,
    .hwRegUCBRFx = 0,
    .hwRegUCBRSx = 3,
    .oversampling = 0
}

What I would like to do is to be able to open the uart with either one of those configurations, how can I select a baud rate when I open the Uart ?

Thanks for your help !

Clement