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.

Compiler/TMS320F28379D: Doubt in SPRABT4A documentation

Part Number: TMS320F28379D

Tool/software: TI C/C++ Compiler

Hii,

In the implementation  of three phase PLL in C2000 controller using IQ math

spll_obj.ylf[0]=(spll_obj.ylf[0]>SPLL_SRF_Q(200.0))?SPLL_SRF_Q(200.0):spll_obj.ylf[0];\
/* VCO

what is the significance of 200.0 in  SPLL_SRF_Q(200.0) ? Please explain elaborately the meaning of that line.

  • If you are using F28379D you should be using the floating point version of the library,

    The clamp limit is a limit on the integrator,

    I do not have a good explanation on how it was chosen, though you can use a much lower clamp on it as well.

    You can run the simulation MATLAB and play with what works for your system frequency etc.