检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]安徽工业大学电气信息学院,安徽马鞍山243002 [2]安徽工业大学计算机学院,安徽马鞍山243002
出 处:《现代电子技术》2006年第21期48-50,共3页Modern Electronics Technique
摘 要:基于单片机SPCE061A与PC机进行数据交换而设计了一个串行通信系统,通信方式采用异步串行通信方式。给出了SPCE061A与PC机两者间串行通信时的电平转换的分析说明和串行通信程序设计。通信协议部分给出了通信数据格式和波特率设置,程序设计的关键问题中具体介绍了中断控制单元的设置,最后给出通用异步串行口发送中断程序的设计流程和数据发送接收的部分程序。单片机程序采用汇编语言编写,上位机程序采用VB 6.0语言编写。该串行通信系统已经调试成功并运行良好。This paper presents a serial communication system in order to satisfy the data exchange between SPCE061 A and PC. It uses the approach of asynchronous serial communication. The conversion of RS 232C and TTL is demonstrated for the difference of level between SPCE061A and PC,as well as the design of program of serial communication is given in the paper. The data format and the baud rate configuration is presented in the communication protocol part, the section of key question in the programming design gives the interruption control unit configuration. Finally, the flow chart of the sending interruption programs by using UART in SPCE061A and the subordinate program of the data sending and receiving are given. The assemble language is used in the single chip computer,while the VB6.0 is adopted in PC. The hardware and software of the system have been successfully debugged and run.
关 键 词:SPCE061A 通用异步串行口 上住机 通信 MAX232 中断控制
分 类 号:TP336[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222