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.

MSP430Ware Ver 1_40_00_26 Uart Driver Init function Bug

Other Parts Discussed in Thread: MSP430WARE

Hi,

I am using MSP430_1_40_00_26 MSP430Ware DriverLib. Today i noticed that in the function USCI_A_UART_initAdvance() in usci_a_uart.c file, the clock prescalar which is a 16-bit value (passed as argument) is getting truncated to an 8-bit value due to the below usage.

HWREG8(baseAddress + OFS_UCAxBRW ) = clockPrescalar;

Due to this, only UCAxBR0 is updated with the lower 8-bit of clockPrescalar and the UCAxBR1 is left as 0x00.

This has to be corrected to HWREG16(baseAddress + OFS_UCAxBRW ) = clockPrescalar;

I am not sure if this has been noticed and corrected in later versions of MSP430Ware. If not, please correct.

Shiras

**Attention** This is a public forum