《机电工程》杂志,月刊( 详细... )

中国标准连续出版物号 ISSN 1001-4551 CN 33-1088/TH
主办单位浙江省机电集团有限公司
浙江大学
主编赵 群
副 主 编唐任仲、罗向阳(执行主编)
总 经 理罗向阳
出 版浙江《机电工程》杂志社有限公司
地 址杭州市上城区延安路95号浙江省机电集团大楼二楼211、212室
电话Tel+86-571-87041360、87239525
E-mailmeem_contribute@163.com
国外发行中国国际图书贸易总公司
订阅全国各地邮局   国外代号M3135
国内发行浙江省报刊发行局
邮发代号32-68
广告发布登记证:杭上市管广发G-001号

在线杂志

当前位置: 机电工程 >>在线杂志

基于MSComm的串口通信在煤气表检定装置中的应用

作者:孙鲁涌,但小余,宋长林 日期:2010-06-28/span> 浏览:2848 查看PDF文档

基于MSComm的串口通信在煤气表检定装置中的应用
孙鲁涌,但小余,宋长林
(杭州电子科技大学 机械工程学院,浙江 杭州 310018)

摘要:针对煤气表检定装置中的数据传输与显示的重要功能要求,介绍了采用PC机与单片机及显示模块实现该目标的构成设计,阐述了用VC++结合MSComm控件编程实现上下位机串口通信的技术,以及程序中控件的插入步骤、设置方法等内容。完成了由PC机与MCS51单片机及YM12864显示模块相结合以及在煤气表检定装置中的应用。研究结果表明,该方法符合数据传输与显示功能要求。
关键词:检定装置;数据传输;VC++;单片机
中图分类号:TP368.1;TH814文献标识码:A文章编号:1001-4551(2010)05-0082-04

Application of serial communication based on
MSComm in gasometer checking equipment

SUN Luyong, DAN Xiaoyu, SONG Changlin
(Department of Electromechanical Engineering, Hangzhou Dianzi University, Hangzhou 310018, China)

Abstract: Aiming at the important functions of data transmission and display required by gasometer checking equipment, the constructional design of this function with serial port communication between computer and microcontrollers was introduced. The insert MSComm control steps and set up methods were also described in detail. By using VC ++ development and MSComm control, serial communication between PC and microcontroller, number display on LCD YM12864 were completed in the study and application of gasometer checking equipment. The results indicate that this method is proper, and it meets the data transmission and display needs.
Key words: checking equipment; data transmission; VC++; microcontrollers
 



友情链接

浙江机械信息网