MSP430 Team,
When configuring the LFXT1 to start on MSP430F4xx devices (e.g., F449), code examples typically show a delay after clearing the OFIFG bit and then looping around, like this:
// Loop until 32kHz crystal stabilizes
do
{
IFG1 &= ~OFIFG; // Clear oscillator fault flag
for (i = 50000; i; i--); // Delay
}
while (IFG1 & OFIFG); // Test osc fault flag
I believe the delay is there to allow the OFIFG bit to set again, but I don't see this documented anyplace. Also, some code examples do not show the delay.
Is the delay needed? If so, how long a delay is required? Is this documented anyplace?
Thank you,
David