Expansion circuit based on USB topology interface
By designing an expansion circuit based on the USB topology interface, and using the cooperation of the main control chip and the split control circuit, the data transmission efficiency and reliability of the dual main control chip are improved, and the transmission reliability of the existing USB interface is solved. The problem.
Patent Information
- Application Number
- CN202420049909.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2034-01-09
AI Technical Summary
The existing circuit with USB interface has low transmission reliability after expansion, and cannot effectively complete data exchange and fast data transmission between dual master chips.
A expansion circuit based on USB topology interface is designed, including a main control chip, a split control circuit, a first conversion circuit and a second conversion circuit. The connecting base circuit and a split control circuit are controlled by a single-pole dual-control switch, and the current output control circuit is controlled by a single-pole dual-control switch. Synchronously control data output of two USB connection ports to improve data transmission efficiency.
The data transmission efficiency and circuit reliability between the dual master chips are improved, making multi-interface data transmission more stable and efficient.
Smart Images

Figure CN222050883U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of circuits, and in particular to an expansion circuit based on a USB topology interface. Background Art
[0002] With the rapid development of industrial manufacturing, people have higher and higher functional requirements for circuit boards to realize circuit operation. Since the existing connector needs to lead both USB signals to the USB interface socket during the connection process of the computer, but the space on the PCB board of the connector is limited, and it is limited by the structure and the appearance of the product, two USB interface sockets cannot be placed on the circuit board. In general connectors, two central processing units are usually set, and the two processor chips share a USB connection port respectively. When the two processor chips on the circuit board are connected to a USB respectively, they transmit data to each other. However, the USB port of the first processor CPU1 needs to be led to the USB interface socket on the board for downloading and upgrading software, and the USB port of the second processor CPU2 needs to lead the USB interface to the USB socket in addition to transmitting data with the first processor CPU1, so as to insert a peripheral device with a USB interface externally. The connectors currently on the market cannot complete the function of data exchange between dual main control chips, and the function is relatively single, and data transmission cannot be completed quickly. The existing circuit with a USB interface overcomes the problem of low transmission reliability after interface expansion. Utility Model Content
[0003] The utility model discloses an expansion circuit based on a USB topology interface, aiming to overcome the problem of low transmission reliability after interface expansion in existing circuits with USB interfaces.
[0004] The utility model discloses an expansion circuit based on a USB topology interface, wherein the circuit is composed of a main control chip, a sub-control circuit, a first conversion circuit and a second conversion circuit, a connection socket circuit and a key position control circuit are also arranged on one side of the sub-control circuit, a single-pole double-control switch is arranged between the main control chip and the sub-control circuit, a third end of the single-pole double-control switch is also connected to the connection socket circuit and one end of a single-pole switch at the same time, and the other end of the single-pole switch is electrically connected to the first chip arranged in the sub-control circuit.
[0005] The sub-control circuit includes: a first chip, a first inductor, a second inductor, a third inductor, a first connector, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor, a tenth capacitor, a first resistor, a second resistor, a first power supply, and a second power supply. The X1 port of the first chip is connected to one end of the first resistor, and the other end of the first resistor is simultaneously connected to one end of the first capacitor and the first connection end of the first connector, and the other end of the first capacitor is grounded. The X2 port of the first chip is simultaneously connected to the second connection end of the first connector and one end of the second capacitor, and the other end of the second capacitor is grounded. The third connection end and the fourth connection end of the first connector are both grounded. The AVDD port of the chip is simultaneously connected to one end of the fourth capacitor, one end of the fifth capacitor and one end of the first inductor, the other end of the fourth capacitor is simultaneously connected to one end of the third capacitor and a ground terminal, one end of the third capacitor is simultaneously connected to the other end of the first inductor, one end of the second inductor, one end of the tenth capacitor and one end of the third inductor, the other end of the second inductor is connected to the voltage output terminal of the second power supply, the other end of the tenth capacitor is grounded, the other end of the fifth capacitor is connected to a ground terminal, the V5 port of the first chip is connected to one end of the second resistor, the other end of the second resistor is connected to the voltage output terminal of the first power supply, and the DVDD port of the first chip is connected to the other end of the third inductor.
[0006] In the expansion circuit based on the USB topology interface, the sixth capacitor, the seventh capacitor, the eighth capacitor and the ninth capacitor are respectively arranged in parallel on the same side of the fifth capacitor.
[0007] The expansion circuit based on the USB topology interface, wherein the first conversion circuit includes: a second chip, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, an eleventh capacitor, a twelfth capacitor, and a first transistor, the S port of the second chip is simultaneously connected to one end of the third resistor and the collector of the first transistor, the other end of the third resistor is connected to a VBAT port, the base of the first transistor is simultaneously connected to one end of the eleventh capacitor and one end of the fourth resistor, the other end of the fourth resistor is connected to a GPIO port, the other end of the eleventh capacitor is simultaneously connected to the emitter of the first transistor and a ground terminal, the VCC port of the second chip is simultaneously connected to one end of the twelfth capacitor and the V BAT port, the other end of the twelfth capacitor is grounded, the D+ port of the second chip is connected to one end of the fifth resistor, the other end of the fifth resistor is connected to a CPU1DM port, the D- port of the second chip is connected to a CPU1-DP port, the HSD2+ port of the second chip is connected to the DM1 port of the first chip set in the control circuit, the HSD2- port of the second chip is connected to the DP1 port of the first chip set in the control circuit, the HSD1+ port of the second chip is connected to the USB-DM port set in the second conversion circuit, the HSD1- port of the second chip is connected to the USB-DP port set in the second conversion circuit, and the GND port and OE port of the second chip are both grounded.
[0008] The expansion circuit based on the USB topology interface, wherein the second conversion circuit includes: a third chip, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a thirteenth capacitor, a fourteenth capacitor, and a second transistor, the S port of the third chip is simultaneously connected to one end of the seventh resistor and the collector of the second transistor, the other end of the seventh resistor is connected to the VBAT port set by the first conversion circuit, the base of the second transistor is simultaneously connected to one end of the thirteenth capacitor and one end of the eighth resistor, the other end of the eighth resistor is connected to the GPIO port set by the first conversion circuit, and the other end of the thirteenth capacitor is connected to the collector of the second transistor. One end is simultaneously connected to the emitter of the second transistor and a ground terminal, the VCC port of the third chip is simultaneously connected to one end of the fourteenth capacitor and the VBAT port set in the first conversion circuit, the D+ port of the third chip is connected to one end of the ninth resistor, and the other end of the ninth resistor is connected to the DM3 port of the first chip set in the control circuit, the D- port of the third chip is connected to one end of the tenth resistor, and the other end of the tenth resistor is connected to the DP3 port of the first chip, and the HSD2+ port and the HSD2- port of the third chip are respectively connected to the connection socket circuit.
[0009] The expansion circuit based on the USB topology interface, wherein the key position control circuit includes: a fourth chip, a third power supply, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fifteenth capacitor, a first MOS tube, a first diode, and a second diode, the voltage output end of the third power supply serves as the starting end of the key position control circuit, the voltage output end of the third power supply is connected to one end of the eleventh resistor, the other end of the eleventh resistor is simultaneously connected to one end of the twelfth resistor and the source of the first MOS tube, the other end of the twelfth resistor is simultaneously connected to the gate of the first MOS tube, one end of the fifteenth capacitor and one end of the thirteenth resistor, the drain of the first MOS tube is connected to a BOOT port, the other end of the fifteenth capacitor is grounded, the other end of the thirteenth resistor is connected to the positive electrode of the first diode, the negative electrode of the first diode is simultaneously connected to the second connection end of the fourth chip and the negative electrode of the second diode, the positive electrode of the second diode is grounded, the first port of the fourth chip, the third port of the fourth chip, the fourth port of the fourth chip, and the fifth port of the fourth chip are all grounded.
[0010] The expansion circuit based on the USB topology interface, wherein the connector circuit includes: a fourth power supply, a fifth chip, a third diode, a fourth diode, and a fifth diode, wherein the VCHG port of the fifth chip is simultaneously connected to one end of the third diode and the voltage output end of the fourth power supply, and the other end of the third diode is grounded, the RX port of the fifth chip is simultaneously connected to the USB-DM port set in the first conversion circuit and one end of the fourth diode, and the other end of the fourth diode is grounded, the TX port of the fifth chip is simultaneously connected to the USB-DP port set in the first conversion circuit and one end of the fifth diode, and the other end of the fifth diode is grounded, and the GND port of the fifth chip is grounded.
[0011] In the expansion circuit based on the USB topology interface, the third diode, the fourth diode and the fifth diode are all bidirectional voltage regulator diodes.
[0012] In the expansion circuit based on the USB topology interface, the first MOS tube is a field effect enhanced P-MOS tube.
[0013] In the expansion circuit based on the USB topology interface, a diode is arranged in series between the drain of the first MOS tube and the source of the first MOS tube.
[0014] In the expansion circuit based on the USB topology interface, the second diode is a voltage regulator diode.
[0015] Compared with the prior art, the utility model has the following advantages:
[0016] The utility model discloses an expansion circuit based on a USB topology interface, the circuit is composed of a main control chip, a sub-control circuit, a first conversion circuit and a second conversion circuit, a connection socket circuit and a key position control circuit are further provided on one side of the sub-control circuit, a single-pole double-control switch is arranged between the main control chip and the sub-control circuit, the third end of the single-pole double-control switch is also connected to the connection socket circuit and one end of a single-pole switch at the same time, the other end of the single-pole switch is electrically connected to a first chip provided in the sub-control circuit, the single-pole double-control switch is provided on one side of the main control chip to control the current output of the connection socket circuit and the sub-control circuit, and the data output of two USB connection ports provided in the first conversion circuit and the second conversion circuit are synchronously controlled, and the main control chip and the first chip provided in the sub-control circuit cooperate to improve the data transmission efficiency of the first conversion circuit and the second conversion circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A circuit diagram of a main control circuit of an expansion circuit based on a USB topology interface provided by an embodiment of the utility model;
[0019] Figure 2 An overall circuit diagram of a first conversion circuit of an expansion circuit based on a USB topology interface provided by an embodiment of the utility model;
[0020] Figure 3 An overall circuit diagram of a second conversion circuit of an expansion circuit based on a USB topology interface provided by an embodiment of the utility model;
[0021] Figure 4 An overall circuit diagram of a key position control circuit of an expansion circuit based on a USB topology interface provided by an embodiment of the utility model;
[0022] Figure 5 An overall circuit diagram of a connection socket circuit of an expansion circuit based on a USB topology interface provided by an embodiment of the utility model;
[0023] Figure 6A schematic diagram of the connections of switches and circuits of an expansion circuit based on a USB topology interface is provided in an embodiment of the utility model.
[0024] Sub-control circuit S1, first conversion circuit S2, second conversion circuit S3, key position control circuit S4, connection socket circuit S5;
[0025] A first chip U1, a second chip U2, a third chip U3, a fourth chip U4, a first power supply V1, a second power supply V2, a third power supply V3, a single-pole double-control switch K1, a single-pole switch K2, a main control chip P1, and another main control chip P2;
[0026] A first MOS transistor M1, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, a fifth diode D5, a first transistor QVT1, a second transistor QVT2, a first inductor L1, a second inductor L2, and a third inductor L3;
[0027] a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, and a thirteenth resistor R13;
[0028] The first capacitor C1, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, the fifth capacitor C5, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8, the ninth capacitor C9, the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, the thirteenth capacitor C13, the fourteenth capacitor C14, and the fifteenth capacitor C15. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the terms used in the utility model specification are only for the purpose of describing specific embodiments and are not intended to limit the utility model. As used in the utility model specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0032] It should be further understood that the term “and / or” used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] See also Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 as well as Figure 6 As shown in the figure, it is an expansion circuit based on a USB topology interface disclosed by the utility model, the circuit is composed of a main control chip P1, a sub-control circuit S1, a first conversion circuit S2 and a second conversion circuit S3, and a connection socket circuit S5 and a key position control circuit S4 are also provided on one side of the sub-control circuit S1. A single-pole double-control switch K1 is set between the main control chip P1 and the sub-control circuit S1, and the third end of the single-pole double-control switch K1 is also connected to the connection socket circuit S5 and one end of a single-pole switch K2 at the same time, and the other end of the single-pole switch K2 is electrically connected to the first chip U1 provided in the sub-control circuit S1.
[0034] The sub-control circuit S1 includes: a first chip U1, a first inductor L1, a second inductor L2, a third inductor L3, a first connector J1, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9, a tenth capacitor C10, a first resistor R1, a second resistor R2, a first power supply V1, and a second power supply V2. The X1 port of the first chip U1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is simultaneously connected to one end of the first capacitor C1 and the first connection end of the first connector J1, and the other end of the first capacitor C1 is grounded. The X2 port of the first chip U1 is simultaneously connected to the second connection end of the first connector J1 and one end of the second capacitor C2, and the other end of the second capacitor C2 is grounded. The third connection end of the first connector J1 and the fourth connection end of the first connector J1 are connected to the first connection end of the first connector J1. The first chip U1 and the second chip U1 are connected to the voltage output terminal of the second power supply V2, the other end of the tenth capacitor C10 is grounded, the other end of the fifth capacitor C5 is connected to the ground, the V5 port of the first chip U1 is connected to one end of the second resistor R2, the other end of the second resistor R2 is connected to the voltage output terminal of the first power supply V1, and the DVDD port of the first chip U1 is connected to the other end of the third inductor L3.
[0035] Specifically, in the embodiment of the present scheme, the expansion circuit is suitable for the chip set on the circuit board to perform multi-interface data transmission, and the circuit is composed of a main control chip P1, a sub-control circuit S1, a first conversion circuit S2 and a second conversion circuit S3. A connection socket circuit S5 and a key position control circuit S4 are also provided on one side of the sub-control circuit S1. A single-pole double-control switch K1 is set between the main control chip P1 and the sub-control circuit S1. The third end of the single-pole double-control switch K1 is also connected to the connection socket circuit S5 and one end of a single-pole switch K2 at the same time. The other end of the single-pole switch K2 is electrically connected to the first chip U1 set in the sub-control circuit S1. In one embodiment, four The connection ports (the two ports DM1 and DM2 connected by USB-DM and the two ports DP1 and DP2 connected by USB-DP) can simultaneously connect the circuits of four USB interfaces for interface expansion. The main control chip P1 is electrically connected to the first chip U1 set up with the sub-control circuit S1 through a connection port. Through the single-pole double-control switch K1 set on one side of the main control chip P1, the current on-off control of the sub-control circuit S1 and the connection socket circuit S5 are simultaneously performed, thereby controlling the external devices connected between the four connection ports. This setting method, through the mutual cooperation among the main control chip P1, the single-pole double-control switch K1 and the sub-control circuit S1, so as to control the connection end on one side of the sub-control circuit S1, further improves the efficiency of data transmission.
[0036] Furthermore, in the embodiment of the present scheme, two power supplies (a first power supply V1 and a second power supply V2) and two or three inductors (a first inductor L1, a second inductor L2, and a third inductor L3) are provided in the sub-control circuit S1. A 5V voltage is input to the voltage input end of the first power supply V1, and a 3.3V voltage is input to the power output end of the second power supply V2. The first power supply V1 and the second power supply V2 respectively power the first connector J1 and the first chip U1, so that after the first chip U1 and the first connector are used in conjunction with the main control chip P1, the stability of the first chip U1 in the electrical connection with the four USB ports is improved. The three inductors (a first inductor L1, a second inductor L2, and a third inductor L3) are each used to shunt the current output from one side of the other main control chip P2 to prevent the instantaneous current from being too large and affecting the signal control of the first chip U1 in the sub-control circuit S1. This arrangement further improves the sub-control performance of the first chip U1, increases the reliability of the expansion circuit, and greatly increases the data transmission efficiency of the circuit.
[0037] Further, in one embodiment, the first chip U1 is a 4-port control chip (standard USB hub); two capacitors (the first capacitor C1 and the second capacitor C2) are respectively load capacitors of the first connector J1; the fifth capacitor C5, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8, and the ninth capacitor C9 are bypass filter capacitors of the power supply, and the DP0 port and the DM0 port set in the first chip U1 are respectively connected to the USB interface of another USB control chip (P2), please refer to Figure 6 , as shown in the figure, Figure 6 Schematic diagram of the connection of each switch and each circuit. After conversion by the first chip U1 set by the main control chip (P1) and the sub-control circuit S1, up to 4 USB interfaces can be expanded. The 4 USB connection interfaces are respectively set on both sides of the first conversion circuit and the second conversion circuit. After conversion by the main control chip and another main control chip P2, data is transmitted to the four USB connection ports, where the four USB connection ports are (two ports DM1 and DM2 of the USB-DM connection and two ports DP1 and DP2 of the USB-DP connection). Figure 1 DP1 and DM1, DP2 and DM2, DP3 and DM3 shown in the figure are all expanded interfaces.
[0038] See also Figure 1 As shown in the figure, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8 and the ninth capacitor C9 are respectively arranged in parallel on the same side of the fifth capacitor C5.
[0039] Specifically, in the embodiment of the present scheme, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8 and the ninth capacitor C9 are respectively arranged in parallel on the same side of the fifth capacitor C5. In one embodiment, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8 and the ninth capacitor C9 are simultaneously arranged in parallel on one side of the fifth capacitor C5 to form a protection circuit. One end of the fifth capacitor C5 is connected to the first chip U1, and the other end is grounded. The protection circuit is used to protect the first chip U1 from being affected by large current and filter the large current, thereby improving the overall reliability of signal control by the sub-control circuit S1.
[0040] See also Figure 2As shown in the figure, the first conversion circuit S2 includes: a second chip U2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, an eleventh capacitor C11, a twelfth capacitor C12, and a first transistor QVT1. The S port of the second chip U2 is simultaneously connected to one end of the third resistor R3 and the collector of the first transistor QVT1, the other end of the third resistor R3 is connected to a VBAT port, the base of the first transistor QVT1 is simultaneously connected to one end of the eleventh capacitor C11 and one end of the fourth resistor R4, the other end of the fourth resistor R4 is connected to a GPIO port, the other end of the eleventh capacitor C11 is simultaneously connected to the emitter of the first transistor QVT1 and a ground terminal, and the VCC port of the second chip U2 is simultaneously connected to the one end and the VBAT port, the other end of the twelfth capacitor C12 is grounded, the D+ port of the second chip U2 is connected to one end of the fifth resistor R5, the other end of the fifth resistor R5 is connected to a CPU1DM port, the D- port of the second chip U2 is connected to a CPU1DP port, the HSD2+ port of the second chip U2 is connected to the DM1 port of the first chip U1 set by the control circuit, the HSD2- port of the second chip U2 is connected to the DP1 port of the first chip U1 set by the control circuit, the HSD1+ port of the second chip U2 is connected to the USB-DM port set by the second conversion circuit S3, the HSD1- port of the second chip U2 is connected to the USB-DP port set by the second conversion circuit S3, and the GND port and OE port of the second chip U2 are both grounded.
[0041] Specifically, in the embodiment of the present solution, two VBAT ports are respectively provided on both sides of the second chip U2, and the two VBAT ports are respectively electrically connected to the two VBAT ports provided in the second conversion circuit S3, the first conversion circuit S2 is provided with a first transistor QVT1 and a second chip U2, and the second chip U2 is electrically connected to the first transistor QVT1, wherein the base of the first transistor QVT1 is connected to the S port of the second chip U2, the collector of the first transistor QVT1 is connected to the GPIO port (signal control port), and the HSD2+ port of the second chip U2 is connected to the HSD2+ port of the first chip U1 provided in the control circuit. DM1 port, the HSD2-port of the second chip U2 is connected to the DP1 port of the first chip U1 set in the control circuit, the HSD1+ port of the second chip U2 is connected to the USB-DM port set in the second conversion circuit S3, and the HSD1-port of the second chip U2 is connected to the USB-DP port set in the second conversion circuit S3. In one embodiment, the first transistor cooperates with the third chip U3 to facilitate signal simulation connection of multiple connection ports (USB-DM port and USB-DP port) on both sides of the second chip U2, thereby further improving the reliability of the overall data transmission of the first conversion circuit S2.
[0042] Further, in one embodiment, the model of the second chip U2 is SGM7227, which is a high-speed, low-power analog switch chip, used in conjunction with the first transistor QVT1 to control the on-off of the current, the two resistors (R5 and R6) are series resistors connected to the interface communication, which are convenient for disconnecting the USB path when debugging the four USB connection ports, the twelfth capacitor C12 is a bypass filter capacitor of the power supply, which stabilizes the power supply input of the second chip U2, the fourth resistor R4 is a current limiting resistor set by the second chip U2 (analog switch), which protects the PIN pin from being damaged due to excessive current, and the first transistor QVT1 is used to control the switch logic pin on one side of the second chip U2. When the B ( When the BE voltage of the first transistor QVT1 is less than the turn-on voltage of the transistor, the switch logic pin of the second chip U2 is high, the D+ port on one side of the second chip U2 is connected to the HSD2+ port, and the D- port is connected to the HSD2- port; the eleventh capacitor C11 is connected to one side of the base of the first transistor QVT1, and its function is to filter and improve anti-interference; the fourth resistor R4 is the current limiting resistor of the first transistor QVT1, which prevents excessive current from affecting the reliability of signal control by the second chip U2.
[0043] See also Figure 3As shown in the figure, the second conversion circuit S3 includes: a third chip U3, a seventh resistor R7, an eighth resistor R8, a ninth resistor, a tenth resistor R10, a thirteenth capacitor C13, a fourteenth capacitor C14, and a second transistor QVT2. The S port of the third chip U3 is simultaneously connected to one end of the seventh resistor R7 and the collector of the second transistor QVT2, the other end of the seventh resistor R7 is connected to the VBAT port set in the first conversion circuit S2, the base of the second transistor QVT2 is simultaneously connected to one end of the thirteenth capacitor C13 and one end of the eighth resistor R8, the other end of the eighth resistor R8 is connected to the GPIO port set in the first conversion circuit S2, and the thirteenth capacitor C13 is connected to the collector of the second transistor QVT2. The other end of the transistor QVT2 is connected to the emitter of the second transistor QVT2 and a ground terminal at the same time, the VCC port of the third chip U3 is connected to one end of the fourteenth capacitor C14 and the VBAT port set by the first conversion circuit S2 at the same time, the D+ port of the third chip U3 is connected to one end of the ninth resistor, and the other end of the ninth resistor is connected to the DM3 port of the first chip U1 set by the control circuit, the D- port of the third chip U3 is connected to one end of the tenth resistor R10, and the other end of the tenth resistor R10 is connected to the DP3 port of the first chip U1, the HSD2+ port of the third chip U3 and the HSD2- port of the third chip U3 are respectively connected to the connection socket circuit S5.
[0044] Specifically, in the embodiment of the present solution, two VBAT ports are respectively provided on both sides of the third chip U3, and the two VBAT ports are respectively electrically connected to the two VBAT ports provided in the first conversion circuit S2, and the first conversion circuit S2 is provided with a second transistor QVT2 and a third chip U3, and the third chip U3 is electrically connected to the second transistor QVT2, wherein the base of the first transistor QVT1 is connected to the S port of the second chip U2, the collector of the first transistor QVT1 is connected to the GPIO port (signal control port), and the HSD of the third chip U3 The HSD2+ port is connected to a USB-DM port (also connected to the USB-DM port of the first conversion circuit S2), the HSD2- port of the third chip U3 is connected to a USB-DP port (also connected to the USB-DP port of the first conversion circuit S2), and in one embodiment, the second transistor QVT2 cooperates with the third chip U3 to facilitate signal simulation connection of multiple connection ports (USB-DM port and USB-DP port) on both sides of the second chip U2, thereby further improving the reliability of the overall data transmission of the second conversion circuit S3.
[0045] Furthermore, in one embodiment, the model of the third chip U3 is SGM7227; two resistors (R9 and R10) are series resistors used by the third chip U3 for external communication connection; the fourteenth capacitor C14 is a bypass filter capacitor of the power supply, which is used for power supply input of the third chip U3; the seventh resistor R7 is a current limiting resistor of the third chip U3, which is used to protect the PIN pin from being damaged due to excessive current; the second transistor QVT2 is used to control the logic pin of the third chip U3, and when the voltage between B (base) and E (emitter) of the second transistor QVT2 is greater than the turn-on voltage of the second transistor QVT2, the logic pin of the third chip U3 is at a low level at this time, and the third chip The D+ port of U3 (analog switch chip) is connected to the HSD1+ port, and the D- port is connected to the HSD1- port. When the voltage between B (base) and E (emitter) of the second transistor QVT2 is less than the turn-on voltage of the transistor, the logic pin of the third chip U3 is at a high level, the D+ port of the third chip U3 (analog switch chip) is connected to the HSD2+ port, and the D- port of the third chip U3 is connected to the HSD2- port; the thirteenth capacitor C13 is connected to the base of the transistor, and its function is to filter and improve anti-interference; the eighth resistor R8 is the current limiting resistor of the second transistor QVT2, which prevents excessive current from affecting the reliability of signal control by the second chip U2.
[0046] See also Figure 4 As shown in the figure, the key position control circuit S4 includes: a fourth chip U4, a third power supply V3, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fifteenth capacitor C15, a first MOS tube M1, a first diode D1, and a second diode D2. The voltage output end of the third power supply V3 serves as the starting end of the key position control circuit S4, and the voltage output end of the third power supply V3 is connected to one end of the eleventh resistor R11, and the other end of the eleventh resistor R11 is simultaneously connected to one end of the twelfth resistor R12 and the source of the first MOS tube M1, and the other end of the twelfth resistor R12 is simultaneously connected to the first The gate of the MOS tube M1, one end of the fifteenth capacitor C15 and one end of the thirteenth resistor R13, the drain of the first MOS tube M1 is connected to a BOOT port, the other end of the fifteenth capacitor C15 is grounded, the other end of the thirteenth resistor R13 is connected to the positive electrode of the first diode D1, the negative electrode of the first diode D1 is simultaneously connected to the second connection end of the fourth chip U4 and the negative electrode of the second diode D2, the positive electrode of the second diode D2 is grounded, the first port of the fourth chip U4, the third port of the fourth chip U4, the fourth port of the fourth chip U4, and the fifth port of the fourth chip U4 are all grounded.
[0047] Specifically, in the embodiment of the present scheme, the key position control circuit S4 is provided with a first MOS tube M1, and the first MOS tube M1 is set up on one side of the fourth chip U4. The source of the first MOS tube M1 is connected to one end of the third power supply V3, and the third power supply V3 is used to power the fourth chip U4. The drain of the first MOS tube M1 is connected to a BOOT port, and the BOOT port is used to connect to a network port to perform related operations of network downloading. The gate of the first MOS tube M1 is electrically connected to the fourth chip U4 through the first diode D1, and the current is turned on and off by the first MOS tube M1 to prevent large current from interfering with the electrical signal sending of the BOOT port. In one embodiment, the fourth chip U4 is a circuit protection chip. When the current output by the third power supply V3 is too large to affect the network downloading of the BOOT port, the fourth chip U4 located on the side of the first MOS tube M1 is filtered to prevent interference with the normal downloading at the BOOT port, thereby further improving the reliability of the connection of the circuit as a whole.
[0048] Further, in one embodiment, the fourth chip U4 is a connector button as a whole. When pressed, the second connection end is shorted to the ground, and when not pressed, it is suspended; the second diode D2 is an ESD tube to protect the PMOS tube from being damaged by static electricity; the first diode D1 is used to protect the PMOS tube from being damaged by high pulses; the first MOS tube M1 is a P-MOS tube, the eleventh resistor R11 is a current limiting resistor, and the twelfth resistor R12 plays a role in stabilizing the G pole voltage between the G pole and the S pole of the P-MOS; the fifteenth capacitor C15 plays a role in filtering and improving anti-interference at the G pole of the PMOS; when the button is pressed, the button 2 pin is shorted to the ground, the first diode D1 is turned on, the G pole of the P-MOS is about 0.3V, the D pole and the S pole of the P-MOS are also turned on, and the voltage of the BOOT port (network download port) changes from 0V to 1.8V, and the main control chip P1 (CPU1) enters the download mode.
[0049] See also Figure 5 As shown in the figure, the connection socket circuit S5 includes: a fourth power supply, a fifth chip, a third diode D3, a fourth diode D4, and a fifth diode D5. The VCHG port of the fifth chip is simultaneously connected to one end of the third diode D3 and the voltage output end of the fourth power supply, and the other end of the third diode D3 is grounded. The RX port of the fifth chip is simultaneously connected to the USB-DM port set in the first conversion circuit S2 and one end of the fourth diode D4, and the other end of the fourth diode D4 is grounded. The TX port of the fifth chip is simultaneously connected to the USB-DP port set in the first conversion circuit S2 and one end of the fifth diode D5, and the other end of the fifth diode D5 is grounded. The GND port of the fifth chip is grounded.
[0050] Specifically, in the embodiment of the present scheme, the fifth chip provided in the connection socket circuit S5 is used to connect some external devices, and is bridged with the USB-DM port of the first conversion circuit S2 and the USB-DP port of the second conversion circuit S3 through the ports (RX port, TX port, VCHG port) of the fifth chip, so as to facilitate the electrical connection control of multiple external devices electrically connected on the other side of the fifth chip, so as to improve the reliability of data transmission in the expansion circuit.
[0051] Furthermore, in one embodiment, the connection socket circuit S5 functions to connect the USB signal inside the PCB circuit board to the connection socket, wherein (USB-DM port and USB-DP port) are respectively connected to multiple external devices, and the external devices of the entire machine can be directly inserted into the connection socket for use to facilitate subsequent data transmission, such as USB data cables, USB cameras and other external devices.
[0052] See also Figure 5 As shown in the figure, the third diode D3, the fourth diode D4 and the fifth diode D5 are all bidirectional voltage regulator diodes.
[0053] Specifically, in the embodiment of the present scheme, the third diode D3, the fourth diode D4 and the fifth diode D5 are all bidirectional voltage regulator diodes. In one embodiment, one end of each bidirectional voltage regulator diode (the third diode D3, the fourth diode D4, the fifth diode D5) is respectively connected to each port (RX port, TX port, VCHG port) of the fifth chip, and the other end of each bidirectional voltage regulator diode is grounded to form a current protection circuit to prevent the USB connection ports (USB-DM and USB-DP) provided in the connection socket circuit S5 from generating a large instantaneous voltage during the process of electrical connection with an external device, thereby reducing the probability of damage to each component in the connection socket circuit S5 and greatly improving the stability of data transmission of the external device.
[0054] See also Figure 4 , as shown in the figure, wherein the first MOS tube M1 is a field effect enhancement type P-MOS tube.
[0055] Specifically, in the embodiment of the present scheme, the first MOS tube M1 is a field effect enhanced P-MOS tube. In one embodiment, the first MOS tube M1 is a P-MOS tube, the eleventh resistor R11 is a current limiting resistor, and the twelfth resistor R12 stabilizes the G-pole voltage between the G-pole and the S-pole of the P-MOS; the fifteenth capacitor C15 plays a role in filtering and improving anti-interference at the G-pole of the PMOS; when the key is pressed, the second pin of the fourth chip U4 is short-circuited to the ground, the first diode D1 is turned on, the G-pole of the P-MOS is about 0.3V, the D-pole and the S-pole of the P-MOS are also turned on, and the voltage of the BOOT port (network download port) changes from 0V to 1.8V. At this time, the main control chip P1 (CPU1) enters the download mode, and the fourth chip U4 is used in conjunction with the first MOS tube M1 to improve the reliability of the overall circuit connection, so as to facilitate the subsequent setting of multiple USB ports on one side of the main control chip P1 for data transmission.
[0056] See also Figure 4 As shown in the figure, a diode is connected in series between the drain of the first MOS tube M1 and the source of the first MOS tube M1.
[0057] Specifically, in the embodiment of the present scheme, a diode is arranged in series between the drain of the first MOS tube M1 and the source of the first MOS tube M1. In one embodiment, the diode is used to suppress the current between the drain of the first MOS tube M1 and the source of the first MOS tube M1, so as to prevent the current output by the fourth power supply arranged in the connection socket circuit S5 from interfering with the data downloading of the BOOT port, so as to improve the overall stability of the connection socket circuit S5 during the electrical connection process, greatly improve the speed of data downloading, and ensure the reliability of data transmission of the external device after connecting to multiple USB connection ports (USB-DM and USB-DP).
[0058] See also Figure 4 , as shown in the figure, wherein the second diode D2 is a voltage regulator diode.
[0059] Specifically, in the embodiment of the present scheme, the second diode D2 is a voltage-stabilizing diode. In one embodiment, when the first diode D1 is used in conjunction with the first MOS tube M1 provided in the key position control circuit S4, when the voltage output by the third power supply V3 is greater than 2.5V, one end of the gate of the first MOS tube M1 is connected to the first diode D1, and the high level is stepped down through the second diode D2 and multiple grounding terminals provided on one side of the fourth chip U4, and outputted through the port on the other side of the fourth chip U4. By adding a voltage-stabilizing diode, the probability of failure of the key position control circuit S4 is greatly reduced, and the reliability of data transmission of external devices after connecting to multiple USB connection ports (USB-DM and USB-DP) is improved.
[0060] The utility model discloses an expansion circuit based on a USB topology interface, the circuit is composed of a main control chip, a sub-control circuit, a first conversion circuit and a second conversion circuit, a connection socket circuit and a key position control circuit are further provided on one side of the sub-control circuit, a single-pole double-control switch is arranged between the main control chip and the sub-control circuit, the third end of the single-pole double-control switch is also connected to the connection socket circuit and one end of a single-pole switch at the same time, the other end of the single-pole switch is electrically connected to a first chip provided in the sub-control circuit, the single-pole double-control switch is provided on one side of the main control chip to control the current output of the connection socket circuit and the sub-control circuit, and the data output of two USB connection ports provided in the first conversion circuit and the second conversion circuit are synchronously controlled, and the main control chip and the first chip provided in the sub-control circuit cooperate to improve the data transmission efficiency of the first conversion circuit and the second conversion circuit.
[0061] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. An expansion circuit based on a USB topology interface, characterized in that: The circuit is composed of a main control chip, a sub-control circuit, a first conversion circuit and a second conversion circuit. A connection socket circuit and a key position control circuit are also provided on one side of the sub-control circuit. A single-pole double-control switch is set between the main control chip and the sub-control circuit. The third end of the single-pole double-control switch is also connected to the connection socket circuit and one end of a single-pole switch at the same time. The other end of the single-pole switch is electrically connected to the first chip provided in the sub-control circuit, and the first conversion circuit and the second conversion circuit are each provided with two USB connection ports: The sub-control circuit includes: a first chip, a first inductor, a second inductor, a third inductor, a first connector, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor, a tenth capacitor, a first resistor, a second resistor, a first power supply, and a second power supply. The X1 port of the first chip is connected to one end of the first resistor, and the other end of the first resistor is simultaneously connected to one end of the first capacitor and the first connection end of the first connector, and the other end of the first capacitor is grounded. The X2 port of the first chip is simultaneously connected to the second connection end of the first connector and one end of the second capacitor, and the other end of the second capacitor is grounded. The third connection end and the fourth connection end of the first connector are both grounded. The AVDD end of the first chip The port is simultaneously connected to one end of the fourth capacitor, one end of the fifth capacitor and one end of the first inductor, the other end of the fourth capacitor is simultaneously connected to one end of the third capacitor and a ground terminal, one end of the third capacitor is simultaneously connected to the other end of the first inductor, one end of the second inductor, one end of the tenth capacitor and one end of the third inductor, the other end of the second inductor is connected to the voltage output end of the second power supply, the other end of the tenth capacitor is grounded, the other end of the fifth capacitor is connected to a ground terminal, the V5 port of the first chip is connected to one end of the second resistor, the other end of the second resistor is connected to the voltage output end of the first power supply, the DVDD port of the first chip is connected to the other end of the third inductor, and the GND port of the first chip is grounded.
2. The expansion circuit based on the USB topology interface according to claim 1, characterized in that: The sixth capacitor, the seventh capacitor, the eighth capacitor and the ninth capacitor are respectively arranged in parallel on the same side of the fifth capacitor.
3. The expansion circuit based on the USB topology interface according to claim 1, characterized in that: The first conversion circuit includes: a second chip, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, an eleventh capacitor, a twelfth capacitor, and a first transistor, wherein the S port of the second chip is simultaneously connected to one end of the third resistor and the collector of the first transistor, the other end of the third resistor is connected to a VBAT port, the base of the first transistor is simultaneously connected to one end of the eleventh capacitor and one end of the fourth resistor, the other end of the fourth resistor is connected to a GPIO port, the other end of the eleventh capacitor is simultaneously connected to the emitter of the first transistor and a ground terminal, the VCC port of the second chip is simultaneously connected to one end of the twelfth capacitor and the VBAT port, and the twelfth The other end of the capacitor is grounded, the D+ port of the second chip is connected to one end of the fifth resistor, the other end of the fifth resistor is connected to a CPU1DM port, the D- port of the second chip is connected to a CPU1DP port, the HSD2+ port of the second chip is connected to the DM1 port of the first chip set in the control circuit, the HSD2- port of the second chip is connected to the DP1 port of the first chip set in the control circuit, the HSD1+ port of the second chip is connected to the USB-DM port set in the second conversion circuit, the HSD1- port of the second chip is connected to the USB-DP port set in the second conversion circuit, and the GND port and OE port of the second chip are both grounded.
4. The expansion circuit based on the USB topology interface according to claim 1, characterized in that: The second conversion circuit includes: a third chip, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a thirteenth capacitor, a fourteenth capacitor, and a second transistor. The S port of the third chip is simultaneously connected to one end of the seventh resistor and the collector of the second transistor, the other end of the seventh resistor is connected to the VBAT port set in the first conversion circuit, the base of the second transistor is simultaneously connected to one end of the thirteenth capacitor and one end of the eighth resistor, the other end of the eighth resistor is connected to the GPIO port set in the first conversion circuit, the other end of the thirteenth capacitor is simultaneously connected to the emitter of the second transistor and a ground terminal, the VCC port of the third chip is simultaneously connected to one end of the fourteenth capacitor and the VBAT port set in the first conversion circuit, the D+ port of the third chip is connected to one end of the ninth resistor, the other end of the ninth resistor is connected to the DM3 port of the first chip set in the control circuit, the D- port of the third chip is connected to one end of the tenth resistor, the other end of the tenth resistor is connected to the DP3 port of the first chip, and the HSD2+ port of the third chip and the HSD2- port of the third chip are respectively connected to the connection socket circuit.
5. The expansion circuit based on the USB topology interface according to claim 1, characterized in that: The key position control circuit includes: a fourth chip, a third power supply, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fifteenth capacitor, a first MOS tube, a first diode, and a second diode. The voltage output end of the third power supply serves as the starting end of the key position control circuit. The voltage output end of the third power supply is connected to one end of the eleventh resistor. The other end of the eleventh resistor is simultaneously connected to one end of the twelfth resistor and the source of the first MOS tube. The other end of the twelfth resistor is simultaneously connected to the gate of the first MOS tube, one end of the fifteenth capacitor, and one end of the thirteenth resistor. The drain of the first MOS tube is connected to a BOOT port. The other end of the fifteenth capacitor is grounded. The other end of the thirteenth resistor is connected to the positive electrode of the first diode. The negative electrode of the first diode is simultaneously connected to the second connection end of the fourth chip and the negative electrode of the second diode. The positive electrode of the second diode is grounded. The first port of the fourth chip, the third port of the fourth chip, the fourth port of the fourth chip, and the fifth port of the fourth chip are all grounded.
6. The expansion circuit based on the USB topology interface according to claim 1, characterized in that: The connection socket circuit includes: a fourth power supply, a fifth chip, a third diode, a fourth diode, and a fifth diode. The VCHG port of the fifth chip is simultaneously connected to one end of the third diode and the voltage output end of the fourth power supply, and the other end of the third diode is grounded. The RX port of the fifth chip is simultaneously connected to the USB-DM port set in the first conversion circuit and one end of the fourth diode, and the other end of the fourth diode is grounded. The TX port of the fifth chip is simultaneously connected to the USB-DP port set in the first conversion circuit and one end of the fifth diode, and the other end of the fifth diode is grounded. The GND port of the fifth chip is grounded.
7. The expansion circuit based on the USB topology interface according to claim 6, characterized in that: The third diode, the fourth diode and the fifth diode are all bidirectional voltage regulator diodes.
8. The expansion circuit based on the USB topology interface according to claim 5, characterized in that: The first MOS tube is a field effect enhanced P-MOS tube.
9. The expansion circuit based on the USB topology interface according to claim 8, characterized in that: A diode is arranged in series between the drain of the first MOS tube and the source of the first MOS tube.
10. The expansion circuit based on the USB topology interface according to claim 5, characterized in that: The second diode is a voltage regulator diode.
