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.

[参考译文] ECAP 中断和标志寄存器设置

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/984523/ecap-interrupt-and-flag-register-settings

器件型号:TMS320F28388D

您好!

我使用 ECAP 模块通过 ECAP 5模块测量电机转速。

我根据我的应用配置寄存器设置。

启用 PIE 中断和 ECAP 5中断、全局中断位 INT 为0、之前配置了时钟和 CPU 选择。  

该中断在 ECEINT.BIT.CEVT4上发生、但相应的标志位(ECFLG.BIT.CEVT4)未置位、因此捕获寄存器 CAP1、CAP2、CAP3、CAP4读取为0。  

为什么会这样做?

溢出是否会影响上述功能?

谢谢、

Subha

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

    尊敬的 Subha:

    这意味着您计划捕获的事件未发生、或者 ECAP 配置不正确。 为了帮助您设置 ECAP、我们在 C2000中提供了一些示例。 请查看它们。