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.
你好,我在查看gridConnectedInverterLCLFltr_F28004x中遇到以下问题,望解惑。1.例程中使用到了rampgen相关的代码,我查看例程,其在libraries文件下,且不同例程的libraries文件内容不同,这些代码/功能是否是统一的?我在哪里可以查看全部的功能/代码?2.是否有更多rampgen的说明?我在tms320f2800157数据手册中没有发现详细介绍,其出现在CMPSS模块方框图中。
我正在参考rampgen相关的代码,在gridConnectedInverterLCLFltr_F28004x下的rampgen.h,有如下函数,
static inline void RAMPGEN_config(RAMPGEN *v,
float32_t isrFrequency,
float32_t rampFrequency)
{
v->freq=rampFrequency;
v->stepAngleMax=((float32_t)1.0)/isrFrequency;
}
这里面v->stepAngleMax=((float32_t)1.0)/isrFrequency是如何来的,我感觉这里应该是v->stepAngleMax=rampFrequency/isrFrequency;