一种用于控制器的多功能端口复用电路

By employing MCU to coordinate modules such as an eight-bit shift register, a single-pole eight-throw analog switch, and operational amplifier circuits in the controller, stable multiplexing of port functions is achieved, solving the problems of single port function and high hardware cost in traditional controllers, and improving the stability and anti-interference capability of the circuit.

CN224521037UActive Publication Date: 2026-07-17WUXI XINJIE ELECTRICAL

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
WUXI XINJIE ELECTRICAL
Filing Date
2025-07-29
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Traditional controller ports have limited functionality, resulting in complex hardware circuits, high costs, and difficulty in reducing device size. Existing software configuration register solutions suffer from poor circuit stability and weak anti-interference capabilities.

Method used

By employing modules such as an MCU-coordinated eight-bit shift register, a single-pole eight-throw analog switch, and operational amplifier circuits, the port can flexibly switch between analog input, digital input, digital output, and PWM output functions through hardware connections, simplifying the circuit structure and improving stability.

Benefits of technology

Stable reuse of port functions was achieved, reducing hardware costs, simplifying circuit layout, and improving the circuit's anti-interference performance and the reliability of system reset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224521037U_ABST
    Figure CN224521037U_ABST
Patent Text Reader

Abstract

本实用新型涉及嵌入式设备端口复用技术领域,具体是一种用于控制器的多功能端口复用电路,包括MCU、八位移位寄存器、单刀八掷模拟开关、运放电路、复位电路及SWD下载调试接口,各模块通过特定的引脚连接形成稳定的硬件构造:MCU的控制引脚连接八位移位寄存器和单刀八掷模拟开关,单刀八掷模拟开关的输出经运放电路连接MCU的模拟输入引脚,复位电路和SWD下载调试接口分别连接MCU的复位引脚和调试引脚。通过硬件构造的优化,实现了端口在模拟量输入、开关量输出等功能间的复用,具有电路稳定、成本低、利用率高的优点,适用于各类嵌入式控制器。
Need to check novelty before this filing date? Find Prior Art

Claims

1. A multi-function port multiplexing circuit for a controller, characterized by, include: MCU (U1) serves as the core control unit of the circuit. An eight-bit shift register (U23) has its serial data input pin (SER), output enable pin (OE#), memory register clock pin (RCLK), shift register clock pin (SRCLK), and shift register clear pin (SRCLR#) connected to the PF6, PF7, PF8, PF9, and PF10 pins of the MCU (U1), respectively. The output pins of the eight-bit shift register (U23) are connected to external control signal terminals. A single-pole eight-throw analog switch (U20) is provided, wherein the channel selection control pins A0, A1, and A2 of the single-pole eight-throw analog switch (U20) are respectively connected to the PH2, PH3, and PH4 pins of the MCU (U1); the input pin of the single-pole eight-throw analog switch (U20) is connected to an analog signal source. The operational amplifier circuit (U13B) has its non-inverting input connected to the output pin of the single-pole eight-throw analog switch (U20) via a first 1 / 8 resistor (R118), and a feedback resistor (R117) connected between its inverting input and output. The output is connected to the PC1 analog input pin of the MCU (U1).

2. The multi-functional port multiplexing circuit for a controller according to claim 1, wherein, The MCU (U1) is also connected to a reset circuit consisting of an eighth resistor (R8), a first sixth capacitor (C16), and a first seventh capacitor (C17).

3. The multi-functional port multiplexing circuit for a controller of claim 2, wherein, One end of the eighth resistor (R8) is connected to a 3V3 power supply, and the other end is connected to the first sixth capacitor (C16), the first seventh capacitor (C17), and the NRST pin of the MCU (U1). The other ends of the first sixth capacitor (C16) and the first seventh capacitor (C17) are grounded.

4. The multi-functional port multiplexing circuit for a controller according to claim 1 or 2, wherein The MCU (U1) is also connected to an SWD download and debug interface (J2), and the JTMS-SWDIO pin and JTCK-SWCLK pin of the SWD download and debug interface (J2) are connected to the PA13 pin and PA14 pin of the MCU (U1) respectively.

5. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The MCU (U1) is model APM32F407IGT6.

6. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The eight-bit shift register (U23) is model 74HC595PW.

7. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The model number of the single-pole eight-throw analog switch (U20) is TPW4051-TR.

8. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The eight-bit shift register (U23) has seven output pins, which are respectively connected to seven external 20mA control signal terminals.

9. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The input pins of the single-pole eight-throw analog switch (U20) are connected to eight different types of analog signal sources, including four voltage detection signal channels and four current detection signal channels.

10. The multi-functional port multiplexing circuit for a controller of claim 1, wherein, The operational amplifier circuit (U13B) is model TP5534-TR, the feedback resistor (R117) has a resistance of 10kΩ, and the first 118 resistor (R118) has a resistance of 1kΩ.