我用TimerA定时一个1ms的中断。将被测方波信号通过TBCLK作为TimerB定时基准,在1ms的中断里读取TBR的值。然后再while(1)中用读取到的TBR的值除以1ms。
不知道这样测频可以不?
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.
我用TimerA定时一个1ms的中断。将被测方波信号通过TBCLK作为TimerB定时基准,在1ms的中断里读取TBR的值。然后再while(1)中用读取到的TBR的值除以1ms。
不知道这样测频可以不?