现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2013年
22期
57-59
,共3页
汪铭东%沈德刚%梅广辉%程华云
汪銘東%瀋德剛%梅廣輝%程華雲
왕명동%침덕강%매엄휘%정화운
点名式%PC机%互通%RS 485总线
點名式%PC機%互通%RS 485總線
점명식%PC궤%호통%RS 485총선
roll called type%PC%mutual communication%RS485 bus
为了实现PC机与多个单片机的互相通信,特别是多个单片机都需要向PC机传输数据时,课题组采用“点名式”的总线控制方式。单片机在得到PC机发送的“点名”指令后,开始控制总线,向PC机传输数据。传输数据结束后,通知PC机并退出总线控制,PC机再逐个往后发送“点名”指令。根据这种思路,搭建了相应的电路,经过不断的实验、调试和改进,构建的系统工作稳定、可靠。“点名式”的多机互通方式非常适合于需要多单片机向PC机传送数据的场合,具有较高的实用价值。
為瞭實現PC機與多箇單片機的互相通信,特彆是多箇單片機都需要嚮PC機傳輸數據時,課題組採用“點名式”的總線控製方式。單片機在得到PC機髮送的“點名”指令後,開始控製總線,嚮PC機傳輸數據。傳輸數據結束後,通知PC機併退齣總線控製,PC機再逐箇往後髮送“點名”指令。根據這種思路,搭建瞭相應的電路,經過不斷的實驗、調試和改進,構建的繫統工作穩定、可靠。“點名式”的多機互通方式非常適閤于需要多單片機嚮PC機傳送數據的場閤,具有較高的實用價值。
위료실현PC궤여다개단편궤적호상통신,특별시다개단편궤도수요향PC궤전수수거시,과제조채용“점명식”적총선공제방식。단편궤재득도PC궤발송적“점명”지령후,개시공제총선,향PC궤전수수거。전수수거결속후,통지PC궤병퇴출총선공제,PC궤재축개왕후발송“점명”지령。근거저충사로,탑건료상응적전로,경과불단적실험、조시화개진,구건적계통공작은정、가고。“점명식”적다궤호통방식비상괄합우수요다단편궤향PC궤전송수거적장합,구유교고적실용개치。
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.