摘要
设计与实现一种基于8位单片机的多路数据采集节点。在硬件上节点由C8051F340单片机,数据采集电路和网络通信电路构成。在节点的软件设计上,设计一种事件驱动结合有限状态机的方式,以实现多路数据实时,高效、智能的采集。事件驱动模型完成数据采集的控制;实际的数据采集功能则由有限状态机完成。依据多路数据间的相关性最为判断,选择Mealy型有限状态机或Moore型有限状态机。在软件结构上具有模块之间耦合度低,逻辑清晰和高扩展性的特点。经实践证明,基本满足设计要求。
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.
出处
《计算机与数字工程》
2012年第11期151-154,共4页
Computer & Digital Engineering
基金
国家自然科学基金项目资助(宽带模拟自适应滤波器的研究
61162017)
甘肃省教育厅资助项目(宽频自适应滤波器的研究
1101-03)资助