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.

TMS320F28379D: Control library DCL Reference Generator is not working

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hi Sir/Madam,

I followed all the steps in "DCL Reference Generator Users Guide" for 3phase sine wave generation,

Step 1 

// variable declarations
DCL_REFGEN rgen = DCL_REFGEN_DEFAULTS;
DCL_CSS rgen_css = DCL_CSS_DEFAULTS;
float x,y,z;
 
Step 2
 // initialize reference generator in main()
    rgen.css = &rgen_css;
    DCL_SET_CONTROLLER_PERIOD(&rgen, 0.000315);
    DCL_resetRefgen(&rgen);
    DCL_setRefgenMode(&rgen, REFGEN_SINE3);
    DCL_setRefgenFreq(&rgen, 150.0f, 0.0f);
    DCL_setRefgenAmpl(&rgen, 0.25f, 0.0f);
    DCL_setRefgenRamp(&rgen, 0.15f, 0.01f);
    //
Step 3 calling the function from isr
DCL_runRefgen(&rgen);
    x = DCL_getRefgenPhaseA(&rgen);
    y = DCL_getRefgenPhaseB(&rgen);
    z = DCL_getRefgenPhaseC(&rgen);
 
Step 4 Added following code to cmd file
/* Digital Controller Library functions */
   dclfuncs         : > RAMLS4,     PAGE = 0

DCL_error.c file also added to project

C:\ti\c2000\C2000Ware_6_00_01_00\libraries\control\DCL\c28\source

What I am getting is x=y=z= 1.0  Anything still missing for 3 phase sine wave generation? Which i am not able to find. Code is building without errors.

Thanks and Regards,

Prashant Gugle