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.

UART driverlib error



Hello,

We are using the driverlib\MSP430F5xx_6xx functions included in the MSP430ware_1_60_02_09 version. We think that there is an error in the function USCI_A_UART_initAdvance() located in the file usci_a_uart.c.

bool USCI_A_UART_initAdvance(..., uint16_t clockPrescalar, ...)

{

  ...

          //Modulation Control Registers
         HWREG8(baseAddress + OFS_UCAxBRW ) = clockPrescalar;

  ...

}

Since the varaible clockPrescalar is an uint16_t  and the OFS_UCAxBRW  is a word register. The operation should be  HWREG16(baseAddress + OFS_UCAxBRW ) = clockPrescalar;

Regards,

Raul.

From MSP430x5xx and MSP430x6xx Family: User's Guide revM page 913:

**Attention** This is a public forum