pc机跟单片机串行通信的研究探究资料精.pdfVIP

  • 3
  • 0
  • 约2.23万字
  • 约 8页
  • 2019-06-14 发布于湖北
  • 举报

pc机跟单片机串行通信的研究探究资料精.pdf

pc机跟单片机串行通信的研究探究资料精

第27卷第3期 沈阳工业大学学报 V01.27No.3 2 of 005 005年6月 Joumal of Jun.2 ShenyangUniverSityTechnology PC机与单片机串行通信的研究 梁中华1,王子威2,祁春清1,索迹1 (1.沈阳工业大学电气工檀学院,沈阳110023;2.辽宁石油化工大学信息工程学院。辽宁抚顺113001) 摘要:针对研究生常需要数据采集而设计了一个串行通信系统.该系统上位机为PC机,下位机 为MCS5l单片机.文中给出了通信协议设计,硬件设计和软件设计.协议中有6种通信命令,适用 于各种数据交换;硬件方面设计了时钟电路和波特率配置;软件方面完成了中断子程序、数据交换 子程序和上位机串行通讯程序的设计、编写和调试.下位机用汇编语言,上位机用C语言;该串行 通信系统的硬件与软件已调试成功并运行良好. 关键词:串行通信;单片机;波特率;多机通信;通信协议 中图分类号:TP914.3 文献标识码:A ResearchOfserialcOmmunicatiOnbetweenPCandMCS-51serial singlechip LIANG Zhong—hual,WANGZi—wei2,QIChun_qin91,SUOJil of of (1.SchoolofE1ectrical 110023,China;2.School Engineering,Shen”ngUIliversityTechn0109y,Shen”ng ofPetroleum&Chemical 113001,CKna) &Engineering’LiaoningUnjverSity Techn6Iogy’Fushun a serialcommunicationinorderto the needof data. Abstract:Presents system satisfypc啪duateoDUecting Thehost is the is Ma孓51.The the computerPC,whileslave∞mputersinglechipcomputer paperdesigns can aU serialcommunicationhardwareandsoftware.Therearesixcommandsthat kinds protocol,the apply ofdata intheserialcommunicationInthe c10ckcircuitis exchange proto∞1. hardware,the thebaudrateis Inthe the suchasthe data configured.Sof

文档评论(0)

1亿VIP精品文档

相关文档