Good afternoon...
I am using an MSP430FR2355 development board connected to a PC. Using RealTerm on the PC side...
I can set the baud rate to 19200 and 9600 and all works fine but if I set it above 19200 I am getting the wrong characters. I have verified the following registers are set per the user guide at multiple baud rates above 19.2. for instance
1. smclk 8mhz (verified on P1.0), also verified SMCLK is being used within UART control register setting
2. verified also against table 22.5 of user manual settings : UCOS16, UCBR, UCBRF, UCBRS...
3. verified RealTerm is set up to correct baud.
A breakpoint at the beginning of the ISR verifies right at the front end of the ISR that RXBUFFER is erroneous which makes me think there is something missing in the setup??
Does anyone have any ideas as to what I may be missing or something to try as I am all out of ideas as to why I cannot go faster? (the code (in main) does nothing except LPM3 (I see no improvement in LPM0). It waits for UART characters to come in then acts.
The ISR is quite simple (with a timeout armed inside it in case characters stop)
case USCI_UART_UCRXIFG:
buffer[mssgLength] = UCA1RXBUF;
mssgLength++;
if (monitor == 0)
TimerCC_Delay(TIMER0, CC_ZERO, ONE_SECOND);
monitor = 1;
if (UCA1RXBUF == 0x0D)
{
mssgLength--;
ISR.UARTmssgRcvdFlag = T;
LPM3_EXIT;
}
break;
thanks
