Hi Team,
Good day! This is our customer concern below and I'm posting it on their behalf.
My immediate problem is that on my new MSP430FR2032 hand control board,
SMCLK appears to be running about 5% fast, instead of 1.00 MHz.
This is evidenced by scoping the bit times on both
the UCA0 as uart at 9600 (99 usec instead of 104usec), and
the UCB0 as spi, with shorter than expected bit time.
And so maybe the FLL is not locked?
Disabling the 32.768 kHz crystal does not help,
gives same discrepancy.
I’ve searched the examples in Resource Explorer.
Tried a lot of things, but instead I have to empirically offset
the prescaler from 104 to 110 for the connected uart LCD to work.
UCA0CTLW0 |= UCSWRST;//uart held in RESET for config
UCA0CTLW0 |= UCSSEL__SMCLK;//SMCLK=1 MHz
UCA0BRW = 110;//1e6/9600 = 104.17
//should be 104, SMCLK is running fast
// UCA0BRW = 6;//=1000000/16/9600 if oversampling used
// UCA0MCTLW = 0xAA00 | UCOS16 | UCBRF_8;
P1SEL0 |= BIT0 | BIT1;//P1.1=RXD, P1.0=TXD
Best regards,
Jonathan