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.

TMS320F2800157: rampgen

Part Number: TMS320F2800157

你好,我在查看gridConnectedInverterLCLFltr_F28004x中遇到以下问题,望解惑。1.例程中使用到了rampgen相关的代码,我查看例程,其在libraries文件下,且不同例程的libraries文件内容不同,这些代码/功能是否是统一的?我在哪里可以查看全部的功能/代码?2.是否有更多rampgen的说明?我在tms320f2800157数据手册中没有发现详细介绍,其出现在CMPSS模块方框图中。

  • 感谢您对TI产品的关注!
    关于你的咨询,我们正在确认你的问题,稍后回复您。

  • 不同例程代码不同,肯定生成的lib文件是不同的。

    具体这方面没有特别详细的说明,除了手册外,可以看看TRM

  • 我正在参考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;

  • 具体代码内容问题请再提个帖子