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.
最近才刚刚接触msp430的板子,和stm32有点像但是又有不同的地方。
想问一下,如果想要使用电机编码器的话?
是通过io口的输入捕获进入中断进行计数?还是通过定时器的输入捕获模式嘞?
具体应该怎么操作呢
如果想要使用电机编码器的话?
请问是哪种编码器?
是通过io口的输入捕获进入中断进行计数?还是通过定时器的输入捕获模式嘞?
一般都是采用定时器捕获来实现的,网络上有一些分享,您可以看一下
https://blog.csdn.net/weixin_49736959/article/details/108354318
我试了这篇博客上面讲的方法来获取霍尔编码器的脉冲数https://blog.csdn.net/weixin_49736959/article/details/108354318
但是通过我的串口打印发现,程序进入中断以后,就没办法执行主函数里面的程序了。。
这怎么解决呢