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.

[参考译文] 编译器/TMS320F28069M:spll-1ph 不工作

Guru**** 2535150 points
Other Parts Discussed in Thread: CONTROLSUITE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/602186/compiler-tms320f28069m-spll-1ph-not-working

器件型号:TMS320F28069M
Thread 中讨论的其他器件:controlSUITE

工具/软件:TI C/C++编译器

您好!

我正在尝试使用太阳能库中的单相浮点函数。

输入电压频率为50Hz。 ADC 每周期工作20kHz 采样(5微秒)。 我更改 ADC 输出数据类型、对其进行缩放并删除偏移(可能存在2%的偏移)。 正弦波形(-1、1)应用于 spll1_ph 函数。 具有以下参数。 PLL 运行时间与 ADC 采样时间相同。

陷波滤波器系数(默认值)。

b2_note=0.972000003、b1_note=-1.94019997、b0_note=0.972000003、a2_note=0.944000006、a1_note=1.94019997

低通滤波器系数(默认值)。

B1_LF=-274.8、B0_LF=250、A1_LF=-1

我正在使用一个数组来保存 PLL 输出值2个周期。

对于 spll.sin [x]、带有输入的正弦同相波形由 PLL 创建(振幅为0.03)、但对于 spll.cos[x]和 spll.theta[x]、值分别为常数0.91和0。

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

    C:\ti\controlSUITE\development_kits\HV_1PH_DCAC\v1_04_00_00\f2837x\f2837x\connectedinvlfltr