Part Number: MSP430F249
Good day,
I am using the following initialization but continue to get errors:
UCA0CTL0 |= 0x00; // No parity, LSB first, 8-bit character, one stop bit,UART mode, Asynchronous mode
UCA0CTL1 |= 0x40; // ACLK
UCA0CTL1 |= UCSWRST; // Disable the UART.
UCA0MCTL |= UCBRF_4 + UCBRS_7 + UCOS16; // 230,400 baud.
// UCA0MCTL |= UCBRF_3 + UCBRS_5 + UCOS16; // 230,400 baud (original).
UCA0BR0 |= 0x05; // Upper byte of baud rate prescalar, 230,400 baud.
UCA0BR1 |= 0x00; // Lower byte of baud rate prescalar.
UCA0CTL1 &= ~UCSWRST; //Enable the UART.
The ACLK is 16 MHz and appears to be stable and clean.
I have tried various values for UCA0MCTL but can't find a combination that correctly collects data from the incoming RX. The line that is commented out previously worked but does no longer.
Please advise.