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.

[参考译文] TMS320F28027:响应缓慢

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1332549/tms320f28027-slow-response

器件型号:TMS320F28027
主题中讨论的其他器件:MOTORWARE

您好、E:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8305_revA\f28x\f2802xF\projects\ccs\proj_lab11a

使用官方的8305驱动板、捕获 PWM 波的输入、并控制速度。 发现速度只会在改变 PWM 达10ms 后才会改变、并且速度命令位于 while 循环中。 事实上、while 循环应该在不到1ms 的时间内结束、所以为什么它只在10ms 后才起作用呢? 输入捕获可以更改时钟。

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//###########################################################################
//
// FILE: Example_2802xECap_Capture_Pwm.c
//
// TITLE: Capture EPwm3.
//
// ASSUMPTIONS:
//
// This program requires the f2802x header files.
//
// Make the following external connection:
// EPWM3 on GPIO4 should be connected to ECAP1 on GPIO5.
//
// As supplied, this project is configured for "boot to SARAM"
// operation. The 2802x Boot Mode table is shown below.
// For information on configuring the boot mode of an eZdsp,
// please refer to the documentation included with the eZdsp,
//
// $Boot_Table
// While an emulator is connected to your device, the TRSTn pin = 1,
// which sets the device into EMU_BOOT boot mode. In this mode, the
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [quote userid="586261" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1332549/tms320f28027-slow-response 通过将 PWM 改变10ms 后、速度才会改变、并且 speed 命令位于 while 循环中。 事实上,while 循环应该在不到1毫秒内结束,所以为什么它只在10毫秒后才起作用?

    有任何波形可以显示这一点吗? 您是如何更改目标控制速度的? 您使用的 PWM 和控制频率是多少?

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

    大家好、PWM 通信是400Hz、我已经测量出每次捕捉中断的时间是5ms。 您可以增加进入中断的频率吗?我该如何更改它?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您能提高输入中断的频率吗?我该如何更改它吗?

    这话什么意思? 您可以使用 eCAP 来捕获信号并增加测量频率以减少延迟。