CN219497051U - Master-slave device detection circuit and electronic device - Google Patents

Master-slave device detection circuit and electronic device Download PDF

Info

Publication number
CN219497051U
CN219497051U CN202320448362.1U CN202320448362U CN219497051U CN 219497051 U CN219497051 U CN 219497051U CN 202320448362 U CN202320448362 U CN 202320448362U CN 219497051 U CN219497051 U CN 219497051U
Authority
CN
China
Prior art keywords
identification
circuit
controller
level
usb interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202320448362.1U
Other languages
Chinese (zh)
Inventor
陈少彬
郝兴峰
闫东京
余发亮
黄鸿伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN202320448362.1U priority Critical patent/CN219497051U/en
Application granted granted Critical
Publication of CN219497051U publication Critical patent/CN219497051U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The utility model provides a master-slave device detection circuit and an electronic device. The master-slave device detection circuit comprises a USB interface, a device type identification circuit and a controller. The USB interface is used for accessing external equipment. The USB interface includes a power pin electrically connected to the device type identification circuit. When the main device is connected to the USB interface, the main device provides input voltage to the power supply pin. When the slave device accesses the USB interface, the slave device does not provide an input voltage to the power pin. The power pins are at corresponding levels based on the condition of the received voltage. The device type identification circuit is electrically connected with the controller and the USB interface respectively, and is used for outputting corresponding identification signals to the controller according to the level of the power supply pin. The controller is used for determining the type of the external device according to the identification signal. The master-slave device detection circuit provided by the utility model can improve the compatibility of the A-type USB interface.

Description

Master-slave device detection circuit and electronic device
Technical Field
The present utility model relates to the field of control technologies of USB interfaces, and in particular, to a master-slave device detection circuit and an electronic device.
Background
USB (Universal Serial Bus ) is a serial bus standard, and is also a technical specification of an input/output interface, and is widely applied to information communication products such as personal computers and mobile devices, and is extended to other related fields such as photographic equipment, digital televisions (set top boxes), game machines, and the like. The USB interface types mainly comprise A-type USB, mini-USB, micro-USB, type-C and the like.
With The advent of OTG (On-The-Go), a technology published by The USB standardization organization for USB device connection or data exchange, mini-USB and micro-USB generally extend a usb_id pin to identify whether an access device is a master device (Host) or a Slave device (Slave) so as to implement OTG functions. However, the existing type a USB has no usb_id pin, so that the application of OTG technology is limited, and the compatibility is poor.
Disclosure of Invention
In view of the above, the main purpose of the present utility model is to provide a master-slave device detection circuit and an electronic device, which are aimed at solving the problem that the existing a-type USB interface is not configured with a usb_id pin, and cannot identify a master device and a slave device.
A first aspect of the present utility model provides a master-slave device detection circuit comprising a USB interface, a device type identification circuit, and a controller. The USB interface is used for accessing external equipment. The type of the external device comprises a master device and a slave device. The USB interface comprises a power pin electrically connected with the equipment type identification circuit. When the main equipment is connected to the USB interface, the main equipment provides input voltage for the power supply pin. When the slave device accesses the USB interface, the slave device does not provide the input voltage to the power pin. The power pins are at respective levels based on the condition of the received voltage. The device type identification circuit is electrically connected with the controller and the USB interface respectively, and is used for outputting corresponding identification signals to the controller according to the level of the power supply pin. The controller is used for determining the type of the external equipment according to the identification signal.
According to the master-slave device detection circuit provided by the utility model, the device type identification circuit simulates the identification signal according to the level of the USB interface, so that the controller can determine whether the type of the external device connected to the USB interface is the master device or the slave device according to the identification signal, the defect that the USB_ID pin is not configured in the A-type USB interface can be overcome, and the compatibility of the A-type USB interface can be improved.
Optionally, the master-slave device detection circuit further includes a voltage output circuit electrically connected to the power pin of the USB interface and the controller, respectively. The controller is also used for outputting corresponding control signals to the voltage output circuit according to the identification signals. The voltage output circuit outputs working voltage to the external equipment through the power pin or does not output the working voltage under the control of the control signal.
Optionally, the controller is further configured to output the control signal to the device type identification circuit. And the equipment type identification circuit continuously outputs a corresponding identification signal to the controller according to the level of the power supply pin and the control signal.
Optionally, the power pin of the USB interface is at a first level when the input voltage and the operating voltage are not received, and is at a second level when the input voltage or the operating voltage is received. Wherein the power pin level includes the first level and the second level. The device type identification circuit outputs a first identification signal when receiving a first control signal output by the controller or the power pin is at a first level, and outputs a second identification signal when receiving a second control signal output by the controller and the power pin is at a second level. The identification signals output by the equipment type identification circuit comprise the first identification signal and the second identification signal, and the control signals output by the controller comprise the first control signal and the second control signal. The controller determines the type of the external device as a slave device and outputs the first control signal when the first identification signal is received, thereby controlling the voltage output circuit to output the operating voltage, and determines the type of the external device as a master device and outputs the second control signal when the second identification signal is received, thereby controlling the voltage output circuit not to output the operating voltage.
Optionally, the controller includes an identification signal input for receiving the identification signal and a control signal output for outputting the control signal. The equipment type identification circuit comprises an identification signal output end, an identification sub-circuit and a self-locking sub-circuit. The identification signal output end is electrically connected with the identification signal input end of the controller, and the identification signal output end is also electrically connected with a voltage source through a first resistor. The identification sub-circuit and the self-locking sub-circuit are connected in parallel between the identification signal output end and the ground. The identification sub-circuit is further electrically connected with a power pin of the USB interface, and when the power pin is at the first level, the identification sub-circuit conducts the electrical connection between the identification signal output end and the ground, so that the identification signal output end is grounded and outputs a low-level signal. The self-locking sub-circuit is further electrically connected with the control signal output end of the controller, and the self-locking sub-circuit conducts the electrical connection between the identification signal output end and the ground under the control of the first control signal output by the control signal output end, so that the identification signal output end is grounded and outputs a low-level signal. The identification sub-circuit is used for commonly disconnecting the electrical connection between the identification signal output end and the ground under the control of the second control signal output by the identification signal output end when the power pin is at a second level, so that the identification signal output end is electrically connected with the voltage source to be at a high level and output a high-level signal. Wherein the first identification signal comprises the low level signal and the second identification signal comprises the high level signal.
Optionally, the self-locking sub-circuit includes a first switching tube, the first switching tube is electrically connected between the identification signal output end and the ground, and a control end of the first switching tube is electrically connected with a control signal output end of the controller.
Optionally, the identification sub-circuit includes a second switching tube and a third switching tube. The second switching tube is electrically connected between the identification signal output end and the ground, and the control end of the second switching tube is electrically connected with the voltage source through a second resistor. The third switching tube is electrically connected between the control end of the second switching tube and the ground, and the control end of the third switching tube is electrically connected with the power pin of the USB interface.
Optionally, the types of the first switch tube, the second switch tube and the third switch tube comprise triodes and MOS tubes.
Optionally, the first switching tube, the second switching tube and the third switching tube are all high-level conducting switching tubes.
The second aspect of the utility model also provides an electronic device comprising the master-slave device detection circuit.
Additional aspects and advantages of the utility model will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the utility model.
Drawings
Fig. 1 is a schematic structural diagram of a first example of a master-slave device detection circuit provided in an embodiment of the present utility model.
Fig. 2 is a schematic structural diagram of a second example of a master-slave device detection circuit provided in an embodiment of the present utility model.
Fig. 3 is a circuit diagram of a device type identification circuit in the master-slave device detection circuit shown in fig. 2.
Fig. 4 is a circuit diagram of a voltage output circuit in the master-slave device detection circuit shown in fig. 2.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present utility model.
The reference numerals are explained as follows:
master-slave device detection circuit 100
USB interface 10
Device type identification circuit 20
Controller 30
External device 200
Power supply pin VBUS
Communication pins USB_DP, USB_DN, DP and DN
Voltage output circuit 40
Identification signal input terminal ID
Control signal output terminal EN
Identification signal output terminal 201
Level input 202
Control signal input terminal 203
Identification sub-circuit 204
Self-locking sub-circuit 205
First switching tube Q1
Second switching tube Q2
Third switch tube Q3
First resistor R1
Voltage source VCC
Second resistor R2
Voltage stabilizing chip U1
Electronic device 1
The utility model will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
The following description of the embodiments of the present utility model will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present utility model, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the utility model without any inventive effort, are intended to be within the scope of the utility model.
In the description of the present utility model, it should be noted that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, the present utility model provides a master-slave device detection circuit 100, wherein the master-slave device detection circuit 100 includes a USB interface 10, a device type identification circuit 20, and a controller 30.
The USB interface 10 is used to access an external device 200. The types of the external device 200 include a master device and a slave device. The USB interface 10 includes a power pin VBUS electrically connected to the device type identification circuit 20. When a host device accesses the USB interface 10, the host device provides an input voltage to the power pin VBUS. When a slave device accesses the USB interface 10, the slave device does not provide the input voltage to the power pin VBUS. The power supply pin VBUS is at a corresponding level based on the condition of the received voltage.
The device type identification circuit 20 is electrically connected to the controller 30 and the USB interface 10, and the device type identification circuit 20 is configured to output a corresponding identification signal to the controller 30 according to the level of the power pin VBUS.
The controller 30 is configured to determine the type of the external device 200 according to the identification signal.
According to the master-slave device detection circuit 100 provided by the utility model, the device type identification circuit 20 simulates the identification signal according to the level of the USB interface 10, so that the controller 30 can determine whether the type of the external device 200 connected to the USB interface 10 is the master device or the slave device according to the identification signal, thereby overcoming the defect that the USB_ID pin is not configured in the A-type USB interface and improving the compatibility of the A-type USB interface.
Specifically, the device type identification circuit 20 includes an identification signal output 201 and a level input 202 electrically connected to the power pin VBUS, where the level input 202 is configured to receive the level of the power pin VBUS. The controller 30 includes an identification signal input terminal ID electrically connected to the identification signal output terminal 201, the identification signal input terminal ID for receiving the identification signal output from the device type identification circuit 20.
Further, the USB interface 10 further includes communication pins usb_dp and usb_dn, and the controller 30 includes communication pins DP and DN electrically connected to the communication pins usb_dp and usb_dn in a one-to-one correspondence. When the external device 200 is connected to the USB interface 10, information interaction is performed with the controller 30 through the communication pin, so that the controller 30 can determine whether the external device 200 is connected to the USB interface 10 according to the information interaction condition.
When the external device 200 connected to the USB interface 10 is a slave device, the slave device does not provide an operating voltage to the power pin VBUS of the USB interface 10, where the power pin VBUS is at a first level, and the device type identifying circuit 20 outputs a first identifying signal based on the first level of the power pin VBUS, so that the controller 30 may determine that the external device 200 connected to the USB interface 10 is a slave device according to the first identifying signal and the information interaction condition.
When the external device 200 connected to the USB interface 10 is a master device, the master device may provide a working voltage, for example, 5V, to the power pin VBUS of the USB interface 10, pull the power pin VBUS up to a second level, and the device type identifying circuit 20 outputs a second identifying signal based on the second level of the power pin VBUS, so that the controller 30 may determine that the external device 200 connected to the USB interface 10 is the master device according to the second identifying signal and the information interaction condition.
Illustratively, in the present embodiment, the circuit structure of the device type identification circuit 20 may include a first resistor R1 and an identification sub-circuit 204, and the circuit structure and the operation principle of the identification sub-circuit 204 are described in detail below.
Referring to fig. 2, fig. 2 is a schematic diagram of another structure of the master-slave device detection circuit 100 provided by the present utility model, in this embodiment, the master-slave device detection circuit 100 includes a USB interface 10, a device type identification circuit 20, a controller 30, and a voltage output circuit 40, wherein pins of the USB interface 10 are described in detail above, and are not described herein again.
Specifically, the device type identification circuit 20 includes an identification signal output 201, a control signal input 203, and a level input 202 electrically connected to the power pin VBUS, where the level input 202 is configured to receive the level of the power pin VBUS. The controller 30 includes a control signal output EN electrically connected to the control signal input 203 and an identification signal input ID electrically connected to the identification signal output 201. The voltage output circuit 40 is electrically connected to the power pin VBUS of the USB interface 10 and the control signal output end EN, respectively.
Further, when the external device 200 is just connected to the USB interface 10, the device type identification circuit 20 receives the level of the power pin VBUS through the level input terminal 202, and outputs a corresponding identification signal to the controller 30 through the identification signal output terminal 201 according to the level of the power pin VBUS.
The controller 30 receives the identification signal through the identification signal input terminal ID, determines the type of the external device 200 according to the identification signal, and outputs corresponding control signals to the voltage output circuit 40 and the device type identification circuit 20 through the control signal output terminal EN.
After the controller 30 determines the type of the external device 200, the device type recognition circuit 20 receives the level of the power pin VBUS through the level input terminal 202, receives the control signal through the control signal input terminal 203, and continuously outputs a corresponding recognition signal to the controller 30 according to the level of the power pin VBUS and the control signal.
The voltage output circuit 40 outputs an operating voltage to the external device 200 through the power pin VBUS or does not output the operating voltage under the control of the control signal.
Specifically, the power pin VBUS of the USB interface 10 is at a first level when the input voltage and the operating voltage are not received, and is at a second level when the input voltage or the operating voltage is received. Wherein the level of the power supply pin VBUS includes the first level and the second level.
The device type recognition circuit 20 outputs a first recognition signal upon receiving a first control signal output from the controller 30 or the power supply pin VBUS is at a first level, and outputs a second recognition signal upon receiving a second control signal output from the controller 30 and the power supply pin VBUS is at a second level. Wherein the identification signal output by the device type identification circuit 20 includes the first identification signal and the second identification signal, and the control signal output by the controller 30 includes the first control signal and the second control signal.
The controller 30 determines the type of the external device 200 as a slave device and outputs the first control signal upon receiving the first identification signal, thereby controlling the voltage output circuit 40 to output the operating voltage, and determines the type of the external device 200 as a master device and outputs the second control signal upon receiving the second identification signal, thereby controlling the voltage output circuit 40 not to output the operating voltage.
Referring to fig. 3 for exemplary purposes, fig. 3 is a circuit diagram of the device type identification circuit 20. As shown in fig. 3, the identification signal output 201 of the device type identification circuit 20 is electrically connected to a voltage source VCC through a first resistor R1.
Further, the device type identification circuit 20 further comprises an identification sub-circuit 204 and a self-locking sub-circuit 205 connected in parallel between the identification signal output terminal 201 and ground. The identification sub-circuit 204 is further electrically connected to the power pin VBUS of the USB interface 10 through the level input terminal 202, and when the power pin VBUS is at the first level, the identification sub-circuit 204 conducts an electrical connection between the identification signal output terminal 201 and ground, so that the identification signal output terminal 201 is grounded to output a low level signal, where the first identification signal includes the low level signal.
The self-locking sub-circuit 205 is further electrically connected to the control signal output end EN of the controller 30 through the control signal input end 203, and the self-locking sub-circuit 205 conducts the electrical connection between the identification signal output end 201 and the ground under the control of the first control signal output by the control signal output end EN, so that the identification signal output end 201 is grounded and outputs a low level signal, wherein the first identification signal includes the low level signal.
The identification sub-circuit 204 is configured to disconnect the electrical connection between the identification signal output terminal 201 and the ground under the control of the second control signal output from the identification signal output terminal 201 when the power supply pin VBUS is at a second level, so that the identification signal output terminal 201 is electrically connected to the voltage source VCC to be at a high level and output a high level signal, wherein the second identification signal includes the high level signal.
Further, the self-locking sub-circuit 205 includes a first switching tube Q1, where the first switching tube Q1 is electrically connected between the identification signal output terminal 201 and the ground, and a control terminal of the first switching tube Q1 is electrically connected to the control signal output terminal EN of the controller 30 through the input terminal 203.
Illustratively, the identification sub-circuit 204 includes a second switching tube Q2 and a third switching tube Q3.
The second switching tube Q2 is electrically connected between the identification signal output end 201 and ground, and the control end of the second switching tube Q2 is electrically connected with the voltage source VCC through a second resistor R2.
The third switching tube Q3 is electrically connected between the control end of the second switching tube Q2 and ground, and the control end of the third switching tube Q3 is electrically connected with the power supply pin VBUS of the USB interface 10 through the level input end 202.
The types of the first switching tube Q1, the second switching tube Q2 and the third switching tube Q3 include a triode and a MOS tube. In this embodiment, the first switching tube Q1, the second switching tube Q2, and the third switching tube Q3 are all high-level conductive switching tubes.
Illustratively, as shown in fig. 4, the voltage output circuit 40 includes a voltage regulating chip U1, and in other embodiments, the voltage output circuit 40 may employ a DC-DC converter or a linear regulator, such as a low dropout linear regulator (low dropout regulator, LDO).
In operation, as described above, the controller 30 may determine whether the external device 200 is connected to the USB interface 10 according to the information interaction condition. When no external device 200 is connected to the USB interface 10, the controller 30 does not perform information interaction, and it is confirmed that no external device 200 is connected. Therefore, when no external device 200 is connected to the USB interface 10, the controller 30 does not output the first control signal or outputs the second control signal by default, thereby controlling the first switching transistor Q1 to be turned off and controlling the voltage output circuit 40 not to output the operating voltage. In this way, the power consumption of the voltage output circuit 40 can be reduced.
When the main device just accesses the USB interface 10, the main device provides an input voltage to the power supply pin VBUS, the third switching tube Q3 turns on an electrical connection between the control end of the second switching tube Q2 and the ground in response to the input voltage received by the control end thereof, so that the second switching tube Q2 is turned off, and meanwhile, the first switching tube Q1 does not receive the first control signal and is turned off, so that the identification signal output end 201 is electrically connected with the voltage source VCC and is at a high level and outputs a high level signal, that is, outputs the second identification signal. The controller 30 determines the type of the external device 200 as a master device according to the second identification signal and the information interaction condition and outputs the second control signal, thereby controlling the voltage output circuit 40 not to output the operating voltage. In this way, the power consumption of the voltage output circuit 40 can be reduced.
When a slave device just accesses the USB interface 10, the slave device does not provide an input voltage to the power supply pin VBUS, and the power supply pin VBUS is at a second level, so that the third switching tube Q3 is turned off, and the second switching tube Q2 is electrically connected to the voltage source VCC through the second resistor R2 to be turned on, so that the electrical connection between the identification signal output terminal 201 and the ground is turned on, so that the identification signal output terminal 201 is grounded and outputs a low level signal, that is, outputs the first identification signal. The controller 30 determines the type of the external device 200 as a slave device according to the first identification signal and the information interaction condition and outputs the first control signal, thereby controlling the voltage output circuit 40 to output the operating voltage. The first switching tube Q1 is responsive to the first control signal to conduct the electrical connection between the identification signal output terminal 201 and the ground, so that the identification signal output terminal 201 is grounded and continuously outputs a low-level signal, that is, continuously outputs the first identification signal, and thus self-locking can be achieved to control the voltage output circuit 40 to continuously output the working voltage.
It should be noted that, with the device type identification circuit 20 shown in fig. 3, the functions of identifying the master device and the slave device can be realized only by adding 3 switching tubes and 7 resistors on the basis of the existing a-type USB interface, and the voltage output circuit 40 does not provide the working voltage when no external device 200 is connected or the master device is connected, and can continuously provide the working voltage for the slave device, so that the device type identification circuit has a simple structure, high reliability and reduced energy consumption. Of course, in other embodiments, the device type identification circuit 20 may also have other circuit structures, for example, the self-locking sub-circuit 205 may be replaced by a non-gate circuit, which is not limited herein.
Referring to fig. 5, based on the same concept, the present utility model further provides an electronic device 1, where the electronic device 1 includes the master-slave device detection circuit 100 in any of the above embodiments. The electronic device 1 may be, for example, a computer, a printer, a scanner, a set-top box, a USB converter, or the like, which has a USB interface.
According to the electronic device 1 provided by the utility model, the device type identification circuit 20 simulates the identification signal according to the level of the USB interface 10, so that the controller 30 can determine whether the type of the external device 200 connected to the USB interface 10 is the master device or the slave device according to the identification signal, and therefore, the electronic device only configured with the A-type USB interface can realize the OTG function, and the compatibility of the electronic device 1 can be improved.
While embodiments of the present utility model have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the utility model, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. The master-slave equipment detection circuit is characterized by comprising a USB interface, an equipment type identification circuit and a controller;
the USB interface is used for accessing external equipment; the type of the external equipment comprises a master equipment and a slave equipment; the USB interface comprises a power pin electrically connected with the equipment type identification circuit; when the main equipment is connected to the USB interface, the main equipment provides input voltage for the power supply pin; when the slave device accesses the USB interface, the slave device does not provide the input voltage for the power pin; the power supply pins are at corresponding levels based on the condition of receiving voltage;
the device type identification circuit is respectively and electrically connected with the controller and the USB interface, and is used for outputting corresponding identification signals to the controller according to the level of the power supply pin;
the controller is used for determining the type of the external equipment according to the identification signal.
2. The master-slave device detection circuit of claim 1, further comprising a voltage output circuit electrically connected to a power pin of the USB interface, the controller, respectively;
the controller is also used for outputting corresponding control signals to the voltage output circuit according to the identification signals;
the voltage output circuit outputs working voltage to the external equipment through the power pin or does not output the working voltage under the control of the control signal.
3. The master-slave device detection circuit of claim 2, wherein the controller is further configured to output the control signal to the device type identification circuit;
and the equipment type identification circuit continuously outputs a corresponding identification signal to the controller according to the level of the power supply pin and the control signal.
4. The master-slave device detection circuit of claim 3, wherein a power pin of the USB interface is at a first level when the input voltage and the operating voltage are not received, and is at a second level when the input voltage or the operating voltage is received; wherein the level of the power pin comprises the first level and the second level;
the device type identification circuit outputs a first identification signal when receiving a first control signal output by the controller or the power supply pin is at a first level, and outputs a second identification signal when receiving a second control signal output by the controller and the power supply pin is at a second level; the device type identification circuit outputs an identification signal which comprises a first identification signal and a second identification signal, and the controller outputs a control signal which comprises the first control signal and the second control signal;
the controller determines the type of the external device as a slave device and outputs the first control signal when the first identification signal is received, thereby controlling the voltage output circuit to output the operating voltage, and determines the type of the external device as a master device and outputs the second control signal when the second identification signal is received, thereby controlling the voltage output circuit not to output the operating voltage.
5. The master-slave device detection circuit of claim 4, wherein the controller includes an identification signal input for receiving the identification signal and a control signal output for outputting the control signal;
the device type identification circuit includes:
the identification signal output end is electrically connected with the identification signal input end of the controller and is also electrically connected with a voltage source through a first resistor; and
the identification sub-circuit and the self-locking sub-circuit are connected in parallel between the identification signal output end and the ground; the identification sub-circuit is further electrically connected with a power pin of the USB interface, and when the power pin is at the first level, the identification sub-circuit conducts the electrical connection between the identification signal output end and the ground, so that the identification signal output end is grounded and outputs a low-level signal; the self-locking sub-circuit is further electrically connected with the control signal output end of the controller, and the self-locking sub-circuit conducts the electrical connection between the identification signal output end and the ground under the control of the first control signal output by the control signal output end, so that the identification signal output end is grounded and outputs a low-level signal; the identification sub-circuit is used for commonly disconnecting the electrical connection between the identification signal output end and the ground under the control of the second control signal output by the identification signal output end when the power pin is at a second level, so that the identification signal output end is electrically connected with the voltage source to be at a high level and output a high-level signal; wherein the first identification signal comprises the low level signal and the second identification signal comprises the high level signal.
6. The master-slave device detection circuit of claim 5, wherein the self-locking subcircuit comprises: the first switching tube is electrically connected between the identification signal output end and the ground, and the control end of the first switching tube is electrically connected with the control signal output end of the controller.
7. The master-slave device detection circuit of claim 6, wherein the identification sub-circuit comprises:
the second switching tube is electrically connected between the identification signal output end and the ground, and the control end of the second switching tube is electrically connected with the voltage source through a second resistor; and
the third switching tube is electrically connected between the control end of the second switching tube and the ground, and the control end of the third switching tube is electrically connected with the power pin of the USB interface.
8. The master-slave device detection circuit of claim 7, wherein the types of the first switching tube, the second switching tube, and the third switching tube comprise transistors, MOS tubes.
9. The master-slave device detection circuit of claim 7, wherein the first switching tube, the second switching tube, and the third switching tube are all high-level conductive switching tubes.
10. An electronic device, comprising:
a master-slave device detection circuit according to any one of claims 1 to 9.
CN202320448362.1U 2023-02-28 2023-02-28 Master-slave device detection circuit and electronic device Active CN219497051U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202320448362.1U CN219497051U (en) 2023-02-28 2023-02-28 Master-slave device detection circuit and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202320448362.1U CN219497051U (en) 2023-02-28 2023-02-28 Master-slave device detection circuit and electronic device

Publications (1)

Publication Number Publication Date
CN219497051U true CN219497051U (en) 2023-08-08

Family

ID=87505156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202320448362.1U Active CN219497051U (en) 2023-02-28 2023-02-28 Master-slave device detection circuit and electronic device

Country Status (1)

Country Link
CN (1) CN219497051U (en)

Similar Documents

Publication Publication Date Title
CN109509422B (en) Display panel drive circuit and display device
JP5283719B2 (en) Electronic equipment and electronic equipment system
CN102662898B (en) Host-slave compatibility method, device and system for USB (universal serial bus) device
TWI494863B (en) Dual-interface card reader module
US7519756B2 (en) Method and apparatus for controlling connections of PC cards and a passive-card-adapting card used for connecting one of the PC cards to the apparatus
US20180143934A1 (en) Hub
US20140207977A1 (en) Usb device and control method thereof
US8230151B2 (en) Configurable data port for I2C or single-wire broadcast interface
CN108228509B (en) USB interface switching device and electronic equipment
EP2040174A1 (en) Card-type peripheral device
US11151065B2 (en) Method for performing detection control of write protection function of memory device, associated control chip and associated electronic device
CN113472338A (en) Capacitor isolation circuit, interface module, chip and system
CN219497051U (en) Master-slave device detection circuit and electronic device
US20190280679A1 (en) Rise and Fall Time Mismatch Adjustment Circuit for USB-On-The-Go Modules
US20120254529A1 (en) Motherboard with ddr memory devices
CN111176563B (en) Method for bypass access to storage data, storage device and bypass access storage system
CN109960677B (en) Extension circuit for USB interface
CN110047550B (en) Data storage device, memory control circuit and monitoring method thereof
US20100100659A1 (en) Computer system
CN216118769U (en) Type-C interface circuit and intelligent terminal equipment with same
CN217470122U (en) HDMI display switching module and electronic equipment
CN220798358U (en) Serial port communication circuit and mainboard based on HDMI interface
CN217880299U (en) Circuit for controlling PCIE (peripheral component interface express) independent network card to reset
CN218006532U (en) Circuit for determining master-slave device connection
KR200330112Y1 (en) A Micro memory card

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant