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.

MSP430F6779A: What happened if re-initial EMDC with difference configuration

Part Number: MSP430F6779A

My system do this step.

1) Step1 (after BOR reset)

hal_system_ClockInit(); // (mclkFreq 16777216)
EMLibGUIApp_Init(); // (mclkFreq 16777216)

2) Step2 (continue from step 1)

hal_system_ClockInit(); // (mclkFreq 25165824)

HAL_ADC_stopConversion(&halAdcConfig);
HAL_ADC_disableInterrupts(&halAdcConfig);
HWREG16(SD24_BASE + OFS_SD24BCTL0) &= ~SD24REFS;


EMLibGUIApp_Init(); // (mclkFreq 25165824)

HAL_ADC_startConversion // (mclkFreq 25165824)

Is there any problem? can EMDC operation normally?

EMDC Version: Energy Measurement Design Center version 1_30_00_00

Power system frequency: 60 Hz
Sampling Frequency (Hz): 4096
Oversampling Rate (OSR): 256

  • Hi Tink,

    Did you encountered some issue here? Look you just did some calibration, I think this should OK. You can try those steps firstly.

    Thanks!

    Best Regards

    Johnson

  • Hi Johnson,

    encountered issue about sometimes (problem occurs 1 time from trial around 10 - 20 times when start up the system),

    the EMDC behave like phase shift error + 5.25 degree. (supply power factor 1 error 0.4 %, supply power factor 0.5 error 16 %)

    But if I removed step no.1,  the problem disappears (the error always in range 0.5 %).

    hal_system_ClockInit(); // (mclkFreq 16777216)
    EMLibGUIApp_Init(); // (mclkFreq 16777216)

     

  • Hi Tink,

    Those calibration code is run periods? or just run once when power up?

    hal_system_ClockInit(); // (mclkFreq 16777216)
    EMLibGUIApp_Init(); // (mclkFreq 16777216)

    Maybe there are some issue occur when calibrate sysclk,  EMLibGUIApp_Init();  should not affect EMDC metering result.

    Thanks!

    Best Regards

    Johnson

  • Hi  Johnson,

    I just run once when power up.

  • Hi Jonson,

    I also check the adjustment parameters (phaseCalibPtr) are same comparing between error normal and error -16%.

    I suspected the error in process calculation of actPowDotProd, reactPowDotProd (look like phase error + 5.25 degree).

    Can we prove that EMDC calculate actPowDotProd and reactPowDotProd correctly or can you give information what is doing inside EMDC?

    Power supply condition: 240v 10A PF 0.5

  • Hi Tink,

    You should be able to find those information here:

    https://www.ti.com/tool/MSP-EM-DESIGN-CENTER

    Thanks!

    Best Regards

    Johnson

**Attention** This is a public forum