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寄存器TSCTR和ePWM寄存器TBCTR的自动同步。
还是只能在中断或事件,通过程序让二者同步。
完美解决,多谢指点。
ecap中还有一个寄存器没有搞明白如何用,ECap1Regs.ECCTL1.bit.PRESCALE。Event Prescale Control,设置了不同的数,发现没有效果。是不是还要配合其他寄存器使用。
见手册的
16.5.1 Event Prescaler
• An input capture signal (pulse train) can be prescaled by N = 2-62 (in multiples of 2) or can bypass the
prescaler.
This is useful when very high frequency signals are used as inputs. Figure 16-4 shows a functional
diagram and Figure 16-5 shows the operation of the prescale function.
对输入捕获的信号进行分频用的。