基于SPI互连的多串口系统  被引量:2

Multi-serial-port system based on SPI interconnection

在线阅读下载全文

作  者:胡立群[1] 陈敦军[1] 

机构地区:[1]南京大学电子科学与工程学院江苏省光电信息功能材料重点实验室,江苏南京210093

出  处:《电子设计工程》2010年第12期67-70,84,共5页Electronic Design Engineering

基  金:国家863计划资助项目(2007AA06A405);国家973计划资助项目(2009CB320300)

摘  要:针对个人计算机只有1~2个串口,给同时连接多个串口设备进行联合测量带来的不便,提出了一种由多个单片机基于高速同步串行接口(SPI)互连的串口扩展方法。采用此方法所建的系统只需占用1个现有的串口或USB口,就可连接3个以上的串口设备。该系统由多个STC12C5410AD单片机构成主体,该型号单片机同时具有UART和SPI。系统中的单片机以"单主—多从"结构进行SPI总线互连,主机与从机通过SPI方式交换信息和数据,每个从机的串口可以连接1个外部串口设备并交换数据,同时主机的串口可与上位计算机相连,从而实现上位计算机通过该系统与多个下位串口设备交换数据。系统中,主机和从机都开辟有一定的数据缓存区,并且使主机的数据吞吐率高于从机的总和。此外,还介绍了数据交换协议、存储器的组织、软件结构等。Personal computer only has 1 or 2 serial ports, which causes inconvenience when multiple serial devices are required to communicate with the computer at the same time. Aiming at this problem, a new method of serial port expansion based on SPI had been proposed. The multi-serial-port system which used the new method only took a serial or USB port available, and can connect three or more serial devices. The main body of this system consisted of multiple single chip processors STC12C5410AD which had both UART and SPI. Those processors in this system communicated in "single mastermore slaves" mode, and the master exchanged the information and data with the slave by SPI. Every slave chip can connect to a serial device, and the master chip connected with the host computer's serial port. Thus, the data can be transferred from computer to serial devices or reverse through this multi-serial-port system. The master and the slave have some data buffers, and the data throughput of master is larger than that of all of the slaves. In addition, and the protocol of data exchange, memory organization, and the software structure are also described in this article.

关 键 词:信息处理技术 串口扩展 SPI UART 

分 类 号:TP334.7[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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