CN105050001A - Headset compatible circuit and working method thereof - Google Patents
Headset compatible circuit and working method thereof Download PDFInfo
- Publication number
- CN105050001A CN105050001A CN201510478211.0A CN201510478211A CN105050001A CN 105050001 A CN105050001 A CN 105050001A CN 201510478211 A CN201510478211 A CN 201510478211A CN 105050001 A CN105050001 A CN 105050001A
- Authority
- CN
- China
- Prior art keywords
- microphone
- topological structure
- under
- voltage detecting
- detecting value
- 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.)
- Pending
Links
Landscapes
- Headphones And Earphones (AREA)
Abstract
The invention relates to the field of electronic technique, and more particularly to a headset compatible circuit. The headset compatible circuit comprises a switch circuit, a detection circuit and a processor chip. The switch circuit is connected between a microphone and a microphone input pin of the processor chip, and switches between a first topological structure and a second topological structure under the action of a control signal. Under the first topological structure, the positive pole of the microphone is connected with a first reference node, and the negative pole of the microphone is connected with a ground terminal. Under the second topological structure, the positive pole of the microphone is connected with the ground terminal, and the negative pole of the microphone is connected with the first reference node. The detection circuit is used for acquiring a first voltage detection value of the microphone under the first topological structure and acquiring a second voltage detection value of the microphone under the second topological structure. The processor chip is used for comparing the first voltage detection value with the second voltage detection value so as to control the switch circuit to work under the first topological structure or the second topological structure. The headset compatible circuit can automatically identify two standards of headsets, and can make right setting.
Description
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of earphone compatible circuit and method of work thereof.
Background technology
3.5mm earphone interface standard one general is in the market OMTP (OpenMobileTerminalPlatform, OMTP) standard, another kind is CTIA (CellularTelecommunicationsIndustryAssociation, wireless communication industry association of the U.S.) standard, wherein, the interface end of OMTP standard as shown in Figure 1, L channel from outside to inside respectively, R channel, microphone, ground wire, the interface end of CTIA standard as shown in Figure 2, L channel from outside to inside respectively, R channel, ground wire, microphone, because distinct electronic apparatuses follows different earphone interface standards, very large inconvenience is brought to user.
Summary of the invention
The object of the invention is to, a kind of earphone compatible circuit is provided, solves above technical problem;
The present invention also aims to, a kind of method of work of earphone compatible circuit is provided, solves above technical problem;
Technical problem solved by the invention can realize by the following technical solutions:
A kind of earphone compatible circuit,
Switching circuit, between the microphone input pin being connected to a microphone and processor chips, switches under the effect of a control signal between one first topological structure and one second topological structure;
Under described first topological structure, the positive pole of described microphone is connected with one first reference node, and the negative pole of described microphone is connected with earth terminal;
Under described second topological structure, the positive pole of described microphone is connected with earth terminal, and the negative pole of described microphone is connected with described first reference node;
Testing circuit, be connected with described processor chips and described microphone, obtain the first voltage detecting value of described microphone under working in described first topological structure respectively at described switching circuit, and under described switching circuit works in described second topological structure, obtain the second voltage detecting value of described microphone;
Processor chips, are connected with described testing circuit, and the size of more described first voltage detecting value and described second voltage detecting value works in described first topological structure to control described switching circuit or works in described second topological structure.
Earphone compatible circuit of the present invention, described processor chips are provided with GPIO mouth, and described control signal is exported by described GPIO mouth.
Earphone compatible circuit of the present invention, described processor chips are also provided with bias voltage pin, and for providing bias voltage, described first reference node is connected with described bias voltage by a biasing resistor.
Earphone compatible circuit of the present invention, described switching circuit comprises,
Control end, is connected with described control signal;
First input end, is connected with the positive pole of described microphone;
Second input, is connected with the negative pole of described microphone;
First output, is connected with described first reference node;
4th output, is connected with described earth terminal;
Second output, is connected with described 4th outlet internal;
3rd output, is connected with described first outlet internal;
Under the effect of described control signal,
Described first input end is connected with described first output, and described second input is connected with described second output;
Or,
Described first input end is connected with described second input, and described second input is connected with described 3rd output.
Earphone compatible circuit of the present invention, described first reference node is connected with the anode of described microphone input pin by the first electric capacity.
Earphone compatible circuit of the present invention, also comprises the second reference node, is connected, is connected the second resistance between described second reference node with described first reference node by the negative terminal of the second electric capacity with described microphone input pin.
Earphone compatible circuit of the present invention, described second reference node be connected the 3rd electric capacity between earth terminal.
Earphone compatible circuit of the present invention, described processor chips also comprise voltage sense pin, are connected with described second reference node by one the 3rd resistance.
The present invention also provides the method for work of earphone compatible circuit, for above-mentioned earphone compatible circuit,
Step 1, under the effect of described control signal, described voltage sense pin obtains the first voltage detecting value under the first topological structure and the second voltage detecting value under the second topological structure respectively;
Step 2, the size of more described first voltage detecting value and described second voltage detecting value,
When described first voltage detecting value is greater than described second voltage detecting value, under the effect of control signal, described switching circuit switches to the first topological structure;
When described first voltage detecting value is less than described second voltage detecting value, under the effect of control signal, described switching circuit switches to the second topological structure.
The present invention also provides a kind of electronic equipment, comprises above-mentioned earphone compatible circuit.
Beneficial effect: owing to adopting above technical scheme, the present invention can identify the earphone of two kinds of standards automatically, and can make correct setting.Adopt electronic equipment of the present invention can support the earphone of two kinds of standards simultaneously.
Accompanying drawing explanation
Fig. 1 is the earphone interface schematic diagram of OMTP standard;
Fig. 2 is the earphone interface schematic diagram of CTIA standard;
Fig. 3 is the head circuit schematic diagram of prior art;
Fig. 4 is head circuit schematic diagram of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
With reference to Fig. 4, a kind of earphone compatible circuit, wherein, comprises,
Switching circuit SW, between the microphone input pin being connected to a microphone and processor chips, switches under the effect of a control signal between the first topological structure and the second topological structure;
Under first topological structure, the positive pole MIC+ of microphone is connected with the first reference node Lx1, and the negative pole MIC-of microphone is connected with earth terminal GND;
Under second topological structure, the positive pole MIC+ of microphone is connected with earth terminal GND, and the negative pole MIC-of microphone is connected with the first reference node Lx1;
Testing circuit, is connected with processor chips and microphone, obtains the first voltage detecting value of microphone respectively at switching circuit SW under working in the first topological structure, and under switching circuit works in the second topological structure, obtain the second voltage detecting value of microphone;
Processor chips, are connected with testing circuit, the size comparing the first voltage detecting value and the second voltage detecting value with control switch circuit working in the first topological structure or work in the second topological structure.
Existing head circuit as shown in Figure 3.Bias voltage MICBIAS provides DC offset voltage by the positive pole MIC+ of resistance R1, microphone to microphone; The audio analog signals of microphone enters process chip by differential signal input MICP, MICN and processes; Detect pin ACCDECT then by detectable voltage signals, judge the different conditions of microphone.
" ground wire " signal of earphone interface is L channel, R channel, the earth-return that MIC shares, when the location swap of MIC and GND, original " L channel-ground " " R channel-ground " loop can be caused to become loop, " L channel-MIC-ground " " R channel-MIC-ground ", headphones sound becomes much little, MIC cisco unity malfunction.
The present invention makes mobile phone no longer distinguish OMTP standard earphone or CTIA standard earphone.Circuit as shown in Figure 4.Switching circuit SW is added in the middle of microphone and process chip.Control circuit is switched between the first topological structure and the second topological structure, with the earphone of compatible various criterion according to detection signal.
Earphone compatible circuit of the present invention, processor chips are provided with GPIO mouth, and control signal is exported by GPIO mouth.
Earphone compatible circuit of the present invention, processor chips is also provided with bias voltage MICBIAS pin, and for providing bias voltage MICBIAS, the first reference node Lx1 is connected with bias voltage MICBIAS by a biasing resistor R1.
Earphone compatible circuit of the present invention, switching circuit SW comprises,
Control end, is connected with control signal;
First input end a, is connected with the positive pole MIC+ of microphone;
Second input b, is connected with the negative pole MIC-of microphone;
First output 1, is connected with the first reference node Lx1;
4th output 4, is connected with earth terminal GND;
Second output 2, is connected with the 4th output 4 inside;
3rd output 3, is connected with the first output 1 inside;
Under the effect of control signal,
First input end a is connected with the first output 1, and the second input b is connected with the second output 2;
Or,
First input end a is connected with the second output 2, and the second input b is connected with the 3rd output 3.
Earphone compatible circuit of the present invention, the first reference node Lx1 is connected with the anode MICP of microphone input pin by the first electric capacity C1.
Earphone compatible circuit of the present invention, also comprises the second reference node Lx2, is connected with the negative terminal MICN of microphone input pin by the second electric capacity C2, is connected the second resistance R2 between the second reference node Lx2 with the first reference node Lx1.
Earphone compatible circuit of the present invention, the second reference node Lx2 be connected the 3rd electric capacity C3 between earth terminal GND.
Earphone compatible circuit of the present invention, testing circuit comprises one and is positioned at voltage sense pin ACCDET in processor chips, and voltage sense pin ACCDET is connected with the second reference node Lx2 by one the 3rd resistance R3, the voltage of microphone during Test earphone insertion.
A kind of specific embodiment, control signal GPIO is used for the plug-in strip of control switch circuit SW.Work as GPIO=1, when being high level, first input end a is connected with the first output 1, and the second input b is connected with the second output 2, and microphone forward connects; Work as GPIO=0, when being low level, first input end a is connected with the second output 2, and the second input b is connected with the 3rd output 3, microphone Opposite direction connection.The forward DC resistance Rf of microphone is greater than reverse D.C. resistance Rb, i.e. R
f>R
b.
When microphone just connects
U
ACCDECT-F=MICBIAS*Rf/(Rf+R1)(1)
When microphone reversal connection
U
ACCDECT-B=MICBIAS*Rb/(Rb+R1)(2)
Because R
f>R
b, so U
aCCDECT-F>U
aCCDECT-B.When mobile phone has detected that earphone inserts, processor chips have arranged GPIO=1, the voltage U of the voltage sense pin ACCDECT end of reading
aCCDECT1; Then GPIO=0 is set, reads the voltage U of ACCDECT end
aCCDECT0.Then U is compared
aCCDECT1and U
aCCDECT0size.
Work as U
aCCDECT1>U
aCCDECT0time, judge that ear microphone forward connects.GPIO=1 is set, head circuit can normally be worked.
Work as U
aCCDECT1<U
aCCDECT0time, judge ear microphone Opposite direction connection.GPIO=0 being set, by opening oppositely, head circuit can normally being worked.
Such mobile phone just can identify American Standard and GB earphone automatically, and can make correct setting.Mobile phone can support American Standard and GB two kinds of earphones simultaneously.
The present invention also provides a kind of method of work of earphone compatible circuit, for above-mentioned earphone compatible circuit, comprises the following steps:
Step 1, under the effect of control signal, voltage sense pin obtains the first voltage detecting value under the first topological structure and the second voltage detecting value under the second topological structure respectively;
Step 2, compares the size of the first voltage detecting value and the second voltage detecting value,
When the first voltage detecting value is greater than the second voltage detecting value, under the effect of control signal, switching circuit switches to the first topological structure;
When the first voltage detecting value is less than the second voltage detecting value, under the effect of control signal, switching circuit switches to the second topological structure.
The present invention also provides a kind of electronic equipment, comprises above-mentioned earphone compatible circuit.
These are only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.
Claims (10)
1. an earphone compatible circuit, is characterized in that, comprises,
Switching circuit, between the microphone input pin being connected to a microphone and processor chips, switches under the effect of a control signal between one first topological structure and one second topological structure;
Under described first topological structure, the positive pole of described microphone is connected with one first reference node, and the negative pole of described microphone is connected with earth terminal;
Under described second topological structure, the positive pole of described microphone is connected with earth terminal, and the negative pole of described microphone is connected with described first reference node;
Testing circuit, be connected with described processor chips and described microphone, obtain the first voltage detecting value of described microphone under working in described first topological structure respectively at described switching circuit, and under described switching circuit works in described second topological structure, obtain the second voltage detecting value of described microphone;
Processor chips, are connected with described testing circuit, and the size of more described first voltage detecting value and described second voltage detecting value works in described first topological structure to control described switching circuit or works in described second topological structure.
2. a kind of earphone compatible circuit according to claim 1, it is characterized in that, described processor chips are provided with GPIO mouth, and described control signal is exported by described GPIO mouth.
3. a kind of earphone compatible circuit according to claim 1, is characterized in that, described processor chips are also provided with bias voltage pin, and for providing bias voltage, described first reference node is connected with described bias voltage by a biasing resistor.
4. a kind of earphone compatible circuit according to claim 1, it is characterized in that, described switching circuit comprises,
Control end, is connected with described control signal;
First input end, is connected with the positive pole of described microphone;
Second input, is connected with the negative pole of described microphone;
First output, is connected with described first reference node;
4th output, is connected with described earth terminal;
Second output, is connected with described 4th outlet internal;
3rd output, is connected with described first outlet internal;
Under the effect of described control signal,
Described first input end is connected with described first output, and described second input is connected with described second output;
Or,
Described first input end is connected with described second input, and described second input is connected with described 3rd output.
5. a kind of earphone compatible circuit according to claim 1, is characterized in that, described first reference node is connected with the anode of described microphone input pin by the first electric capacity.
6. a kind of earphone compatible circuit according to claim 1, it is characterized in that, also comprise the second reference node, be connected by the negative terminal of the second electric capacity with described microphone input pin, between described second reference node with described first reference node, be connected the second resistance.
7. a kind of earphone compatible circuit according to claim 1, is characterized in that, described second reference node be connected the 3rd electric capacity between earth terminal.
8. a kind of earphone compatible circuit according to claim 1, it is characterized in that, described testing circuit comprises one and is positioned at voltage sense pin in described processor chips, described voltage sense pin is connected with described second reference node by one the 3rd resistance, the voltage of microphone when inserting for Test earphone.
9. a method of work for earphone compatible circuit, is characterized in that, for earphone compatible circuit according to claim 1, comprises the following steps:
Step 1, under the effect of described control signal, described voltage sense pin obtains the first voltage detecting value under the first topological structure and the second voltage detecting value under the second topological structure respectively;
Step 2, the size of more described first voltage detecting value and described second voltage detecting value,
When described first voltage detecting value is greater than described second voltage detecting value, under the effect of control signal, described switching circuit switches to the first topological structure;
When described first voltage detecting value is less than described second voltage detecting value, under the effect of control signal, described switching circuit switches to the second topological structure.
10. an electronic equipment, is characterized in that, comprises earphone compatible circuit according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510478211.0A CN105050001A (en) | 2015-08-06 | 2015-08-06 | Headset compatible circuit and working method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510478211.0A CN105050001A (en) | 2015-08-06 | 2015-08-06 | Headset compatible circuit and working method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105050001A true CN105050001A (en) | 2015-11-11 |
Family
ID=54456110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510478211.0A Pending CN105050001A (en) | 2015-08-06 | 2015-08-06 | Headset compatible circuit and working method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105050001A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107071650A (en) * | 2017-06-26 | 2017-08-18 | 深圳天珑无线科技有限公司 | Earphone detection circuit, method and terminal |
CN107678991A (en) * | 2017-09-30 | 2018-02-09 | 努比亚技术有限公司 | A kind of data processing method and terminal, computer-readable recording medium |
CN110049405A (en) * | 2018-01-15 | 2019-07-23 | 厦门雅迅网络股份有限公司 | A kind of Campatible car microphone circuit |
CN110572732A (en) * | 2019-07-19 | 2019-12-13 | 南昌华勤电子科技有限公司 | earphone standard and impedance measuring device and method |
CN111586518A (en) * | 2020-05-15 | 2020-08-25 | 深圳宝龙达信创科技股份有限公司 | Earphone compatible circuit, electronic device, control method, and computer-readable storage medium |
WO2024088208A1 (en) * | 2022-10-27 | 2024-05-02 | 维沃移动通信有限公司 | Electronic device and electronic device assembly |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638743A (en) * | 2011-02-09 | 2012-08-15 | 苹果公司 | Audio accessory type detection and connector pin signal assignment |
CN102957982A (en) * | 2011-08-18 | 2013-03-06 | 罗技欧洲公司 | Headset plug universal auto switcher |
CN103220614A (en) * | 2012-01-20 | 2013-07-24 | 天地融科技股份有限公司 | Audio interface type detection device |
CN103945317A (en) * | 2014-04-25 | 2014-07-23 | 矽力杰半导体技术(杭州)有限公司 | Detection method and circuit for detecting type of earphone connector |
CN104105046A (en) * | 2013-04-09 | 2014-10-15 | 宏碁股份有限公司 | Detection circuit |
-
2015
- 2015-08-06 CN CN201510478211.0A patent/CN105050001A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638743A (en) * | 2011-02-09 | 2012-08-15 | 苹果公司 | Audio accessory type detection and connector pin signal assignment |
CN102957982A (en) * | 2011-08-18 | 2013-03-06 | 罗技欧洲公司 | Headset plug universal auto switcher |
CN103220614A (en) * | 2012-01-20 | 2013-07-24 | 天地融科技股份有限公司 | Audio interface type detection device |
CN104105046A (en) * | 2013-04-09 | 2014-10-15 | 宏碁股份有限公司 | Detection circuit |
CN103945317A (en) * | 2014-04-25 | 2014-07-23 | 矽力杰半导体技术(杭州)有限公司 | Detection method and circuit for detecting type of earphone connector |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107071650A (en) * | 2017-06-26 | 2017-08-18 | 深圳天珑无线科技有限公司 | Earphone detection circuit, method and terminal |
CN107678991A (en) * | 2017-09-30 | 2018-02-09 | 努比亚技术有限公司 | A kind of data processing method and terminal, computer-readable recording medium |
CN110049405A (en) * | 2018-01-15 | 2019-07-23 | 厦门雅迅网络股份有限公司 | A kind of Campatible car microphone circuit |
CN110049405B (en) * | 2018-01-15 | 2022-02-18 | 厦门雅迅网络股份有限公司 | Compatible vehicle-mounted microphone circuit |
CN110572732A (en) * | 2019-07-19 | 2019-12-13 | 南昌华勤电子科技有限公司 | earphone standard and impedance measuring device and method |
CN110572732B (en) * | 2019-07-19 | 2021-08-03 | 南昌华勤电子科技有限公司 | Earphone standard and impedance measuring device and method |
CN111586518A (en) * | 2020-05-15 | 2020-08-25 | 深圳宝龙达信创科技股份有限公司 | Earphone compatible circuit, electronic device, control method, and computer-readable storage medium |
WO2024088208A1 (en) * | 2022-10-27 | 2024-05-02 | 维沃移动通信有限公司 | Electronic device and electronic device assembly |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105050001A (en) | Headset compatible circuit and working method thereof | |
CN202634659U (en) | Earphone interface self-adaptive circuit and mobile terminal | |
CN102404665B (en) | A kind of earphone interface adaptive circuit | |
CN101431708A (en) | Terminal and method for recognizing headphone type | |
EP2706463A1 (en) | Method and apparatus for detecting insertion of external audio outputting device in electronic device | |
CN201142743Y (en) | Headphone interface circuit and mobile phone with the same | |
CA2876696C (en) | Audio interface self-adaption device | |
US20150098579A1 (en) | Method and apparatus for an integrated headset switch with reduced crosstalk noise | |
CN103220614B (en) | A kind of audio interface type detection device | |
CN102769810B (en) | A kind of mobile terminal preventing call misoperation | |
CN104618836A (en) | Communication device | |
CN101287202A (en) | Earphone detecting method for mobile terminal | |
CN103188594A (en) | Detection circuit and detection method for earphone | |
CN106465005A (en) | Earphone type identification method, apparatus and terminal device | |
CN201750528U (en) | Audio processing device | |
CN102685639A (en) | An electronic device and an audio accessory having a plurality of passive switches for controlling the audio device | |
CN202721789U (en) | Audio interface adaptive device | |
CN105120390A (en) | Headphone socket, headphone plug and electronic device | |
CN204968070U (en) | Earphone socket, Headphone plug and electronic equipment | |
CN203883981U (en) | Headset with microphone signal MIC and GND automatic switching function | |
US20130259276A1 (en) | Earphone jack and earphone interface circuit and electronic device | |
CN104602164B (en) | Earphone is from adapter circuit and electronic equipment | |
CN107635171B (en) | Circuit for improving earphone compatibility | |
CN207995366U (en) | A kind of earphone compatible circuit and electric terminal | |
KR20110019841A (en) | Method and apparatus for improving audio channel cross talk in portable terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151111 |
|
RJ01 | Rejection of invention patent application after publication |