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/TMS320F2.8379万S:位置管理器SinCos库- PM_sincos_updateCalData

Guru**** 2555630 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/633474/ccs-tms320f28379s-position-manager-sincos-library---pm_sincos_updatecaldata

部件号:TMS320F2.8379万S

工具/软件:Code Composer Studio

您好,

在SinCos库中,介绍了函数PM_sincos_updateCalData。 是在PM_sincos_calcAngle中调用此函数,还是让我在代码中调用此函数。 每次调用函数PM_sincos_calcAngle时或在较慢的计时中调用此函数的好时机是什么? 实际上,我只使用10kHz调用PM_sincos_calcAngle。

此致

Stefan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    该函数被调用Inside PM_sincos_calcAngle()。 您不必明确地调用它。

    在低速模式下,PM_sincos_updateCalData从原始正弦和余弦输入收集信息,以定期计算每个通道的范围和偏移校正。 在收集了相同方向的20个循环信息后,例行程序将设置"qcflg",以指示更新后的校准数据可用。 在sincos()函数中使用此标志来更新比较器DAC偏移。

    此致,

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

    谢谢你。