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.
TI,
精英们,我移植了电机算法到TMS320F28020芯片,发现我的PWM中断周期为100us时,
用示波器测试时间得到的是330us,我是通过在PWM中断中增加I/O电平反转的方式来测得的。
后来发现:
VOLT_MACRO(volt1)
SMO_MACRO(smo1)
SE_MACRO(speed3)
SVGEN_MACRO(svgen_dq1)
总的消耗时间就达到:150us,我的机器周期是40MHz。
为什么会消耗这么长的时间?实际这些函数应该要消耗的时间大概是多少?
盼回复。
应该是SMO_MACRO(smo1)消耗的时间要长一些。我这边也用这颗芯片做一些变频项目,载频10KHz,是没有问题的。
IQMath的库加上了么?测量是否有问题?