Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22195

MSP430-3P-AWGH-AMB8423-DEVBD: Time Required to set the flag

$
0
0

Part Number:MSP430-3P-AWGH-AMB8423-DEVBD

I was going through source code.

I didn't get why time equivalent to 0x47FF is required to set the flag? From where do we get to know what should be proper value of i?

//disable the XT1 clock ,which is required to avoid the XT1 low frequency fault trigger
_BIS_SR(OSCOFF); //MS

//wait till the Oscillator becomes stable
do
{
IFG1 =0;
// Clear OSCFault flag
IFG1 &= ~OFIFG;

// Time for flag to set
for (i = 0x47FF; i > 0; i--);
}


Viewing all articles
Browse latest Browse all 22195

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>