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.

各位老师好,问了很多人,都没解决。DSP2812 的CAP单元的问题

用DSP2812 cap捕获脉冲,在中断程序中计数,第一次脉冲到来时不进中断没有计数,但是二次以后都可以进中断计数。求老师们教我求解!

  • 你好,可以在初始化的时候在CAPFIFOx寄存器的相应位写入01,当第一个脉冲到来时就会被认为是第二个。