Hi everyone, I'm using MSP430g2553 and my initialization code for UART when system clock frequency is 16Mhz is
P1SEL |= (BIT1|BIT2);
P1SEL2 |= (BIT1|BIT2);
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0BR0 = 1666;
UCA0BR1 = 6;
UCA0MCTL = (UCBRS0); // Modulation UCBRSx = 1
UCA0CTL1 &= ~UCSWRST; // Initialize USCI state machine
it's working properly.But, when I change my system clock frequency to 12Mhz and I changed UCA0BR0 to 1250,
UCA0BR1 to 0, still UART is not working. please someone help me how can I make it to work at 12Mhz clock frequency.