Interface multiplexing circuit
By designing interface multiplexing circuits, including interface units, working mode switching units and reset signal generation units, the limitations of small-volume product function expansion are solved, the multifunctional use of the interface is realized, and the functionality of the product is expanded.
Patent Information
- Application Number
- CN202420317951.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2034-02-21
AI Technical Summary
Small-sized products or products with only one interface cannot achieve functional expansion. The existing interface can only provide power input and data transmission functions, and lack other functions.
An interface multiplexing circuit is designed, including an interface unit, a working mode switching unit and a reset signal generation unit. By identifying the potential switching of external devices, and realizing the generation of reset signals, the interface unit allows the interface unit to access different devices and expand Product features.
The multifunctional use of the interface is realized, and users can select external devices as needed to add new functions to the product, solving the limitations of the expansion of small-volume product functions.
Smart Images

Figure CN222073142U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to an interface multiplexing circuit. Background Art
[0002] At present, for small-sized products or products with only one interface, the interface of general products can only provide functions such as power input and data transmission, and cannot realize other functions. Utility Model Content
[0003] The utility model provides an interface multiplexing circuit to solve the limitation of small-volume products or products with only one interface in function expansion.
[0004] According to one aspect of the utility model, an interface multiplexing circuit is provided, the circuit comprising: an interface unit, a working mode switching unit and a reset signal generating unit;
[0005] The interface unit is used to connect an external device, and the interface unit includes a first pin, a second pin, a third pin and a fourth pin; the first pin and the second pin are communication pins, and the first pin is multiplexed as a power pin;
[0006] The working mode switching unit is connected to the first pin, the second pin and the third pin, and is used to identify the external device according to the potential of the third pin and switch to the corresponding working mode; the working mode switching unit includes an output power supply terminal, an input power supply terminal, a first signal terminal, a second signal terminal and a third signal terminal;
[0007] The reset signal generating unit is connected to the third pin and is used to generate a reset signal according to the potential of the third pin, and the reset signal is used to reset the controller.
[0008] The technical solution of the utility model provides an interface multiplexing circuit, the interface unit can be connected to different devices, and the working mode switching unit can realize the switching of different working modes by identifying the external device. The function of one port for multiple uses is realized, and the user can select the appropriate external device according to the needs to add new functions to the product. The limitation of small-volume products or products with only one interface in function expansion is solved.
[0009] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present utility model, nor are they intended to limit the scope of the present utility model. Other features of the present utility model will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 It is a structural schematic diagram of an interface multiplexing circuit provided by an embodiment of the utility model;
[0012] Figure 2 It is a structural schematic diagram of another interface multiplexing circuit provided by an embodiment of the utility model;
[0013] Figure 3 It is a structural schematic diagram of another interface multiplexing circuit provided by an embodiment of the utility model;
[0014] Figure 4 It is a structural schematic diagram of a working mode switching unit provided by an embodiment of the utility model;
[0015] Figure 5 It is a structural schematic diagram of another working mode switching unit provided by an embodiment of the utility model;
[0016] Figure 6 It is a structural schematic diagram of another working mode switching unit provided by an embodiment of the utility model;
[0017] Figure 7 It is a structural schematic diagram of another working mode switching unit provided by an embodiment of the utility model;
[0018] Figure 8 It is a structural schematic diagram of another working mode switching unit provided by an embodiment of the utility model;
[0019] Fig. 9 It is a structural schematic diagram of a reset signal generating unit provided by an embodiment of the utility model;
[0020] Fig.10 It is a structural schematic diagram of another reset signal generating unit provided by an embodiment of the utility model. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the utility model, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is only a part of the embodiment of the utility model, not all of the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the utility model.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the utility model and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the utility model described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] Figure 1 Schematic diagram of the structure of an interface multiplexing circuit provided by an embodiment of the utility model. Figure 1 As shown, the circuit includes: an interface unit 1, a working mode switching unit 2 and a reset signal generating unit 3.
[0024] The interface unit 1 is used to connect to an external device, and includes a first pin A1, a second pin A2, a third pin TM and a fourth pin A4; the first pin A1 and the second pin A2 are communication pins, and the first pin A1 is multiplexed as a power pin.
[0025] The working mode switching unit 2 is connected to the first pin A1, the second pin A2 and the third pin TM, and is used to identify the external device according to the potential of the third pin TM and switch to the corresponding working mode; the working mode switching unit 2 includes an output power terminal V1, an input power terminal P01, a first signal terminal TX, a second signal terminal RX and a third signal terminal DATA.
[0026] The reset signal generating unit 3 is connected to the third pin TM, and is used to generate a reset signal RST according to the potential of the third pin TM. The reset signal RST is used to reset the controller.
[0027] In this embodiment, the interface unit 1 is an interface with four pins. Exemplarily, the interface unit 1 may be a Micro USB interface or a headphone interface, etc.
[0028] Specifically, the interface unit 1 can be connected to an external device. For example, the external device can be a charging device, a serial communication module, a program download module or a single bus sensor module. The interface unit 1 may include four pins. The first pin A1 and the second pin A2 can be used as communication pins, and the first pin A1 can also be used as a power pin. The potential of the third pin can be a first level signal or a second level signal. For example, the first level signal can be a high level and the second level signal can be a low level. The fourth pin A4 is connected to the ground GND.
[0029] The working mode switching unit 2 is connected to the first pin A1, the second pin A2 and the third pin TM, and the working mode switching unit 2 may include an output power terminal V1, an input power terminal P01, a first signal terminal TX, a second signal terminal RX and a third signal terminal DATA. The working mode switching unit 2 may switch to a corresponding working mode according to the potential of TM.
[0030] Exemplarily, when the external device connected to the interface unit 1 is a charging device, the third pin TM can be a first level signal, and the working mode switching unit 2 can be switched to the charging mode. The first pin A1 is a power pin. The charging device inputs a certain voltage value through the first pin A1, and the output power terminal V1 outputs a voltage to charge the battery or other devices according to the voltage value input by the first pin A1. When the external device connected to the interface unit 1 is a serial communication module, the third pin TM can also be a first level signal. At this time, the working mode switching unit 2 can be switched to the communication mode, and the serial communication module communicates with the controller. Exemplarily, the controller can be a single-chip microcomputer. The first pin A1 is a communication pin. The controller sends data to the first pin A1 through the first signal terminal TX, so that the serial communication module obtains the data sent by the controller. The second pin A2 is also a communication pin. The serial communication module uses the second pin A2 and sends data to the controller through the second signal terminal RX. When the external device connected to the interface unit 1 is a program download module, the third pin TM can also be a first level signal, and the working mode switching unit 2 can switch to the program download mode, and the program download module can also use the second pin A2 and download the program to the controller through the second signal terminal RX. When the external device connected to the interface unit 1 is a single-bus sensor module, exemplarily, the single-bus sensor module can be a temperature sensor detection module, a humidity sensor detection module, or a pressure sensor detection module, etc., the third pin TM can also be a second level signal, and the working mode switching unit 2 can switch to a mode of reading sensor detection module data, and the controller outputs a high level, and supplies power to the single-bus sensor module through the input power supply terminal P01 and the first pin A1. The single-bus sensor module can also use the second pin A2 and send data to the controller through the third signal terminal DATA, so that the controller can read the detection result of the single-bus sensor module.
[0031] The reset signal generating unit 3 is used to generate a reset signal RST according to the potential of the third pin TM, so as to reset the controller. When the potential of the third pin TM is a first potential signal, the reset signal generating unit 3 outputs the reset signal RST to reset the controller; when the potential of the third pin TM is a second potential signal, the reset signal generating unit 3 outputs a signal with a level opposite to that of the reset signal RST, and the controller will not generate a reset operation at this time.
[0032] The technical solution of this embodiment provides an interface multiplexing circuit, the interface unit can be connected to different devices, and the working mode switching unit can realize the switching of different working modes by identifying the external device. The function of one port for multiple uses is realized, and the user can select the appropriate external device according to the needs to add new functions to the product. The limitation of small-volume products or products with only one interface in terms of function expansion is solved.
[0033] Figure 2 FIG. 1 is a schematic diagram of another interface multiplexing circuit provided by an embodiment of the present utility model. Figure 2 As shown, the interface multiplexing circuit further includes: a charging unit 4.
[0034] The charging unit 4 is connected to the output power supply terminal V1 of the working mode switching unit 3, and is used for charging the battery when the external device is a charging device.
[0035] In this embodiment, the charging unit 4 is a circuit structure that converts the output voltage of the output power supply terminal V1 into the required charging voltage Vbat. The charging unit 4 may include circuit elements such as a charging management chip, a capacitor, and a resistor.
[0036] Specifically, the charging unit 4 is connected to the output power supply terminal V1 of the working mode switching unit 3. When the external device connected to the interface unit 1 is a charging device, the first pin A1 is a power pin. The working mode switching unit 2 can switch the working mode to the charging mode. The charging device inputs a certain voltage value through the first pin A1, and the output power supply terminal V1 outputs a voltage to the charging unit 4 according to the voltage value input by the first pin A1. The charging unit 4 can also be connected to a battery or other device that needs to be charged. The charging unit 4 converts the output voltage of the output power supply terminal V1 into the required charging voltage Vbat to charge the battery or other device.
[0037] Figure 3 FIG. 1 is a schematic diagram of another interface multiplexing circuit provided by an embodiment of the present utility model. Figure 3 As shown, the interface multiplexing circuit further includes: an LDO unit 5 and a controller U1.
[0038] The LDO unit 5 is connected to the charging unit 4 and the controller U1 , and is used to obtain the output voltage of the charging unit 4 and provide the operating voltage VCC for the controller U1 .
[0039] The controller U1 is connected to the working mode switching unit 2 and is used to perform corresponding actions according to the working mode switched by the working mode switching unit 2 .
[0040] In this embodiment, the LDO unit is a unit that converts the output voltage of the charging unit 4 into the working voltage VCC required by the controller U1. The controller U1 may be a single chip microcomputer.
[0041] Specifically, the LDO unit 5 is connected to the charging unit 4, and the charging unit 4 may include a charging management chip. The first pin of the charging management chip can output a charging voltage Vbat to charge a battery or other device. The second pin of the charging management chip can be connected to the LDO unit 5. The output voltage of the second pin of the charging management chip is the same as the voltage across the rechargeable battery. The LDO unit 5 obtains the output voltage of the second pin of the charging management chip and converts it into the operating voltage VCC required by the controller U1. The LDO unit 5 can continuously provide the operating voltage VCC for the controller U1.
[0042] Pin 1 of the controller U1 is connected to the LDO unit 5, and the LDO unit 5 outputs the operating voltage VCC required by the controller U1 and transmits it to pin 1 of the controller U1. Pin 2 of the controller U1 is connected to the first signal terminal TX, pin 3 of the controller U1 is connected to the second signal terminal RX, pin 4 of the controller U1 is connected to the third signal terminal DATA, pin 5 of the controller U1 is connected to the third pin TM, pin 6 of the controller U1 is connected to the reset signal generating unit 3, and the reset signal generating unit 3 outputs the reset signal RST to pin 6 of the controller U1, pin 7 of the controller U1 is connected to the input power supply terminal P01, and pin 9 of the controller U1 is connected to the ground GND.
[0043] The controller U1 performs corresponding actions according to the working mode switched by the working mode switching unit 2. Exemplarily, when the external device connected to the interface unit 1 is a charging device, the 5th pin of the controller U1 outputs a first level signal, so that the third pin TM is a first level signal, and the working mode switching unit 2 can switch to the charging mode at this time, the first pin A1 is a power pin, the charging device inputs a certain voltage value through the first pin A1, and the output power terminal V1 outputs a voltage to the charging unit 4 according to the voltage value input by the first pin A1, and the charging unit 4 converts the output voltage of the output power terminal V1 into the required charging voltage Vbat to charge the battery or other devices. When the external device connected to the interface unit 1 is a serial communication module, the external device can control the third pin TM to be a first level signal, and the working mode switching unit 2 can switch to the communication mode, the serial communication module communicates with the controller U1, the first pin A1 is a communication pin, and the 2nd pin of the controller U1 sends data to the first pin A1 through the first signal terminal TX, so that the serial communication module obtains the data sent by the 2nd pin of the controller U1, and the second pin A2 is also a communication pin. The serial communication module uses the second pin A2 and sends data to the 3rd pin of the controller U1 through the second signal terminal RX. When the external device connected to the interface unit 1 is a program download module, the external device can control the third pin TM to be a first level signal, and the working mode switching unit 2 can switch to the download program mode, and the program download module can also use the second pin A2 and connect to the 3rd pin of the controller U1 through the second signal terminal RX to download the program to the controller U1. When the external device connected to the interface unit 1 is a single-bus sensor module, exemplarily, the single-bus sensor module can be a temperature sensor detection module, a humidity sensor detection module or a pressure sensor detection module, etc., and the third pin TM can also be a second level signal. At this time, the working mode switching unit 2 can switch to the mode of reading the sensor detection module data, and the pin 7 of the controller U1 outputs a high level, and the single-bus sensor module is powered through the input power supply terminal P01 and the first pin A1. The single-bus sensor module can also use the second pin A2 and send data to the pin 4 of the controller U1 through the third signal terminal DATA, so that the controller U1 can read the detection result of the single-bus sensor module.
[0044] When the potential of the third pin TM is a first potential signal, the reset signal generating unit 3 outputs a reset signal RST to pin 6 of the controller U1 to reset the controller U1; when the potential of the third pin TM is a second potential signal, the reset signal generating unit 3 outputs a signal with a level opposite to that of the reset signal RST to pin 6 of the controller U1, and at this time the controller U1 will not generate a reset operation.
[0045] Figure 4 Schematic diagram of a working mode switching unit provided by an embodiment of the utility model. Figure 3 and Figure 4 As shown, the working mode switching unit 2 includes: a switch control unit 21 and a first switch unit 22 .
[0046] The control end of the switch control unit 21 is connected to the third pin TM, the first end of the switch control unit 21 is connected to the control end of the first switch unit 22, and the second end of the switch control unit 21 is connected to the ground GND; the switch control unit 21 is used to output a conduction signal when the third pin TM is a first level signal.
[0047] The first end of the first switch unit 22 is connected to the first pin A1, and the second end of the first switch unit 22 serves as the output power terminal V1; the first switch unit 22 is used to control the connection between the first pin A1 and the output power terminal V1 according to the conduction signal.
[0048] In this embodiment, the switch control unit 21 is a unit that controls the first switch unit 22 to be turned on or off, and the switch control unit 21 includes but is not limited to a field effect transistor or a bipolar transistor. The first switch unit 22 is a unit that controls the first pin A1 to be connected or disconnected with the output power supply terminal V1, and the first switch unit 22 includes but is not limited to a field effect transistor or a bipolar transistor.
[0049] Specifically, the control end of the switch control unit 21 is connected to the third pin TM, the first end of the switch control unit 21 is connected to the control end of the first switch unit 22, and the second end of the switch control unit 21 is connected to the ground GND. The first end of the first switch unit 22 is connected to the first pin A1, and the second end of the first switch unit 22 serves as the output power supply end V1. When the third pin TM is a first level signal, the first end of the switch control unit 21 outputs a conduction signal to the control end of the first switch unit 22, the first switch unit 22 is turned on, and the first pin A1 is connected to the output power supply end V1. When the third pin TM is a second level signal, the first end of the switch control unit 21 outputs a cutoff signal to the control end of the first switch unit 22, the first switch unit 22 is turned off, and the first pin A1 is disconnected from the output power supply end V1.
[0050] Exemplarily, when the external device connected to the interface unit 1 is a charging device, the 5th pin of the controller U1 outputs a first level signal, so that the third pin TM is a first level signal. At this time, the first end of the switch control unit 21 outputs a conduction signal to the control end of the first switch unit 22, the first switch unit 22 is turned on, and the first pin A1 is connected to the output power supply terminal V1. The first pin A1 is a power pin, and the charging device inputs a certain voltage value through the first pin A1. The output power supply terminal V1 outputs a voltage to the charging unit 4 according to the voltage value input by the first pin A1. The charging unit 4 converts the output voltage of the output power supply terminal V1 into the required charging voltage Vbat to charge the battery or other devices.
[0051] Exemplarily, the switch control unit 21 may be an N-type metal oxide semiconductor (N Metal Oxide Semiconductor, NMOS) transistor, and the first switch unit 22 may be a P-type metal oxide semiconductor (P Metal Oxide Semiconductor, PMOS) transistor. The first level signal is a high level, and the second level signal is a low level. When the external device connected to the interface unit 1 is a charging device, the 5th pin of the controller U1 outputs a high level, so that the third pin TM is a high level. At this time, the first end of the switch control unit 21 outputs a low level to the control end of the first switch unit 22, the first switch unit 22 is turned on, and the first pin A1 is connected to the output power supply terminal V1. The first pin A1 is a power pin. The charging device inputs a certain voltage value through the first pin A1. The output power supply terminal V1 outputs a voltage to the charging unit 4 according to the voltage value input by the first pin A1. The charging unit 4 converts the output voltage of the output power supply terminal V1 into the required charging voltage Vbat to charge the battery or other devices.
[0052] Continue to refer Figure 3 and Figure 4 Optionally, the working mode switching unit 2 may further include: a resistor R1, a resistor R4, a resistor R5 and a resistor R6. The resistor R1 is connected between the first pin A1 and the first end of the first switch unit 22, and mainly plays a current limiting role. The resistor R6 is connected between the third pin TM and the control end of the switch control unit 21, and mainly plays a current limiting role. The resistor R5 is connected between the first end of the switch control unit 21 and the control end of the first switch unit 22, and mainly plays a current limiting role. The resistor R4 is connected between the first end and the control end of the first switch unit 22. The resistor R4 can provide a conduction bias voltage for the first switch unit 22, and can also be used as a discharge resistor to prevent the first switch unit 22 from malfunctioning, thereby damaging the first switch unit 22.
[0053] Figure 5 Schematic diagram of another working mode switching unit provided by the embodiment of the utility model. Figure 5 As shown, the working mode switching unit 2 further includes: a first diode D5.
[0054] The anode of the first diode D5 is connected to the second end of the first switch unit 22 , and the cathode of the first diode D5 serves as the output power supply end V1 .
[0055] Specifically, the first diode D5 is connected between the second end of the first switch unit 22 and the output power supply terminal V1, and the cathode of the first diode D5 serves as the output power supply terminal V1. This arrangement can avoid the rechargeable battery from generating a backflow phenomenon, that is, prevent current backflow.
[0056] Figure 6 Schematic diagram of another working mode switching unit provided by the embodiment of the utility model. Figure 3 and Figure 6 As shown, the working mode switching unit 2 further includes: a second diode D1 and a third diode D4.
[0057] The anode of the second diode D1 serves as the first signal terminal TX, and the cathode of the second diode D1 is connected to the second terminal of the first switch unit 22 .
[0058] The anode of the third diode D4 serves as the input power supply terminal P01 , and the cathode of the third diode D4 is connected to the second end of the first switch unit 22 .
[0059] Specifically, the anode of the second diode D1 serves as the first signal terminal TX, and the cathode is connected to the second end of the first switch unit 22. When the external device connected to the interface unit 1 is a serial communication module, the external device can control the third pin TM to be a first level signal. At this time, the first end of the switch control unit 21 outputs a conduction signal to the control end of the first switch unit 22, the first switch unit 22 is turned on, and the first signal terminal TX is connected to the first pin A1. The serial communication module communicates with the controller U1, the first pin A1 is a communication pin, and the 2nd pin of the controller U1 sends data to the first pin A1 through the first signal terminal TX and the second diode D1, so that the serial communication module obtains the data sent by the 2nd pin of the controller U1.
[0060] The anode of the third diode D4 serves as the input power supply terminal P01, and the cathode is connected to the second end of the first switch unit 22. When the external device connected to the interface unit 1 is a single-bus sensor module, illustratively, the single-bus sensor module can be a temperature sensor detection module, a humidity sensor detection module, or a pressure sensor detection module, etc., the third pin TM can also be a second level signal, at which time the first end of the switch control unit 21 outputs a cutoff signal to the control end of the first switch unit 22, and the first switch unit 22 is turned off. Pin 7 of the controller U1 outputs a high level, that is, the input power supply terminal P01 is a high level, and the high level is input to the first pin A1 through the third diode D4 and the body diode of the first switch unit 22 to power the single-bus sensor module.
[0061] The second diode D1 and the third diode D4 are arranged in such a way that when the interface unit 1 is connected to a charging device, the pins 2 and 7 of the controller U1 will not be damaged by the input voltage.
[0062] Figure 7 Schematic diagram of another working mode switching unit provided by the embodiment of the utility model. Figure 3 and Figure 7As shown, the working mode switching unit 2 further includes: a first resistor R14 and a second resistor R15.
[0063] The first end of the first resistor R14 is connected to the first pin A1, the second end of the first resistor R14 is connected to the first end of the second resistor R15, and the second end of the second resistor R15 is connected to the ground GND; the common connection terminal ADC of the first resistor R14 and the second resistor R15 is connected to the controller U1.
[0064] Specifically, the first resistor R14 and the second resistor R15 are connected in series between the first pin A1 and the ground GND, and the common connection terminal ADC of the first resistor R14 and the second resistor R15 is connected to the 8th pin of the controller U1. When the external device connected to the interface unit 1 is a charging device, the controller U1 controls the 5th pin to output the first level signal or the second level signal by detecting the voltage value of the common connection terminal ADC. When the voltage of the common connection terminal ADC is less than the first voltage, the first voltage is pre-set according to actual needs, the 5th pin of the controller U1 outputs the first level signal, the first end of the switch control unit 21 outputs a conduction signal to the control end of the first switch unit 22, the first switch unit 22 is turned on, the first pin A1 is connected to the output power supply terminal V1 through the first diode D5, and the battery or other devices are charged through the charging unit 4. When the voltage of the common connection terminal ADC is greater than or equal to the first voltage, pin 5 of the controller U1 outputs a second level signal, the first end of the switch control unit 21 outputs a cutoff signal to the control end of the first switch unit 22, the first switch unit 22 is turned off, and the first pin A1 is disconnected from the output power supply terminal V1 to prevent large voltage input from damaging the battery or other charging devices.
[0065] Figure 8 Schematic diagram of another working mode switching unit provided by the embodiment of the utility model. Figure 3 and Figure 8 As shown, the working mode switching unit 2 further includes: a second switch unit 23, a third resistor R7 and a fourth diode D3.
[0066] The control end of the second switch unit 23 is connected to the third pin TM, the first end of the second switch unit 23 is connected to the first end of the third resistor R7, and the second end of the second switch unit 23 is connected to the ground GND; the second end of the third resistor R7 serves as the second signal end RX; the second switch unit 23 is used to realize correct communication between the controller U1 and the external device when the third pin TM is a first level signal.
[0067] An anode of the fourth diode D3 is connected to the second pin A2 , and a cathode of the fourth diode D3 is connected to the second end of the third resistor R7 .
[0068] In this embodiment, the second switch unit 23 includes but is not limited to a field effect transistor or a bipolar transistor. Exemplarily, the second switch unit 23 may be an NPN transistor.
[0069] Specifically, the control end of the second switch unit 23 is connected to the third pin TM, the second end of the second switch unit 23 is connected to the ground GND, the first end of the second switch unit 23 is connected to the first end of the third resistor R7, and the second end of the third resistor R7 serves as the second signal end RX. The fourth diode D3 is connected between the second pin A2 and the second signal end RX. Pin 3 of the controller U1 is connected to the second signal end RX, the second pin A2 can also be directly used as the third signal end DATA, and pin 4 of the controller U1 is connected to the third signal end DATA.
[0070] When the external device connected to the interface unit 1 is a serial communication module, the external device can control the third pin TM to be a first level signal, at which time the second switch unit 23 is turned on, the serial communication module communicates with the controller U1, the second pin A2 is a communication pin, and the serial communication module uses the second pin A2 and sends data to the 3rd pin of the controller U1 through the fourth diode D3 and the second signal terminal RX. When the external device connected to the interface unit 1 is a program download module, the external device can control the third pin TM to be a first level signal, at which time the second switch unit 23 is turned on, and the program download module can also use the second pin A2 and connect to the 3rd pin of the controller U1 through the fourth diode D3 and the second signal terminal RX to download the program to the controller U1. The third resistor R7 is to ensure that when the second switch unit 23 is turned on, the potential of the second signal terminal RX is at a low level. When the external device connected to the interface unit 1 is a single bus sensor module, the third pin TM can be a second level signal. At this time, the second switch unit 23 is turned off, and the single bus sensor module can also use the second pin A2 and send data to the 4th pin of the controller U1 through the third signal terminal DATA, so that the controller U1 can read the detection result of the single bus sensor module. When the second switch unit 23 is turned off, the potential of the second signal terminal RX is a high level, and the setting of the fourth diode D3 prevents the third signal terminal DATA from affecting the second signal terminal RX when transmitting data between the controller U1.
[0071] Continue to refer Figure 8 Optionally, the working mode switching unit 2 further includes a resistor R9, which is connected between the third pin TM and the control end of the second switch unit 23 and can play a current limiting role.
[0072] Fig. 9 Schematic diagram of a reset signal generating unit provided by an embodiment of the utility model. Figure 3 and Fig. 9As shown, the reset signal generating unit 3 includes: a first capacitor C2 , a fourth resistor R8 and a third switch unit 31 .
[0073] A first end of the first capacitor C2 is connected to the third pin TM, and a second end of the first capacitor C2 is connected to a first end of the fourth resistor R8.
[0074] The control end of the third switch unit 31 is connected to the second end of the fourth resistor R8, the first end of the third switch unit 31 is connected to the controller U1, and the second end of the third switch unit 31 is connected to the ground GND; the third switch unit 31 is used to generate a reset signal RST to reset the controller U1 when the third pin TM is a first level signal.
[0075] In this embodiment, the third switch unit 31 includes but is not limited to a field effect transistor or a bipolar transistor. Exemplarily, the third switch unit 31 may be an NPN transistor.
[0076] Specifically, the first end of the first capacitor C2 is connected to the third pin TM, the fourth resistor R8 is connected between the second end of the first capacitor C2 and the control end of the third switch unit 31, the first end of the third switch unit 31 is connected to the 6th pin of the controller U1, and the second end of the third switch unit 31 is connected to the ground GND. When the potential of the third pin TM is a first level signal, the first capacitor C2 will be charged instantly, generating a high level pulse, and at the moment when the first capacitor C2 starts to charge to full, the third switch unit 31 is turned on, and the first end of the third switch unit 31 outputs a reset signal RST to the 6th pin of the controller U1 to reset the controller U1. When the potential of the third pin TM is a second level signal, the third switch unit 31 is turned off, and the first end of the third switch unit 31 outputs a signal with a level opposite to the reset signal RST to the 6th pin of the controller U1, and the controller U1 does not perform a reset operation.
[0077] When the external device connected to the interface unit 1 is a program download module, the external device can control the third pin TM to be a first level signal, at which time the first capacitor C2 will be charged instantly, generating a high level pulse, and at the moment when the first capacitor C2 starts to be fully charged, the third switch unit 31 is turned on, and the first end of the third switch unit 31 outputs a reset signal RST to the 6th pin of the controller U1 to reset the controller U1. The fourth resistor R8 can play a role in current limiting protection.
[0078] Continue to refer Fig. 9 Optionally, the reset signal generating unit 3 may further include a resistor R11, which is connected between the control end and the second end of the third switch unit 31. The resistor R11 can provide a conduction bias voltage for the third switch unit 31, and can also serve as a discharge resistor to prevent the third switch unit 31 from malfunctioning and thereby damaging the third switch unit 31.
[0079] Fig.10 Schematic diagram of another reset signal generating unit provided by an embodiment of the utility model. Figure 3 and Fig.10 As shown, the reset signal generating unit 3 further includes: a fifth resistor R11.
[0080] A first end of the fifth resistor R11 is connected to the third pin TM, and a second end of the fifth resistor R11 is connected to the ground GND.
[0081] Specifically, the fifth resistor R11 is connected between the third pin TM and the ground GND. The potential of the third pin TM can be a first level signal or a second level signal, the first level signal can be a high level, and the second level signal can be a low level. Due to the presence of the fifth resistor R11, the potential of the third pin TM is a second level signal. When the external device connected to the interface unit 1 is a charging device, the controller U1 controls the potential of the third pin TM through the 5th pin according to the voltage detected by the 8th pin. When the external device connected to the interface unit 1 is a serial communication module or a program download module, the external device controls the potential of the third pin TM to be a first level signal. When the external device connected to the interface unit 1 is a single bus sensor module, the third pin TM is set to a second level signal through the fifth resistor R11.
[0082] In any of the drawings provided in any of the above embodiments, the marks with the same name represent a connection relationship.
[0083] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0084] The above specific implementations do not constitute a limitation on the protection scope of the present utility model. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present utility model shall be included in the protection scope of the present utility model.
Claims
1. An interface multiplexing circuit, characterized in that: include: An interface unit, a working mode switching unit and a reset signal generating unit; The interface unit is used to connect an external device, and the interface unit includes a first pin, a second pin, a third pin and a fourth pin; the first pin and the second pin are communication pins, and the first pin is multiplexed as a power pin; The working mode switching unit is connected to the first pin, the second pin and the third pin, and is used to identify the external device according to the potential of the third pin and switch to the corresponding working mode; The working mode switching unit includes an output power terminal, an input power terminal, a first signal terminal, a second signal terminal and a third signal terminal; The reset signal generating unit is connected to the third pin and is used to generate a reset signal according to the potential of the third pin, and the reset signal is used to reset the controller.
2. The interface multiplexing circuit according to claim 1, characterized in that: Also includes: Charging unit; The charging unit is connected to the output power supply terminal of the working mode switching unit, and is used for charging the battery when the external device is a charging device.
3. The interface multiplexing circuit according to claim 2, characterized in that: Also includes: LDO units and controllers; The LDO unit is connected to the charging unit and the controller, and is used to obtain the output voltage of the charging unit and provide a working voltage for the controller; The controller is connected to the working mode switching unit and is used to perform corresponding actions according to the working mode switched by the working mode switching unit.
4. The interface multiplexing circuit according to claim 1, characterized in that: The working mode switching unit comprises: a switch control unit and a first switch unit; The control end of the switch control unit is connected to the third pin, the first end of the switch control unit is connected to the control end of the first switch unit, and the second end of the switch control unit is connected to the ground; the switch control unit is used to output a conduction signal when the third pin is a first level signal; The first end of the first switch unit is connected to the first pin, and the second end of the first switch unit serves as the output power end; the first switch unit is used to control the connection between the first pin and the output power end according to the conduction signal.
5. The interface multiplexing circuit according to claim 4, characterized in that: The working mode switching unit further includes: a first diode; The anode of the first diode is connected to the second end of the first switch unit, and the cathode of the first diode serves as the output power supply end.
6. The interface multiplexing circuit according to claim 4, characterized in that: The working mode switching unit further includes: a second diode and a third diode; The anode of the second diode serves as the first signal terminal, and the cathode of the second diode is connected to the second terminal of the first switch unit; The anode of the third diode serves as the input power supply terminal, and the cathode of the third diode is connected to the second end of the first switch unit.
7. The interface multiplexing circuit according to claim 4, characterized in that: The working mode switching unit further includes: a first resistor and a second resistor; The first end of the first resistor is connected to the first pin, the second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is connected to the ground; the common connection end of the first resistor and the second resistor is connected to the controller.
8. The interface multiplexing circuit according to claim 1, characterized in that: The working mode switching unit further includes: a second switch unit, a third resistor and a fourth diode; The control end of the second switch unit is connected to the third pin, the first end of the second switch unit is connected to the first end of the third resistor, and the second end of the second switch unit is connected to the ground; the second end of the third resistor serves as the second signal end; the second switch unit is used to realize correct communication between the controller and the external device when the third pin is a first level signal; An anode of the fourth diode is connected to the second pin, and a cathode of the fourth diode is connected to the second end of the third resistor.
9. The interface multiplexing circuit according to claim 1, characterized in that: The reset signal generating unit comprises: a first capacitor, a fourth resistor and a third switch unit; The first end of the first capacitor is connected to the third pin, and the second end of the first capacitor is connected to the first end of the fourth resistor; The control end of the third switch unit is connected to the second end of the fourth resistor, the first end of the third switch unit is connected to the controller, and the second end of the third switch unit is connected to the ground; the third switch unit is used to generate a reset signal to reset the controller when the third pin is a first level signal.
10. The interface multiplexing circuit according to claim 9, characterized in that: The reset signal generating unit further includes: a fifth resistor; A first end of the fifth resistor is connected to the third pin, and a second end of the fifth resistor is connected to the ground.
Citation Information
Cited By
Intelligent docking station control method and system for tablet personal computer and storage medium
CN119201789A
A tablet computer expansion dock intelligent control method, system and storage medium
CN119201789B
