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.

28035根据霍尔信号测速有误差怎么办

三个霍尔信号接28035的EQEP1A/1B/1I,这三个引脚设置为普通输入,双边沿触发中断。用定时器0记录60度内的时间。那么问题来了,时间为定时器0中断次数的整数倍,会有误差,除非把定时器周期设的很短如1us,这样误差很小,但隔1us进入一次中断会影响程序运行。但如果设为10us误差会很大。怎么办呢?