Utility model content
The utility model provides a kind of circuit for detecting that can detect headset type and standard.
Technical solutions of the utility model:
A kind of earphone detecting circuit, comprise phone jack receptacle circuit, headset type testing circuit, first analog switching circuit, second analog switching circuit, audio output circuit and Master control chip, described phone jack receptacle circuit, described headset type testing circuit, described first analog switching circuit, described second analog switching circuit, described audio output circuit is all connected with described Master control chip, described phone jack receptacle circuit respectively with described first analog switching circuit, described second analog switching circuit, described audio output circuit connects, described headset type testing circuit is connected with described first analog switching circuit and described second analog switching circuit respectively.
Further, described phone jack receptacle circuit comprises earphone base JACK1, magnetic bead L403, magnetic bead L404, magnetic bead L405, resistance R429, resistance R430, resistance R431, resistance R432, TVS pipe T405 and TVS pipe T406, the model of described earphone base JACK1 is KF-AJR0003, first pin of described earphone base JACK1 is connected with described first analog switching circuit, second pin of described earphone base JACK1 is connected with described second analog switching circuit, the three-prong of described earphone base JACK1 is connected with one end of magnetic bead L404, the other end of described magnetic bead L404 and one end of described TVS pipe T406, one end of described resistance R431, the R channel input of described audio output circuit connects, the other end ground connection of described TVS pipe T406, the other end ground connection of described resistance R431, 4th pin of described earphone base JACK1 is connected with one end of magnetic bead L403, the other end of described magnetic bead L403 and one end of described TVS pipe T405, one end of described resistance R432, the L channel input of described audio output circuit connects, the other end ground connection of described TVS pipe T405, the other end ground connection of described resistance R432, 5th pin of described earphone base JACK1 is unsettled, 6th pin of described earphone base JACK1 is connected with one end of magnetic bead L405, the other end of described magnetic bead L405 and one end of described resistance R429, one end of described resistance R430 connects, the other end of described resistance R429 is connected with the DC level output pin of described Master control chip, the other end of described resistance R430 is connected with the interrupt pin of described Master control chip.
Further, described resistance R429 is 470K, described resistance R430 is 1K, described resistance R431 is 10K, and described resistance R432 is 10K, and the model of described magnetic bead L403 is BLM15BD1025SN1D, the model of described magnetic bead L404 is BLM15BD1025SN1D, the model of described magnetic bead L405 is BLM15BD1025SN1D, and the model of described TVS pipe T405 is ESD9B5V, and the model of described TVS pipe T406 is ESD9B5V.
Further, described headset type testing circuit comprises electric capacity C502, electric capacity C503, electric capacity C526, electric capacity C527, resistance R521, resistance R522 and resistance R523, the phonetic entry negative terminal pin of described Master control chip connects one end of electric capacity C502, the other end of described electric capacity C502 and one end of electric capacity C526, one end of resistance R521, one end of resistance R522, one end of electric capacity C527 connects, the other end of described resistance R522 connects the PWM power supply output pin of described Master control chip, the other end ground connection of described electric capacity C527, the phonetic entry anode pin of described Master control chip connects one end of electric capacity C503, the other end of described electric capacity C503 and the other end of described electric capacity C526, the other end of resistance R521, one end of described resistance R523, described first analog switching circuit, described second analog switching circuit connects, the other end of described resistance R523 connects the headset detection ADC pin of described Master control chip.
Further, described electric capacity C502 is 0.1uF, and described electric capacity C503 is 0.1uF, and described electric capacity C526 is 100pF, and described electric capacity C527 is 4.7uF, and described resistance R521 is 1.5K, and described resistance R522 is 1K, and described resistance R523 is 1K.
Further, described first analog switching circuit comprises the first analog switch U1, resistance R1, electric capacity C1, the model of described first analog switch U1 is NC7SB3157P6X, first pin of described first analog switch U1 is connected with described headset type testing circuit, second pin of described first analog switch U1, the equal ground connection of three-prong, 4th pin of described first analog switch U1 is connected with described phone jack receptacle circuit, 5th pin of described first analog switch U1 and VBAT voltage end, one end of electric capacity C1 connects, the other end ground connection of described electric capacity C1, 6th pin of described first analog switch U1 and one end of resistance R1, the voltage switching pin of described Master control chip connects, the other end ground connection of described resistance R1, described second analog switching circuit comprises the second analog switch U2, resistance R2, electric capacity C2, the model of described second analog switch U2 is NC7SB3157P6X, first pin of described second analog switch U2, the equal ground connection of second pin, the three-prong of described second analog switch U2 is connected with described headset type testing circuit, 4th pin of described second analog switch U2 is connected with described phone jack receptacle circuit, 5th pin of described second analog switch U2 and VBAT voltage end, one end of electric capacity C2 connects, the other end ground connection of described electric capacity C2, 6th pin of described second analog switch U2 and one end of resistance R2, the voltage switching pin of described Master control chip connects, the other end ground connection of described resistance R2.
Further, described resistance R1 is 100K, and described electric capacity C1 is 4.7nF, and described resistance R2 is 100K, and described electric capacity C2 is 4.7nF.
Further, described audio output circuit comprises electric capacity C508, electric capacity C506, electric capacity C504, electric capacity C520, electric capacity C521, resistance R503 and resistance R504, one end of described electric capacity C508 and one end of electric capacity C520, one end of electric capacity C506, the R channel output of described phone jack receptacle circuit connects, the other end ground connection of described electric capacity C520, the other end of described electric capacity C506 is connected with one end of resistance R504, the other end of described resistance R504 connects the right audio channel output pin of described Master control chip, the other end of described electric capacity C508 and one end of electric capacity C521, one end of electric capacity C504, the L channel output of described phone jack receptacle circuit connects, the other end ground connection of described electric capacity C521, the other end of described electric capacity C504 is connected with one end of resistance R503, the other end of described resistance R503 connects the left audio output pin of described Master control chip.
Further, described electric capacity C506 is 47uF, and described electric capacity C504 is 47uF, and described resistance R503 is 33K, and described resistance R504 is 33K.
The utility model beneficial effect:
A kind of earphone detecting circuit described in the utility model comprises phone jack receptacle circuit, headset type testing circuit, first analog switching circuit, second analog switching circuit, audio output circuit and Master control chip, described phone jack receptacle circuit, described headset type testing circuit, described first analog switching circuit, described second analog switching circuit, described audio output circuit is all connected with described Master control chip, described phone jack receptacle circuit respectively with described first analog switching circuit, described second analog switching circuit, described audio output circuit connects, described headset type testing circuit is connected with described first analog switching circuit and described second analog switching circuit respectively, whether the utility model is inserted by phone jack receptacle circuit detecting earphone, is detected type and the standard of earphone by headset type circuit for detecting.The utility model can detect the headset type and standard that insert mobile terminal device, and the earphone compatible realizing next step for mobile terminal device is ready.
Embodiment
In order to illustrate in greater detail the technical solution of the utility model, below in conjunction with accompanying drawing, the utility model is described in more detail.
See Fig. 1, a kind of earphone detecting circuit, comprise phone jack receptacle circuit, headset type testing circuit, first analog switching circuit, second analog switching circuit, audio output circuit and Master control chip, described phone jack receptacle circuit, described headset type testing circuit, described first analog switching circuit, described second analog switching circuit, described audio output circuit is all connected with described Master control chip, described phone jack receptacle circuit respectively with described first analog switching circuit, described second analog switching circuit, described audio output circuit connects, described headset type testing circuit is connected with described first analog switching circuit and described second analog switching circuit respectively.
Whether the utility model is inserted by phone jack receptacle circuit detecting earphone, is detected type and the standard of earphone by headset type circuit for detecting; The utility model can detect the headset type and standard that insert mobile terminal device, and the earphone compatible realizing next step for mobile terminal device is ready.
See Fig. 2, Fig. 3, Fig. 2, Fig. 3 are the circuit diagram of the utility model embodiment.Wherein, described Master control chip model is MT6260, and the annexation of Master control chip, phone jack receptacle circuit 11, headset type testing circuit 12, first analog switching circuit 13, second analog switching circuit 14, audio output circuit 15 as shown in Figures 2 and 3.
See Fig. 2, described Master control chip model is MT6260, described phone jack receptacle circuit 11 comprises earphone base JACK1, magnetic bead L403, magnetic bead L404, magnetic bead L405, resistance R429, resistance R430, resistance R431, resistance R432, TVS pipe T405 and TVS pipe T406, first pin of described earphone base JACK1 is connected with described first analog switching circuit, second pin of described earphone base JACK1 is connected with described second analog switching circuit, the three-prong of described earphone base JACK1 is connected with one end of magnetic bead L404, the other end of described magnetic bead L404 and one end of described TVS pipe T406, one end of described resistance R431, described audio output circuit connects, the other end ground connection of described TVS pipe T406, the other end ground connection of described resistance R431, 4th pin of described earphone base JACK1 is connected with one end of magnetic bead L403, the other end of described magnetic bead L403 and one end of described TVS pipe T405, one end of described resistance R432, described audio output circuit connects, the other end ground connection of described TVS pipe T405, the other end ground connection of described resistance R432, 5th pin of described earphone base JACK1 is unsettled, 6th pin of described earphone base JACK1 is connected with one end of magnetic bead L405, the other end of described magnetic bead L405 and one end of described resistance R429, one end of described resistance R430 connects, the other end of described resistance R429 is connected with the VIO28 pin of described Master control chip, the other end of described resistance R430 is connected with the EINT pin of described Master control chip, the model of described earphone base JACK1 is KF-AJR0003, described resistance R429 is 470K, described resistance R430 is 1K, described resistance R431 is 10K, and described resistance R432 is 10K, and the model of described magnetic bead L403 is BLM15BD1025SN1D, the model of described magnetic bead L404 is BLM15BD1025SN1D, the model of described magnetic bead L405 is BLM15BD1025SN1D, and the model of described TVS pipe T405 is ESD9B5V, and the model of described TVS pipe T406 is ESD9B5V.
Described first analog switching circuit 13 comprises the first analog switch U1, resistance R1, electric capacity C1, the model of described first analog switch U1 is NC7SB3157P6X, first pin of described first analog switch U1 connects the other end of the described electric capacity C503 in described headset type testing circuit, second pin of described first analog switch U1, the equal ground connection of three-prong, 4th pin of described first analog switch U1 connects first pin of earphone base JACK1 described in described phone jack receptacle circuit, 5th pin of described first analog switch U1 and VBAT voltage end, one end of electric capacity C1 connects, the other end ground connection of described electric capacity C1, 6th pin of described first analog switch U1 and one end of resistance R1, the GPIO pin of described Master control chip connects, the other end ground connection of described resistance R1, described resistance R1 is 100K, and described electric capacity C1 is 4.7nF.
Described second analog switching circuit 14 comprises the second analog switch U2, resistance R2, electric capacity C2, the model of described second analog switch U2 is NC7SB3157P6X, first pin of described second analog switch U2, the equal ground connection of second pin, the three-prong of described second analog switch U2 connects the other end of the described electric capacity C503 in described headset type testing circuit, 4th pin of described second analog switch U2 connects second pin of earphone base JACK1 described in described phone jack receptacle circuit, 5th pin of described second analog switch U2 and VBAT voltage end, one end of electric capacity C2 connects, the other end ground connection of described electric capacity C2, 6th pin of described second analog switch U2 and one end of resistance R2, the GPIO pin of described Master control chip connects, the other end ground connection of described resistance R2, described resistance R2 is 100K, and described electric capacity C2 is 4.7nF.
Described audio output circuit 15 comprises electric capacity C508, electric capacity C506, electric capacity C504, electric capacity C520, electric capacity C521, resistance R503 and resistance R504, one end of described electric capacity C508 and one end of electric capacity C520, one end of electric capacity C506, the other end of magnetic bead L404 described in described phone jack receptacle circuit connects, the other end ground connection of described electric capacity C520, the other end of described electric capacity C506 is connected with one end of resistance R504, the other end of described resistance R504 connects the MP3_OUTR pin of described Master control chip, the other end of described electric capacity C508 and one end of electric capacity C521, one end of electric capacity C504, the other end of magnetic bead L403 described in described phone jack receptacle circuit connects, the other end ground connection of described electric capacity C521, the other end of described electric capacity C504 is connected with one end of resistance R503, the other end of described resistance R503 connects the MP3_OUTL pin of described Master control chip, described electric capacity C506 is 47uF, and described electric capacity C504 is 47uF, and described resistance R503 is 33K, and described resistance R504 is 33K.
See Fig. 3, described headset type testing circuit 12 comprises electric capacity C502, electric capacity C503, electric capacity C526, electric capacity C527, resistance R521, resistance R522 and resistance R523, the MICN pin of described Master control chip connects one end of electric capacity C502, the other end of described electric capacity C502 and one end of electric capacity C526, one end of resistance R521, one end of resistance R522, one end of electric capacity C527 connects, the other end of described resistance R522 connects the MICBIAS pin of described Master control chip, the other end ground connection of described electric capacity C527, the MICP pin of described Master control chip connects one end of electric capacity C503, the other end of described electric capacity C503 and the other end of described electric capacity C526, the other end of resistance R521, one end of described resistance R523, described first analog switching circuit, described second analog switching circuit connects, the other end of described resistance R523 connects the ACC_DET pin of described Master control chip, described electric capacity C502 is 0.1uF, and described electric capacity C503 is 0.1uF, and described electric capacity C526 is 100pF, and described electric capacity C527 is 4.7uF, and described resistance R521 is 1.5K, and described resistance R522 is 1K, and described resistance R523 is 1K.
Operation principle of the present utility model:
1, earphone whether is had to insert by the level height detecting of Master control chip EINT pin;
2, type and the standard of the earphone inserted is detected by the level numerical value of the ACC_DET pin of Master control chip;
Concrete principle:
In phone jack receptacle circuit 11, two shell fragments are had in earphone base JACK1, under default situations, these two shell fragments close, the EINT pin of Master control chip is in low level, when earphone base JACK1 has earphone to insert, two shell fragments open, the EINT pin of Master control chip is pulled to high level, so, when Master control chip EINT pin is high level, can judge have earphone to insert in earphone socket;
In headset type testing circuit 12, the MICBIAS pin acquiescence of Master control chip is closed, power supply is not had to export, after the EINT pin of Master control chip is pulled to high level, the MICBIAS pin of Master control chip has power supply to export, the level of ACC_DET pin now by detecting Master control chip detects type and the standard of the earphone of insertion: 1, the level detected as ACC_DET is 0, Master control chip makes the first analog switching circuit 13 and the second analog switching circuit 14 all do by the level drawing high GPIO pin once to switch, detect the level at ACC_DET place again, if the level of ACC_DET is still 0, then can judge that the earphone inserted is three-section earphone, 2, the level detected as ACC_DET is 0, Master control chip makes the first analog switching circuit 13 and the second analog switching circuit 14 all do by the level drawing high GPIO pin once to switch, detect the level at ACC_DET place again, if the level of ACC_DET is between 0.4V-0.7V after switching, then can judge that the earphone inserted is the four-section type headset that style predetermined with mobile terminal is contrary, 3, the level detected first as ACC_DET between 0.4V-0.7V, then can judge that the earphone inserted is the four-section type headset that style predetermined with mobile terminal is identical.
The utility model can detect the headset type and standard that insert mobile terminal device, and the earphone compatible realizing next step for mobile terminal device is ready.
Below describe know-why of the present utility model in conjunction with specific embodiments, these describe just in order to explain principle of the present utility model, and can not be interpreted as the restriction to the utility model protection range by any way.Based on explanation herein, those skilled in the art does not need to pay performing creative labour can associate other embodiment of the present utility model, and these modes all will fall within protection range of the present utility model.