CN108874704B - USB interface circuit and electronic equipment - Google Patents

USB interface circuit and electronic equipment Download PDF

Info

Publication number
CN108874704B
CN108874704B CN201710333520.8A CN201710333520A CN108874704B CN 108874704 B CN108874704 B CN 108874704B CN 201710333520 A CN201710333520 A CN 201710333520A CN 108874704 B CN108874704 B CN 108874704B
Authority
CN
China
Prior art keywords
pin
plug
usb type
usb
socket
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
CN201710333520.8A
Other languages
Chinese (zh)
Other versions
CN108874704A (en
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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201710333520.8A priority Critical patent/CN108874704B/en
Publication of CN108874704A publication Critical patent/CN108874704A/en
Application granted granted Critical
Publication of CN108874704B publication Critical patent/CN108874704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Stereophonic Arrangements (AREA)

Abstract

The invention provides a USB interface circuit, comprising: the USB Type-C plug comprises a USB Type-C plug and a voice chip, wherein a CC pin of the USB Type-C plug is connected with an enabling end of the voice chip and is grounded through a first resistor; four V of USBType-C plugBUSOne or more of the pins are connected with a power supply end of the voice chip; the D + pin of the USB Type-C plug is connected with the positive signal input end of the voice chip; the D-pin of the USB Type-C plug is connected with the negative signal input end of the voice chip; v of USB Type-C plugCONNthe pin is grounded through a pull-down resistor. The USB Type-C plug can utilize the CC pin on the USB Type-C plug to perform the function control on the inserted external equipment, and the design is simple.

Description

USB interface circuit and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a USB interface circuit and an electronic device.
Background
The USB is known as Universal Serial Bus (Universal Serial Bus), and has a plurality of interface types, such as a type a, B, Mini, and the like, and each interface is divided into two parts, namely a socket and a plug. The USB Type-C interface is an interface which is newly defined aiming at the USB3.0, has 24 pins in total, and has the biggest characteristic of double-sided pluggable and no problem of reverse plugging.
Specific pin definitions of front views of the socket end and the plug end of the USB Type-C interface are shown in fig. 1a and 1b, respectively. According to the specification of the Type-C protocol, a current source or a voltage source output is arranged on a pin CC1/CC2 of the socket terminal and is used for plug-in identification and positive and negative plug-in identification.
When an external device with a USB Type-C plug is plugged into an electronic device with a USB Type-C socket, the electronic device is usually designed to be more complex by controlling the enabling of the external device through software.
Disclosure of Invention
in view of the above, the present invention provides a USB interface circuit and an electronic device, which can simplify the design and facilitate the enabling control of the external device.
In a first aspect, the present invention provides a USB interface circuit, suitable for a USB Type-C interface plug terminal, including: USB Type-C plug and voice chip, wherein,
The CC pin of the USB Type-C plug is connected with the enabling end of the voice chip and is grounded through a first resistor;
Four V of USBType-C plugBUSOne or more of the pins are connected with a power supply end of the voice chip;
The D + pin of the USB Type-C plug is connected with the positive signal input end of the voice chip;
The D-pin of the USB Type-C plug is connected with the negative signal input end of the voice chip;
v of USB Type-C plugCONNThe pin is grounded through a pull-down resistor.
Optionally, the first resistor has a resistance of 1 megaohm.
In a second aspect, the present invention provides a USB interface circuit, suitable for a USB Type-C interface socket terminal, including: USBType-C socket and power management chip, four V of USBType-C socketBUSThe pin is connected with the voltage output end of the power management chip;
The power management chip comprises a detection control unit, a first current unit and a second current unit, wherein a first output end of the detection control unit is connected with a control end of the first current unit, and a second output end of the detection control unit is connected with a control end of the second current unit;
The output end of the first current unit is connected with a CC1 pin of the USB Type-C socket;
the output end of the second current unit is connected with a CC2 pin of the USB Type-C socket.
optionally, the first current unit includes a first reference current source and a first switch, an output end of the first reference current source is connected to the CC1 pin of the USB Type-C socket through the first switch, and a control end of the first switch is connected to the first output end of the detection control unit.
Optionally, the output current of the first current source is 80 microamps.
Optionally, the second current unit includes a second reference current source and a second switch, an output end of the second reference current source is connected to the CC2 pin of the USB Type-C socket through the second switch, and a control end of the second switch is connected to the second output end of the detection control unit.
optionally, the output current of the second current source is 80 microamperes.
In a third aspect, the present invention provides an electronic device, including the USB interface circuit adapted to the USB Type-C interface plug terminal.
in a fourth aspect, the present invention provides an electronic device, including the USB interface circuit adapted to the USB Type-C interface socket terminal.
According to the USB interface circuit and the electronic equipment, the pull-down resistor is added on the CC pin of the USB Type-C interface plug end, when the external equipment with the USB Type-C plug is inserted into the electronic equipment with the USB Type-C socket, the inserted external equipment can be controlled by the CC pin, and compared with the prior art, the USB interface circuit and the electronic equipment are simple in design and high in reliability.
drawings
FIG. 1a is a pin definition diagram of a front view of a USB Type-C socket;
FIG. 1b is a pin definition diagram of a front view of a USB Type-C plug;
FIG. 2 is a schematic diagram of a USB interface circuit of a plug terminal of a USB Type-C interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a USB interface circuit of a USB Type-C interface socket terminal according to another embodiment of the present invention;
fig. 4 is a schematic diagram of a USB interface circuit of a USB Type-C interface socket according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a USB interface circuit, which is suitable for a USB Type-C interface plug terminal, and as shown in fig. 2, the USB interface circuit includes: a USB Type-C plug 21 and a voice chip 22, wherein,
The CC pin of the USB Type-C plug 21 is connected with the enabling end En of the voice chip 22, and is grounded through a first resistor R1;
four V of USB Type-C plug 21BUSOne or more of the pins are connected to the power terminal VDD of the voice chip 22, only one of which is shown at VBUSPin a9 connected to VDD;
The D + pin of the USB Type-C plug 21 is connected with the positive signal input end DP of the voice chip 22;
the D-pin of the USB Type-C plug 21 is connected with the negative signal input end DM of the voice chip 22;
V of USB Type-C plug 21CONNThe pin is grounded through a pull-down resistor Rd, and Rd is 5.1 k.
optionally, the first resistor R1 has a resistance of 1 megaohm.
According to the USB Type-C protocol, the USB Type-C plug only has one CC pin and one V pinCONNPins for powering the chip in the cable, DP, DM are the two differential signal lines of the USB device, also called D +, D-.
An embodiment of the present invention further provides a USB interface circuit, which is suitable for a USB Type-C interface socket end, and as shown in fig. 3, the USB interface circuit includes: USBType-C socket 31 and power management chip 32, USBType-C socket 31's four VBUSPin and voltage output end V of power management chip 32BUSConnecting;
the power management chip 32 includes a detection control unit 321, a first current unit 322, and a second current unit 323, wherein a first output terminal of the detection control unit 321 is connected to a control terminal of the first current unit 322, and a second output terminal of the detection control unit 321 is connected to a control terminal of the second current unit 323;
The output terminal of the first current unit 322 is connected to the pin CC1 of the USB Type-C socket 31;
The output terminal of the second current unit 323 is connected to the CC2 pin of the USB Type-C socket 31.
according to the USB Type-C protocol, VBUSthe power line is used for supplying power to the USB equipment by the main equipment, namely, the power line is +5V of the ordinary USB equipment; the CC1 and the CC2 are two Channel Configuration (Channel Configuration) signal pins for function negotiation, and the functions of the CC1 and the CC2 are to detect the USB connection, detect the positive and negative insertion, and detect the data and the V between the USB devicesBUSConnection establishment and management, etc.
optionally, as shown in fig. 4, the first current unit 322 includes a first reference current source Ip1 and a first switch SW1, an output terminal of the first reference current source Ip1 is connected to the pin CC1 of the USB Type-C socket 31 via the first switch SW1, and a control terminal of the first switch SW1 is connected to a first output terminal of the detection control unit 321.
Similarly, as shown in fig. 4, the second current unit 323 includes a second reference current source Ip2 and a second switch SW2, an output terminal of the second reference current source Ip2 is connected to the pin CC2 of the USB Type-C socket 31 via the second switch SW2, and a control terminal of the second switch SW2 is connected to a second output terminal of the detection control unit 321.
typically, the output currents of the first current source Ip1 and the second current source Ip2 are designed to be 80 microamps.
the embodiment of the invention also provides electronic equipment which comprises the USB interface circuit suitable for the USB Type-C interface plug end, such as a Type-C interface digital earphone or a digital/analog dual-function earphone.
The embodiment of the invention also provides electronic equipment, which comprises the USB interface circuit suitable for the USB Type-C interface socket end, such as a mobile phone.
Taking the example of inserting the Type-C interface digital earphone into the mobile phone, when the mobile phone is turned on and enters the working mode, the first switch SW1 and the second switch SW2 are closed by default, at this time, the CC1 pin and the CC2 pin have level output, and the default is high level, because the earphone is not connected at this time, the V-shaped earphone is connected with the V-shaped switchBUSThe pin is no output.
when the earphone is inserted into the mobile phonethen, the pull-down resistor Rd is detected by the pin CC1 or the pin CC2, and since Rd is 5.1k, and the output currents of the first current source Ip1 and the second current source Ip2 are 80uA, the voltage can be calculated to be only 0.4V, which is less than 1.2V, which indicates that the earphone is connected, and the mobile phone outputs V at this timeBUS. And which CC pin (CC1 or CC2) detects the pull-down resistor Rd can determine the direction of interface insertion, and switch RX/TX accordingly.
because the first resistor R1 exists, the enable end En of the voice chip 22 is at a high level, so that the voice chip 22 is enabled and enters into an operating mode.
Because the USB Type-C protocol only defines the condition that the voltage of the CC pin is less than 2.75V, and the function of the CC pin is not defined in detail when the voltage of the CC pin is more than 2.75V, the embodiment of the invention does not influence the insertion detection and the forward/backward insertion detection of the existing Type-C interface.
When the mobile phone is in a standby mode or a power saving mode, the detection control unit 321 turns off the first switch SW1 or the second switch SW2 connected to the CC pin, and because of the existence of the first resistor R1, the enable end En of the voice chip 22 becomes a low level at this time, so the voice chip 22 enters the power saving mode or is turned off, when the mobile phone needs to use the headset, the detection control unit 321 turns on the first switch SW1 or the second switch SW2 connected to the CC pin, and at this time, the enable end En of the voice chip 22 becomes a high level again, and the voice chip 22 is enabled again.
therefore, the first resistor R1 is added to the CC pin of the USB Type-C interface plug end, so that the mobile phone can utilize the CC pin to perform the function control on the inserted earphone.
the above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. the utility model provides a USB interface circuit, is applicable to USBType-C interface plug end, its characterized in that includes: USB Type-C plug and voice chip, wherein,
The CC pin of the USB Type-C plug is connected with the enabling end of the voice chip and is grounded through a first resistor;
Four V of USBType-C plugBUSOne or more of the pins are connected with a power supply end of the voice chip;
The D + pin of the USB Type-C plug is connected with the positive signal input end of the voice chip;
The D-pin of the USB Type-C plug is connected with the negative signal input end of the voice chip;
V of USB Type-C plugCONNThe pin is grounded through a pull-down resistor;
When the USBType-C plug is inserted into a matched USBType-C socket, the CC pin of the USBType-C plug is connected with one of the CC1 pin and the CC2 pin of the USBType-C socket, and a high level is generated on the CC pin to enable the voice chip.
2. The USB interface circuit of claim 1, wherein the first resistor has a resistance of 1 megaohm.
3. the utility model provides a USB interface circuit, is applicable to USBType-C interface socket end, its characterized in that includes: USBType-C socket and power management chip, four V of USBType-C socketBUSthe pin is connected with the voltage output end of the power management chip;
The power management chip comprises a detection control unit, a first current unit and a second current unit, wherein a first output end of the detection control unit is connected with a control end of the first current unit, and a second output end of the detection control unit is connected with a control end of the second current unit;
The output end of the first current unit is connected with a CC1 pin of the USB Type-C socket;
The output end of the second current unit is connected with a CC2 pin of the USB Type-C socket;
When the USB Type-C socket is inserted with a matched USB Type-C plug, one of a CC1 pin and a CC2 pin of the USB Type-C socket is connected with a CC pin of the USB Type-C plug, and a high level is generated on the CC pin to enable a voice chip connected with the USB Type-C plug.
4. The USB interface circuit of claim 3, wherein the first current unit comprises a first reference current source and a first switch, an output terminal of the first reference current source is connected to the CC1 pin of the USB Type-C socket via the first switch, and a control terminal of the first switch is connected to the first output terminal of the detection control unit.
5. The USB interface circuit of claim 4, wherein the output current of the first reference current source is 80 microamperes.
6. The USB interface circuit of claim 3, wherein the second current unit comprises a second reference current source and a second switch, an output terminal of the second reference current source is connected to the CC2 pin of the USB Type-C socket via the second switch, and a control terminal of the second switch is connected to the second output terminal of the detection control unit.
7. the USB interface circuit of claim 6, wherein the output current of the second reference current source is 80 microamperes.
8. An electronic device, characterized in that it comprises a USB interface circuit according to claim 1 or 2.
9. An electronic device, characterized in that it comprises a USB interface circuit according to any one of claims 3 to 7.
CN201710333520.8A 2017-05-12 2017-05-12 USB interface circuit and electronic equipment Active CN108874704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710333520.8A CN108874704B (en) 2017-05-12 2017-05-12 USB interface circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710333520.8A CN108874704B (en) 2017-05-12 2017-05-12 USB interface circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN108874704A CN108874704A (en) 2018-11-23
CN108874704B true CN108874704B (en) 2019-12-13

Family

ID=64319615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710333520.8A Active CN108874704B (en) 2017-05-12 2017-05-12 USB interface circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN108874704B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120404A (en) * 2015-07-31 2015-12-02 华为技术有限公司 Audio equipment, terminal equipment and electronic equipment
CN205692122U (en) * 2016-05-17 2016-11-16 深圳慧能泰半导体科技有限公司 A kind of USB Type C interface circuit and control device thereof
CN206024047U (en) * 2016-08-11 2017-03-15 歌尔股份有限公司 A kind of earphone
CN206162503U (en) * 2016-08-11 2017-05-10 深圳慧能泰半导体科技有限公司 USBType C interface circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9871524B2 (en) * 2015-04-17 2018-01-16 Samsung Electronics Co., Ltd. Integrated circuit and cable assembly including the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120404A (en) * 2015-07-31 2015-12-02 华为技术有限公司 Audio equipment, terminal equipment and electronic equipment
CN205692122U (en) * 2016-05-17 2016-11-16 深圳慧能泰半导体科技有限公司 A kind of USB Type C interface circuit and control device thereof
CN206024047U (en) * 2016-08-11 2017-03-15 歌尔股份有限公司 A kind of earphone
CN206162503U (en) * 2016-08-11 2017-05-10 深圳慧能泰半导体科技有限公司 USBType C interface circuit

Also Published As

Publication number Publication date
CN108874704A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
US9414147B2 (en) Method and device for earphone and USB to share micro-USB interface
TWI492044B (en) System for detecting universal serial bus (usb) device and method thereof
US10241935B2 (en) Portable device, cable assembly, and USB system
WO2021135687A1 (en) Electronic device and accessory having both quick charging function and audio transmission function
CN105867593A (en) USB Type-C interface circuit and control device thereof
CN106354591B (en) Detection circuit of universal serial bus
CN105933823B (en) Backward compatible system and method for providing power and signals to headphones with active noise cancellation using a 4P audio plug
WO2017063459A1 (en) Usb control apparatus and device
CN108628787B (en) Interface control circuit
JP6661342B2 (en) Port connection circuit, port connection control method, electronic equipment
CN204810286U (en) Discernment supply circuit and ethernet power supply unit, system
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
US11503249B2 (en) Relay device, receiving device, and transmission system using same
US20150325960A1 (en) Universal serial bus interface and mobile device
CN109478174B (en) Switch for reversible interface
WO2020233575A1 (en) Method for realizing usb otg function
CN108874704B (en) USB interface circuit and electronic equipment
US10051395B2 (en) Accessory management and data communication using audio port
CN111866663A (en) Control circuit for earplug type earphone device and earplug type earphone circuit
CN112821156B (en) Electronic tags chip and TYPE-C data line
US11176074B2 (en) Chip and interface conversion device
CN203760209U (en) MHL cable and MHL cable hot plug detecting system
CN108572935B (en) USB interface control circuit
CN108572936B (en) USB interface control circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant