首页 | 本学科首页   官方微博 | 高级检索  
     

应用事件驱动和有限状态机实现多路数据采集
引用本文:李小勇,马胜前,张亚辉.应用事件驱动和有限状态机实现多路数据采集[J].计算机与数字工程,2012,40(11):151-154.
作者姓名:李小勇  马胜前  张亚辉
作者单位:1. 西北师范大学物理与电子工程学院电路与系统 兰州 730070
2. 西北师范大学物理与电子工程学院 兰州730070
基金项目:国家自然科学基金项目资助,甘肃省教育厅资助项目
摘    要:设计与实现一种基于8位单片机的多路数据采集节点。在硬件上节点由C8051F340单片机,数据采集电路和网络通信电路构成。在节点的软件设计上,设计一种事件驱动结合有限状态机的方式,以实现多路数据实时,高效、智能的采集。事件驱动模型完成数据采集的控制;实际的数据采集功能则由有限状态机完成。依据多路数据间的相关性最为判断,选择Mealy型有限状态机或Moore型有限状态机。在软件结构上具有模块之间耦合度低,逻辑清晰和高扩展性的特点。经实践证明,基本满足设计要求。

关 键 词:事件驱动  有限状态机  高效  多路数据采集  采集节点

Application Event Drive and Finite State Machine in Multichannel Data Acquisition
LI Xiaoyong , MA Shengqian , ZHANG Yahui.Application Event Drive and Finite State Machine in Multichannel Data Acquisition[J].Computer and Digital Engineering,2012,40(11):151-154.
Authors:LI Xiaoyong  MA Shengqian  ZHANG Yahui
Affiliation:1(1.Circuits and Systems,College of Physics and Electronic Engineering,Northwest Normal University,Lanzhou 730070)(2.College of Physics and Electronic Engineering,Northwest Normal University,Lanzhou 730070)
Abstract:A kind of multichannel data acquisition node based on 8 bits single-chip microcomputer is designed.This node is mainly consisted of C8051F340 single chip machine,data acquisition circuit,and network communication circuit in term of hardware.On the software design of real time data acquisition,a event drive model is designedcombined with FSM(Finite State Machine) theory.Event drive model deal with the control of data acquisition and the actual function of data acquisition is achieved by FSM.By judging with the data correlation between multichannel data,Mealy type FSM or Moore type FSM can be selected.In practice,by using this kind of data acquisition technology in software design,the node has proved to be real time,high-efficiency and intelligent.Its low degree of coupling,clear logic and extensible feature between models are good on the software structure.
Keywords:event drive  FSM  high efficiency  multichannel data acquisition  data node
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号