|
现在遇到好奇怪的问题,设置定时器0,每625ms中断一次,单步调试时每次中断都是625ms左右,精确度很高,可是一把程序放到板子上跑,中断间隔很不准,每次时间如下:
DrvDispatchThread::time = 1018
DrvDispatchThread::time = 1085
DrvDispatchThread::time = 953
DrvDispatchThread::time = 888
DrvDispatchThread::time = 1150
DrvDispatchThread::time = 1085
DrvDispatchThread::time = 1019
DrvDispatchThread::time = 953
DrvDispatchThread::time = 888
DrvDispatchThread::time = 888
DrvDispatchThread::time = 1019
DrvDispatchThread::time = 953
DrvDispatchThread::time = 757
DrvDispatchThread::time = 626
DrvDispatchThread::time = 757
DrvDispatchThread::time = 625
DrvDispatchThread::time = 626
这个差的太多了,为什么单步调试时可以达到那个精度,而在板子上单独跑却不能呢,为什么会是这样? |
|