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

基于PowerBuilder的微机与单片机通讯技术研究
引用本文:张素文,杭小庆,刘岚.基于PowerBuilder的微机与单片机通讯技术研究[J].武汉理工大学学报(信息与管理工程版),2001,23(2):30-32,35.
作者姓名:张素文  杭小庆  刘岚
作者单位:1. 武汉理工大学东院电子与信息学院,湖北武汉 430070
2. 武汉大学计算机学院,湖北武汉 430071
摘    要:给出了一种利用RS232接口实现微机与8031单片机进行异步串行双向通讯的电路,并对工其硬件电路和软件实现进行了分析。在微机的软件实现中,结合PowerBuilder开发工具高效、快捷、方便的特点,提出了一种在PowerBuilder中通过调用PcommPro的函数来实现通讯的方法,并给出了实现通讯的函数的格式定义和具体的函数的调用过程。实际应用表明,该方法具有高效、简单和实用的特点。

关 键 词:PowerBuilder语言  双向通讯  接口  主从控制系统  微机  单片机

Research on Communication, Based on PowerBuilder, between Microcomputers and Single-Chip Computers
ZHANG Su-wen,HANG Xiao-qing,LIU Lan.Research on Communication, Based on PowerBuilder, between Microcomputers and Single-Chip Computers[J].Journal of Wuhan University of Technology(Information & Management Engineering),2001,23(2):30-32,35.
Authors:ZHANG Su-wen  HANG Xiao-qing  LIU Lan
Abstract:A circuit that can realize asynchronous, both-way serial communication between microcomputers and 8031 single-chip computers using RS232 interfaces is detailed and its hardware circuit and the realization of its software are analyzed. In this circuit, the microcomputer is a master computer and the 8031 single-chip computer is a slave computer. A two-way call between a master computer and slave computers is realized through two call lines(DSR and DTR). A both-way serial communication between a master computer and slave computers is realized through a pair of communication lines(RXD and TXD). A MC 3487 is used as the remote driver and a MC 3486 as the remote receiver in order to realize remote communication and signal isolation. Data communication is realized by using the inquiry method in a microcomputer, and the interruption method in a 8031 single-chip computer. PowerBuilder language is used to realize the communication in the software design. PowerBuilder is efficient, fast and convenient as a software-developing tool. There are two methods to realize serial communication using PowerBuilder: (1) with the API communication function of Windows; (2) with the MSComm control. Programming by using API function of Windows is complicated, but the function is powerful. On the contrary, programming by using Mscomm control is simple, but the low level program can not be transferred. A method to realize communication by using Pcomm Pro function in PowerBuilderis presented, the format of the function defined and the process to call a function described. It is shown that this method is simple, efficient and applicable.
Keywords:
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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