###
DOI:
计算机系统应用英文版:2010,19(9):241-244
本文二维码信息
码上扫一扫!
基于LPC2134和UCOSII的自动售货机状态机的研究与实现
(中南大学 信息科学与技术学院 湖南 长沙 410085)
FSM of Vending Machine Controller Based on Lpc2134 and UcosII
摘要
图/表
参考文献
相似文献
本文已被:浏览 1694次   下载 3087
Received:December 28, 2009    Revised:February 08, 2010
中文摘要: 由于售货机的功能不断增多,售货机控制系统也相应得不断变得庞大,这就使原来的面向过程的开发方法变得越来难以扩展和维护,根据自动状态机的理论,提出一种在售货机上的状态机模型,该模型对系统状态进行抽象和分离,建立了系统状态表和状态转换表,是一种网状的状态机模型。根据系统事件和当前状态来查找系统状态转换表,如果有匹配项,则进行状态转换。经过实验表明,该模型能解决系统的代码庞大问题,并且使系统开发变得易于维护。
中文关键词: 售货机控制  状态机  状态转换
Abstract:Due to the increasing number of functions of the Vending Machine, the VMC(Vending Machine Controller) is becoming more and more complex, so it is becoming more and more difficul to extend and maintain the developing method used before. According to the theory of FSM, this article suggests one FSM Model on the Vending Machine. The abstract model separates and divides the system into ones to establish a list of system states and transformations. If an event occurred, it would search the system transformation list by the system event and the current state. If there is a record that matches the state and event, then the state is transformed to the NextState defined in the record. Based on the experiment, the model can solve the big problem of the system and make the system development easier to maintain.
keywords: VMC  FSM  state transform
文章编号:     中图分类号:    文献标志码:
基金项目:国家科技攻关计划(2003ba104c)
引用文本:
罗信,金瓯.基于LPC2134和UCOSII的自动售货机状态机的研究与实现.计算机系统应用,2010,19(9):241-244
LUO Xin,JIN Ou.FSM of Vending Machine Controller Based on Lpc2134 and UcosII.COMPUTER SYSTEMS APPLICATIONS,2010,19(9):241-244