文档详情

基于MCGS的51单片机驱动构件实现方法.pdf

发布:2017-05-22约1.02万字共5页下载文档
文本预览下载声明
第 30卷第 11期 微  计  算  机  应  用 Vol30 No11 2009年 11月 M ICROCOM PU TER A PPL ICA T ION S Nov2009 基于 M CGS的 51单片机驱动构件实现方法 1 2 周  杰  林沂杰 (1 2 ) 扬州工业职业技术学院 扬州  225127  中国船舶重工集团第 723研究所  扬州  225002 摘要 :为了解决组态软件 MCGS与所用特殊硬件设备通信的问题 ,利用 MCGS的高级开发工具包生成源程序框架 ,根据所要实 现的通信功能完成了源程序框架中方法接口和属性接 口的设计 ,并详细叙述了各方法接 口和属性接 口的实现过程 ,完成了与 所用单片机相匹配的子设备驱动构件的开发 。通过测试与挂接 ,实现了 MCGS与 A T89 S51单片机的通信 。 关键词 :M CGS 组态软件  驱动构件  单片机 The Rea liza tion of D r ive com ponen ts of M C S - 51 M icrocon troller Ba sed on the M C GS 1 2 ZHOU J ie , L IN Yij ie (1 Yangzhou Po lytechn ic in stitu te, Yangzhou , 225127 , Ch ina; 2 Ch ina Sh ipbu ilding H eavy Indu stry Group No 723 R e search In stitute, Yangzhou , 225127 , Ch ina) A b stract: to so lve the m atch ing p rob lem of configu ration software MCGS and its sp ecial hardware driver, a fram ework of sou rce p ro gram is bu ilt from advanced developm ent w izard ofMCGS, and the design of attribute in terface and m ethod interface in the source p ro gram is accomp lished in accordance w ith intended comm un ication function The the sis elaborates the design of attribu te in terface and m ethod interface, and comp lete s the developm en t of SCM driver - component The comm un ication between MCGS and SCM - 51 m i crocontroller is ach ieved trough testing and articu lation of cu stom single - ch ip compo
显示全部
相似文档