摘要
以C8051F020单片机为核心,以太网模块作为接口,液位控制系统作为被控对象,实现了基于以太网的远程液位监控。讨论了C8051F020单片机的特点,并详细讨论了模拟量输入输出电路的设计和以太网接口电路的设计。给出了单片机的部分初始化代码和程序流程图,并讨论了单片机与上位机通信协议的设计。经实验验证,数据通信正常,检测数据正确。
Employed C8051F020 MCU as the core component,Ethernet module as the interface and level control system as the object to realize remote level monitoring based on Ethernet.The features of C8051F020 MCU,analog input and output circuit design and Ethernet interface circuit design were discussed.Part of the initialization code and the program flowchart had been given.The communication protocol design between MCU and PC was discussed as well.Experiments show that the communications and test data are correct.
出处
《化工自动化及仪表》
CAS
2007年第5期36-39,共4页
Control and Instruments in Chemical Industry