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.
方法1:我使用CLB生成了一路 脉冲信号 PULSE和方向信号DIR。将信号通过GPIO输出,然后接入QEP A/B引脚能够正常计数。
方法2:QEP配置保持方法1不变,只是通过内部接入QDIR和QCLK时,QEP不能计数(QPOSCNT始终为零)。CLB与QEP联系信号如下图:
其中QDIR与方法1中的DIR波形一样;
QCLK为方法1中PULSE信号的下降沿时刻的脉冲,宽度10ns
通过新增语句Clb1LogicCtrlRegs.CLB_OUT_EN = 3<<10; 配置实现
这种情况QEP不能实现计数(QPOSCNT始终为零)
请帮忙看一那哪里导致方法2不能计数的原因。
谢谢!
你好,为你把帖子升级到英文版E2E论坛了,还请留意以下链接的回复:
e2e.ti.com/.../tms320f28379d-clb-output-signal-to-qep
hi
Can you share the complete configuration method(QEP is driven by CLB), I want to try.
麻烦帮忙转发一下,谢谢!
你好,由于论坛刚进行过改版,有些功能会有问题。我看到回复中我的发的链接没有显示完全,也没有转换为超链接,不知道你有找到我发的帖子吗?如果没有的话你可以看一下我给你发的以及上面工程师的回复:https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1002420/tms320f28379d-clb-output-signal-to-qep
你好,deng,麻烦帮忙问一下,CLB到QEP输入信号是QCLK/QDIR这个功能是不是还不能使用,如果不能用我就换方案实现了。我们这个方案是不方便使用QA/QB作为输入信号的。
OK,你关注一下这个帖子:https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1006950/tms320f28379d-use-qclk-qdir-as-the-input-signal-from-clb-to-qep