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.

430f149定时器a外部捕获测量周期



我用的是测量周期的方法,然后取倒来求频率。定时器a时钟是1m,测量范围是5-50k,问题是频率低于15左右,就是1÷(1÷1000000×65535)时,定时器就溢出了。然后我的处理方法是time2的值大于time1既没有溢出时就用time2-time1得到周期。当time2小于time1时既溢出的时候,用65535-time1+time2来获得正确的周期值,但是为何还是不对??求教。。。