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.

[参考译文] TMS570LS1227:如何设置 eQEP 位置匹配中断?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1014640/tms570ls1227-how-to-setup-eqep-the-position-match-interrupt

器件型号:TMS570LS1227

大家好、我在位置比较中断方面遇到了一些问题、从不为 ISR 提供服务。 我已经在 QPOSCMP 中设置了值、并且可以在调试时看到 QPOSCNT 中与之匹配的正确值。 您能告诉我我发生了什么错误吗?

 

int main (空)

/*用户代码开始(3)*/

 

       _enable_interrupt_();

 

       gioInit();

       etpwmInit();

       adcInit();

       hetInit();

       QEPInit();

 

       /*启用位置计数器*/

       eqepEnableCounter (eqepREG1);

 

       /*启用位置比较*/

       eqepEnablePosnCompare (eqepREG1);

 

       /*启用单位定时器。 *

       eqepEnableUnitTimer (eqepREG1);

 

       /*启用捕获定时器和捕获周期锁存。 *

       eqepEnableCapture (eqepREG1);

 

       /*启用位置比较 INT */

       eqepEnableInterrupt (eqepREG1、QEINT_PCM);

 

 

       while (1)

       {

            

       }

 

/*用户代码结束*/

 

   返回0;

 

 

/*用户代码开始(4)*/

void    eqepNotification (eqepbase_t * eQEP、uint16标志)

   测试++;

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

    您好!

    您是否启用了通道110 0f VIM RAM 表?

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

    您好、QJ Wang、

    谢谢你们解决了这个问题-非常感谢!  

    PY1