I successfully set baudrate to 9600bps at 1MHz (SMCLK) by either of the following configurations without knowing what they exactly mean, especially the MCTL register:
UCA0BR0 = 6;
UCA0BR1 = 0;
UCA0MCTL = UCBRS_0 + UCBRF_13 + UCOS16;
// UCA0BR0 = 0x68;
// UCA0BR1 = 0x00;
// UCA0MCTL = 0x04;
However, when I change SMCLK to 8MHz, I couldn't figure out what should be the settings. I tried a couple online calculator but the values won't work for me.
Any suggestions on the values, or better yet, an explanation of what they represent, would be very much appreciated.
Thanks.
