C8051F120单片机串口扩展与通讯设计  被引量:8

Serial port expansion and communication design of MCU C8051F120

在线阅读下载全文

作  者:朱思荣[1] 周万里[1] 毕春元[1] 赵晓华[1] 高广恒[1] 刘仲汇[1] 

机构地区:[1]山东省科学院生物研究所,山东省生物传感器重点实验室,山东济南250014

出  处:《山东科学》2013年第1期69-73,共5页Shandong Science

基  金:国家高技术研究发展计划(863计划)(2012AA021201)

摘  要:在发酵控制器设计中,应用C8051F120单片机的PCA模块,用软件摸拟法扩展出1个半双工串口;使用MAX485芯片在1个串口中扩展出多个485总线,成功解决了多机通讯串口不足的问题。用PCA模块扩展的串口,数据接收或发送均在PCA中断进行,只占用很少的CPU时间,除中断次数较多外,可与硬件串口一样使用;用1个串口扩展的多条485总线,可以把多个采用不同通讯协议的下位机联接在1个串口中完成顺序通讯,较单485总线方式增加了系统应用的灵活性。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.

关 键 词:串口扩展 模拟串口 485总线 

分 类 号:TP399[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象