摘要
为了实现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.
出处
《现代电子技术》
2013年第22期57-59,共3页
Modern Electronics Technique