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.

MSP430F4152: USCI0_A0 UART Baud rate generation problem

Part Number: MSP430F4152


Tool/software:

Hello,

I am a little bit confused with the USCI UART. Despite, many times I successfully used the old UART module in F1xxx, F4xx family.

Using USCI, I get much lower baud rate that I except. My SMCLK clock is: 46*32768Hz.

My UART config:

BIS.B #081H,&UCA0CTL1 ;SMCLK source + RESET port
;BIS.B #000H,&UCA0CTL0 ;8bit, 1stop, LSB first
MOV.B #79,&UCA0BR0 ;lower byte Baud rate: 19200 , 1,50732MHz/19200=79
MOV.B #0,&UCA0BR1 ;upper byte
BIS.B #11110001B,&UCA0MCTL ;UCOS16 set->needed for high frequency clock, Oversampling, BRFx=15
BIS.B #1,&IE2 ;RX IE, IFG2 register to reach FLAG
BIC.B #1,&UCA0CTL1 ;remove reset

Bit time is about 1.1ms measured by scope ! I tried with 'UCOS16' bit =0 much close to desired but with BR0=89 value.

Can somebody give some advise where can be the problem?

Thanks and regards,

Joseph

**Attention** This is a public forum