摘要
在汽车电子等控制装置中,可靠控制不仅在于控制器硬件的品质,还需考量内部程序结构的可测量性与可控性。以汽车电子应用较为广泛的高性能16位单片机XC164CS为基础,对比了合作式调度与抢占式调度,在合作式调度实现理论指导下,构建了一个以定时器为调度基准的控制器,该控制器具有良好的可控可预测性,使用者能够清晰地掌握各个分段程序的运行时间和可预期效果。
In the automotive electronic control devices, the reliable control of the controller is not only dependent on the quality of hardware, but also the measurability and controllability of structure. Based on XC164CS which is widely used in the automotive electronic controller, the paper compares cooperative scheduling and preemptive scheduling. Under the guidance of the realization theory of co-operative scheduling,a timer-based controller is built which has a good predictability and controllability, and the user can dearly grasp the running time of the various sub-procedures as well as the desired effect.
出处
《电脑学习》
2010年第1期21-23,共3页
Computer Study