在做一个项目,有两路方波输入,两路捕捉口能正常捕捉。但是想计算出来当ECAP1出现上升沿的时候记录一个时间T1,然后当ECAP2出现上升沿的时候记录时间T2,然后通过计算这两个上升沿的时间差。
想知道怎么才能实现这么功能?捕捉口有没有公共的计数器或者芯片内部共用的计数器是哪个我能直接拿来计数的?
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.