CN218214114U - USB interface function switching device and terminal - Google Patents

USB interface function switching device and terminal Download PDF

Info

Publication number
CN218214114U
CN218214114U CN202221733737.0U CN202221733737U CN218214114U CN 218214114 U CN218214114 U CN 218214114U CN 202221733737 U CN202221733737 U CN 202221733737U CN 218214114 U CN218214114 U CN 218214114U
Authority
CN
China
Prior art keywords
pin
usb
capacitor
npn type
type triode
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
CN202221733737.0U
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.)
Tendyron Corp
Original Assignee
Tendyron Corp
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 Tendyron Corp filed Critical Tendyron Corp
Priority to CN202221733737.0U priority Critical patent/CN218214114U/en
Application granted granted Critical
Publication of CN218214114U publication Critical patent/CN218214114U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Semiconductor Integrated Circuits (AREA)

Abstract

The utility model provides a USB interface function auto-change over device and terminal, wherein the device includes: a CPU, comprising: the device comprises a detection pin, a control pin, a left sound channel pin, a right sound channel pin, a first data pin and a second data pin; a transmitting end comprising: the USB interface comprises a VBUS pin, a first USB pin and a second USB pin, wherein the first USB pin is connected with a first data pin, the second USB pin is connected with a second data pin, and the VBUS pin is connected with a detection pin; the first end of the first conduction circuit is connected with the left sound channel pin, the second end of the first conduction circuit is connected with the first USB pin, and the control end of the first conduction circuit is connected with the control pin; the first end of the second conduction circuit is connected with the right channel pin, the second end of the second conduction circuit is connected with the second USB pin, and the control end of the second conduction circuit is connected with the control pin; one end of the first capacitor is connected with the left sound channel pin, and the other end of the first capacitor is grounded; and one end of the second capacitor is connected with the right channel pin, and the other end of the second capacitor is grounded. The cost is lower than that of using a special switching chip.

Description

USB interface function switching device and terminal
Technical Field
The utility model relates to the field of electronic technology, especially, relate to a USB interface function auto-change over device and terminal.
Background
The terminal having the USB interface generally uses the USB interface as a data transmission interface, and of course, when the terminal is a mobile phone or other audio player, etc., and the terminal only has the USB interface, the USB interface can also be used as an earphone interface.
In the existing design, the switching of the data transmission function and the audio transmission function of the USB interface is realized through the IC chip, and the use of the IC chip has higher cost and is not beneficial to popularization.
Therefore, how to design a low-cost scheme to realize the switching of the data transmission function and the audio transmission function of the USB interface becomes a problem to be solved urgently.
SUMMERY OF THE UTILITY MODEL
The utility model aims to solve the problems.
The utility model mainly aims to provide a USB interface function switching device;
another object of the present invention is to provide a terminal.
In order to achieve the above object, the technical solution of the present invention is specifically realized as follows:
the utility model discloses an aspect provides a USB interface function auto-change over device, include: a CPU, comprising: the device comprises a detection pin, a control pin, a left sound channel pin, a right sound channel pin, a first data pin and a second data pin; a transmission end comprising: a VBUS pin, a first USB pin and a second USB pin, wherein the first USB pin is connected with the first data pin, the second USB pin is connected with the second data pin, and the VBUS pin is connected with the detection pin; a first conduction circuit, a first end of which is connected with the left channel pin, a second end of which is connected with the first USB pin, and a control end of which is connected with the control pin; a first end of the second conduction circuit is connected with the right channel pin, a second end of the second conduction circuit is connected with the second USB pin, and a control end of the second conduction circuit is connected with the control pin; one end of the first capacitor is connected with the left sound channel pin, and the other end of the first capacitor is grounded; one end of the second capacitor is connected with the right channel pin, and the other end of the second capacitor is grounded; the CPU is used for detecting the level of the detection pin, setting the control pin to be high level if the level of the detection pin is low level, and setting the control pin to be low level if the level of the detection pin is high level; the first conduction circuit is used for conducting when the control pin is at a high level; and the second conduction circuit is used for conducting when the control pin is at a high level.
Further, the first turn-on circuit includes: a first NMOS transistor or a first NPN type triode; the second turn-on circuit includes: a second NMOS transistor or a second NPN type triode.
In addition, the first turn-on circuit further includes: the anode of the first diode is connected with the source electrode of the first NMOS tube, and the cathode of the first diode is connected with the drain electrode of the first NMOS tube; or the anode of the first diode is connected with the collector of the first NPN type triode, and the cathode of the first diode is connected with the emitter of the first NPN type triode; the second turn-on circuit further comprises: the anode of the second diode is connected with the source electrode of the second NMOS tube, and the cathode of the second diode is connected with the drain electrode of the second NMOS tube; or the anode of the second diode is connected with the collector of the second NPN type triode, and the cathode of the second diode is connected with the emitter of the second NPN type triode.
Furthermore, the apparatus further comprises: one end of the first resistor is connected with the drain electrode of the first NMOS tube or the emitter electrode of the first NPN type triode, and the other end of the first resistor is connected with a CPU power supply; one end of the second resistor is connected with the drain electrode of the second NMOS tube or the emitter electrode of the second NPN type triode, and the other end of the second resistor is connected with a CPU power supply.
Furthermore, the apparatus further comprises: one end of the third capacitor is connected with the drain electrode of the first NMOS transistor or the emitter electrode of the first NPN type triode, and the other end of the third capacitor is connected with the first USB pin; one end of the fourth capacitor is connected with the drain electrode of the second NMOS tube or the emitter electrode of the second NPN type triode, and the other end of the fourth capacitor is connected with the second USB pin.
The utility model discloses another aspect provides a terminal, include: the USB interface function switching device and the USB interface; the USB interface is connected with the transmission end.
In addition, the terminal is a smart card.
By the above-mentioned the technical scheme provided by the utility model, the utility model provides a USB interface function auto-change over device and terminal through detecting the level that DETECTs pin DETECT, makes switching on or breaking off of the first conducting circuit of control pin USB _ AUDIO _ SW control and second conducting circuit, realizes the switching of earphone function and USB data transmission function, and the cost of using special switching chip is lower.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a USB interface function switching device according to an embodiment of the present invention;
fig. 2 is a schematic circuit diagram of a USB interface function switching device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are 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 some embodiments of the present invention, not all embodiments. Based on the embodiment of the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
Fig. 1 shows the structure schematic diagram of the USB interface function switching device provided by the embodiment of the present invention, fig. 2 shows the utility model discloses a USB interface function switching device's circuit schematic diagram provided by the embodiment combines fig. 1 and fig. 2, and is right the utility model discloses a USB interface function switching device who provides explains, the utility model provides a USB interface function switching device includes: the circuit comprises a CPU, a transmission end, a first conduction circuit, a second conduction circuit, a first capacitor C1 and a second capacitor C2; wherein:
a CPU, comprising: a detection pin DETECT, a control pin USB _ AUDIO _ SW, a Left channel pin Left, a Right channel pin Right, a first data pin D-and a second data pin D +;
a transmission end comprising: VBUS pin, first USB pin USB _ D-and second USB pin USB _ D +, first USB pin USB _ D-connects first data pin D-, second USB pin USB _ D + connects second data pin D +, VBUS pin connects and DETECTs the pin DETECT;
the first end of the first conduction circuit is connected with the Left channel pin Left, the second end of the first conduction circuit is connected with the first USB pin USB _ D-, and the control end of the first conduction circuit is connected with the control pin USB _ AUDIO _ SW;
a first end of the second conduction circuit is connected with the Right channel pin Right, a second end of the second conduction circuit is connected with a second USB pin USB _ D +, and a control end of the second conduction circuit is connected with a control pin USB _ AUDIO _ SW;
one end of the first capacitor C1 is connected with a Left sound channel pin Left, and the other end of the first capacitor is grounded GND;
and one end of the second capacitor C2 is connected with the Right channel pin Right, and the other end of the second capacitor C2 is grounded GND.
The CPU is used for detecting the level of the detection pin DETECT, setting the control pin USB _ AUDIO _ SW to be high level if the level of the detection pin DETECT is low level, and setting the control pin USB _ AUDIO _ SW to be low level if the level of the detection pin DETECT is high level;
the first conduction circuit is used for conducting when the control pin USB _ AUDIO _ SW is in a high level state;
and the second conduction circuit is used for conducting when the control pin USB _ AUDIO _ SW is in a high level.
Specifically, when the transmission end is connected with other devices, such as an earphone of a USB interface or a computer of the USB interface, the CPU DETECTs the level of the detection pin DETECT, and if the level of the detection pin DETECT is a low level, it is determined that the transmission end is connected with the earphone of the USB interface, and at this time, the control pin USB _ AUDIO _ SW is set to a high level, so that the first conduction circuit and the second conduction circuit are conducted, thereby realizing transmission of left and right channel data; if the level of the detection pin DETECT is high level, the CPU considers that the transmission end is connected to the USB interface of the computer, and at this time, sets the control pin USB _ AUDIO _ SW to low level, so that the first conduction circuit and the second conduction circuit are disconnected, and thus, the CPU is connected to the first data pin D-and the second data pin D + of the CPU only through the first USB pin USB _ D-and the second USB pin USB _ D +, respectively, to perform data transmission of the conventional USB interface.
Through the embodiment of the utility model provides a USB interface function auto-change over device, through the level that DETECTs pin DETECT, make the first switch-on circuit of control pin USB _ AUDIO _ SW control and the switch-on or the disconnection of second switch-on circuit, realize the switching of earphone function and USB data transmission function.
As an optional implementation manner of the embodiment of the present invention, referring to fig. 2, the first conduction circuit includes: the first NMOS transistor Q1, the second turn-on circuit includes: and a second NMOS transistor Q2. Wherein, as an optional implementation manner of the embodiment of the present invention, the first conduction circuit further includes: the positive electrode of the first diode D1 is connected with the source electrode of the first NMOS tube Q1, and the negative electrode of the first diode is connected with the drain electrode of the first NMOS tube Q1; the second conduction circuit further includes: and the anode of the second diode D2 is connected with the source electrode of the second NMOS tube Q2, and the cathode of the second diode D2 is connected with the drain electrode of the second NMOS tube Q2. The circuit is conducted through the NMOS tube, a special switching chip is avoided, and the manufacturing cost is reduced.
As an optional implementation manner of the embodiment of the present invention, the embodiment of the present invention provides a USB interface function switching device, which further includes: one end of the first resistor R1 is connected with the drain electrode of the first NMOS transistor Q1, and the other end of the first resistor R1 is connected with a CPU power supply; and one end of the second resistor R2 is connected with the drain electrode of the second NMOS tube Q2, and the other end of the second resistor R2 is connected with a CPU power supply.
As an optional implementation manner of the embodiment of the present invention, the embodiment of the present invention provides a USB interface function switching device, which further includes: one end of the third capacitor C3 is connected with the drain electrode of the first NMOS tube Q1, and the other end of the third capacitor C3 is connected with a first USB pin USB _ D-; one end of a fourth capacitor C4 is connected to the drain of the second NMOS transistor Q2, and the other end of the fourth capacitor C4 is connected to the second USB pin USB _ D +.
Of course, as an alternative (not shown in the figures), the first conduction circuit comprises: the first NPN type triode, the second conduction circuit includes: and a second NPN type triode. At this time, the first turn-on circuit further includes: the positive electrode of the first diode D1 is connected with the collector electrode of the first NPN type triode, and the negative electrode of the first diode D1 is connected with the emitter electrode of the first NPN type triode; the second turn-on circuit further includes: and the anode of the second diode D2 is connected with the collector of the second NPN type triode, and the cathode of the second diode D2 is connected with the emitter of the second NPN type triode. The circuit is conducted through the triode, a special switching chip is avoided, and the manufacturing cost is reduced.
As an optional implementation manner of the embodiment of the present invention, the embodiment of the present invention provides a USB interface function switching device, which further includes: one end of the first resistor R1 is connected with an emitting electrode of the first NPN type triode, and the other end of the first resistor R1 is connected with a CPU power supply; and one end of the second resistor R2 is connected with an emitting electrode of the second NPN type triode, and the other end of the second resistor R2 is connected with a CPU power supply.
As an optional implementation manner of the embodiment of the present invention, the embodiment of the present invention provides a USB interface function switching device, which further includes: one end of the third capacitor C3 is connected with an emitting electrode of the first NPN type triode, and the other end of the third capacitor C3 is connected with a first USB pin USB _ D-; one end of a fourth capacitor C4 is connected with the emitter of the second NPN type triode, and the other end of the fourth capacitor C4 is connected with a second USB pin USB _ D +.
Therefore, through the embodiment of the utility model provides a USB interface function auto-change over device through the level that DETECTs pin DETECT, makes switching on or breaking off of the first break-over circuit of control pin USB _ AUDIO _ SW control and second break-over circuit, realizes the switching of earphone function and USB data transmission function, and the cost of using special switching chip is lower than.
Fig. 3 shows a schematic structural diagram of a terminal provided by the embodiment of the present invention, referring to fig. 3, an embodiment of the present invention provides a terminal, including: the USB interface function switching device and the USB interface; the USB interface is connected with the transmission end.
As an optional implementation manner of the embodiment of the present invention, the terminal is a smart card.
Therefore, through the embodiment of the utility model provides a terminal, through the level that DETECTs pin DETECT, make the first break-over circuit of control pin USB _ AUDIO _ SW control and the switch on or break off of second break-over circuit, realize the switching of earphone function and USB data transmission function, it is lower than the cost that uses special switching chip.
Although embodiments of the present invention have been shown and described, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art without departing from the principles and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (7)

1. A USB interface function switching apparatus, comprising:
a CPU, comprising: the device comprises a detection pin, a control pin, a left sound channel pin, a right sound channel pin, a first data pin and a second data pin;
a transmission end comprising: a VBUS pin, a first USB pin and a second USB pin, wherein the first USB pin is connected with the first data pin, the second USB pin is connected with the second data pin, and the VBUS pin is connected with the detection pin;
a first conduction circuit, a first end of which is connected with the left channel pin, a second end of which is connected with the first USB pin, and a control end of which is connected with the control pin;
a first end of the second conduction circuit is connected with the right channel pin, a second end of the second conduction circuit is connected with the second USB pin, and a control end of the second conduction circuit is connected with the control pin;
one end of the first capacitor is connected with the left sound channel pin, and the other end of the first capacitor is grounded;
one end of the second capacitor is connected with the right sound channel pin, and the other end of the second capacitor is grounded;
the CPU is used for detecting the level of the detection pin, setting the control pin to be high level if the level of the detection pin is low level, and setting the control pin to be low level if the level of the detection pin is high level;
the first conduction circuit is used for conducting when the control pin is at a high level;
and the second conduction circuit is used for conducting when the control pin is at a high level.
2. The apparatus of claim 1,
the first turn-on circuit includes: a first NMOS transistor or a first NPN type triode;
the second turn-on circuit includes: a second NMOS transistor or a second NPN type triode.
3. The apparatus of claim 2,
the first turn-on circuit further includes: the anode of the first diode is connected with the source electrode of the first NMOS tube, and the cathode of the first diode is connected with the drain electrode of the first NMOS tube; or the anode of the first diode is connected with the collector of the first NPN type triode, and the cathode of the first diode is connected with the emitter of the first NPN type triode;
the second turn-on circuit further includes: the anode of the second diode is connected with the source electrode of the second NMOS tube, and the cathode of the second diode is connected with the drain electrode of the second NMOS tube; or the anode of the second diode is connected with the collector of the second NPN type triode, and the cathode of the second diode is connected with the emitter of the second NPN type triode.
4. The apparatus of claim 2 or 3, further comprising:
one end of the first resistor is connected with the drain electrode of the first NMOS tube or the emitter electrode of the first NPN type triode, and the other end of the first resistor is connected with a CPU power supply;
one end of the second resistor is connected with the drain electrode of the second NMOS tube or the emitter electrode of the second NPN type triode, and the other end of the second resistor is connected with a CPU power supply.
5. The apparatus of claim 4, further comprising:
one end of the third capacitor is connected with the drain electrode of the first NMOS tube or the emitter electrode of the first NPN type triode, and the other end of the third capacitor is connected with the first USB pin;
one end of the fourth capacitor is connected with the drain electrode of the second NMOS transistor or the emitter electrode of the second NPN type triode, and the other end of the fourth capacitor is connected with the second USB pin.
6. A terminal, comprising: the USB interface function switching device and the USB interface according to any one of claims 1 to 5;
the USB interface is connected with the transmission end.
7. The terminal according to claim 6, characterized in that the terminal is a smart card.
CN202221733737.0U 2022-07-07 2022-07-07 USB interface function switching device and terminal Active CN218214114U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202221733737.0U CN218214114U (en) 2022-07-07 2022-07-07 USB interface function switching device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202221733737.0U CN218214114U (en) 2022-07-07 2022-07-07 USB interface function switching device and terminal

Publications (1)

Publication Number Publication Date
CN218214114U true CN218214114U (en) 2023-01-03

Family

ID=84649312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202221733737.0U Active CN218214114U (en) 2022-07-07 2022-07-07 USB interface function switching device and terminal

Country Status (1)

Country Link
CN (1) CN218214114U (en)

Similar Documents

Publication Publication Date Title
US9407987B2 (en) Audio interface self-adaptation device
EP3101756B1 (en) Charging system
KR102614481B1 (en) Charging control circuit, terminal device and control method
CN102339405B (en) Data card
CN106027012B (en) Pull-down resistor switch circuit
CN110932712B (en) Interface circuit of connector and electronic device
CN218214114U (en) USB interface function switching device and terminal
CN210006035U (en) USB and OTG function switching control circuit, device and mobile terminal
CN216052683U (en) MCU long press reset disaster prevention circuit
CN103164008A (en) Complementary metal oxide semiconductor (CMOS) password eliminating circuit
CN202652057U (en) Supply circuit for quick start of integrated circuit
CN107492934B (en) Electronic device with power supply circuit
CN216118769U (en) Type-C interface circuit and intelligent terminal equipment with same
CN110688260B (en) EC reset circuit and electronic equipment based on earphone interface
CN219760169U (en) Socket insertion detection circuit and USB sound card
CN215729397U (en) Control circuit
CN109032983B (en) Handheld reader with USB signal connection circuit
CN216056965U (en) Level conversion circuit
CN214381320U (en) Collinear output circuit and collinear system
CN110875614A (en) Protection method of charging interface and charging device
CN216146242U (en) Overcurrent protection circuit, system and terminal equipment
US11609666B2 (en) Active capacitive pen for realizing touch operation under MPP protocol and USI protocol and electronic terminal
CN215934472U (en) Power and signal interface hot plug protection circuit
CN214481233U (en) Audio circuit assembly and electronic equipment
CN217135659U (en) Earphone system switching and line control circuit, device and equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant