Part Number: MSP430FR6989
About MSP430FR6989ESI Driver,
Initialize esiConfig ();When stuck on ESI_CalibrateInternalOSCFREQ (ESIOSC_DEFAULT);The 2.91.13.01 device library is used on theA device library with 2.00.00.16 does not.Found behind the "static uint16_t measureESIOSC (void)" is not the same。Is this a library problem or a device problem.
This is in 2.91.13.01
static uint16_t measureESIOSC(void)
{
uint16_t temp;
// This and next instruction realizes a clear->set ESICLKGON bit.
ESIOSC &= ~(ESICLKGON);
// This starts measurement.
ESIOSC |= ESICLKGON + ESIHFSEL;
// Get counter value, when measurement has not finished yet, ESICNT3
// value is 0x01
do
{
temp = ESICNT3;
} while(temp == 0x01);
// Stop ESIOSC oscillator
ESIOSC &= ~(ESICLKGON);
// returns counter value ESICNT3
return temp;
}
This is in 2.00.00.16
static uint16_t measureESIOSC(void){
//uint16_t temp;
// This and next instruction realizes a clear->set ESICLKGON bit.
ESIOSC &= ~(ESICLKGON);
// This starts measurement.
ESIOSC |= ESICLKGON + ESIHFSEL;
// Get counter value, when measurement has not finished yet, ESICNT3
// value is 0x01
while(ESICNT3==1);
// Stop ESIOSC oscillator
ESIOSC &= ~(ESICLKGON);
// returns counter value ESICNT3
return (ESICNT3);
}