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

C8051F120单片机串口扩展与通讯设计
引用本文:朱思荣,周万里,毕春元,赵晓华,高广恒,刘仲汇.C8051F120单片机串口扩展与通讯设计[J].山东科学,2013,26(1):69-73.
作者姓名:朱思荣  周万里  毕春元  赵晓华  高广恒  刘仲汇
作者单位:山东省科学院生物研究所,山东省生物传感器重点实验室,山东 济南 250014
基金项目:国家高技术研究发展计划(863计划)(2012AA021201)
摘    要:在发酵控制器设计中,应用C8051F120单片机的PCA模块,用软件摸拟法扩展出1个半双工串口;使用MAX485芯片在1个串口中扩展出多个485总线,成功解决了多机通讯串口不足的问题。用PCA模块扩展的串口,数据接收或发送均在PCA中断进行,只占用很少的CPU时间,除中断次数较多外,可与硬件串口一样使用;用1个串口扩展的多条485总线,可以把多个采用不同通讯协议的下位机联接在1个串口中完成顺序通讯,较单485总线方式增加了系统应用的灵活性。

关 键 词:串口扩展  模拟串口  485总线  
收稿时间:2012-07-12

Serial port expansion and communication design of MCU C8051F120
ZHU Si-rong , ZHOU Wan-li , BI Chun-yuan , ZHAO Xiao-hua , GAO Guang-heng , LIU Zhong-hui.Serial port expansion and communication design of MCU C8051F120[J].Shandong Science,2013,26(1):69-73.
Authors:ZHU Si-rong  ZHOU Wan-li  BI Chun-yuan  ZHAO Xiao-hua  GAO Guang-heng  LIU Zhong-hui
Institution:Shandong Provincial Key Laboratory of Biosensors, Biology Institute, Shandong Academy of Sciences, Jinan 250014, China
Abstract:We employ the PCA modules of MCU C8051F120 and software simulation to extend a half duplex serial port in the design of a fermentation controller. We extend multiple 485 bus in one serial port with the chip MAX485, so solve the problem of serial port deficiency. The extended serial port using PCA modules send or receive data in interruption mode of PCA, so it occupies very little CPU time. It can be used as hardware serial ports besides more interruption times. Multiple extended 485 bus from one serial port can connect multiple lower computers with different protocols and different baud rate to complete the sequence communication. Application flexibility is significantly improved, as compared with single 485 bus.
Keywords:serial port extension  serial port simulation  multiple 485 bus
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《山东科学》浏览原始摘要信息
点击此处可从《山东科学》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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