Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of portable terminal of automatic detection receiver J-Horner, can detect the line preface of receiver J-Horner automatically, make the line preface of mobile terminal earphone socket and the line preface self adaptation of earphone.
In order to achieve the above object, the present invention has taked following technical scheme:
A kind of portable terminal of automatic detection receiver J-Horner comprises receiver J-Horner, baseband controller, gating unit and resistance; The microphone pin of described receiver J-Horner is connected with the input of described gating unit respectively with grounding pin, the output of described gating unit is connected with the ADC pin with the MIC+ pin of described resistance, baseband controller respectively, the control end of gating unit is connected with the SWITCH-SEL pin of baseband controller, the MIC-pin ground connection of baseband controller, described resistance connects high level; Described baseband controller is used for the voltage of gating unit output is sampled, and according to the microphone pin of sample voltage value control gating unit conducting receiver J-Horner and the path between the resistance, and the grounding pin of receiver J-Horner and the path between the ground.
The portable terminal of described automatic detection receiver J-Horner, wherein, described gating unit is the simulated dual double-pole double throw switch, the 1st pin of described simulated dual double-pole double throw switch is connected with the 1st pin of receiver J-Horner, the 2nd pin is connected with the 4th pin of receiver J-Horner, the 3rd pin is connected with the MIC+ pin of described baseband controller respectively with the 6th pin, the 4th pin of simulated dual double-pole double throw switch and the equal ground connection of the 5th pin, the control end of simulated dual double-pole double throw switch is connected with the SWITCH-SEL pin of baseband controller.
The portable terminal of described automatic detection receiver J-Horner, wherein, described earphone is a LRGM line preface earphone, and the 1st pin of the receiver J-Horner of this earphone is a microphone pin, and the 4th pin is a grounding pin.
The portable terminal of described automatic detection receiver J-Horner, wherein, described earphone is a LRMG line preface earphone, and the 1st pin of the receiver J-Horner of this earphone is a grounding pin, and the 4th pin is a microphone pin.
The portable terminal of described automatic detection receiver J-Horner wherein, is provided with first electric capacity between the MIC+ of baseband controller pin and simulated dual double-pole double throw switch.
The portable terminal of described automatic detection receiver J-Horner wherein, is provided with second electric capacity between the MIC-of baseband controller pin and ground.
The portable terminal of described automatic detection receiver J-Horner, wherein, described high level is 2.1V.
Compared to prior art, the portable terminal of automatic detection receiver J-Horner provided by the invention, adopted baseband controller, gating unit and resistance, by baseband controller the voltage of gating unit output is sampled, and according to the microphone pin of sample voltage value control gating unit conducting receiver J-Horner and the path between the resistance, and the grounding pin of receiver J-Horner and the path between the ground, make the line preface of earphone interface of portable terminal and the line preface self adaptation of receiver J-Horner, improved the mobile terminal earphone interface compatibility, brought great convenience when matching earphone to the user.
Embodiment
See also Fig. 1, Fig. 2, Fig. 3 and Fig. 4, with Fig. 1 and Fig. 2 contrast, Fig. 3 and Fig. 4 contrast, the line preface of the MIC pin (microphone pin) of LRGM line preface earphone and the receiver J-Horner of LRMG line preface earphone and GND pin (grounding pin) is different as can be seen, and AUDIO_LEFT pin (L channel pin) is identical with AUDIO_RIGHT pin (R channel pin).It is microphone pin that the present invention is mainly used in which pin that detects receiver J-Horner, and which pin is the ground pin, thereby just earphone correctly is connected with portable terminal, and earphone can normally be used.
See also Fig. 5, it is the internal circuit diagram of microphone, and microphone is a kind of electronic component that polarity is arranged, when the 1st pin of microphone connects power supply, the 2nd pin ground connection, and the microphone operate as normal, the impedance of microphone is about 2K Ω at this moment; When the 1st pin ground connection of microphone, when the 2nd pin connect power supply, the voltage of microphone was clamped down on by the parasitic diode D1 of inside, and its voltage is 0.7V, at this moment the microphone cisco unity malfunction.
For making purpose of the present invention, technical scheme and effect clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also Fig. 6, the portable terminal of automatic detection receiver J-Horner provided by the invention comprises receiver J-Horner 11, baseband controller 21, gating unit 31 and resistance R 1.The L channel pin of described receiver J-Horner 11 is connected with corresponding with it the respectively control module of R channel pin, microphone pin is connected with the input of described gating unit 31 respectively with grounding pin, the output of described gating unit 31 is connected with the ADC pin with the MIC+ pin of described resistance R 1, baseband controller 21 respectively, the control end of gating unit 31 is connected with the SWITCH-SEL pin of baseband controller 21, the MIC-pin ground connection of baseband controller 21, described resistance R 1 meets high level MICBIAS, and this height is flat to be 2.1V.
In the embodiment of the invention, described resistance R 1 is the biasing resistor of microphone, and the power supply that it connects 2.1V is used for to microphone power.The MIC+ pin of baseband controller 21 and MIC-pin are respectively the forward difference input pin and the backward difference input pin of the microphone of baseband controller 21.The ADC pin is the voltage sample pin of baseband controller 21, is used for the voltage of gating unit 31 outputs is sampled, and the SWITCH-SEL pin is the switch control pin of baseband controller 21, is used to control the conducting state of gating unit 31.
Described baseband controller 21 is used for the voltage of gating unit 31 outputs is sampled, and judge the type of earphone according to sample voltage value, and according to the microphone pin of headset type control gating unit 31 conducting receiver J-Horners and the path between the resistance, and the grounding pin of receiver J-Horner and the path between the ground.
See also Fig. 7, in the specific implementation, described gating unit is simulated dual double-pole double throw switch K1.The 1st pin of described simulated dual double-pole double throw switch K1 is connected with the 1st pin of receiver J-Horner, the 2nd pin is connected with the 4th pin of receiver J-Horner, the 3rd pin is connected with the MIC+ pin of described baseband controller respectively with the 6th pin, the 4th pin of simulated dual double-pole double throw switch K1 and the equal ground connection of the 5th pin, the control end of simulated dual double-pole double throw switch K1 is connected with the SWITCH-SEL pin of baseband controller, by the conducting state of baseband controller control simulated dual double-pole double throw switch.
In the embodiment of the invention, when described earphone was LRGM line preface earphone, the 1st pin of the receiver J-Horner of this earphone was a microphone pin, and the 4th pin is a grounding pin.When described earphone was LRMG line preface earphone, the 1st pin of the receiver J-Horner of this earphone was a grounding pin, and the 4th pin is a microphone pin.
In a further embodiment, between the MIC+ of baseband controller pin and simulated dual double-pole double throw switch, be provided with first capacitor C 1.Between the MIC-of baseband controller pin and ground, be provided with second capacitor C 2.Wherein, described first capacitor C 1 and second capacitor C 2 are capacitance, are used for cutting off the direct current of circuit.
Certainly in other embodiments, described gating unit can also adopt electronic switch, as long as can make baseband controller can differentiate the type of earphone, the path of adjusting the conducting of switch automatically gets final product.
Below in conjunction with Fig. 6 the working method of the portable terminal of automatic detection receiver J-Horner provided by the invention is elaborated:
At first, configuration simulated dual double-pole double throw switch, make the 1st pin of receiver J-Horner be generally 2.1V) by resistance R 1 connection high level MICBIAS(, the 4th pin ground connection (promptly makes the 1st pin of simulated dual double-pole double throw switch be connected with the 3rd pin, the 2nd pin is connected with the 5th pin), by the ADC pin of baseband controller the voltage of the 3rd pin output of simulated dual double-pole double throw switch is sampled then, if sampled voltage is (being about 1.0V) about MICBIAS/2, then illustrate portable terminal and receiver J-Horner current be connected correct.If the voltage that the sampling of ADC pin obtains is 0.7V, the connection error that portable terminal and receiver J-Horner are current is described.Dispose the conducting state of simulated dual double-pole double throw switch this moment once more by the SWITCH-SEL pin of baseband controller, make the 4th pin of receiver J-Horner connect high level MICBIAS(this moment by resistance R 1, the 2nd pin of simulated dual double-pole double throw switch is connected with the 6th pin), make the 1st pin ground connection (promptly make the 1st pin and the 4th pin conducting of simulated dual double-pole double throw switch) of receiver J-Horner, the voltage of the 6th pin of simulated dual double-pole double throw switch being exported by base band ADC pin carries out voltage sample then, if sampled voltage is about MICBIAS/2, be about 1.0V, illustrate that then current connection is correct.
In sum, the portable terminal of automatic detection receiver J-Horner provided by the invention, adopted baseband controller, gating unit and resistance, by baseband controller the voltage of gating unit output is sampled, and according to the microphone pin of sample voltage value control gating unit conducting receiver J-Horner and the path between the resistance, and the grounding pin of receiver J-Horner and the path between the ground, make the line preface of earphone interface of portable terminal and the line preface self adaptation of receiver J-Horner, improved the mobile terminal earphone interface compatibility, brought great convenience when matching earphone to the user.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection range of the appended claim of the present invention.