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

PC机与单片机多机主从互通的实现
引用本文:汪铭东,沈德刚,梅广辉,程华云.PC机与单片机多机主从互通的实现[J].现代电子技术,2013(22):57-59.
作者姓名:汪铭东  沈德刚  梅广辉  程华云
作者单位:[1]中国人民解放军92932部队,广东湛江524016 [2]海军驻南京地区航空军事代表室,江苏南京210003
摘    要:为了实现PC机与多个单片机的互相通信,特别是多个单片机都需要向PC机传输数据时,课题组采用“点名式”的总线控制方式。单片机在得到PC机发送的“点名”指令后,开始控制总线,向PC机传输数据。传输数据结束后,通知PC机并退出总线控制,PC机再逐个往后发送“点名”指令。根据这种思路,搭建了相应的电路,经过不断的实验、调试和改进,构建的系统工作稳定、可靠。“点名式”的多机互通方式非常适合于需要多单片机向PC机传送数据的场合,具有较高的实用价值。

关 键 词:点名式  PC机  互通  RS485总线

Realization of master-slave mode communication between PC and MCUs
WANG Mingdong,SHEN Degang,MEI Guanghui,CHENG Huayun.Realization of master-slave mode communication between PC and MCUs[J].Modern Electronic Technique,2013(22):57-59.
Authors:WANG Mingdong  SHEN Degang  MEI Guanghui  CHENG Huayun
Affiliation:1. Unit 92932 of PLA, Zhanjiang 524016, China; 2. Naval Aviation Military Representative Office Stationed in Nanjing, Nanjing 210003, China)
Abstract:For the realization of communication between PC and multiple MCUs,especially the data transmission from mul-tiple MCUs to a PC,the bus control mode of“roll called type”was adopted by the research group. One of the MCUs begins to control the bus and transfers data to PC when it receives the“roll called”instructions from PC,and then the MCU notifies PC and abolishes the control over the bus when the data transmission is over. The“roll called”instruction is send to other MCUs one by one. The research group set up the corresponding circuit according the idea. The system became stable and reliable after continuous experiments,debugging and improvement. The“roll called type”communication between PC and multiple MCUs is applied to the occasions where multiple MCUs are needed to transfer data to PC.
Keywords:roll called type  PC  mutual communication  RS485 bus
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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