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.

[参考译文] CCS/TMS320F28377S:斜坡生成

Guru**** 2455420 points
Other Parts Discussed in Thread: TMS320F28377S, TMS320F28035

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/750502/ccs-tms320f28377s-ramp-generation

器件型号:TMS320F28377S
主题中讨论的其他器件: TMS320F28035

工具/软件:Code Composer Studio

您好!

我正在使用斜坡生成宏、它在 tms320f28035和 tms320f28377s 中有所不同

我在这个循环中感到困惑

#define   ANGAL_Wrap (角度)             \
            if (角度>_IQ (1.0))        \
              角度-=_IQ (1.0);        \
            否则、如果(角度<_IQ (0.0)   )\
              角度+=_IQ (1.0);

这是在 tms320f28035中

#define   ANGAL_Wrap (角度)           \
            如果(角度> 1.0)           \
              角度-= 2.0;           \
            否则、如果(角度<-1.0)     \
              角度+= 2.0;

这是在 tms320f28377中

请帮帮我

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这用于使用不同的换算系数、在使用 IQmath 库的 F28035中、_IQ (0.0)到_IQ (1.0)表示0到2*PI、而-1.0到1.0表示-PI 到 PI、或0.0到2.0表示使用 FPU 数学库的 F2837x 中的0到2*PI。