摘要
在基于嵌入式系统和单片机开发出来的控制系统中,随着外设数量和程序规模的不断扩大,系统对代码的实时性和有限的MPU运算效率提出了更高的要求。为解决系统实时性问题,提高MPU运算效率,防止浪费MPU时间、空间资源,在考虑MPU多任务系统程序执行的前提下,结合单片机UART通信模块提出了一种基于有限状态机的外设控制机制,并建立状态图,说明并验证了有限状态机应用于单片机编程的绝对优越性。
In MPU control system and embedded system,it had a very higher request on real-time capability,along with the expansion of peripheral number and the system scale.To solve the problem and prevent MPU wasting it's time and space,it took system programming mode into consideration.Under the use of MPU uart communication module,it put forward a control mechanism based on the finite state machine controlled system,establish a state chart,explain and verify the absolute superiority in which the finite state machine was applied in the microcontroller programming.
出处
《国外电子测量技术》
2012年第4期83-86,共4页
Foreign Electronic Measurement Technology
基金
绵阳市科技计划项目(10g001-7)基金资助
关键词
有限状态机
系统实时性
单片机
状态图
外设控制
finite state machine
real-time system
MPU
state chart
peripherals control