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.

TMS320F280049C: 使用內建的sinf的函式跑出來的結果有誤錯。(程式在CLA內執行)

Part Number: TMS320F280049C


  1. 芯片型号:F280049C
  2. (选填)CCS版本: Version: 10.3.1.00003 
  3. (选填)使用的套件名称:V21.12.0.STS

目前在CLA有使用sinf的函式,且且使用RAMPGEN_run產生sin波形。

在驗證波形的時候,發現產生出來的sin似乎有錯誤,

但觀察角度的資訊又沒問題。

我sin會丟到pwm的duty觀察。

下圖為用Dac打出來的sin波和更新到pwm的duty。會發現波形突然掉下一塊,並且看pwm的duty也有一樣的現象

下圖為角度資訊,角度為正常,但pwm仍然有異常duty發生。

因此才判定是否為sinf有關,是否能協助確認使用此函式有什麼需要注意而我沒注意到的?