The utility model relates to a serial port expansion circuit, which comprises a single-chip microcomputer chip connected with a primary conversion chip through a serial peripheral interface (SPI), one of the network ports of the primary expansion chip connected with the other end of the primary conversion chip; the primary expansion chip is provided with 2 \u2011 8 network ports, and the other network ports of the primary expansion chip are respectively connected with the secondary conversion chip or the secondary expansion chip, and the secondary expansion chip is connected with the other network ports of the primary expansion chip. The conversion chips are respectively connected with the spi of the extended single chip, and the secondary expansion chips are respectively connected with the spi of the extended single chip through the secondary conversion chips. Moreover, according to the above theory, the second expansion chip can further connect more single chip chips through the third expansion chip, the fourth expansion chip and so on, and provide more extended serial ports. Through the above technical scheme, it can expand countless serial ports in theory, so that the number of serial ports is no longer limited, and the circuit design of the method is simple, with strong controllability. Because of the hardware expansion of the serial port, the serial port has high real-time performance and high reliability.
【技术实现步骤摘要】
一种串口扩展电路
本技术属于通信电路
,具体涉及一种串口扩展电路。
技术介绍
一个复杂的电子系统通常由数量众多的模块组成,系统需要与每个模块进行通讯。而简单、可靠的串行通讯方式是模块级设计师通常选用的。因此系统的核心处理器需要具有多个的串行端口,来满足系统与众多模块的通讯需求。常见的处理器最多可具有4-5个串行端口,仍不满足某些复杂的电子系统对串行端口数量的需求。
技术实现思路
本技术的目的是提供一种串口扩展电路,以解决目前串行端口数量较少的问题。为实现上述目的,本技术采用以下技术方案:一种串口扩展电路,其中,包括单片机芯片,所述单片机芯片通过串行外设接口(SPI)连接有一次转换芯片,所述一次转换芯片的另一端连接有一次扩展芯片的其中一个网口;所述一次扩展芯片设置有2-8个网口,所述一次扩展芯片的其余网口分别连接有二次转换芯片或二次扩展芯片,所述二次转换芯片分别连接扩展单片机芯片的SPI,所述二次扩展芯片分别通过二次转换芯片连接扩展单片机芯片的SPI。并且,按照上述理论,二次扩展芯片可以进一步通过三次扩展芯片、四次扩展芯片等连接更多的单片机芯片,提供更多的扩展串口。其中,所述单片机芯片为STM32F107,具有5个通用异步收发传输器串口(Uart)。其中,所述一次转换芯片和所述二次转换芯片为网口/串口转换芯片W5500。其中,所述一次扩展芯片和所述二次扩展芯片为以太网扩展芯片KS8995M。本技术的有益效果:本技术通过上述技术方案,理论上可以扩展无数个串行端口,使串行端口数量不再受到限制,并且该方法电路设计简单,可操控性强,由于是硬件扩展串口,串口实时性高,可 ...
【技术保护点】
1.一种串口扩展电路,其特征在于:包括单片机芯片,所述单片机芯片通过串行外设接口连接有一次转换芯片,所述一次转换芯片的另一端连接有一次扩展芯片的其中一个网口;所述一次扩展芯片设置有2‑8个网口,所述一次扩展芯片的其余网口分别连接有二次转换芯片或二次扩展芯片,所述二次转换芯片分别连接扩展所述单片机芯片的串行外设接口,所述二次扩展芯片分别通过二次转换芯片连接扩展所述单片机芯片的串行外设接口。
【技术特征摘要】
1.一种串口扩展电路,其特征在于:包括单片机芯片,所述单片机芯片通过串行外设接口连接有一次转换芯片,所述一次转换芯片的另一端连接有一次扩展芯片的其中一个网口;所述一次扩展芯片设置有2-8个网口,所述一次扩展芯片的其余网口分别连接有二次转换芯片或二次扩展芯片,所述二次转换芯片分别连接扩展所述单片机芯片的串行外设接口,所述二次扩展芯片分别通过二次转换芯片连接扩展所述单片机芯片的串行外设接口。2.根据权利要求1所述的串口扩展电路,其特...
【专利技术属性】
技术研发人员:吴宝杰,王凯,马绪华,尹照亮,
申请(专利权)人:青岛瑞普电气股份有限公司,
类型:新型
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。