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.

Problem in editing HVPFC2PHIL

Hi I am using HV2PHIL(Pfc2PHIL) developement kit program( 28027f) to control my Interleaved Power factor correction circuit.So I have taken the existing code and changing the values of frequency and PID parameters.So in sensing part they multiplied with some multipling factor(K_Ipfc1) to the Ipfc1avg to get GUI_Ipfc1.I did not understand how to select this scaling factor(K_Ipfc1).Can you please help me.I read the document provided also.

I have added the commands here

#if defined(DSP2802x_DEVICE_H) || defined(DSP2803x_DEVICE_H)

K_Ipfc1 = 20357;
K_Ipfc2 = 20357;
K_IpfcTotal = 20357;
K_VpfcOut = 29011; 
iK_VpfcSet = 18506;
K_VacLine = 25795;
#endif

// Gui_Ipfc1 = Ipfc1Avg * K_Ipfc1, where Ipfc1Avg = sum of 8 IpfcR1 samples