This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5989: ReCalScanIF() function anf changing samplig rate.

Part Number: MSP430FR5989

Hi everyone,

I am using the FlowESI GUI to generate my skeleton, but I think I have found another error. I would like to check with some expert to confirm me that.

My system is set to work with a maximum rotation frequency of 50 Hz, and this is set up on this file: ../ESIConfig/esiConfig.c in the function esiConfig():

...

/* Set sampling frequency to User selected sampling frequency */
gTSMSettings = ESI_TSM_INITPARAMS_DEFAULT;
gTSMSettings.startTriggerSelection = ESI_TSM_START_TRIGGER_ACLK_OR_SOFTWARE;
/* 78->  maximum rotation frequency of 50Hz*/
gTSMSettings.startTriggerAclkDivider = ESI_TSM_START_TRIGGER_DIV_78;
ESI_TSM_init(&gTSMSettings);

...

I was trying to understand how this function (ReCalScanIF) is working on the ESI module. This function in the file: ../ESIConfig/esiCalibration.c. According to this document: slaa639.pdf on page 18: "...After that, the recalibration is finished. The sampling rate is changed back to normal rate and the timer
restarts for the next calibration...."

I can see in the init of this function: ReCalScanIF() in the file: ../ESIConfig/esiCalibration.c how the sampling rate is modified:

...

ESI_AFE2_init(&gAFE2Settings);

/* 2340Hz sampling rate */
gTSMSettings.startTriggerAclkDivider = ESI_TSM_START_TRIGGER_DIV_14;

...

But after the recalibration, the samplig rate is not restored to 50 Hz:

...

ESI_AFE2_init(&gAFE2Settings);


gTSMSettings.startTriggerAclkDivider = ESI_TSM_START_TRIGGER_DIV_66; // => It should have to be ESI_TSM_START_TRIGGER_DIV_78

ESI_TSM_init(&gTSMSettings);

...

Can anyone confirm I am right?

**Attention** This is a public forum