CN107995544B - Voltage control circuit, headset type detection configuration circuit, driving circuit and method - Google Patents

Voltage control circuit, headset type detection configuration circuit, driving circuit and method Download PDF

Info

Publication number
CN107995544B
CN107995544B CN201711139452.8A CN201711139452A CN107995544B CN 107995544 B CN107995544 B CN 107995544B CN 201711139452 A CN201711139452 A CN 201711139452A CN 107995544 B CN107995544 B CN 107995544B
Authority
CN
China
Prior art keywords
circuit
pin
voltage
detection
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.)
Active
Application number
CN201711139452.8A
Other languages
Chinese (zh)
Other versions
CN107995544A (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.)
SHENZHEN X-POWERS TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN X-POWERS TECHNOLOGY 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 SHENZHEN X-POWERS TECHNOLOGY Co Ltd filed Critical SHENZHEN X-POWERS TECHNOLOGY Co Ltd
Priority to CN201711139452.8A priority Critical patent/CN107995544B/en
Publication of CN107995544A publication Critical patent/CN107995544A/en
Application granted granted Critical
Publication of CN107995544B publication Critical patent/CN107995544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1058Manufacture or assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback

Abstract

The present invention relates to a kind of voltage control circuit, headset type detection circuit, the methods of earphone driving circuit and each circuit, wherein voltage control circuit has input node VIN, output node VOUT, the input node VIN provides stable voltage, the voltage that the output node VOUT output is slowly increased or slowly reduced for the voltage control circuit.

Description

Voltage control circuit, headset type detection configuration circuit, driving circuit and method
Technical field
The present invention relates to earphone fields, and in particular to headset type detects configuration circuit, with the detection configuration circuit Voltage control circuit and its method in driving circuit, detection process.
Background technique
Common headphone can be divided into three-section earphone (not shown) and four-section type headset (such as Fig. 4 by type of plug Middle earphone 12), three terminals definition of three-section earphone plug is respectively: tip (Tip) connects L channel, intermediate ring (Ring) Connect right channel, end (Sleeve) ground connection.Four terminals of four-section type headset plug there are two types of standard define, the first be with CTIA standard based on the U.S.: tip (Tip) connects L channel, intermediate ring 1 (Ring1) connects right channel, intermediate ring 2 (Ring2) ground connection, end (Sleeve) connect microphone;It is for second the OMTP standard based on Europe: tip (Tip) connection L channel, intermediate ring 1 (Ring1) connect right channel, intermediate ring 2 (Ring2) connects microphone, end (Sleeve) ground connection.Two It is opposite that the intermediate ring 2 (Ring2) for being a difference in that plug and end (Sleeve) of kind four-part form plug, which define,.
When in the earphone socket of earphone insertion audio frequency apparatus, each terminal of headset plug need to be with phase on electronic audio device The driving signal answered is connected, and earphone could be enabled to work normally.In order to make the earphone of the compatible different type of plug of electronic audio device, Current audio equipment can first detect headset plug type after being inserted into four-section type headset, be obtained later according to detection Headset plug type enables each terminal of plug be coupled with correct signal end.Its testing principle is generally as follows.
Fig. 1 is the electronic structure schematic diagram of microphone in four-section type headset.As shown in Figure 1, in general four-section type headset Microphone 2A has polarity, and the drain electrode of the N-type technotron of output end, source electrode both ends are equipped with a diode.When When microphone both ends apply forward bias voltage, microphone is worked normally, and pressure drop is the pressure drop that microphone works normally;When When microphone both ends apply reverse bias voltage, diode current flow, microphone short circuit, the pressure drop at microphone both ends at this time is two poles Pressure drop after pipe conducting.Audio frequency apparatus is in the type of detection insertion earphone, by detecting the pressure drop of microphone, to judge ear Machine type.
Currently, the left and right acoustic channels output end of amplifying circuit is usually all connected with Zuo Beier circuit in audio frequency apparatus, to improve ear The high frequency response of machine, after earphone is inserted into audio frequency apparatus, the left and right acoustic channels pin (i.e. tip T ip and centre ring Ring1) of earphone It is connect with the left and right acoustic channels output end of amplifying circuit, and is also all connected with Zuo Beier circuit.When the four of audio frequency apparatus detection insertion When segmentation headset type, if the microphone both ends of earphone have been applied forward voltage, as shown in Fig. 2, it is equivalent electricity at this time Lu Tu, Zuo Beier circuit is not turned at this time;If the microphone both ends of earphone have been applied backward voltage, as shown in figure 3, it is Equivalent circuit diagram at this time, Zuo Beier circuit is connected at this time, generates immediate current, and then enables the earphone in insertion audio frequency apparatus The noise for issuing " Pi puff-clicker " (Pop-Click), keeps the sense of hearing of audio frequency apparatus poor.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, when a kind of test earphone is provided There is no noise, the preferable voltage control circuit of sense of hearing, headset type detection configuration circuit and its method.
A kind of voltage control circuit has input node VIN, and output node VOUT, the input node VIN are the electricity The voltage of voltage-controlled circuit with stable processed, the voltage that the output node VOUT output is slowly increased or slowly reduced.
A kind of headset type detection configuration circuit, is connected, for examining with the first pin of earphone socket, second pin Survey, configuration insertion earphone socket in earphone operating circuit, earphone socket also have there are two audio pin, put for connecting audio Two audio outputs of big circuit, the headset type detection configuration circuit have detection pattern and configuration mode, including upper Voltage control circuit, configuration circuit and detection circuit are stated,
The input node VIN connection microphone bias circuit of the voltage control circuit, in detection pattern The slow voltage increased or slowly reduce the output node VOUT,
The configuration circuit connect the output node VOUT of the voltage control circuit, earphone socket described first The input terminal of pin, the second pin, the detection circuit, in detection pattern season first pin, described the A pin in two pins is connected to the output node VOUT, another pin ground connection, to pass through voltage control electricity Road slowly increase or slowly reduce with the voltage of the output node VOUT pin connecting, be also used in detection pattern season institute The input terminal for stating detection circuit is connected with first pin or the second pin for being connected to the output node VOUT;
The detection circuit is used to obtain the operating circuit connection type of the earphone of insertion earphone socket, and output end is used for The testing result of the operating circuit connection type obtained is fed back, to enable the configuration circuit configure described first in operating mode The connection type of pin, the second pin.
A kind of earphone driving circuit, for connecting earphone socket, wherein there are two audio pin, first to draw for earphone socket tool Foot and second pin, which is characterized in that detect configuration circuit, audio amplifier circuit, two assistant shellfishes including above-mentioned headset type That circuit, microphone signal amplifying circuit,
The audio amplifier circuit has L channel output end, right channel output end, is connected respectively with two audio pins It connects, is also respectively connected with the input terminal of two Zuo Beier circuits;
The output end of the Zuo Beier circuit is grounded;
The microphone signal amplifying circuit has two input terminals, is separately connected first pin, the second pin;
When detection pattern, the configuration circuit is connected the voltage control circuit, earphone socket, is inserted into earphone socket The detection path of earphone, the Zuo Beier circuit, and the detection is slowly raised and lowered by the voltage control circuit and is led to Electric current in road.
A kind of voltage control method, by voltage control circuit output voltage, the voltage control circuit has input Node VIN, output node VOUT, the voltage control method include the following steps:
Stable voltage is obtained by the input node VIN;
The voltage for slowly increasing or slowly reducing is exported to the output node VOUT by the voltage control circuit.
A kind of method of headset type detection configuration detects configuration circuit detection, configuration insertion earphone by headset type The operating circuit of earphone in socket, first pin of the headset type detection configuration circuit with earphone socket, second pin phase Connection, earphone socket also have there are two audio pin, for connecting two audio outputs of audio amplifier circuit, the earphone Type detection configuration circuit has detection pattern and a configuration mode, headset type detection configuration circuit include configuration circuit, Voltage control circuit, detection circuit, the configuration circuit connect the output node VOUT of the voltage control circuit, described first The input terminal of pin, the second pin, the detection circuit, the input node VIN connection Mike of the voltage control circuit The method of the output end of windage yaw circuits, headset type detection configuration includes the following steps:
One pin connects the output node VOUT in detection pattern season first pin or the second pin, Another pin ground connection, enables the input terminal of the detection circuit be connected with first pin or the second pin, wherein institute The pin for stating detection circuit connection is connected with the output node VOUT;
First pin connecting with the output node VOUT or institute are slowly increased by the voltage control circuit State the voltage of second pin;
First pin of connection or the voltage of the second pin are obtained, by the detection circuit to obtain insertion The connection type of the operating circuit of earphone in earphone socket;
After the connection type for obtaining earphone operating circuit, is slowly reduced by the voltage control circuit and saved with the output First pin of point VOUT connection or the voltage of the second pin.
A kind of method of headset type detection configuration detects configuration circuit detection, configuration insertion earphone by headset type The operating circuit of earphone in socket, there are two audio pin, the first pin, second pin, the earphones for the earphone socket tool Type detection configuration circuit includes configuration circuit, voltage control circuit, detection circuit, and the input terminal of the voltage control circuit connects Connect microphone bias circuit output end its include the following steps:
By the configuration circuit be connected the voltage control circuit, Zuo Beier circuit, the earphone socket and earphone it Between detection path, enable one pin in first pin or the second pin connect the output of the voltage control circuit Node VOUT, another pin ground connection, and enable the detection circuit and first pin or institute that connect microphone bias circuit Second pin is stated to be connected;
The electric current in the detection path is slowly increased by the voltage control circuit, to lead in the Zuo Beier circuit The electric current in the Zuo Beier circuit is slowly increased when logical;
It is obtained and first pin of microphone bias circuit connection or the second pin by the detection circuit Voltage, to obtain the connection type of earphone operating circuit;
After the connection type for obtaining earphone operating circuit, slowly reduced in detection path by the voltage control circuit Electric current, slowly to reduce the electric current in the Zuo Beier circuit in Zuo Beier circuit conducting.
After earphone is inserted into the audio frequency apparatus with above-mentioned headset type detection circuit or earphone driving circuit, obtaining And when configuring the operating circuit of earphone of insertion, " Pi puff-clicker " (Pop-Click) noise that earphone will not generate, order has The audio frequency apparatus sense of hearing of headset detection configuration circuit is more preferably.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the structural schematic diagram of ear microphone;
Fig. 2 is the equivalent circuit diagram that microphone both ends have been applied forward voltage when detecting four-section type headset;
Fig. 3 is the equivalent circuit diagram that microphone both ends have been applied backward voltage when detecting four-section type headset;
Fig. 4 is the structural representation that an embodiment of earphone driving circuit for configuration circuit is detected with headset type of the present invention Figure;
Fig. 5 is the structural schematic diagram that headset type of the present invention detects one embodiment of configuration circuit;
Fig. 6 is the structural schematic diagram of the detection path of circuit diagram shown in Fig. 4;
Fig. 7 is the structural schematic diagram of one embodiment of voltage control circuit of the present invention;
Fig. 8 is the structural schematic diagram of one embodiment of voltage control circuit of the present invention;
Fig. 9 is the structural schematic diagram of one embodiment of voltage control circuit of the present invention;
Figure 10 is the structural schematic diagram that headset type of the present invention detects one embodiment of configuration circuit;
Figure 11 is the structural schematic diagram that headset type of the present invention detects one embodiment of configuration circuit;
Figure 12 is the structural schematic diagram that headset type of the present invention detects one embodiment of configuration circuit;
Figure 13 is the structural schematic diagram that headset type of the present invention detects one embodiment of configuration circuit;
Figure 14 is the earphone driving circuit test earphone operating circuit that headset type shown in application drawing 10 detects configuration circuit Equivalent circuit diagram, insertion earphone be three-section earphone;
Figure 15 is the earphone driving circuit test earphone operating circuit that headset type shown in application drawing 10 detects configuration circuit Equivalent circuit diagram, insertion earphone be four-part form CTIA standard earphone;
Figure 16 is the earphone driving circuit test earphone operating circuit that headset type shown in application drawing 10 detects configuration circuit Equivalent circuit diagram, insertion earphone be four-part form OMTP standard earphone;
Figure 17 is the flow chart that headset type of the present invention detects one embodiment of configuration method;
Figure 18 is that headset type of the present invention detects the flow chart that one embodiment of incipient stage is detected in configuration method;
Figure 19 is that headset type of the present invention detects the flow chart that one embodiment of ending phase is detected in configuration method;
Figure 20 its be one embodiment of voltage control method of the present invention flow chart.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing Give better embodiment of the invention.But the invention can be realized in many different forms, however it is not limited to herein Described embodiment.On the contrary, the purpose of providing these embodiments is that making to understand more the disclosure Add thorough and comprehensive.
It should be noted that it can directly on the other element when element is referred to as " being set to " another element Or there may also be elements placed in the middle.When an element is considered as " connection " another element, it, which can be, is directly connected to To another element or it may be simultaneously present centering elements.
As shown in figure 4, it is the reality for detecting the earphone driving circuit 11 of configuration circuit 10 with headset type of the present invention Apply the structural schematic diagram of example.
Earphone driving circuit 11 connects earphone socket 20, and the earphone 12 in insertion earphone socket 20 is driven to work, in Fig. 4 The earphone 12 of insertion is four-section type headset, and earphone driving circuit 11 includes: audio amplifier circuit 30, Zuo Beier circuit 40, Mike Windage yaw circuits 50, microphone signal amplifying circuit 60 and headset type detect configuration circuit 10.Wherein, audio amplifier circuit 30 For amplifying audio signal, input terminal connects main circuit, and output end connects two of Zuo Beier circuit 40 and earphone socket 20 Audio pin 21;Microphone amplifying circuit 60 is for amplifying the microphone voice signal in earphone, input terminal connection The first pin 22 and second pin 23 of earphone socket 20, output end connect main circuit;Headset type, which detects configuration circuit 10, to be had There are a detection pattern and configuration mode, for detecting the work when earphone in insertion earphone socket 20 works normally when detection pattern Circuit, for configuring the operating circuit of earphone when configuration mode, input terminal connects microphone bias circuit 50, output end connection The first pin 22 and second pin 23 of earphone socket 20;Microphone bias circuit 50 is used for as the ear in insertion earphone socket 20 Microphone in machine provides detection and operating current, and input terminal connects main circuit;Electric 40 tunnels of assistant Bell are for improving earphone High frequency response, output end ground connection.Main circuit refers in audio frequency apparatus except audio amplifier circuit 30, Zuo Beier circuit 40, microphone Remaining circuit outside biasing circuit 50, microphone signal amplifying circuit 60 and headset type detection configuration circuit 10.
Audio amplifier circuit 30 has L channel output end HPOUTL, right channel output end HPOUTR, audio amplifier circuit 30 enable it be connected with earphone socket 20 by the operation on playback equipment.
Helping Bell's circuit 40 is two, two input terminal is separately connected the left and right acoustic channels output end of audio amplifier circuit 30 HPOUTL, HPOUTR, two output ends are grounded.Specifically, wherein assistant Bell's circuit includes sequentially connected capacitor C3, electricity R3, resistance R3 ground connection are hindered, another assistant Bell's circuit includes sequentially connected capacitor C4, resistance R4, resistance R4 ground connection.
Headset type detects the output end MBIASOUT of the input terminal connection microphone bias circuit of configuration circuit 10, earphone There are two output end P_Ring2, P_Sleeve for the tool of type detection configuration circuit 10, and first for being separately connected earphone socket draws Foot 22 and second pin 23.
There are two input terminal MICINP, MICINN for the tool of microphone signal amplifying circuit 60, are separately connected on earphone socket The first pin 22 and second pin 23 being connect with output end P_Ring2, P_Sleeve.
There are two audio pin 21, the first pin 22 and second pins 23 for the tool of earphone socket 20.Two audio pins 21 First end is separately connected left and right acoustic channels output end HPOUTL, HPOUTR of audio amplifier circuit 30, is also respectively connected with two assistant shellfishes The input terminal of your circuit 40, second end are separately connected the tip T (L channel end) of earphone 12, centre ring R1 (right channel end).The The first end of one pin 22 connects 10 output end P_Ring2 of earphone type detection configuration circuit, and second end connects the centre of earphone Ring R2 (ground terminal of CTIA standard earphone or the microphone end of OMTP standard earphone).The first end engaging lug of second pin 23 10 output end P_Sleeve of machine type detection configuration circuit, second end then connect the end S (Mike of CTIA standard earphone of earphone The ground terminal of wind end or OMTP standard earphone).The (not shown) when being inserted into earphone and being three-section earphone, the first pin 22, second The second end of pin 23 is all connected with the end (ground terminal) of earphone.
When detection pattern, in the first pin 22 and second pin 23 of earphone socket 20, the first end of one of them passes through Headset detection configuration circuit 10 is connected to microphone bias circuit 50, another first end passes through headset detection configuration circuit 10 Ground connection.When configuration mode, if the earphone for detecting insertion is four-section type headset connection type, draw in the first pin 22 or the second In foot 23, wherein detecting that pin at the microphone end of second end connection earphone 12, its first end connection microphone is configured Biasing circuit 50;That pin for wherein detecting the ground terminal of second end connection earphone 12, configures its first end ground connection;If inspection The earphone for measuring insertion is three-section earphone connection type, then configures the first pin, the first end of second pin is grounded.
It is the structural representation of 10 1 embodiment of earphone type detection configuration circuit in Fig. 4 also referring to Fig. 5, Fig. 6, Fig. 5 Figure, Fig. 6 are the structural schematic diagram of Fig. 4 detection path.
It includes: configuration circuit 100, voltage control circuit 200, detection circuit 300 that headset type, which detects configuration circuit 10,.When When earphone is inserted into earphone socket 20, start detection pattern, at this point, as shown in fig. 6,100 conducting voltage of configuration circuit control electricity Road 200 and Zuo Beier circuit 40, earphone socket 20, the detection path between earphone 12, to obtain the work of the normal work of earphone 12 Make circuit;After detection pattern, start configuration mode, the work that configuration circuit 100 is worked normally according to the earphone 12 of acquisition Circuit configures the operating circuit of earphone.
The output node VOUT of the first connecting pin 1 connection voltage control circuit 200 of configuration circuit 100;Second connection end 2, third connecting pin 3 is separately connected output end P_Ring2, output end P_Sleeve, to connect the first pin, second pin;The The input terminal TIN of four connecting pins, 4 connection detection circuit 300;The output end of 5th connecting pin 5 connection voltage offset electric circuit The input node VIN of MBIASOUT, voltage control circuit 200.
Configuration circuit 100 is in seasonal first pin of detection pattern or second pin, a pin to be connected to voltage Control circuit 200, another pin ground connection, with conduction detection access.When configuration circuit 100 is also used to detection pattern, detection is enabled Circuit 300 is connected with the first pin or second pin for being connected to voltage control circuit 200, to enable detection circuit 300 obtain The pin voltage, and the voltage that will acquire is compared with preset value, and then obtains the connection type of the operating circuit of earphone.Tool Body, as shown in table 1, when detection pattern (such as detection pattern 1), the second connection of first connecting pin 1 connection of configuration circuit 100 End 2, so that the first pin connecting with second connection end 2 is connected to the voltage control circuit 200 connecting with the first connecting pin 1, The third connecting pin 3 of configuration circuit 100 is grounded, so that the second pin ground connection being connect with third connecting pin 3, at this point, configuration electricity 4th connection 4 on road 100 is also connect with 2 line of second connection end, to detect the voltage of the first pin;Alternatively, detection pattern (such as Detection pattern 2) when, the first connecting pin 1 of configuration circuit 100 connects third connecting pin 3, so as to connect with third connecting pin 3 Second pin is connected to the voltage control circuit 200 connecting with the first connecting pin 1, and the second connection end 2 of configuration circuit 100 connects Ground, so that the first pin ground connection being connect with second connection end 2, at this point, the 4th connection 4 of configuration circuit 100 is connect with third 3 lines are held to connect, to detect the voltage of second pin.When detection pattern, detection pattern 1 or detection pattern 2 can be selected as needed.
Table 1
When configuration circuit 100 is also used to configuration mode, be connected between the 5th connecting pin 5 and microphone bias circuit output end Access, to enable voltage control circuit 200 short-circuit, so that microphone bias circuit 50 is directly connected to the first pin or second pin It powers for it;And enable the first pin, in second pin for that pin ground connection of ground connection, enable the first pin, second pin In that pin for connecting voltage control circuit 200 be connected to the pin of voltage control circuit 200.Specifically, such as 2 institute of table Show, when configuration mode, if testing result is the microphone end that the first pin connects earphone, the second connection of configuration circuit 100 2 the 5th connecting pins 5 of connection of end, third connecting pin ground connection, when the first connecting pin 1, the 4th connecting pin 4 can both keep detection pattern State can also disconnect;If testing result is the ground terminal that the first pin connects earphone, the second connection end 2 of configuration circuit 100 Ground connection, third connecting pin 3 connect the 5th connecting pin 5, the first connecting pin 1, shape when the 4th connecting pin 4 can both keep detection pattern State can also disconnect.
Table 2
The output end MBIASOUT of the input node VIN connection microphone bias circuit 50 of voltage control circuit 200, output First connecting pin 1 of node VOUT connection configuration circuit 100, for provide microphone bias circuit 50 in detection pattern Burning voltage is converted into the voltage for slowly increasing or slowly reducing, and is exported by output node VOUT, slowly to increase or delay The slow electric current reduced in detection path, and then when the Zuo Beier circuit 40 in detection path is connected, it is slow to capacitor therein Charging.This will be described in detail below.
In the present embodiment, in the operating circuit with the earphone postponed, the first pin 22 or second pin 23 pass through output end P_Ring2 or output end P_Sleeve is directly connected to microphone bias circuit, i.e. the first pin 22 or second pin 23 does not pass through Voltage control circuit is connected to microphone bias circuit.In other embodiments, in the operating circuit of earphone, the first pin 22 or Second pin 23, which also may not need, directly to be connect with microphone bias circuit 50, for example, omit connecting pin 5, the first pin 22 or Second pin 23 is connected to microphone bias circuit by voltage control circuit, and voltage control circuit can drive earphone wheat at this time Gram wind, makes its normal work.Specifically, detection pattern is same as the previously described embodiments at this time, when configuration mode, as shown in table 3, if First pin 22 connects microphone end, then second connection end 2 connects the first connecting pin 1, and third connecting pin 3 is grounded, the 4th connection End 4 can both keep state when detection pattern, can also disconnect;If second pin 22 connects microphone end, second connection end 2 is connect Ground, third connecting pin 3 connect the first connecting pin 1, and the 4th connecting pin 4 can both keep state when detection pattern, and can also disconnect.
Table 3
Referring to Figure 4 together, Fig. 5, Fig. 6, above-mentioned headset type detect configuration circuit after earphone is inserted into earphone socket 20, Into detection pattern, by 100 conduction detection access of configuration circuit, when detection pattern starts, voltage control circuit 200 is by wheat The stable voltage that gram windage yaw circuits provide is converted into slow raised output voltage, and then slowly increases in detection path Electric current, when the Zuo Beier circuit conducting in detection path, the capacitor in Zuo Beier circuit in detection path by slowly increasing Electric current slowly charge, and then the electric current in Zuo Beier circuit is enabled slowly to increase;At the end of detection pattern detects, voltage control electricity The stable voltage that road 200 provides microphone bias circuit is converted into the output voltage slowly reduced, and then slowly reduces inspection The electric current in access is surveyed, when helping the conducting of Bell's circuit, capacitor in Zuo Beier circuit in detection path by slowly reducing Electric current slowly discharges, and then enables the electric current slowly reduced in Zuo Beier circuit.Enter configuration mode after detection pattern, leads to Cross the operating circuit that configuration circuit 100 configures earphone.
In detection pattern, microphone bias circuit 50 detects configuration circuit 10 by above-mentioned headset type as detection path confession Electricity will not enable Zuo Beier circuit as existing earphone driving circuit when the Zuo Beier circuit 40 in detection path is connected In capacitor generate immediate current in the course of charging and discharging, but exported by voltage control circuit 200 slowly varying Voltage, slow charge and discharge generate the electric current gradually changed.In this way when earphone is inserted into above-mentioned headset type detection circuit After 10 audio frequency apparatus, when obtaining and configuring the operating circuit of earphone of insertion, " Pi puff-clicker " that earphone will not generate (Pop-Click) noise enables the audio frequency apparatus sense of hearing with headset detection configuration circuit 10 more preferably.
As shown in fig. 7, it is the structural schematic diagram of 200 1 embodiment of voltage control circuit of the present invention.
Voltage control circuit 200 includes: that capacitor Cr, constant-current source I1, charge switch S11, discharge switch S12 and charge and discharge are automatically controlled Circuit 211 processed.The output node VOUT of the first end connection voltage control circuit 200 of capacitor Cr, the second end ground connection of capacitor Cr. Constant-current source I1 is used to be the capacitor charging, and input terminal connects the input node VIN of voltage control circuit, to connect microphone The output end MBIASOUT of biasing circuit 50, output end are connected to the first end of capacitor Cr by charge switch S11.Charge switch S11 is used to that the charging path between constant-current source I1 and capacitor Cr to be connected, to enable capacitor charging.Discharge switch S12 connection capacitor Cr First end, and by the first end of capacitor Cr be grounded, for the discharge path of capacitor Cr to be connected, with enable capacitor Cr discharge.Charge and discharge Electric control circuit 211 connects charge switch S11, for controlling between charge switch S11 interval conducting constant-current source I1 and capacitor Cr Charging path keep the first end of capacitor Cr slow to output node VOUT output to enable constant-current source I1 as capacitor Cr intermittent charge Slow raised voltage;Charge-discharge control circuit 211 is also connected with discharge switch S12, for controlling discharge switch S12 interval electric conduction Hold the discharge path of Cr, to enable capacitor Cr intermittent discharge, and the electricity slowly reduced is exported to output node VOUT by first end Pressure.Wherein, the size control that voltage control circuit 200 passes through the closing time and constant-current source I1 of control charge switch or discharge switch The output voltage of capacitor Cr processed and its charge and discharge time.
In the present embodiment, microphone bias circuit 50, constant-current source I1, the S11 of closure, capacitor Cr, between formed charging Access;The capacitor Cr (S12 closure) of two-terminal-grounding, between form discharge path.Also, during capacitor Cr intermittent charge, i.e., When charging path is connected by S11 interval, discharge path is open circuit (S12 disconnection);During capacitor Cr intermittent discharge, i.e., electric discharge is logical When road is connected by S12 interval, charging path is open circuit (S11 disconnection).In other embodiments, the second end of capacitor Cr can also be with Other circuits (and non_direct ground, such as connection second circuit) is connected, to form the charging circuit of capacitor, discharge switch S12 The first end of capacitor Cr can also be connected to other circuits (and non_direct ground, such as connect the first circuit), to form capacitor Discharge circuit.
Above-mentioned voltage control circuit 200, when detecting beginning in detection pattern, constant-current source connects microphone bias circuit 50 Output end MBIASOUT, and the first end intermittent charge for being capacitor Cr by S11 interval conducting, so that the voltage of capacitor Cr is slow It is slow to increase, and then the voltage that microphone bias circuit 50 inputs is converted into the slowly raised output electricity of voltage control circuit 200 Pressure.At the end of detecting in detection pattern, the charging path (S11 disconnection) of breaking capacitance Cr is simultaneously connected by S12 interval by capacitor Cr first end ground connection, so that it slowly discharges, so that voltage control circuit 200 be enabled to export the voltage slowly reduced.
As shown in figure 8, it is the structural schematic diagram of another embodiment of voltage control circuit 200 of the present invention.
In one specific embodiment, charge-discharge control circuit 211 is connected with the main control circuit of control voltage control circuit 200 It connects, for obtaining control signal, to control charge switch S11, discharge switch S12.Wherein main control circuit is for controlling earphone The on-off of each access in type detection configuration circuit 10 is the circuit in main circuit.
Charge-discharge control circuit 211 includes: that periodic pulse signal generates unit 2111, the first gate circuit unit U1, second Gate circuit unit U2.Wherein, periodic pulse signal generate unit 2111 be connected with main control circuit, master control circuit controls its Starting is closed;The input terminal connection periodic pulse signal of first gate circuit unit U1 generates the output end of unit 2111, separately One input terminal connects main control circuit, and to obtain first control signal, output end connects charge switch S11, the first gate circuit Unit be used for according to first control signal, charging control signal from periodic pulse signal to charge switch S11 sending cycle, with Make capacitor intermittent charge;Second gate circuit unit U2, one input end connect the output that periodic pulse signal generates unit 2111 End, another input terminal connect main control circuit, and to obtain second control signal, output end connects discharge switch S12, and second Circuit unit be used for according to second control signal, discharge control signal from periodic pulse signal to charge switch sending cycle, So that capacitor intermittent discharge.
Further, the first gate circuit unit U1 is NAND gate circuit unit, and the second gate circuit unit U2 is AND gate circuit Unit, when capacitor Cr charges, first control signal is high level signal, and second control signal is low level signal;Capacitor Cr is put When electric, first control signal is low level signal, and second control signal is high level signal.Wherein, first control signal is kept It can control in the threshold region that charge switch is opened or closed, second control signal remains able to control discharge switch and disconnects Or in the threshold region of closure.In other embodiments, when capacitor Cr can also be enabled to charge, first control signal is low level letter Number, second control signal is high level signal;When capacitor Cr discharges, first control signal is high level signal, the second control letter Number be low level signal.
The principle that output voltage is slowly raised and lowered in above-mentioned voltage control circuit 200 is as follows.
Voltage control circuit 200 exports slow raised voltage specifically, enabling first control signal is high level signal, when When periodic pulse signal is low level when signal, charge switch S11 closure is controlled by NAND gate circuit, is charged for capacitor Cr, When periodic pulse signal is that high level signal is flat, control charge switch S11 is disconnected, and charging path is connected in such period, for electricity Hold Cr intermittent charge.At this point, second control signal is low level signal, unit is generated with recurrent pulse and passes through AND gate circuit control Discharge switch S12 processed is disconnected.It is continuously capacitor Cr intermittent charge, until the output voltage and microphone of voltage control circuit 200 The input voltage of biasing circuit 50 is identical, stops charging to capacitor Cr.For example, enabling the first control believe after the two voltage is identical Number become low level signal, to disconnect charge switch S11.
Voltage control circuit 200 export the voltage slowly reduced specifically, enable second control signal be high level signal, when When periodic pulse signal is high level when signal, discharge switch S12 closure is controlled by AND gate circuit, is discharged for capacitor Cr, when Usually for low level signal, control discharge switch S12 is disconnected periodic pulse signal, and then discharge path is connected in the period, is capacitor Cr intermittent discharge.At this point, first control signal is low level signal, unit is generated with recurrent pulse and passes through NAND gate circuit control Charge switch S11 processed is disconnected.It is continuously capacitor Cr intermittent discharge, until the output voltage of voltage control circuit 200 is reduced to 0V, is stopped Only discharge capacitor Cr.For example, enabling second control signal become low when the output voltage of voltage control circuit 200 will be 0V Level signal, to disconnect discharge switch S12.
In one embodiment, voltage control circuit 200 further includes follower U3, and positive input terminal connects the first of capacitor Cr End, negative input end are connected to output end, and output end connects the output node VOUT of voltage control circuit 200.When capacitor Cr charges At the end of, the input voltage and output voltage of voltage control circuit 200 are essentially identical.
In one embodiment, voltage control circuit 200 further includes voltage detection unit 220, and the first of input terminal and capacitor End connection, for example, being connected to the first end of capacitor by follower U3, voltage detection unit 220 is for obtaining voltage control electricity The output voltage on road 200, and feedback voltage signal, to control charging path and discharge path.Wherein, detection unit 220 will be electric Pressure signal feeds back to main control circuit, and main control circuit judges whether charge or discharge terminate according to the voltage signal of feedback, from And corresponding control signal is sent to charge-discharge control circuit 211, to pass through control charge switch S11, discharge switch S12 control The conducting and disconnection of charging path, discharge path.If electric discharge terminates, main control circuit is also used to control headset type detection configuration Circuit 10 enters configuration mode, and configuration work circuit.
It should be noted that voltage control circuit also can have control unit, control unit controls periodic pulse signal Unit is generated, sends the first and second control signal, and obtain the feedback voltage signal of detection unit transmission, at this time main control circuit Without above-mentioned function.
As shown in figure 9, it is the structural schematic diagram of the another embodiment of voltage control circuit 200 of the present invention.
In one embodiment, voltage control circuit 200 has DAC module, and input terminal connects input node VIN, with connection The output end MBIASOUT of microphone bias circuit 50, output end connect the output node VOUT of the voltage control circuit 200, Input terminal connects input node VIN, and DAC module converts digital signals into analog signal, input voltage is converted into slowly The output voltage being raised and lowered.
In one embodiment, voltage control circuit 200 has capacitor Cr and constant-current source I1, slow by the charge and discharge of capacitor Cr Slowly the voltage of capacitor Cr output end is raised and lowered, to export the voltage being slowly raised and lowered.At this point, being examined in detection pattern When surveying beginning, detection path, i.e. the capacitor Cr of voltage control circuit, earphone socket 20, earphone 12, Zuo Beier circuit 40 is first connected Between access, then charging path is connected, i.e. access between detection path and microphone bias circuit 50;Or it simultaneously turns on Detection path and charging path, to guarantee that the electric current in detection path slowly increases.Configuration circuit 100 detects in detection pattern At the end of, first disconnect charging path, then conducting voltage control circuit 200 discharge path or charging path disconnection and put The conducting of electric pathway carries out simultaneously, and keeps the connection in detection path constant, to guarantee that the electric current in detection path is slow It reduces.The connection in detection path can be enabled constant at the end of detection.This will be discussed in more detail below.
Also referring to Figure 10, the structural schematic diagram of 10 1 embodiment of configuration circuit is detected for headset type of the present invention.
In one embodiment, for the tool of configuration circuit 100 there are two the 5th connecting pin 5, configuration circuit 100 includes: switch S1 to switch S5 and resistance R1, R2.Wherein, one end of switch S1 connects the 5th connecting pin 5, to connect input node VIN, And then the output end MBIASOUT of microphone bias circuit 50 is connected, the other end is by resistance R1 connection third connecting pin 3, with logical The output end P_Sleeve for crossing headset type detection configuration circuit 10 is connected to second pin (such as Fig. 4);One end of switch S2 connects Another 5th connecting pin 5 is connect, to connect input node VIN, and then connects the output end MBIASOUT of microphone bias circuit 50, The other end is by resistance R2 connection second connection end 2, to detect the output end P_Ring2 of configuration circuit 10 by headset type, Connect the first pin 22;The one end switch S3 connects third connecting pin 3, to detect 10 output end P_ of configuration circuit by headset type Sleeve connection second pin, other end ground connection;The one end switch S4 connects second connection end 2, to be matched by headset type detection 10 the first pin of output end P_Ring2 connection 22 of circuits, other end ground connection;One end of switch S5 connects the first connecting pin 1, with The output node VOUT of voltage control circuit 200 is connected, the other end passes through resistance R1 connection third connecting pin 3;Configuration circuit 100 The 4th connecting pin 4 be connected with third connecting pin 3 so that detection circuit 300 obtain second pin 23 voltage.
It further includes main control circuit that headset type, which detects configuration circuit, is respectively closed the switch for controlling.It is examined in detection pattern When survey starts, switch S4, switch S5 closure, rest switch are disconnected, at this point, second pin 23 passes through P_Sleeve and closure S5, voltage control circuit 200 are connected to the output end MBIASOUT of microphone bias circuit 50, and the first pin 22 passes through P_ The Ring2 and S4 of closure and be grounded, detection circuit 300 by P_Sleeve detect second pin 23 voltage, to obtain earphone The connection type particular content of earphone connection type (obtain will be in subsequent descriptions).When configuration mode, if earphone is three-stage The connection type of earphone, switch S3 and/or switch S4 closure, rest switch can both be disconnected, can also be closed, when switch S3 and switch When S4 is closed, by switch in parallel, the internal resistance of switch can be reduced;If earphone is the connection side of four-part form CTIA standard earphone Formula (i.e. P_Sleeve connection microphone), switch S1, switch S4 closure, rest switch disconnect;If earphone is four-part form OMTP mark The connection type (i.e. P_Ring2 connection microphone) of quasi- earphone, switch S2, switch S3 closure, rest switch disconnect.
Also referring to Figure 11, the structural representation of another embodiment of configuration circuit 10 is detected for headset type of the present invention Figure.
In one embodiment, configuration circuit 100 includes: switch S1 to switch S4, switch S6 and resistance R1, R2. Wherein, switch S1 to switch S4 is same as the previously described embodiments, no longer repeats herein;One end of switch S6 connects the first connecting pin 1, To connect the output node VOUT of voltage control circuit 200, the other end passes through resistance R2 connection second connection end 2;Configuration circuit 100 the 4th connecting pin 4 is connected with second connection end 2, so that detection circuit 300 obtains the voltage of the first pin 22.Detection When beginning, switch S3, switch S6 closure, rest switch is disconnected, at this point, the first pin 22 is connected to microphone bias circuit 50 Output end MBIASOUT, detection circuit 300 detect the voltage of the first pin 22 by P_Ring2.When configuration mode, with above-mentioned reality Apply that example is identical, in addition to changing the S5 of above-described embodiment into S6.
Also referring to Figure 12, the structural representation of the another embodiment of configuration circuit 10 is detected for headset type of the present invention Figure.
In one embodiment, configuration circuit 100 includes: switch S1 to switch S7 and resistance R1, R2.Wherein open S1 is closed to switch S6, R1, R2 are identical as above-described embodiment connection type;Switch S7 is single-pole double-throw switch (SPDT), one end connection the Four connecting pins 4 spend end connection second connection end 2 extravagantly with the input terminal TIN of connection detection circuit 300, another to throw end connection third Connecting pin 3.It is detected in detection pattern when starting, closure switch S3, switch S6, at this time switch S7 conducting second connection end 2 and the Four connecting pins 4, to be sampled by voltage of the P_Ring2 to the first pin 22;Or closure switch S4, switch S5, at this time Third connecting pin 3 and the 4th connecting pin 4 is connected in switch S7, to be sampled by voltage of the P_Sleeve to second pin 23. It is same as the previously described embodiments when configuration mode.
In the present embodiment, when due to configuration circuit 100 while including switch S5, S6, when detecting, drawing for detection may be selected Foot, to facilitate subsequent configuration process.For example, certain brand earphone habit applies four-part form CTIA standard earphone, when detection, then enables the Two pins 23 are connected to microphone bias voltage, in this way, can reduce the number of switches for needing to change when configuration.
In one embodiment, configuration circuit 100 further includes power switch (not shown), and both ends are separately connected microphone bias The output end MBIASOUT of the circuit and input node VIN of voltage control circuit 200, the i.e. input terminal of constant-current source, for being connected Access between voltage control circuit 200 and microphone bias circuit 50 provides power supply for voltage control circuit 200.It supplies at this time The conducting of the controllable charging path of electric switch, charge switch.
Also referring to Figure 13, the structural representation of 10 another embodiment of configuration circuit is detected for headset type of the present invention Figure.
In one embodiment, configuration circuit 100 further includes switch S8, switch S9, and configuration circuit 100 also has the 6th to connect at this time End 6 is connect, audio amplifier circuit has ground connection output end.Specifically, the one end switch S8 connects the 6th connecting pin 6, to connect audio Amplifying circuit is grounded output end, and the other end is grounded by switch S4, for audio amplifier circuit to be grounded;The connection of the one end switch S9 6th connecting pin 6, to connect audio amplifier circuit ground connection output end, the other end is grounded by switch S3, for amplifying audio Circuit ground.When detection pattern, switch S8, S9 are disconnected.When configuration mode, if switch S4 is closed, closure switch S8;If switch S3 is closed, then closure switch S9;If switch S3, switch S4 are closed at, switch S8, switch S9 are closed at.Switch S8, it opens It closes S9 and enables the voltage of the ground terminal of the ground terminal of audio amplifier circuit and the earphone of access standard having the same, and then enable earphone The amplification effect of amplifying circuit is more preferably.It should be noted that audio amplifier circuit can not also be grounded by configuration circuit 100, Audio discharge circuit is directly grounded at this time.
Further, in an embodiment, each switch in the various embodiments described above is field-effect tube, by main control circuit Control folding.
The output end of detection circuit 300, to enable configuration circuit in configuration mode, configures each company for feeding back testing result The connection type at end is connect, such as will test result and feed back to main control circuit.In one embodiment, detection circuit 300 includes: sampling Unit 310 and signal processing unit 320.
Sampling unit 310 is used to sample the voltage of 23 input terminal of the first pin 22 or second pin, specifically, its Input terminal is TIN, and connects the 4th connecting pin 4 of configuration circuit 100.
320 input terminal of signal processing unit is used to obtain the voltage sampling signal of the transmission of sampling unit 310, and according to voltage Sampled signal obtains the operating circuit of earphone, and output end has positive maximum for feeding back testing result, signal processing unit 320 Threshold value, positive and negative judgement threshold value and reversed minimum threshold.Wherein, the positive maximum threshold of signal processing unit 320 is When microphone forward direction connects, maximum voltage value, when reversed minimum threshold is microphone Opposite direction connection, valley voltage Value, it is positive and negative to judge threshold value for the connection of microphone forward direction, the demarcation voltage value of Opposite direction connection.
If sampled result, between maximum threshold and positive and negative judgement threshold value, earphone is four-part form connection type, Tested pin is used to connect the microphone end of earphone;If sampled result positive and negative judgement threshold value and reversed minimum threshold it Between, then earphone is four-part form connection type, and detected pin is used to connect the ground line of earphone;If testing result be 0 or For full value, then earphone is three-stage connection type, and the first pin, second pin are used to be grounded, and detected earphone can at this time It for three-section earphone, or is four-section type headset, microphone short circuit or open circuit.In this way, headset type detects configuration circuit 10 Four-section type headset, which can not only be detected, can also detect three-section earphone.
For example, the bias voltage of the output of voltage offset electric circuit is 2.0V, resistance R1, R2 are 2.2K Ω, as shown in figure 14, The equivalent circuit of its earphone driving circuit test earphone operating circuit that configuration circuit is detected for headset type shown in application drawing 10 Figure, insertion earphone are three-section earphone, and when being inserted into three-section earphone, sampled voltage 0V, Zuo Beier circuit does not have at this time It is switched on;As shown in figure 15, the earphone driving circuit test earphone of configuration circuit is detected for headset type shown in application drawing 10 The equivalent circuit diagram of operating circuit, insertion earphone are four-part form CTIA standard earphone, when insertion four-part form CTIA standard earphone When, forward direction connection microphone bias circuit 50, sampled voltage 1.3V, Zuo Beier circuit is not switched at this time;Such as Figure 16 It is shown, it is the equivalent electricity for the earphone driving circuit test earphone operating circuit that headset type shown in application drawing 10 detects configuration circuit Lu Tu, insertion earphone is four-part form OMTP standard earphone, when being inserted into four-part form OMTP standard earphone, Opposite direction connection Mike Windage yaw circuits 50, sampled voltage 0.7V, Zuo Beier circuit is connected at this time, and capacitor C3, C4 in two Zuo Beier circuits are logical The slowly varying voltage of overvoltage control circuit output slowly charges, and then will not generate during enabling test earphone miscellaneous Sound.
As shown in figure 17, the flow chart of one embodiment of configuration method is detected for headset type of the present invention, and is please joined again Read Fig. 4, Fig. 5, Fig. 6.
The method of headset type detection configuration detects the detection of configuration circuit 10, configuration insertion earphone socket by headset type The operating circuit of interior earphone.Wherein, headset type detection configuration circuit 10 include configuration circuit 100, voltage control circuit 200, Detection circuit 300, the output end of the input terminal connection microphone bias circuit of voltage control circuit.There are two sounds for earphone socket tool Frequency pin 21, the first pin 22, second pin 23.Two audio pins are separately connected the L channel output of audio amplifier circuit 30 HPOUTL, right channel output end HPOUTR are held, the input terminal of two Zuo Beier circuits 40 is also respectively connected with;First pin second draws In foot, one is used to connect the output end of voltage control circuit when detection, another for being grounded.
As shown in Figure 5, Figure 6, in an embodiment, there are four connecting pin, the connections of the first connecting pin 1 for the tool of configuration circuit 100 The output node VOUT of voltage control circuit 200, second connection end 2 are connected by the first pin of output end P_Ring connection, third It connects end 3 and passes through output end P_Sleeve connection second pin, the input terminal of 4 connection detection circuit 300 of the 4th connecting pin;Voltage control The output end of the input node VIN connection microphone bias circuit of circuit 200 processed;The output end of detection circuit is for feeding back detection As a result.
The method of headset type detection configuration includes the following steps.
Step S110, the voltage control circuit, Zuo Beier circuit, the earphone socket are connected by the configuration circuit Detection path (as shown in Figure 6) between earphone enables one pin in first pin or the second pin connect institute State the output node VOUT of voltage control circuit, another pin ground connection, and enable the detection circuit with to connect microphone bias electric First pin on road or the second pin are connected.
As shown in Figure 5, Figure 6, in a specific embodiment, the first connecting pin 1 of configuration circuit 100 is enabled to connect second connection end 2, so that the first pin connecting with second connection end 2 is connected to the voltage control circuit 200 connecting with the first connecting pin 1, enable The third connecting pin 3 of configuration circuit 100 is grounded, so that the second pin ground connection being connect with third connecting pin 3, at this point, configuration electricity 4th connection 4 on road 100 is also connect with 2 line of second connection end, to detect the voltage of the first pin;Alternatively, enabling configuration circuit 100 The first connecting pin 1 connect third connecting pin 3 connect so that the second pin connecting with third connecting pin 3 is connected to first The voltage control circuit 200 of 1 connection of end, enables the second connection end 2 of configuration circuit 100 be grounded, so as to connect with second connection end 2 The first pin ground connection, at this point, the 4th connection of configuration circuit 100 4 is connect with 3 line of third connecting pin, to detect second pin Voltage.It should be noted that configuration circuit can enable second connection end be grounded when detection pattern, third connecting pin connection the One connecting pin, the 4th connecting pin connect third connecting pin;Second connection end can be also enabled to connect the first connecting pin, third connection termination Ground, the 4th connecting pin connect the second connection end.Actual demand when can be according to detection voluntarily selects.
Step S130, the electric current in detection path is slowly increased by voltage control circuit 10, in Zuo Beier circuit 40 The electric current in the Zuo Beier circuit connecting with 20 audio pin 21 of earphone socket is slowly increased when conducting.Specifically, voltage controls The stable voltage that circuit inputs microphone bias circuit is converted into slow raised output voltage, slowly to increase the ear Electric current in machine transplanting of rice seat detection path.
As shown in Figure 5, Figure 6, it in an embodiment, is slowly increased by voltage control circuit and to be connect with output node VOUT The voltage of first pin or second pin, to slowly increase the electric current in detection path.Specifically, pass through voltage control circuit 10 slowly increase the voltage of the second connection end 2 or third connecting pin 3 that connect with the first connecting pin 1.
Step S150, the first pin 22 or the second connecting with microphone bias circuit 50 is obtained by detection circuit 300 The voltage of pin 23, to obtain the connection type of earphone operating circuit.Specifically, it is carried out by the voltage and preset value that will acquire Compare, to obtain the connection type of earphone operating circuit.
As shown in Figure 5, Figure 6, in a specific embodiment, the voltage of the 4th connecting pin 4 is obtained by detection circuit 300, with Obtain the connection type and feedback of the operating circuit of the earphone in insertion earphone socket.
Step S170, after the connection type for obtaining earphone operating circuit, detection is slowly reduced by voltage control circuit 10 Electric current in access, slowly to reduce the electric current in Zuo Beier circuit 40 when Zuo Beier circuit 40 is connected.Specifically, pass through electricity The stable voltage that pressure control circuit inputs microphone bias circuit is converted into the output voltage slowly reduced, slowly to reduce Electric current in the earphone socket detection path.
As shown in Figure 5, Figure 6, in a specific embodiment, after the connection type for obtaining earphone operating circuit, pass through voltage control Circuit processed slowly reduces the voltage with output node VOUT the first pin connecting or second pin.Specifically, pass through voltage control Circuit 10 processed slowly reduces the voltage of the second connection end 2 or third connecting pin 3 that connect with the first connecting pin 1.
Above-mentioned headset type detection configuration method can be in Zuo Beier in the connection type of the operating circuit of test earphone Circuit be connected when, the electric current in detection path in Zuo Beier circuit is slowly raised and lowered, so can be avoided when detecting by Immediate current in Zuo Beier circuit and " Pi puff-clicker " (Pop-Click) noise for enabling earphone generate, enable and use this method The equipment sense of hearing of detection configuration earphone is more preferably.
In one specific embodiment, referring to Figure 7 together, voltage control circuit has for providing voltage to the earphone of insertion Capacitor Cr and for capacitor Cr charging constant-current source I1, detection path be capacitor Cr, Zuo Beier circuit 40, earphone socket 20, ear Access between machine 12.
At this point, step S130 is specifically, according to the charging path of charging control signal interval conducting voltage control circuit, with Interval is capacitor charging, enables capacitor export slowly raised voltage to output node VOUT, and then slowly increase in detection path Electric current, slowly to increase the electric current in the Zuo Beier circuit connecting with earphone socket audio pin.Wherein, charging control signal It is sent by the main control circuit being connect with voltage control circuit.
It further, further include the charging for obtaining the interval for controlling capacitor charging also referring to Fig. 8, step S130 The step of controlling signal, it is specific as follows.
(1) periodic pulse signal is obtained.
(2) first control signal is obtained.Wherein, first control signal is sent by main control circuit, and first control signal exists Stablize during intermittent charge constant.
(3) the periodic charging control signal to capacitor charging is obtained according to periodic pulse signal, first control signal.
Similarly, step S170 is specifically, according to the discharge path of discharge control signal interval conducting voltage control circuit, with Interval is that capacitor discharges, and capacitor is enabled to export the voltage slowly reduced to output node VOUT.Wherein, discharge control signal by with electricity The main control circuit of voltage-controlled circuit connection processed is sent.
Further, step S170 further includes the step for obtaining the discharge control signal of the interval for controlling capacitor electric discharge Suddenly, specific as follows.
(1) periodic pulse signal is obtained.
(2) second control signal is obtained.Wherein, second control signal is sent by main control circuit, and second control signal exists Stablize during intermittent charge constant.
(3) the periodic discharge control signal to discharge capacitor is obtained according to periodic pulse signal, second control signal.
It should be noted that in the present embodiment, charging control signal period, intermittent discharge control signal period and the week of interval Phase pulse signal is identical.And during capacitor intermittent charge, discharge path is open circuit;During capacitor intermittent discharge, charging Access is open circuit.
In one specific embodiment, charging path is connected by control charge switch S11 in charging control signal, to capacitor Cr It charges, discharge path is connected by control discharge switch S12 in discharge control signal, to discharge capacitor Cr.Specifically , periodic pulse signal, first control signal obtain charging control signal, periodic pulse signal, the second control by NAND gate U1 Signal processed is by obtaining discharge control signal with door U2.Wherein, first control signal is high level signal, works as periodic pulse signal Signal when for low level, charging control signal control charge switch closure, are capacitor charging, when periodic pulse signal is high telecommunications Number usually, charging control signal controls charge switch and disconnects, at this point, second control signal is low level signal, control of discharge letter Number control discharge switch disconnect.After charging, first control signal becomes low level signal, and second control signal becomes high electricity Ordinary mail number, when periodic pulse signal is high level, discharge control signal controls discharge switch closure, and periodic pulse signal is low When level signal, discharge control signal controls discharge switch and disconnects.
Also referring to Figure 18, it is detected for headset type of the present invention detects one embodiment of incipient stage in configuration method Flow chart, Figure 19 its be detect one embodiment of ending phase flow chart and Fig. 8.
In one embodiment, it further includes following steps that headset type, which detects configuration method,.
Step S140, the output voltage of voltage control circuit, and feedback voltage signal are obtained.Wherein, pass through voltage detecting Unit 220 obtains voltage signal, and feeds back to main control circuit.
Specifically, as shown in figure 18, detect the incipient stage, i.e., when acquisition earphone connection type is capacitor charging, earphone class Type detect configuration method further include step S141, according to the voltage signal of feedback judge voltage control circuit output voltage whether Reach the first preset value.In the present embodiment, the first preset value is the input voltage value of microphone bias circuit.If it is pre- to reach first If value, then enter step S150, if not up to continuing to execute step S130, until the output voltage of voltage control circuit reaches the One preset value.
As shown in figure 19, detect ending phase, i.e., when discharging after acquisition earphone connection type for capacitor, headset type detection Configuration method further includes step S192, judges whether the output voltage of voltage control circuit reaches according to the voltage signal of feedback Two preset values.At this point, preset value is 0V.If reaching the second preset value, detection process terminates, if not up to the second preset value after It is continuous to execute step S170, until the output voltage of voltage control circuit reaches the second preset value.
In one embodiment, step S150 specifically, by detection circuit obtain earphone operating circuit connection type, In, the sampled voltage that detection circuit will acquire is sent to the signal processing unit of detection circuit, and signal processing unit has forward direction Maximum threshold, positive and negative judgement threshold value and reversed minimum threshold, obtain the connection type of the earphone operating circuit of insertion Step is specific as follows.
If sampled result, i.e. the first pin or the voltage of the second pin, in maximum threshold and positive and negative judgement thresholding Between value, then tested pin is used to connect the microphone end of earphone;If sampled result positive and negative judgement threshold value and it is reversed most Between small threshold value, then detected pin is used to connect the ground line of earphone;If sampled result be 0 or full value, first Pin, second pin are used to be grounded.As shown in Figure 5, Figure 6, in a specific embodiment, detection circuit obtains the 4th connecting pin Voltage.
It should be noted that configuration circuit can enable the first pin be grounded when detection pattern, second pin connection output section Point VOUT, detection circuit connect second pin;The first pin can be also enabled to connect output node VOUT, second pin ground connection, detection The first pin of circuit connection.
It further include following steps after step S170 in one embodiment.
According to the connection type of the earphone operating circuit of acquisition, earphone operating circuit is configured.It enables the first pin or second draws For connecting the pin connection microphone bias circuit at ear microphone end in foot phase, the pin for connecting ground terminal is grounded. Referring to Fig. 4, Fig. 5, Fig. 6, specifically, in step S150, if testing result is the microphone that the first pin connects earphone End, then the second connection end 2 of configuration circuit 100 connects the 5th connecting pin 5, third connecting pin ground connection, the first connecting pin the 1, the 4th Connecting pin 4 can keep before state, can also disconnect;If testing result is the ground terminal that the first pin connects earphone, match The second connection end 2 of circuits 100 is grounded, and third connecting pin 3 connects the 5th connecting pin 5, the first connecting pin 1, the 4th connecting pin 4 State before can keeping can also disconnect.
As shown in Fig. 5, Fig. 7, Figure 20, Figure 20 is one embodiment flow chart of voltage control method of the present invention.
Voltage control method passes through earphone output voltage of the voltage control circuit 200 to insertion, wherein voltage control circuit With input node VIN, output node VOUT.In one embodiment, voltage control method its include the following steps.
Step S201, stable voltage is obtained by input node VIN.
Step S202, the voltage being slowly raised and lowered is exported to the output node VOUT by voltage control circuit.
Such as shown in Fig. 5, by voltage control circuit output end P_Ring2 or P_Sleeve is slowly raised and lowered Voltage.
Such as shown in Fig. 9, voltage control circuit has DAC module, and input terminal connects the input section of voltage control circuit Point VIN, to connect the output end of microphone bias circuit, output end connects output node VOUT, the DAC mould of voltage control circuit Block is used to input voltage being converted into the output voltage being slowly raised and lowered.
Further, as shown in fig. 7, voltage control circuit includes the capacitor Cr and constant-current source I1 for capacitor Cr charging.
Step S202 is specifically, include the following steps.
(1) when charging, obtains the charging control signal for controlling the interval of capacitor charging, when electric discharge, acquisition is for controlling The discharge control signal of the interval of capacitor electric discharge processed.
(2) according to the charging path between charging control signal interval conducting constant-current source and capacitor, intermittently to be filled for capacitor Electricity enables capacitor export slowly raised voltage to output node VOUT, or voltage-controlled according to discharge control signal interval electric conduction The discharge path of circuit processed enables capacitor export slowly raised voltage to output node VOUT to be intermittently that capacitor discharges.
Wherein, during capacitor intermittent charge, it is open circuit, capacitor intermittent discharge phase that discharge control signal, which controls discharge path, Between, it is open circuit that charging control signal, which controls charging path,.
The specific method of each step is identical as the above-mentioned headset type detection related content of configuration method in step S202, this Place is no longer repeated.
Identical as above-mentioned headset type detection configuration method, in a specific embodiment, voltage control method further includes as follows Step.
(1) output voltage of voltage control circuit, and feedback voltage signal are obtained.
(2) when charging, judge whether the output voltage of voltage control circuit reaches first in advance according to the voltage signal of feedback If value.In the present embodiment, the first preset value is the input voltage value of microphone bias circuit.If reaching the first preset value, stop Only it is capacitor charging, if not up to continuing to execute step S202, is preset until the output voltage of voltage control circuit reaches first Value.
When electric discharge, judge whether the output voltage of voltage control circuit reaches second and preset according to the voltage signal of feedback Value.At this point, the second preset value is 0V.If reaching the second preset value, stop being that capacitor discharges, if not up to continuing to execute step S202, until the output voltage of voltage control circuit reaches the second preset value.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those skilled in the art, not Under the premise of being detached from present inventive concept, various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Cause This, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (31)

1. a kind of headset type detects configuration circuit, it is connected with the first pin of earphone socket, second pin, for detecting, The operating circuit of earphone in configuration insertion earphone socket, earphone socket also has there are two audio pin, for connecting audio amplification Two audio outputs of circuit, the headset type detection configuration circuit have detection pattern and configuration mode, and feature exists In, including voltage control circuit, configuration circuit and detection circuit, the voltage control circuit is with input node VIN, output section Point VOUT, the input node VIN provide stable voltage for the voltage control circuit, and the output node VOUT output is slow The slow voltage for increasing or slowly reducing;
The input node VIN connection microphone bias circuit of the voltage control circuit, for slow in detection pattern The voltage of the output node VOUT is increased or slowly reduces,
The configuration circuit connects the output node VOUT of the voltage control circuit, earphone socket described first draws The input terminal of foot, the second pin, the detection circuit, in detection pattern season first pin, described second A pin in pin is connected to the output node VOUT, another pin ground connection, to pass through the voltage control circuit Slowly increase or slowly reduce with the voltage of the output node VOUT pin connecting, be also used to it is seasonal in detection pattern described in The input terminal of detection circuit is connected with first pin or the second pin for being connected to the output node VOUT;
The detection circuit is used to obtain the operating circuit connection type of the earphone of insertion earphone socket, and output end is for feeding back The testing result of the operating circuit connection type of acquisition is drawn with enabling the configuration circuit configure described first in operating mode The connection type of foot, the second pin.
2. headset type according to claim 1 detects configuration circuit, which is characterized in that the voltage control circuit packet Include: the input node of capacitor, constant-current source, charge switch, discharge switch and charge-discharge control circuit, the voltage control circuit is VIN, output node VOUT;
The input terminal of the constant-current source connects the input node VIN;
The first end of the capacitor connects the output node VOUT, and the first end of the capacitor also passes through the charge switch and connects It is connected to the output end of the constant-current source, the first end of the capacitor also passes through the discharge switch and is grounded or is connected to the first electricity Road, the second end ground connection of the capacitor or connection second circuit;
The charge-discharge control circuit connects the charge switch, for controlling the charge switch interval conducting charging path, So that the first end of the capacitor exports slowly raised voltage to the output node VOUT;
The charge-discharge control circuit is also connected with the discharge switch, logical for controlling the discharge switch interval conducting electric discharge Road, so that the first end of the capacitor exports the voltage slowly reduced to the output node VOUT.
3. headset type according to claim 2 detects configuration circuit, which is characterized in that the charge-discharge control circuit packet It includes:
Periodic pulse signal generates unit, for generating periodic pulse signal;
First gate circuit unit, one input end connect the output end that the periodic pulse signal generates unit, another input terminal Main control circuit is connected, to obtain first control signal, the output end of first gate circuit unit connects the charge switch, First gate circuit unit according to the first control signal, the periodic pulse signal to the charge switch for sending Periodic charging control signal;
Second gate circuit unit, one input end connect the output end that the periodic pulse signal generates unit, another input terminal Main control circuit is connected, to obtain second control signal, the output end of second gate circuit unit connects the discharge switch, Second gate circuit unit according to the second control signal, the periodic pulse signal to the discharge switch for sending Periodic discharge control signal.
4. headset type according to claim 3 detects configuration circuit, which is characterized in that first gate circuit unit is NAND gate circuit unit, second gate circuit unit are AND gate circuit unit,
When the capacitor charging, the first control signal is high level signal, and the periodic pulse signal is low level signal, The second control signal is low level signal;
When the capacitor discharges, the first control signal is low level signal, and the periodic pulse signal is high level signal, The second control signal is high level signal.
5. headset type according to claim 2 detects configuration circuit, which is characterized in that the second termination of the capacitor The first end of the capacitor is grounded by ground, the discharge switch.
6. headset type according to claim 2 detects configuration circuit, which is characterized in that the voltage control circuit also wraps Voltage detection unit is included, the output node VOUT is connected, for obtaining the output voltage of the voltage control circuit, and it is anti- Feedthrough voltage signal gives the charge-discharge control circuit, to control the conducting and disconnection of the charging path Yu the discharge path.
7. headset type according to claim 2 detects configuration circuit, which is characterized in that the voltage control circuit also wraps Follower is included, positive input terminal connects the first end of the capacitor, and negative input end is connected to its output end, and output end connects institute State the output node VOUT of voltage control circuit.
8. headset type according to claim 1 detects configuration circuit, which is characterized in that the voltage control circuit has DAC module, the input terminal of the DAC module connect the input node VIN, and output end connects the output node VOUT.
9. detecting configuration circuit according to the described in any item headset types of claim 2 to 7, which is characterized in that the charging is logical It further include that the charging path is connected when detecting beginning in detection pattern in microphone bias circuit, and enables the configuration electricity in road Road configures the connection of each circuit with detection pattern;At the end of being detected in detection pattern, the discharge path is connected, matches described in holding Each connection in circuits is constant.
10. headset type according to claim 1 detects configuration circuit, which is characterized in that when detection pattern, the configuration Circuit can enable first pin be grounded, and the second pin connects the output node VOUT, the detection circuit it is defeated Enter end and connects the second pin;First pin can be also enabled to connect the output node VOUT, the second pin is grounded, The input terminal of the detection circuit connects first pin.
11. headset type according to claim 1 detects configuration circuit, which is characterized in that when configuration mode, enable described the For connecting the pin connection output node VOUT of output node VOUT, the company for ground connection in one pin, the second pin Connect end ground connection.
12. headset type according to claim 11 detects configuration circuit, which is characterized in that the configuration circuit also with institute The input node VIN for stating voltage control circuit is connected, in configuration mode that the voltage control circuit is short-circuit.
13. headset type according to claim 12 detects configuration circuit, which is characterized in that the configuration circuit includes: Resistance R1, R2, switch S1 to S4, switch S5 and/or switch S6,
The one end switch S1 connects microphone bias circuit, and the other end passes through the resistance R1 connection second pin;
The one end switch S2 connects microphone bias circuit, and the other end passes through resistance R2 connection first pin;
The both ends switch S3 be separately connected the second pin,;
The both ends switch S4 be separately connected first pin,;
The one end switch S5 connects the output node VOUT, and the other end is connected to the second pin by resistance R1;
The one end switch S6 connects the output node VOUT, and the other end passes through resistance R2 connection first pin;
When detecting beginning in detection pattern, switch S4, switch S5 closure, rest switch are disconnected, or switch S3, switch S6 are closed It closes, rest switch disconnects, when configuration mode, if the earphone is the connection type of three-section earphone, switch S3 and/or switch S4 Closure, if the earphone is the connection type of four-part form CTIA standard earphone, switch S1, switch S4 are closed, and rest switch disconnects, If the earphone is the connection type of four-part form OMTP standard earphone, switch S2, switch S3 closure, rest switch disconnection.
14. headset type according to claim 13 detects configuration circuit, which is characterized in that the configuration circuit further includes Single-pole double-throw switch (SPDT) S7, one end connect the input terminal of the detection circuit, spend end extravagantly and connect first pin, another to throw end The second pin is connected,
When detection pattern, if switch S5 is closed, the input terminal of the detection circuit is connected to the second pin by switch S7, if The input terminal of the detection circuit is connected to first pin by switch S6 closure, switch S7.
15. headset type described in 3 or 14 detects configuration circuit according to claim 1, which is characterized in that the configuration circuit is also Include:
Switch S8, one end connect the ground connection output end of the audio amplifier circuit, and the other end is grounded by switch S4, and being used for will The audio amplifier circuit ground connection;
Switch S9, one end connect the ground connection output end of the audio amplifier circuit, and the other end is grounded by switch S3, and being used for will The audio amplifier circuit ground connection;
When configuration mode, if switch S4 is closed, closure switch S8, if switch S3 is closed, closure switch S9.
16. headset type according to claim 1 detects configuration circuit, which is characterized in that the detection circuit includes:
Sampling unit, for the voltage of the output node VOUT first pin connecting or the second pin into Row sampling;
Signal processing unit, input terminal are used to obtain the voltage sampling signal that the sampling unit is sent, and according to sampled signal The connection type of operating circuit is obtained, output end has positive most gate for feeding back testing result, the signal processing unit Limit value, positive and negative judgement threshold value and reversed minimum threshold, if sampled result is in the maximum threshold and the positive and negative judgement Between threshold value, then tested pin is used to connect the microphone end of earphone, if sampled result is in the positive and negative judgement threshold value Between the reversed minimum threshold, then detected pin is used to connect the ground line of earphone, if testing result be 0 or Full value, then first pin, the second pin are used to be grounded.
17. a kind of earphone driving circuit, for connecting earphone socket, wherein there are two audio pin, first to draw for earphone socket tool Foot and second pin, which is characterized in that detect configuration circuit, sound including the described in any item headset types of claim 1 to 16 Frequency amplifying circuit, two Zuo Beier circuits, microphone signal amplifying circuit,
The audio amplifier circuit has L channel output end, right channel output end, is connected respectively with two audio pins, also It is separately connected the input terminal of two Zuo Beier circuits;
The output end of the Zuo Beier circuit is grounded;
The microphone signal amplifying circuit has two input terminals, is separately connected first pin, the second pin;
When detection pattern, the voltage control circuit, earphone socket, the ear being inserted into earphone socket is connected in the configuration circuit The detection path of machine, the Zuo Beier circuit, and the detection path is slowly raised and lowered by the voltage control circuit In electric current.
18. a kind of method of headset type detection configuration detects configuration circuit detection by headset type, configuration insertion earphone is inserted The operating circuit of earphone in seat, the headset type detection configuration circuit are connected with the first pin of earphone socket, second pin It connects, earphone socket also has there are two audio pin, for connecting two audio outputs of audio amplifier circuit, the earphone class Type, which detects configuration circuit, has detection pattern and configuration mode, which is characterized in that the headset type detects configuration circuit and includes Configuration circuit, voltage control circuit, detection circuit, the configuration circuit connect the output node of the voltage control circuit VOUT, first pin, the second pin, the detection circuit input terminal, the input section of the voltage control circuit The method of the output end of point VIN connection microphone bias circuit, headset type detection configuration includes the following steps:
One pin connects the output node VOUT in detection pattern season first pin or the second pin, another Pin ground connection, enables the input terminal of the detection circuit be connected with first pin or the second pin, wherein the inspection The pin of slowdown monitoring circuit connection is connected with the output node VOUT;
First pin connecting with the output node VOUT or described are slowly increased by the voltage control circuit The voltage of two pins;
First pin of connection or the voltage of the second pin are obtained, by the detection circuit to obtain insertion earphone The connection type of the operating circuit of earphone in socket;
After the connection type for obtaining earphone operating circuit, slowly reduced by the voltage control circuit and the output node First pin of VOUT connection or the voltage of the second pin.
19. the method for headset type detection configuration according to claim 18, which is characterized in that the voltage control circuit It with capacitor and is the constant-current source of capacitor charging, the input terminal of the constant-current source connects the input node VIN, output end connection The first end of the first end of the capacitor, the capacitor connects the output node VOUT,
It is described slowly increased by the voltage control circuit first leads ends being connect with the output node VOUT or The step of voltage of the second pin includes:
The charging path that the voltage control circuit is connected according to charging control signal interval is the capacitor intermittent charge, with The capacitor is enabled to export slowly raised voltage to the output node VOUT;
After the connection type for obtaining earphone operating circuit, is slowly reduced by the voltage control circuit and saved with the output The step of first pin of point VOUT connection or the voltage of the second pin includes:
The discharge path that the voltage control circuit is connected according to discharge control signal interval is the capacitor intermittent discharge, with The capacitor is enabled to export the voltage slowly reduced to the output node VOUT.
20. the method for headset type detection configuration according to claim 19, which is characterized in that
It is described slowly increased by the voltage control circuit first leads ends being connect with the output node VOUT or The step of voltage of the second pin further include:
Obtain periodic pulse signal;
Obtain first control signal;
The periodically charging control signal is obtained according to the periodic pulse signal, the first control signal;It is described to obtain After the connection type for taking earphone operating circuit, is slowly reduced by the voltage control circuit and connect with the output node VOUT First pin or the second pin voltage the step of further include:
Obtain periodic pulse signal;
Obtain second control signal;
The periodically discharge control signal is obtained according to the periodic pulse signal, the second control signal.
21. the method for headset type detection configuration according to claim 20, which is characterized in that the voltage control circuit It further include charging control switch, discharge control switch, the charging is connected by control charge switch in the charging control signal The discharge path is connected by control discharge switch in access, the discharge control signal,
The step that the periodically charging control signal is obtained according to the periodic pulse signal, the first control signal Suddenly include:
When the first control signal is high level signal, and the periodic pulse signal is low level when signal, the charging Control signal control charge switch closure;
The step of obtaining the periodically discharge control signal according to the periodic pulse signal, the second control signal is wrapped It includes:
When the second control signal is high level signal, and the periodic pulse signal is high level signal, the electric discharge control Signal control discharge switch closure processed.
22. the method for headset type detection configuration according to claim 19, which is characterized in that the headset type configuration Method further includes following steps:
Obtain the output voltage of the voltage control circuit, and feedback voltage signal;
When capacitor charging, judge whether the output voltage of the voltage control circuit reaches according to the voltage signal of feedback One preset value;
If reaching first preset value, stops being the capacitor charging, be continued as if not up to described first preset value The capacitor charging;
When capacitor discharges, judge whether the output voltage of the voltage control circuit reaches the according to the voltage signal of feedback Two preset values;
If reaching second preset value, stops being that the capacitor discharges, be continued as if not up to described second preset value The capacitor electric discharge.
23. the method for headset type detection configuration according to claim 18, which is characterized in that the letter of the detection circuit Number processing unit has positive maximum threshold, positive and negative judgement threshold value and reversed minimum threshold, described to pass through the detection Circuit obtains the voltage of first pin or the second pin, to obtain the operating circuit of the earphone in insertion earphone socket Connection type the step of include:
If first pin or the voltage of the second pin the maximum threshold and the positive and negative judgement threshold value it Between, then the pin being detected is used to connect the microphone end of earphone,
If first pin or the voltage of the second pin are in the positive and negative judgement threshold value and the reversed minimum threshold Between value, then detected pin is used to connect the ground line of earphone,
If first pin or the voltage of the second pin are 0 or are full value, first pin, described second are drawn Foot is used to be grounded.
24. the method for headset type detection configuration according to claim 18, which is characterized in that it is characterized in that, detection When mode, the configuration circuit can enable first pin be grounded, and the second pin connects the output node VOUT, institute It states detection circuit and connects the second pin;First pin can be also enabled to connect the output node VOUT, described second draws Foot ground connection, the detection circuit connect first pin.
25. the method for headset type detection configuration according to claim 18, which is characterized in that described to pass through the voltage Control circuit slowly reduce with after the output node VOUT first pin connecting or the voltage of the second pin, institute The method for stating headset type detection configuration further includes following steps:
According to the connection type of the operating circuit of acquisition when configuration mode, configure earphone operating circuit, enable first pin or For connecting the pin connection microphone bias circuit at ear microphone end in second pin phase, for connecting the pin of ground terminal Ground connection.
26. a kind of method of headset type detection configuration detects configuration circuit detection by headset type, configuration insertion earphone is inserted The operating circuit of earphone in seat, there are two audio pins, the first pin, second pin for the earphone socket tool, which is characterized in that Headset type detection configuration circuit includes configuration circuit, voltage control circuit, detection circuit, the voltage control circuit Input terminal connection microphone bias circuit output end its include the following steps:
It is connected between the voltage control circuit, Zuo Beier circuit, the earphone socket and earphone by the configuration circuit Detection path enables one pin in first pin or the second pin connect the output node of the voltage control circuit VOUT, another pin ground connection, and enable the detection circuit and first pin that connect microphone bias circuit or described the Two pins are connected;
The electric current in the detection path is slowly increased by the voltage control circuit, in Zuo Beier circuit conducting Slowly increase the electric current in the Zuo Beier circuit;
It is obtained and first pin of microphone bias circuit connection or the electricity of the second pin by the detection circuit Pressure, to obtain the connection type of earphone operating circuit;
After the connection type for obtaining earphone operating circuit, the electricity in detection path is slowly reduced by the voltage control circuit Stream, slowly to reduce the electric current in the Zuo Beier circuit in Zuo Beier circuit conducting.
27. the method for headset type detection configuration according to claim 26, which is characterized in that the voltage control circuit It with capacitor and is the constant-current source of capacitor charging, the detection path is the capacitor, between the earphone socket, the earphone Access, the charging path of the voltage control circuit be the microphone bias circuit, the constant-current source and the capacitor it Between access,
The step of electric current slowly increased in the detection path includes:
The charging path that the voltage control circuit is connected according to charging control signal interval is the capacitor intermittent charge, with The capacitor is enabled to export slowly raised voltage to the output node VOUT;
It is described it is slow reduce detection path in electric current the step of include:
The discharge path that the voltage control circuit is connected according to discharge control signal interval is the capacitor intermittent discharge, with The capacitor is enabled to export the voltage slowly reduced to the output node VOUT.
28. the method for headset type detection configuration according to claim 27, which is characterized in that
The step of electric current slowly increased in the detection path further include:
Obtain periodic pulse signal;
Obtain first control signal;
The periodically charging control signal is obtained according to the periodic pulse signal, the first control signal;
The step of slow electric current reduced in detection path further include:
Obtain periodic pulse signal;
Obtain second control signal;
The periodically discharge control signal is obtained according to the periodic pulse signal, the second control signal.
29. the method for headset type detection configuration according to claim 27, which is characterized in that the headset type inspection Surveying configuration method further includes following steps:
Obtain the output voltage of the voltage control circuit, and feedback voltage signal;
When capacitor charging, judge whether the output voltage of the voltage control circuit reaches according to the voltage signal of feedback One preset value;
If reaching first preset value, stops being the capacitor charging, be continued as if not up to described first preset value The capacitor charging;
When capacitor discharges, judge whether the output voltage of the voltage control circuit reaches the second preset value;
If reaching second preset value, stops being that the capacitor discharges, be continued as if not up to described second preset value The capacitor electric discharge.
30. the method for headset type detection configuration according to claim 26, which is characterized in that obtained by detection circuit The connection type of earphone operating circuit, the signal processing unit of the detection circuit have positive maximum threshold, positive and negative judgement Threshold value and reversed minimum threshold, it is described obtain earphone operating circuit connection type the step of include:
If the pin that sampled result between the maximum threshold and the positive and negative judgement threshold value, is detected is for connecting The microphone end of earphone,
If sampled result, between the positive and negative judgement threshold value and the reversed minimum threshold, detected pin is used for The ground line of earphone is connected,
If testing result is 0 or is full value, first pin, the second pin are used to be grounded.
31. the method for headset type detection configuration according to claim 26, which is characterized in that described to pass through the voltage After control circuit slowly reduces the electric current in detection path, the method for the headset type detection configuration further includes following steps:
According to the connection type of the operating circuit of acquisition, earphone operating circuit is configured, first pin or second pin phase are enabled In for connect ear microphone end pin connection microphone bias circuit, for connect ground terminal pin be grounded.
CN201711139452.8A 2017-11-16 2017-11-16 Voltage control circuit, headset type detection configuration circuit, driving circuit and method Active CN107995544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711139452.8A CN107995544B (en) 2017-11-16 2017-11-16 Voltage control circuit, headset type detection configuration circuit, driving circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711139452.8A CN107995544B (en) 2017-11-16 2017-11-16 Voltage control circuit, headset type detection configuration circuit, driving circuit and method

Publications (2)

Publication Number Publication Date
CN107995544A CN107995544A (en) 2018-05-04
CN107995544B true CN107995544B (en) 2019-09-20

Family

ID=62031581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711139452.8A Active CN107995544B (en) 2017-11-16 2017-11-16 Voltage control circuit, headset type detection configuration circuit, driving circuit and method

Country Status (1)

Country Link
CN (1) CN107995544B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365323A (en) * 2019-08-28 2019-10-22 上海爻火微电子有限公司 Single-pole double-throw switch (SPDT) circuit, analog switch chip and the electronic equipment of TypeC interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127510A (en) * 2006-08-17 2008-02-20 松下电器产业株式会社 Differential input class D amplifier
CN102333268A (en) * 2011-07-28 2012-01-25 四川和芯微电子股份有限公司 POP noise suppression circuit and method
CN102572629A (en) * 2010-12-10 2012-07-11 炬力集成电路设计有限公司 Circuit for suppressing POP sound in earphone, and earphone
CN202374436U (en) * 2011-12-16 2012-08-08 四川和芯微电子股份有限公司 Pop noise suppression circuit
CN102740564A (en) * 2012-06-28 2012-10-17 上海新进半导体制造有限公司 Light emitting diode (LED) driving circuit and control method of LED
CN105162325A (en) * 2014-05-29 2015-12-16 展讯通信(上海)有限公司 Pulse frequency modulation circuit based on reference voltage comparison oscillator

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237281B (en) * 2013-05-08 2016-07-06 广东欧珀移动通信有限公司 The earphone line control circuit of a kind of mobile terminal and line control method
CN205105382U (en) * 2015-11-18 2016-03-23 广东欧珀移动通信有限公司 Circuit of eliminating earphone plug POP sound reaches electronic equipment including this circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127510A (en) * 2006-08-17 2008-02-20 松下电器产业株式会社 Differential input class D amplifier
CN102572629A (en) * 2010-12-10 2012-07-11 炬力集成电路设计有限公司 Circuit for suppressing POP sound in earphone, and earphone
CN102333268A (en) * 2011-07-28 2012-01-25 四川和芯微电子股份有限公司 POP noise suppression circuit and method
CN202374436U (en) * 2011-12-16 2012-08-08 四川和芯微电子股份有限公司 Pop noise suppression circuit
CN102740564A (en) * 2012-06-28 2012-10-17 上海新进半导体制造有限公司 Light emitting diode (LED) driving circuit and control method of LED
CN105162325A (en) * 2014-05-29 2015-12-16 展讯通信(上海)有限公司 Pulse frequency modulation circuit based on reference voltage comparison oscillator

Also Published As

Publication number Publication date
CN107995544A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US10659874B2 (en) Audio I O headset plug and plug detection circuitry
CN101610439B (en) Electronic device
US20100104119A1 (en) Audio output device
CN102300003A (en) Mobile terminal capable of automatically detecting earphone jack
CN103220614A (en) Audio interface type detection device
CN109922394A (en) Bias voltage output circuit and driving circuit
CN107885480A (en) Interface detects circuit and audio frequency apparatus
CN201750528U (en) Audio processing device
CN107995544B (en) Voltage control circuit, headset type detection configuration circuit, driving circuit and method
CN106231491B (en) It is a kind of to eliminate the method for extracting power down POP sound
CN104427432B (en) Plug connector
CN211909136U (en) Automatic switching circuit with audio power amplifier output and electronic equipment thereof
CN102638593B (en) A kind of mobile phone
CN106338937B (en) Apparatus and method for generating an output signal based on a detected load resistance value
CN209930507U (en) A double-circuit plug detection circuitry for TWS bluetooth headset storehouse of charging
CN210246374U (en) Charging base for communicating with Bluetooth headset
CN104683915B (en) Electronic equipment and earphone detection circuit, method and apparatus
CN207475793U (en) It is a kind of can free switching audio output headset plug
CN203167233U (en) Earphone denoising device
CN106550301A (en) A kind of control method and circuit of earphone output
CN208971820U (en) A kind of earphone insertion detection circuit, earphone isolation circuit and electronic equipment
CN114071322A (en) Wireless and wired input earphone differential conversion common-ground device and common-ground method thereof
TWI633794B (en) Pop-free headset detection circuit
CN207589106U (en) A kind of earphone
CN110337049A (en) A kind of operating method of microphone and audio input interface adaptive 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