A serial port channel expansion circuit
Patent Information
- Application Number
- CN202522171629.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-14
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2035-10-14
AI Technical Summary
[0003]通常情况下,对电源多串口通信电路设计来说,主要采用单串口对应单个主控电路处理器引脚进行传输的设计方法,此种设计方法在主控电路的处理器引脚充足的情况下,可以简单、快速地传输串口数据;但是,随着对电源要求的功能越来越多,相应地主控电路的处理器引脚就会更多地被占用,留给串口通信的引脚越来越少,当出现多个串口数据需要处理时,上述单串口对应单处理器引脚的设计方法也就不能满足系统设计的要求
本实用新型可以按照控制电路的设定的切换时序,在电路中同时存在多个串口输入的情况下,通过软件设计切换时序,从而实现多个串口信号通过一个电路分时输出到主控电路,起到节省主控电路资源。
Smart Images

Figure CN224851525U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of electronic circuit technology, specifically relating to a serial port channel expansion circuit. Background Technology
[0002] In the design of power supply serial communication systems, it is common to encounter situations where multiple serial port data are input, but the corresponding main control circuit pin resources are relatively limited, with only one port capable of receiving multiple serial port data. In such cases, it is necessary to design a serial port channel expansion circuit to ensure that multiple serial port data can be output through this circuit in a time-sharing manner, thereby saving main control circuit ports and improving data processing efficiency.
[0003] Typically, for multi-serial-port communication circuit designs, the main approach is to use a single serial port corresponding to a single processor pin of the main control circuit for data transmission. This approach allows for simple and fast serial data transmission when there are sufficient processor pins in the main control circuit. However, as the power supply requirements increase, more processor pins in the main control circuit become occupied, leaving fewer pins for serial communication. When multiple serial data need to be processed, the above-mentioned single serial port corresponding to a single processor pin design can no longer meet the system design requirements.
[0004] In addition, existing technical solutions using multi-serial port expansion chips will increase hardware costs by more than 30% and require control bus resources; while using analog serial ports can save hardware costs, it will occupy more than 70% of CPU computing resources, resulting in increased system response latency.
[0005] To address the aforementioned problems, this invention provides a circuit for extending serial port channels. By controlling the conduction of each serial port in a time-division manner, and outputting data from multiple serial ports to the processor in a time-division manner through a single output port, this invention enables efficient and rapid transmission of data from multiple serial ports through a single port. Utility Model Content
[0006] In view of the problems mentioned in the background technology above, the purpose of this utility model is to provide a serial port channel expansion circuit, which is a low-cost and high-reliability serial port channel expansion circuit that can reduce the number of pins occupied by the main control chip and eliminate common-mode interference between control signals and data signals.
[0007] To achieve the above-mentioned technical objectives, the technical solution adopted by this utility model is as follows: A serial port channel expansion circuit includes 4 serial port input signals, 2 control signals, 4 electronic switches, and a serial port output Y, namely SERIAL_IN_1, SERIAL_IN_2, SERIAL_IN_3, and SERIAL_IN_4. The 2 control signals are A0 and A1, and the 4 electronic switches are first switch K1, second switch K2, third switch K3, and fourth switch K4. The serial port input signals are respectively connected to the input terminals of the corresponding electronic switches. The control signals A0 and A1 are connected in parallel to the control terminals of all electronic switches. The output terminals of all electronic switches are connected to the serial port output Y. Through the logical combination of control signals A0 and A1, one of the electronic switches is selectively turned on, so that the corresponding serial port input signal is transmitted to the external main control circuit through the serial port output Y, realizing the time-division multiplexing output function of multiple serial port signals.
[0008] Further specified, each of the four electronic switches is provided with pin a and pin b. SERIAL_IN_1 is electrically connected to pin a of the first switch K1, and pin b of the first switch K1 is electrically connected to the serial port output Y. SERIAL_IN_2 is electrically connected to pin a of the second switch K2, and pin b of the second switch K2 is electrically connected to the serial port output Y. SERIAL_IN_3 is electrically connected to pin a of the third switch K3, and pin b of the third switch K3 is electrically connected to the serial port output Y. SERIAL_IN_4 is electrically connected to pin a of the fourth switch K4, and pin b of the fourth switch K4 is electrically connected to the serial port output Y.
[0009] Furthermore, the four electronic switches are also provided with control terminals c. The control terminal c of the first switch K1 is connected to control signals A0 and A1, the control terminal c of the second switch K2 is connected to control signals A0 and A1, the control terminal c of the third switch K3 is connected to control signals A0 and A1, and the control terminal c of the fourth switch K4 is connected to control signals A0 and A1.
[0010] Further specifying, when the serial port input signal increases, the control signal of the circuit is increased accordingly. The relationship between the number A of the control signals and the B of the serial port input signals is as follows: .
[0011] The beneficial effects of this utility model are: This invention can switch the timing according to the control circuit's preset timing sequence. When multiple serial port inputs exist simultaneously in the circuit, the timing sequence can be switched by software design, thereby enabling multiple serial port signals to be output to the main control circuit through a single circuit in a time-sharing manner, thus saving main control circuit resources.
[0012] This invention sets up a serial port channel expansion circuit, and by controlling the combination of external control signals, enables the corresponding switches of the serial port input signals to be turned on at different times, thereby realizing the time-division output of each serial port signal. Attached Figure Description
[0013] This utility model can be further illustrated by the non-limiting embodiments given in the accompanying drawings; Figure 1 This is a circuit diagram of an embodiment of a serial port channel expansion circuit according to the present invention. Detailed Implementation
[0014] In the description of this utility model, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this utility model. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this utility model, unless otherwise stated, "a plurality of" means two or more.
[0015] In the description of this utility model, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific circumstances.
[0016] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0017] like Figure 1As shown, this utility model discloses a serial port channel expansion circuit, which includes 4 serial port input signals, 2 control signals, 4 electronic switches, and a serial port output Y, namely SERIAL_IN_1, SERIAL_IN_2, SERIAL_IN_3, and SERIAL_IN_4. The 2 control signals are A0 and A1, and the 4 electronic switches are the first switch K1, the second switch K2, the third switch K3, and the fourth switch K4. The serial port input signals are respectively connected to the input terminals of the corresponding electronic switches. The control signals A0 and A1 are connected in parallel to the control terminals of all electronic switches. The output terminals of all electronic switches are connected to the serial port output Y. Through the logical combination of control signals A0 and A1, one of the electronic switches is selectively turned on, so that the corresponding serial port input signal is transmitted to the external main control circuit through the serial port output Y, realizing the time-division multiplexing output function of multiple serial port signals.
[0018] In the practical application of this embodiment, each of the four electronic switches is provided with pin a and pin b. SERIAL_IN_1 is electrically connected to pin a of the first switch K1, and pin b of the first switch K1 is electrically connected to the serial port output Y. SERIAL_IN_2 is electrically connected to pin a of the second switch K2, and pin b of the second switch K2 is electrically connected to the serial port output Y. SERIAL_IN_3 is electrically connected to pin a of the third switch K3, and pin b of the third switch K3 is electrically connected to the serial port output Y. SERIAL_IN_4 is electrically connected to pin a of the fourth switch K4, and pin b of the fourth switch K4 is electrically connected to the serial port output Y.
[0019] In the practical application of this embodiment, the four electronic switches are also provided with control terminals c. The control terminal c of the first switch K1 is connected to control signals A0 and A1. The control terminal c of the second switch K2 is connected to control signals A0 and A1. The control terminal c of the third switch K3 is connected to control signals A0 and A1. The control terminal c of the fourth switch K4 is connected to control signals A0 and A1.
[0020] In the practical application of this embodiment, when the serial port input signal increases, the control signal of the circuit is increased accordingly. The relationship between the number A of the control signals and the B of the serial port input signals is as follows: .
[0021] The working principle of this utility model is as follows: Since SERIAL_IN_1, SERIAL_IN_2, SERIAL_IN_3, and SERIAL_IN_4 are four serial port input signals, and control signals A0 and A1 are the switching signals for four electronic switches: the first switch K1, the second switch K2, the third switch K3, and the fourth switch K4; There are four combinations of A0 and A1. When both A0 and A1 are 0, the first switch K1 is turned on, and the data of SERIAL_IN_1 can be output via the serial port (Y output). When A0 is 0 and A1 is 1, the second switch K2 is turned on, and the data of SERIAL_IN_2 can be output via the serial port (Y output). When A0 is 1 and A1 is 0, the third switch K3 is turned on, and the data of SERIAL_IN_3 can be output via the serial port (Y output). When A0 is 1 and A1 is 1, the fourth switch K4 is turned on, and the data of SERIAL_IN_4 can be output via the serial port (Y output).
[0022] Ultimately, through the above circuitry, control signal circuits are formed in different combinations to achieve the effect of time-division multiplexing of four serial port input signals through a single serial port output. Furthermore, the circuit can be further expanded; when there are eight serial port input signals, a control terminal A2 can be added, enabling the time-division multiplexing of all eight signals through a single port. This serial port channel expansion circuit has been applied to a practical circuit, and the measured results are consistent with the theoretical analysis.
[0023] The above embodiments are merely illustrative of the principles and effects of this utility model and are not intended to limit the scope of this utility model. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this utility model. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this utility model should still be covered by the claims of this utility model.
Claims
1. A serial port channel expansion circuit, characterized in that: The serial port channel expansion circuit includes 4 serial port input signals, 2 control signals, 4 electronic switches, and serial port output Y. The 4 serial port input signals are SERIAL_IN_1, SERIAL_IN_2, SERIAL_IN_3, and SERIAL_IN_4. The 2 control signals are A0 and A1. The 4 electronic switches are the first switch K1, the second switch K2, the third switch K3, and the fourth switch K4. The serial port input signals are respectively connected to the input terminals of the corresponding electronic switches. The control signals A0 and A1 are connected in parallel to the control terminals of all electronic switches. The output terminals of all electronic switches are connected to the serial port output Y. Through the logical combination of control signals A0 and A1, one of the electronic switches is selectively turned on, so that the corresponding serial port input signal is transmitted to the external main control circuit through the serial port output Y, realizing the time-division multiplexing output function of multiple serial port signals.
2. The serial port channel expansion circuit according to claim 1, characterized in that: Each of the four electronic switches has pins a and b. SERIAL_IN_1 is electrically connected to pin a of the first switch K1, and pin b of the first switch K1 is electrically connected to the serial port output Y. SERIAL_IN_2 is electrically connected to pin a of the second switch K2, and pin b of the second switch K2 is electrically connected to the serial port output Y. SERIAL_IN_3 is electrically connected to pin a of the third switch K3, and pin b of the third switch K3 is electrically connected to the serial port output Y. SERIAL_IN_4 is electrically connected to pin a of the fourth switch K4, and pin b of the fourth switch K4 is electrically connected to the serial port output Y.
3. The serial port channel expansion circuit according to claim 2, characterized in that: The four electronic switches are also provided with control terminals c. The control terminal c of the first switch K1 is connected to control signals A0 and A1. The control terminal c of the second switch K2 is connected to control signals A0 and A1. The control terminal c of the third switch K3 is connected to control signals A0 and A1. The control terminal c of the fourth switch K4 is connected to control signals A0 and A1.
4. The serial port channel expansion circuit according to claim 1, characterized in that: When the serial port input signal increases, the control signal of the circuit is increased accordingly. The relationship between the number A of the control signals and the B of the serial port input signals is as follows: .