Movatterモバイル変換


[0]ホーム

URL:


CN110166878A - Headset switch control circuit, headset switch control method and electronic equipment - Google Patents

Headset switch control circuit, headset switch control method and electronic equipment
Download PDF

Info

Publication number
CN110166878A
CN110166878ACN201910548139.2ACN201910548139ACN110166878ACN 110166878 ACN110166878 ACN 110166878ACN 201910548139 ACN201910548139 ACN 201910548139ACN 110166878 ACN110166878 ACN 110166878A
Authority
CN
China
Prior art keywords
pin
switch
switch tube
control
earphone
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.)
Granted
Application number
CN201910548139.2A
Other languages
Chinese (zh)
Other versions
CN110166878B (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.)
Beijing KT Micro Ltd
Original Assignee
Beijing KT Micro 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 Beijing KT Micro LtdfiledCriticalBeijing KT Micro Ltd
Priority to CN201910548139.2ApriorityCriticalpatent/CN110166878B/en
Publication of CN110166878ApublicationCriticalpatent/CN110166878A/en
Application grantedgrantedCritical
Publication of CN110166878BpublicationCriticalpatent/CN110166878B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present invention provides a kind of headset switch control circuits, headset switch control method and electronic equipment, it is related to technical field of electronic equipment, the circuit include: audio socket SLEEVE pin and RING2 pin be all connected in earphone interface chip intersection analog switch one end, intersect analog switch other end ground connection or connects analog-to-digital conversion pin, the first end of first switch tube is connected to RING2 pin and intersects between analog switch, the second end of first switch tube is connected to the first control pin in earphone interface chip, the first end of second switch is connected to SLEEVE pin and intersects between analog switch, the second end of second switch is connected to the second control pin in earphone interface chip.The present invention separates from switching tube except earphone interface chip by using foregoing circuit connection relationship, and the size design of such switching tube is not limited by chip area, therefore can provide larger-size low-ohmic switches pipe, so as to improve the performance parameter of audio output signal.

Description

Earphone switch control circuit, earphone switch control method and electronic equipment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to an earphone switch control circuit, an earphone switch control method and electronic equipment.
Background
The 3.5 mm headphone interface can be classified into two standards of OMTP (open mobile terminal platform) and CTIA (cellular telecommunications and internet association) according to the pin definition order. Since the two standards differ in the definition of the pins, the inability of the interface chip or circuit to make the correct type identification and electrical connection will directly affect the use of the headset functionality. In order to meet the market demands and take different standards into consideration, many semiconductor chip manufacturers have introduced a single-chip solution that can automatically identify the type of the earphone and make a correct connection through the on-chip switch circuit.
However, due to the limitation of chip process, it is difficult to design the size of the switch in the chip to be large enough to obtain a low on-resistance, and only a few hundred milliohms of on-resistance can be achieved to an acceptable extent of chip area, i.e. the switch used for GND (ground) connection in the chip has a problem of large on-resistance. These problems often lead to degradation of some performance parameters of the audio output signal, such as: THD (Total Harmonic Distortion) is worse than directly using PCB board level ground, and the isolation between the left and right channels is poor.
Disclosure of Invention
The invention aims to provide an earphone switch control circuit, an earphone switch control method and electronic equipment.
The invention provides an earphone switch control circuit, which is applied to electronic equipment and comprises: the earphone comprises an audio socket, an earphone interface chip, a first switch tube and a second switch tube, wherein the audio socket and the earphone interface chip are connected with each other; the SLEEVE pin and RING2 pin of the audio socket are both connected to one end of a cross analog switch in the earphone interface chip, the other end of the cross analog switch is grounded or connected with an analog-to-digital conversion pin, the first end of a first switch tube is connected between the RING2 pin and the cross analog switch, the second end of the first switch tube is connected to a first control pin in the earphone interface chip, the first end of a second switch tube is connected between the SLEEVE pin and the cross analog switch, and the second end of the second switch tube is connected to a second control pin in the earphone interface chip.
Further, if the RING2 pin is grounded through the cross analog switch, the first control pin controls the first switch tube to be conducted; and if the SLEEVE pin is grounded through the cross analog switch, the second control pin controls the second switch tube to be conducted.
Further, the first switch tube and the second switch tube are both metal oxide semiconductor field effect transistors, or the first switch tube and the second switch tube are both bipolar transistors.
Further, when the first switch tube and the second switch tube are both the mosfets, the first ends of the first switch tube and the second switch tube are both drain electrodes, the second ends thereof are both gate electrodes, the third ends thereof are both source electrodes, and the source electrodes of the first switch tube and the second switch tube are both grounded; or when the first switch tube and the second switch tube are both the bipolar transistors, the first ends of the first switch tube and the second switch tube are both collectors, the second ends of the first switch tube and the second switch tube are both bases, the third ends of the first switch tube and the second switch tube are both emitters, and the emitters of the first switch tube and the second switch tube are both grounded.
Furthermore, the earphone output left channel and the earphone output right channel of the audio socket are respectively connected to the first digital-to-analog conversion pin and the second digital-to-analog conversion pin in the earphone interface chip.
The invention provides an earphone switch control method, which is applied to the earphone switch control circuit and is executed by an earphone interface chip, and the method comprises the following steps: sending a control signal to a cross analog switch and a control pin according to the detected earphone type, so that the cross analog switch switches a RING2 pin and/or a SLEVE pin in an audio socket to be grounded according to the control signal, and the control pin controls a first switch tube and/or a second switch tube connected with the grounded pin to be conducted according to the control signal.
Further, the method for detecting the earphone type comprises the following steps: detecting the earphone type of an earphone inserted into an audio socket according to the voltage value flowing through the audio socket; wherein the voltage values include a first voltage value flowing from the RING2 pin through the SLEVE pin and a second voltage value flowing from the SLEVE pin through the RING2 pin.
Further, the earphone type includes four sections of OMTP type earphones, and correspondingly, the control signal includes a first control signal; the step of switching the RING2 pin and/or the sleep pin in the audio socket to ground according to the control signal comprises the following steps: switching the RING2 pin to ground according to the first control signal; the step of enabling the control pin to control the conduction of the first switch tube and/or the second switch tube connected with the grounded pin according to the control signal comprises the following steps: and enabling a first control pin to control a first switch tube connected with the RING2 pin to be conducted according to the first control signal.
Further, the earphone type comprises a four-segment CTIA type earphone, and correspondingly, the control signal comprises a second control signal; the step of switching the RING2 pin and/or the sleep pin in the audio socket to ground according to the control signal comprises the following steps: switching a SLEEVE pin in the audio socket to be grounded according to the second control signal; the step of enabling the control pin to control the conduction of the first switch tube and/or the second switch tube connected with the grounded pin according to the control signal comprises the following steps: and enabling a second control pin to control a second switching tube connected with the SLEEVE pin to be conducted according to the second control signal.
The electronic equipment provided by the invention comprises an equipment body and the earphone switch control circuit, wherein the earphone switch control circuit is arranged in the equipment body.
The earphone switch control circuit provided by the invention comprises: the earphone comprises an audio socket, an earphone interface chip and a switch tube; the SLEEVE pin and RING2 pin of the audio socket are both connected to one end of a cross analog switch in the earphone interface chip, the other end of the cross analog switch is grounded or connected to an analog-to-digital conversion pin, the first end of a first switch tube is connected between the RING2 pin and the cross analog switch, the second end of the first switch tube is connected to a first control pin in the earphone interface chip, the first end of a second switch tube is connected between the SLEEVE pin and the cross analog switch, and the second end of the second switch tube is connected to a second control pin in the earphone interface chip. The invention separates the switch tube outside the earphone interface chip by adopting the circuit connection relation, so that the size design of the switch tube is not limited by the area of the chip, and the low-resistance switch tube with larger size can be provided, thereby improving partial performance parameters of the audio output signal.
The earphone switch control method provided by the invention comprises the following steps: the earphone interface chip sends a control signal to the cross analog switch and the control pin according to the detected earphone type, so that the cross analog switch switches the RING2 pin and/or the SLEVE pin in the audio socket to be grounded according to the control signal, and the control pin controls the conduction of the first switch tube and/or the second switch tube connected with the grounded pin according to the control signal. The earphone interface chip controls the on-off of the switch tube separated from the outside according to the earphone type, and can be matched with different earphone types, thereby improving partial performance parameters of the audio output signal.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of a headset switch control circuit according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an earphone switch control circuit according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for detecting an earphone switch according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 100-earphone switch control circuit; 101-an audio jack; 102-a headset interface chip; 103-a first switch tube; 104-a second switch tube; 200-the apparatus body.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. 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.
At present, in practical use, the earphone type standard is identified through a single-chip scheme of a switch switching circuit in a chip, but the scheme has the problem that the switch on resistance is large, so that the performance of an audio output signal is influenced. Based on this, the earphone switch control circuit, the earphone switch control method and the electronic device provided by the embodiment of the invention can provide a low-resistance switch tube with a larger size, so that partial performance parameters of the audio output signal are improved.
For the convenience of understanding the present embodiment, a detailed description will be given to an earphone switch control circuit disclosed in the present embodiment.
The first embodiment is as follows:
referring to fig. 1, a block diagram of a headset switch control circuit applied to an electronic device includes: an audio jack 101 and an earphone interface chip 102 connected to each other, and a first switch tube 103 and a second switch tube 104 connected to both the audio jack 101 and the earphone interface chip 102. In practical use, the audio jack 101 may be a 3.5 mm audio jack; such as mobile phones, tablet computers, radios, etc.
Referring to the schematic structure of the earphone switch control circuit shown in fig. 2, in the above circuit, the sleevepin SLEEVE and RING2 pin RING2 of the audio jack are both connected to one end of a cross analog switch in the earphone interface chip, the other end of the cross analog switch is connected to GND or to an analog-to-digital conversion pin ADC, the first end of the first switch tube Q1 is connected between the RING2 pin RING2 and the cross analog switch, the second end of the first switch tube Q1 is connected to a first control pin GPIO1 in the earphone interface chip, the first end of the second switch tube Q2 is connected between the SLEEVE pin SLEEVE and the cross analog switch, and the second end of the second switch tube Q2 is connected to a second control pin GPIO2 in the earphone interface chip.
And the headphone output left channel TIP and the headphone output right channel RING1 of the audio jack are connected to the first digital-to-analog conversion pin DAC0 and the second digital-to-analog conversion pin DAC1, respectively, in the headphone interface chip.
In this embodiment, the cross analog switch disposed in the headphone interface chip is used to implement the signal switching function of the sleep pin sleep and RING2 pin RING2, and may include: the SLEEVE pin SLEEVE is switched to be grounded, and a RING2 pin RING2 is connected with an analog-to-digital conversion pin ADC, or the SLEEVE pin SLEEVE is switched to be connected with the analog-to-digital conversion pin ADC, and a RING2 pin RING2 is switched to be grounded. Based on the signal switching of the cross analog switch, if the RING2 pin RING2 is grounded through the cross analog switch, the first control pin GPIO1 controls the first switch tube Q1 to be conducted; if the SLEEVE pin SLEEVE is grounded through the cross analog switch, the second control pin GPIO2 controls the second switch tube Q2 to be turned on.
In some embodiments, the first switch tube and the second switch tube may be both MOSFETs (Metal-Oxide-Semiconductor Field-Effect transistors), such as an N-type MOSFET switch and a P-type MOSFET switch. Or the first switch tube and the second switch tube can be both bipolar transistors.
When the first switch tube and the second switch tube are both mosfets, as shown in fig. 2, the first ends of the first switch tube and the second switch tube are both drains, the second ends are both gates, the third ends are both sources, and the sources of the first switch tube and the second switch tube are both grounded.
Or when the first switch tube and the second switch tube are both bipolar transistors, the first ends of the first switch tube and the second switch tube are both collectors, the second ends of the first switch tube and the second switch tube are both bases, the third ends of the first switch tube and the second switch tube are both emitters, and the emitters of the first switch tube and the second switch tube are both grounded.
The earphone switch control circuit provided by the embodiment comprises: the earphone comprises an audio socket, an earphone interface chip and a switch tube; the SLEEVE pin and RING2 pin of the audio socket are both connected to one end of a cross analog switch in the earphone interface chip, the other end of the cross analog switch is grounded or connected to an analog-to-digital conversion pin, the first end of a first switch tube is connected between the RING2 pin and the cross analog switch, the second end of the first switch tube is connected to a first control pin in the earphone interface chip, the first end of a second switch tube is connected between the SLEEVE pin and the cross analog switch, and the second end of the second switch tube is connected to a second control pin in the earphone interface chip. In the embodiment, the switching tube is separated from the earphone interface chip by adopting the circuit connection relation, so that the size design of the switching tube is not limited by the area of the chip, and the switching tube with a large size and low resistance can be provided, thereby improving partial performance parameters of the audio output signal.
Example two:
based on the first earphone switch control circuit provided in the foregoing embodiment, this embodiment provides an earphone switch control method applied to the foregoing circuit, where the method is executed by an earphone interface chip, and the method may include the following steps:
and sending a control signal to the cross analog switch and the control pin according to the detected earphone type, so that the cross analog switch switches the RING2 pin and/or the SLEVE pin in the audio socket to be grounded according to the control signal, and the control pin controls the first switch tube and/or the second switch tube connected with the grounded pin to be conducted according to the control signal.
In this embodiment, before the correct earphone type is detected by the earphone interface chip, the first switch tube and the second switch tube may both be in an off state.
The earphone switch control method provided by the embodiment comprises the following steps: and sending a control signal to the cross analog switch and the control pin according to the detected earphone type, so that the cross analog switch switches the RING2 pin and/or the SLEVE pin in the audio socket to be grounded according to the control signal, and the control pin controls the first switch tube and/or the second switch tube connected with the grounded pin to be conducted according to the control signal. The earphone interface chip in the embodiment controls the switching tube which is separated from the outside to be switched on or switched off according to the earphone type, and can be matched with different earphone types, so that partial performance parameters of the audio output signal are improved.
In one possible implementation, the method for detecting the type of the headset may include: detecting the earphone type of an earphone inserted into the audio socket according to the voltage value flowing through the audio socket; wherein the voltage values include a first voltage value flowing from the RING2 pin through the SLEVE pin and a second voltage value flowing from the SLEVE pin through the RING2 pin. Based on the OMTP and CTIA standards, the headset types may include, but are not limited to, three-segment headsets, four-segment CTIA-style headsets, and four-segment OMTP-style headsets. The four-segment CTIA earphone has the following pin definition sequence: microphone sleep pin, common RING2, headphone output right channel RING1 pin, headphone output left channel TIP pin; the four-section OMTP earphone has the following pin definition sequence: common ground sleep pin, microphone RING2, headphone output right channel RING1 pin, headphone output left channel TIP pin.
In the specific implementation process, the step of detecting the type of the earphone inserted into the audio jack according to the voltage value flowing through the audio jack may refer to the following steps shown in fig. 3:
step S302, when the first voltage value is equal to the second voltage value and is equal to zero, determining that the earphone inserted into the audio socket is a three-section earphone;
step S304, when the first voltage value is larger than the second voltage value, determining that the earphone is a four-segment CTIA earphone;
step S306, when the first voltage value is smaller than the second voltage value, the earphone is determined to be a four-section OMTP earphone.
Based on different earphone types, the control signals in the earphone switch control method of the circuit are correspondingly different:
when the earphone type is a four-section OMTP earphone, the control signal is a first control signal; the step of switching the RING2 pin and/or the sleep pin in the audio jack to ground according to the control signal may include: the RING2 pin is switched to ground according to the first control signal.
Correspondingly, the step of enabling the control pin to control the conduction of the first switch tube and/or the second switch tube connected with the grounded pin according to the control signal may include: the first control pin controls the conduction of a first switch tube connected with a RING2 pin according to a first control signal.
When the earphone type is a four-section CTIA type earphone, the control signal is a second control signal; the step of switching the RING2 pin and/or the sleep pin in the audio jack to ground according to the control signal may include: and switching the SLEEVE pin in the audio socket to be grounded according to the second control signal.
Correspondingly, the step of enabling the control pin to control the conduction of the first switch tube and/or the second switch tube connected with the grounded pin according to the control signal may include: and enabling the second control pin to control the conduction of a second switching tube connected with the SLEEVE pin according to a second control signal.
When the earphone type is a three-section type earphone, the control signal is a third control signal; in a specific implementation, the RING2 pin and the sleep pin can be controlled to be turned on simultaneously according to the third control signal, or the RING2 pin and the sleep pin can be controlled to be turned on only one of the pins.
In summary, in practical use, the above earphone switch control circuit and the earphone switch control method are tested, and compared with the problem that the THD and the separation performance of the audio output are poor when the existing interface chip uses the on-chip switch to be grounded, the embodiment can enable the size design of the switch tube to be not limited by the area of the chip by additionally arranging the switch tube outside the earphone interface chip, so that a low-resistance switch tube with a larger size can be provided, and thus, part of performance parameters of the audio output signal can be obviously improved.
Example three:
as shown in fig. 4, the present embodiment provides an electronic device, which includes a device body 200 and the earphone switch control circuit 100 in the first embodiment, where the earphone switch control circuit 100 is disposed in the device body 200.
Since the electronic device includes the earphone switch control circuit, the electronic device has the same technical features as the earphone switch control circuit, and for convenience and simplicity of description, the specific working process of the electronic device may refer to the corresponding explanation in the first embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

CN201910548139.2A2019-06-212019-06-21Earphone switch control circuit, earphone switch control method and electronic equipmentActiveCN110166878B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910548139.2ACN110166878B (en)2019-06-212019-06-21Earphone switch control circuit, earphone switch control method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910548139.2ACN110166878B (en)2019-06-212019-06-21Earphone switch control circuit, earphone switch control method and electronic equipment

Publications (2)

Publication NumberPublication Date
CN110166878Atrue CN110166878A (en)2019-08-23
CN110166878B CN110166878B (en)2020-08-07

Family

ID=67625430

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910548139.2AActiveCN110166878B (en)2019-06-212019-06-21Earphone switch control circuit, earphone switch control method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN110166878B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114827836A (en)*2021-01-222022-07-29昆腾微电子股份有限公司Circuit for improving separation degree of each sound channel of analog audio interface and audio system

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201536413U (en)*2009-10-192010-07-28青岛海信移动通信技术股份有限公司Headphone
CN102761803A (en)*2012-06-142012-10-31天地融科技股份有限公司Voice frequency interface self-adaptive device
CN105100991A (en)*2015-06-152015-11-25科泰乐讯(北京)通信设备有限公司Compatible method and device of earphone
KR20170010682A (en)*2015-07-202017-02-01삼성전자주식회사Method and apparatus for controlling output according to type of external output device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201536413U (en)*2009-10-192010-07-28青岛海信移动通信技术股份有限公司Headphone
CN102761803A (en)*2012-06-142012-10-31天地融科技股份有限公司Voice frequency interface self-adaptive device
CN105100991A (en)*2015-06-152015-11-25科泰乐讯(北京)通信设备有限公司Compatible method and device of earphone
KR20170010682A (en)*2015-07-202017-02-01삼성전자주식회사Method and apparatus for controlling output according to type of external output device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114827836A (en)*2021-01-222022-07-29昆腾微电子股份有限公司Circuit for improving separation degree of each sound channel of analog audio interface and audio system
CN114827836B (en)*2021-01-222025-04-08昆腾微电子股份有限公司Circuit for improving separation degree of each channel of analog audio interface and audio system

Also Published As

Publication numberPublication date
CN110166878B (en)2020-08-07

Similar Documents

PublicationPublication DateTitle
US9219476B2 (en)Electronic device interface switching system
US9338570B2 (en)Method and apparatus for an integrated headset switch with reduced crosstalk noise
TWI381663B (en)Control circuitry for providing an interface between connectable termingal and peripheral device circuitry
KR20150100916A (en)Detection circuit
CN102404665A (en)Earphone interface self-adaptation circuit
JP2010278691A (en) Audio device recognition apparatus and portable computer
US12135914B2 (en)Audio circuit, and device and control method related thereto
CN110166878B (en)Earphone switch control circuit, earphone switch control method and electronic equipment
CN105050001A (en)Headset compatible circuit and working method thereof
CN114697844A (en) Microphone circuit, microphone module and microphone sound pressure overload point raising method
CN111314817A (en)Switching control circuit, terminal equipment and switching control method
WO2018166286A1 (en)Method and device for connecting and using external antenna and mobile terminal
CN102638593A (en)Mobile phone
WO2020192376A1 (en)Determination circuit for positive and negative ends of earphone mic, method, and electronic device
CN111698634A (en)3.5mm earphone type detection circuitry
CN114696823A (en)Compensation circuit, method and device for audio DAC and storage medium
CN114071322A (en)Wireless and wired input earphone differential conversion common-ground device and common-ground method thereof
CN105187985B (en)Earphone with microphone signal MIC Yu GND automatic switching functions
EP2213085B1 (en)Electronic device interface switching system
CN104661149B (en)Signal processing circuit applied to earphone microphone set and related signal processing method
JP5492657B2 (en) Semiconductor switch circuit
CN218634199U (en)Switching on mute circuit and microphone
CN210274443U (en)Earphone system switching control circuit and device
CN221930078U (en)Crosstalk optimization circuit and terminal equipment
TWI768466B (en)Playback device and control method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp