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.

MSP432E401Y: QEI测速模块方向问题

Part Number: MSP432E401Y

希望TI工程师能帮忙解决一下,QEI模块测方向问题。

MSP432E401Y的driverlib库中是否有QEI的例程,没找到呀,呜呜。

我测试了网上的例程,网址附下,但是这个例程没有办法测试方向,代码没有几行,自己也找不到问题是什么

https://blog.csdn.net/qq_33003441/article/details/80392957?utm_medium=distribute.pc_feed_404.none-task-blog-2~default~BlogCommendFromMachineLearnPai2~default-1.nonecase&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-2~default~BlogCommendFromMachineLearnPai2~default-1.nonecas

测试结果如图,

方向函数QEIDirectionGet(QEI0_BASE)

返回值一直是正负1,

轮子实际上一直在朝一个方向高速旋转。

希望工程师能告知解决办法或者QEI模块例程文档,不胜感激!

  • 经核实并确认,目前没有 QEI 模块代码示例,也没有使用 QEI 模块的 TI 设计。 

    请您参考下面的帖子是否对您有帮助

    https://e2e.ti.com/support/microcontrollers/other/f/908/t/872287?keyMatch=QEI&tisearch=Search-EN-everything

    https://e2e.ti.com/support/microcontrollers/other/f/908/t/858407?keyMatch=QEI&tisearch=Search-EN-everything

    https://e2e.ti.com/support/microcontrollers/other/f/908/t/919892?keyMatch=QEI&tisearch=Search-EN-everything

    https://e2e.ti.com/support/microcontrollers/other/f/908/t/927591?keyMatch=QEI&tisearch=Search-EN-everything