Hi,
I am trying to initialize the UART after which I am continously getting interrupt , By the way I am using MSP430G2955 so I did check if I am missing something in errata.
I felt if there is an another set of eyeball looking at this part, it could be an easy hit on what I might be missing or doing wrong. I am trying to initialize as below. Is it that I need to clear the interrupt once to avoid being in the interrupt loop.
void Ser_Init(void)
{
DISABLE_SERIAL_INT;
UCA0BR0 = UBRR0_SETTING_FT12_1; // 1MHz 19200
UCA0BR1 = UBRR0_SETTING_FT12_2; // 1MHz 19200
UCA0MCTL = UBRRO_SETTING_FT12_3; //Modulation setting
UCA0CTL0 &= ~(UC7BIT + UCSPB);// Set frame format: 8data, 1stop bit
UCA0CTL0 |= UCPAR + UCPEN;// Set even parity
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**//Enabling receiver and transmitter
ENABLE_SERIAL_INT;
}
#pragma vector=USCIAB0TX_VECTOR
__interrupt void USCI0TX_ISR(void)
{
CallStatemachine();
}