CN102361505A - Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface - Google Patents

Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface Download PDF

Info

Publication number
CN102361505A
CN102361505A CN2011101356560A CN201110135656A CN102361505A CN 102361505 A CN102361505 A CN 102361505A CN 2011101356560 A CN2011101356560 A CN 2011101356560A CN 201110135656 A CN201110135656 A CN 201110135656A CN 102361505 A CN102361505 A CN 102361505A
Authority
CN
China
Prior art keywords
module
power amplifier
micro
digital logic
signal output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101356560A
Other languages
Chinese (zh)
Other versions
CN102361505B (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN 201110135656 priority Critical patent/CN102361505B/en
Publication of CN102361505A publication Critical patent/CN102361505A/en
Application granted granted Critical
Publication of CN102361505B publication Critical patent/CN102361505B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides electronic equipment which comprises an MICRO-USB interface, an external power amplification module, a digital logic detection module, an analog signal detection module, a power supply signal output module, a sound signal output module and a control module, wherein when digital logic acquired by the digital logic detection module is 0, the control module determines that an external module is plugged into the MICRO-USB interface and then controls the analog signal detection module to acquire an analog voltage value of an ID end; and when the analog voltage value is not 0V, the control module determines that the external module is the external power amplification module, controls the power supply signal output module to output a power supply signal to the external power amplification module, and controls the sound signal output module to output a sound signal to the external power amplification module. The invention also provides a method for identifying the external power amplification module based on the MICRO-USB interface. By using the electronic equipment and the method in the technical scheme, the cost can be saved and a circuit structure can be simplified at the same time.

Description

Electronic equipment reaches the external power amplifier module recognition methods based on the MICRO-USB interface
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of electronic equipment and reach external power amplifier module recognition methods based on the MICRO-USB interface.
Background technology
In portable electric appts such as mobile phone, PDA (Personal Digital Assistant, personal digital assistant), MP3/4 player, panel computer and net book, often have earplug, receive calls or listen to music, program of radio station etc. for the user; Though the subsidiary earplug of electronic equipment can clearly be listened to voice signal,, if the long-term earplug that uses; Might cause hearing to descend, and its tonequality often also is subject to the power and the structure of earplug itself; Therefore, in the prior art, tend to be provided with an external power amplifier module; It can be linked in the electronic equipment through relevant interface, to play the voice signal in the electronic equipment.
But in the prior art, often special voice signal interface need be set in electronic equipment,, thereby utilize external power amplifier module to play the voice signal in the electronic equipment so that electronic equipment can be connected with external power amplifier module.
But; There is following shortcoming in above technical scheme: promptly, because special voice signal interface need be set, can make that the circuit structure of electronic equipment is more complicated in electronic equipment; And additional voice signal interface also can increase production cost to a certain extent.
So, if can utilize existing interface, will greatly reduce cost and simplify circuit design as the voice signal interface.
Summary of the invention
The technical scheme that the present invention takes for the technical solution problem is: a kind of electronic equipment is provided, comprises: the MICRO-USB interface comprises ID end, VBUS end and data terminal; External power amplifier module comprises the identification end, and the identification end is through one first grounding through resistance, and when external power amplifier module accessed in the MICRO-USB interface, the identification end was connected with the ID end; The Digital Logic detection module comprises the Digital Logic test side, in the Digital Logic detection module, applies through pull-up resistor and draws voltage to the Digital Logic test side, and the Digital Logic test side is connected with the ID end, is used to obtain the Digital Logic that ID holds; The analog signal detection module comprises the analog signal detection end, and the analog signal detection end is connected with the ID end, is used to obtain the analog voltage of ID end; The power supply signal output module comprises the power supply signal output, and power supply signal output and VBUS end is connected, and is used for the out-put supply signal and holds to VBUS; The voice signal output module comprises audio signal output terminal, and audio signal output terminal is connected with data terminal in the MICRO-USB interface, is used for output sound signal to data terminal; Control module; The Digital Logic of obtaining at the Digital Logic detection module is 0 o'clock, and judging has external connection module to be inserted in the MICRO-USB interface, and further controls the analog voltage that the analog signal detection module is obtained the ID end; When analog voltage is not 0V; Judge that external connection module is external power amplifier module, and control power supply signal output module out-put supply signal to external power amplifier module, guide sound tone signal output module output sound signal to external power amplifier module.
Wherein, control chip further comprises: the usb data transport module comprises the usb data transmission ends; Analog switch; Comprise first end, second end and the 3rd end; First end is connected with audio signal output terminal, and second end is connected with the usb data transmission ends, and the 3rd end is connected with data terminal; First end is connected with the 3rd end when power supply signal output module out-put supply signal, and first end is connected with second end when the power supply signal output module stops the out-put supply signal; Control module is further when analog voltage is 0V; Judge that external connection module is the usb data transmission equipment; And control power supply signal output module stops the out-put supply signal, and the usb data transport module carries out transfer of data through usb data transmission ends and usb data transmission equipment.
Wherein, Data terminal comprises D+ end and D-end; Voice signal comprises left channel signals and right-channel signals; Audio signal output terminal comprises left channel signals output and right-channel signals output, and analog switch comprises first analog switch and second analog switch, and the usb data transmission ends comprises D+ data transmission terminal and D-data transmission terminal.
Wherein, the resistance value of first resistance is 1000 ohm.
Wherein, power supply signal is 5V.
Wherein, be provided with filter capacitor between audio signal output terminal and the data terminal.
Wherein, be provided with second resistance between analog signal detection end and the ID end,
Wherein, External power amplifier module further comprises: power amplifier, and power amplifier comprises: the voice signal input, when external power amplifier module accesses in the MICRO-USB interface; Be connected with the data terminal in the MICRO-USB interface, power amplifier obtains voice signal from data terminal; The power supply signal input when external power amplifier module accesses in the MICRO-USB interface, is connected with VBUS in MICRO-USB interface end, and power amplifier is held from VBUS and obtained power supply signal; Loud speaker is connected with power amplifier, carries out sounding according to voice signal.
Another technical scheme that the present invention takes for the technical solution problem is: a kind of external power amplifier module recognition methods based on the MICRO-USB interface is provided; Identification end that external power amplifier module accesses to the ID end in the MICRO-USB interface is set through one first grounding through resistance; In the Digital Logic detection module, apply in the Digital Logic test side of drawing voltage to Digital Logic detection module through pull-up resistor, method may further comprise the steps: the Digital Logic that a. utilizes the Digital Logic detection module to obtain the ID end is inserted in the MICRO-USB interface to have judged whether external connection module; B. it is 0 o'clock in the Digital Logic of obtaining; Judging has external connection module to be inserted in the MICRO-USB interface; C. utilize the analog signal detection module to obtain the analog voltage of ID end; When analog voltage is not 0V, judge that external connection module is external power amplifier module, and out-put supply signal and voice signal to external power amplifier module.
Wherein, this method further comprises step: d. when analog voltage is 0V, judges that external connection module is the usb data transmission equipment, and utilizes usb data transport module and usb data transmission equipment in the electronic equipment to carry out transfer of data.
The invention has the beneficial effects as follows: be different from prior art special voice signal interface need be set in electronic equipment; Can make that the circuit structure of electronic equipment is more complicated; And; Additional voice signal interface can increase the technical problem of production cost; Technical scheme provided by the invention is through through utilizing originally MICRO-USB interface as data transmission terminal as the voice signal interface, and according to the end of the ID in the MICRO-USB interface external power amplifier module discerned, and when practicing thrift cost, also simplified circuit structure.
Description of drawings
Fig. 1 is the electrical block diagram according to the electronic equipment of first embodiment of the invention;
Fig. 2 is the flow chart based on the external power amplifier module recognition methods of MICRO-USB interface according to first embodiment of the invention;
Fig. 3 is the electrical block diagram according to the electronic equipment of second embodiment of the invention;
Fig. 4 is the flow chart based on the external power amplifier module recognition methods of MICRO-USB interface according to second embodiment of the invention;
Fig. 5 is the electrical block diagram according to the electronic equipment of third embodiment of the invention;
Fig. 6 is the electrical block diagram according to the electronic equipment of fourth embodiment of the invention.
Embodiment
At first see also Fig. 1, Fig. 1 is the electrical block diagram according to the electronic equipment of first embodiment of the invention.
As shown in Figure 1; In the present embodiment, disclosed electronic equipment comprises MICRO-USB interface 11, external power amplifier module 12, Digital Logic detection module 13, analog signal detection module 14, power supply signal output module 15, voice signal output module 16 and control module 17.
Wherein, MICRO-USB interface 11 is a kind of interface that is used widely in the prior art, and it comprises ID end 111, VBUS end 112 and data terminal 113.
External power amplifier module 12 comprises identification end 121, and identification end 121 is through one first resistance R, 1 ground connection, and when external power amplifier module 12 accessed in the MICRO-USB interface 11, identification end 121 was connected with ID end 111.Wherein, in all embodiment of the present invention, the resistance value of first resistance R 1 is preferably 1000 ohm.In addition; In the present embodiment; External power amplifier module 12 can further comprise power amplifier 122, power supply signal input 126 and loud speaker 123,124, and its intermediate power amplifier 122 comprises voice signal input 125, when external power amplifier module 12 accesses in the MICRO-USB interface 11; Be connected with the data terminal 113 in the MICRO-USB interface 11, power amplifier 122 obtains voice signal from data terminal 113.And when external power amplifier module 12 accessed in the MICRO-USB interface 11, the VBUS end 112 in power supply signal input 126 and the MICRO-USB interface 11 was connected, and power amplifier 122 holds 112 to obtain power supply signal from VBUS.And loud speaker 123,124 is connected with power amplifier 122, carries out sounding according to voice signal.
Digital Logic detection module 13 comprises Digital Logic test side 131; In Digital Logic detection module 13, applying through pull-up resistor (scheming not shown) draws voltage to Digital Logic test side 131; Digital Logic test side 131 is connected with ID end 111, is used to obtain the Digital Logic of ID end 111.Particularly, Digital Logic is preferably TTL (transistor-transistor logic, transistor-transistor logic) level signal; In digital circuit, the Transistor-Transistor Logic level signal can be represented binary numeral usually, is equivalent to logical one (being Digital Logic 1) like+5V; 0V is equivalent to Digital Logic 0, at room temperature, usually the high level of definition input satisfy>=during 2.0V; As Digital Logic 1, satisfy at input low level<=during 0.8V, be equivalent to Digital Logic 0.Therefore; The Digital Logic that Digital Logic detection module 13 is obtained is embodied in Digital Logic 1 or Digital Logic 0; When external power amplifier module 12 accessed in the MICRO-USB interface 11, identification end 121 was connected with ID end 111, because the identification end 121 of external power amplifier module 12 is through one first resistance R, 1 ground connection; Therefore; When external power amplifier module 12 accessed in the MICRO-USB interface 11, Digital Logic test side 131 was connected with ground through first resistance R 1, makes Digital Logic detection module 13 get access to Digital Logic 0.
Analog signal detection module 14 comprises analog signal detection end 141, and analog signal detection end 141 is connected with ID end 111, is used to obtain the analog voltage of ID end 111.Particularly; Analog signal detection module 14 is an analog-to-digital conversion module; It can convert analog voltage into the digital voltage voltage value of binary number representations such as a plurality of Digital Logic 1 or 0 (promptly by), and the benefit that analog voltage is converted into digital voltage is can directly carry out arithmetical operation to digital voltage by processor to handle.
Power supply signal output module 15 comprises power supply signal output 151, and power supply signal output 151 is connected with VBUS end 112, is used for the out-put supply signal to VBUS end 112.
Voice signal output module 16 comprises audio signal output terminal 161, and audio signal output terminal 161 is connected with data terminal 113 in the MICRO-USB interface 11, is used for output sound signal to data terminal 113.
The Digital Logic that control module 17 is obtained at Digital Logic detection module 13 is 0 o'clock; Judging has external connection module to be inserted in the MICRO-USB interface 11; And further control the analog voltage that analog signal detection module 14 is obtained ID end 111; When analog voltage is not 0V; Judge that external connection module is external power amplifier module 12, and control power supply signal output module 15 out-put supply signals to external power amplifier module 12, guide sound tone signal output module 16 output sound signals to external power amplifier module 12.
It should be noted that external connection module mainly comprises disclosed external power amplifier module 12 and usb data transport module.
Above according to Digital Logic be 0 have external connection module to be inserted in the MICRO-USB interface 11 with judgement foundation be; Because the identification end 121 of external power amplifier module 12 is through one first resistance R, 1 ground connection; Draw voltage to Digital Logic test side 131 and in Digital Logic detection module 13, apply from the above through pull-up resistor; And analog signal detection end 141 and Digital Logic test side 131 are connected with ID end 111 simultaneously, therefore, and when external power amplifier module 12 is inserted in the MICRO-USB interface 11; On draw voltage to pass through pull-up resistor and first resistance R, 1 ground connection; Analog voltage in the analog signal detection module 14 detected Digital Logic test sides 131 is the dividing potential drop of drawing voltage on 1 pair of pull-up resistor and first resistance R, and little a lot (resistance value of first resistance R 1 is preferably 1000 ohm, and the resistance value of second pull-up resistor is preferably 10000 ohm because first resistance R 1 is set to than pull-up resistor; And on draw voltage to be generally 5V); Therefore the analog voltage in the Digital Logic detection module 13 detected Digital Logic test sides 131 is the partial pressure value of drawing voltage on 1 pair of pull-up resistor and first resistance R, and this partial pressure value is very little, can think<=0.8V; It is equivalent to Digital Logic 0, so Digital Logic detection module 13 can obtain Digital Logic 0 from Digital Logic test side 131.And when external connection module is the usb data transmission equipment; Because the usb data transmission equipment is held 121 general direct ground connection with the corresponding identification that ID end 111 connects in inserting MICRO-USB interface 11; Therefore draw voltage on directly through the direct ground connection of pull-up resistor; The magnitude of voltage of ID end 111 is 0V, so the digital signal detection module can be obtained Digital Logic 0 from Digital Logic test side 131 equally.
And when not having external connection module to be inserted in the MICRO-USB interface 11; Because in Digital Logic detection module 13, applying through pull-up resistor draws voltage to Digital Logic test side 131; Therefore, the digital signal detection module can be obtained Digital Logic 1 from Digital Logic test side 131.
Further, can know further whether basis is that 0V is to judge that external connection module is external power amplifier module 12 or usb data transmission equipment at analog voltage by above introduction; As a rule; When analog voltage was 0V, the decidable external connection module was the usb data transmission equipment, and; When analog voltage is not 0V, judge that external connection module is external power amplifier module 12.
Below see also Fig. 2, Fig. 2 is the flow chart based on external power amplifier module 12 recognition methodss of MICRO-USB interface 11 according to first embodiment of the invention.
As shown in Figure 2, comprise according to external power amplifier module 12 recognition methodss based on MICRO-USB interface 11 of first embodiment of the invention:
Step 201, the Digital Logic of utilizing Digital Logic detection module 13 to obtain ID end 111 is inserted in the MICRO-USB interface 11 to have judged whether external connection module.
Step 202 is 0 o'clock in the Digital Logic of obtaining, and judging has external connection module to be inserted in the MICRO-USB interface 11.
Step 203; Utilize analog signal detection module 14 to obtain the analog voltage of said ID end 111; When said analog voltage is not 0V, judge that said external connection module is said external power amplifier module 12, and out-put supply signal and voice signal to external power amplifier module 12.
Therefore; In the present embodiment, through utilizing existing MICRO-USB interface, when external power amplifier inserts the MICRO-USB interface as the voice signal interface; The voice signal of exportable correspondence and power supply signal be to external power amplifier, thereby greatly reduce cost and simplify circuit design.
It should be noted that in first embodiment, determining external connection module when being external power amplifier module; Can be through MICRO-USB interface 11 to external power amplifier module 12 out-put supply signal and voice signals, but, when determining external connection module when being the usb data transmission equipment; But can not carry out the usb data transmission at electronic equipment and usb data transmission equipment; Therefore, a switching machine system need be set, make determining external connection module when being the usb data transmission equipment; Can switch to the usb data transmission mode, thereby carry out the usb data transmission at electronic equipment and usb data transmission equipment.And in the second embodiment of the present invention, will on the basis of first embodiment, make corresponding improvement, to reach the technique effect of mode switch, below will make detailed introduction to the second embodiment of the present invention referring to Fig. 3 and Fig. 4.
At first see also Fig. 3, Fig. 3 is the electrical block diagram according to the electronic equipment of second embodiment of the invention.As shown in Figure 3, the difference that the second embodiment of the present invention and first is implemented is, on electronic equipment, further is provided with usb data transport module and analog switch.
Wherein, usb data transport module 18 comprises usb data transmission ends 181.Analog switch 10 comprises first end 101, second end 102 and the 3rd end 103; First end 101 is connected with audio signal output terminal 161; Second end 102 is connected with usb data transmission ends 181; The 3rd end 103 is connected with data terminal 113, and first end 101 is connected with the 3rd end 103 when power supply signal output module 15 out-put supply signals, and first end 101 is connected with second end 102 when power supply signal output module 15 stops the out-put supply signal.
Therefore; Through above setting, can make control module further when analog voltage is 0V, judge that external connection module is the usb data transmission equipment; And control power supply signal output module 15 stops the out-put supply signal; At this moment, first end 101 of analog switch 10 is connected with second end 102, and usb data transport module 18 can carry out transfer of data through usb data transmission ends 181 and usb data transmission equipment.
And when analog voltage is not 0V; Control module decidable external connection module is external power amplifier module; And control power supply signal output module 15 out-put supply signals; At this moment, first end 101 of analog switch 10 is connected with the 3rd end 103, and the voice signal output module can carry out transfer of data through usb data transmission ends 181 and usb data transmission equipment.
Below please further referring to Fig. 4, Fig. 4 is the flow chart based on the external power amplifier module recognition methods of MICRO-USB interface according to second embodiment of the invention.
As shown in Figure 4, may further comprise the steps according to the external power amplifier module recognition methods based on the MICRO-USB interface of second embodiment of the invention: '
Step 301 utilizes the Digital Logic detection module to obtain the Digital Logic of ID end.
Step 302, the value of determination number word logic is 0 o'clock in Digital Logic, execution in step 303, on the contrary then execution in step 304
Step 303, judging has external connection module to be inserted in the MICRO-USB interface, and after step 303 is accomplished execution in step 305.
Step 304 is judged there be not external connection module to be inserted in the MICRO-USB interface, and is jumped to step 301, obtains Digital Logic again.
Step 305 utilizes the analog signal detection module to obtain the analog voltage of ID end.
Step 306 is judged analog voltage, when analog voltage is not 0V, and execution in step 307, on the contrary then execution in step 308.
Step 307 judges that external connection module is external power amplifier module, and out-put supply signal and voice signal to external power amplifier module.
Step 308 judges that external connection module is the usb data transmission equipment, and utilizes the usb data transport module 18 in the electronic equipment to carry out transfer of data with the usb data transmission equipment.
Therefore; In the second embodiment of the present invention; Through in electronic equipment, setting up analog switch 10 and usb data transport module 18, utilize analog switch 10 to make mode switch, so that determining external connection module when being the usb data transmission equipment; Switch to the usb data transmission mode, thereby make usb data transport module 18 carry out transfer of data through usb data transmission ends 181 and usb data transmission equipment.
It should be noted that in the first and second above-mentioned embodiment, only transmit the voice signal of single sound channel with data terminal 113, audio signal output terminal 161 and analog switch 16; But; Because voice signal can be divided into left channel signals and right-channel signals, and the data terminal in the MICRO-USB interface more comprises D+ end and D-end, if can utilize D+ end and D-end to transmit left channel signals and right-channel signals simultaneously; Will greatly improve the sound playing quality; Therefore, in the following third embodiment of the present invention, with at length introducing the implementation of utilizing D+ end and D-end to transmit left channel signals and right-channel signals simultaneously.
See also Fig. 5, Fig. 5 is the electrical block diagram according to the electronic equipment of third embodiment of the invention.As shown in Figure 5; Data terminal comprises D+ end 213 and D-end 215; Audio signal output terminal comprises the first sound channel signal output 261 and the second sound channel signal output part 262; Analog switch comprises first analog switch 20 and second analog switch 29, and the usb data transmission ends comprises D+ data transmission terminal 281 and D-data transmission terminal 282.
Wherein, First end 201 of first analog switch 20 is connected with first audio signal output terminal 261; Second end 202 of first analog switch 20 is connected with D+ data transmission terminal 281; The 3rd end 203 of first analog switch 20 is connected with D+ end 213; First end 201 of first analog switch 20 is connected with the 3rd end 203 of first analog switch 20 when power supply signal output module 25 out-put supply signals, and first end 201 of first analog switch 20 is connected with second end 202 of first analog switch 20 when power supply signal output module 25 stops the out-put supply signal.
Likewise; First end 291 of second analog switch 29 is connected with second sound signal output 262; Second end 292 of second analog switch 29 is connected with D-data transmission terminal 282; The 3rd end 293 of second analog switch 29 is connected with D-end 215; First end 291 of second analog switch 29 is connected with the 3rd end 293 of second analog switch 29 when power supply signal output module 25 out-put supply signals, and first end 291 of second analog switch 29 is connected with second end 292 of second analog switch 29 when power supply signal output module 25 stops the out-put supply signal.
Therefore; When power supply signal output module 25 out-put supply signals; First end 201 of first analog switch 20 is connected with the 3rd end 203 of first analog switch 20; First end 291 of second analog switch 29 is connected with the 3rd end 293 of second analog switch 29, thereby makes voice signal output module 26 through the first sound channel signal output 261 and the second sound channel signal output part, 262 output first sound channel signals and second sound channel signal to said external power amplifier module.Wherein, this first sound channel signal and second sound channel signal can be respectively left channel signals and right-channel signals
And when power supply signal output module 25 stops the out-put supply signal; Second end 202 of first analog switch 20 is connected with the 3rd end 203 of first analog switch 20; Second end 292 of second analog switch 29 is connected with the 3rd end 293 of second analog switch 29, thereby makes the usb data transport module carry out the usb data transmission through D+ data transmission terminal 281 and D-data transmission terminal 282 and usb data transmission equipment.
Please further referring to Fig. 5, in the present embodiment, power supply signal is preferably 5V, and it is a usb protocol specified standard magnitude of voltage, gets 5V and can drive external power amplifier well as power supply signal.
And; Be provided with filter capacitor C1 between first audio signal output terminal and the D+ end 213; Be provided with filter capacitor C2 between second sound signal output and the D-end 215; The effective noise signal in the elimination voice signal of filter capacitor C1 and C2 wherein, thus make the play quality of external power playing module further improve.
In addition, as shown in Figure 5, more can be provided with second resistance R 2 between analog signal detection end and the ID end, this second resistance R 2 can be chosen according to actual needs, to improve the sampling precision of analog signal detection module 24.
It should be noted that; The set-up mode of the choosing of the above power supply signal that discloses, filter capacitor and second resistance R 2 can be applicable among arbitrary embodiment of the present invention; Further to improve disclosed technical scheme, the present invention does not do concrete qualification to this.
Below see also Fig. 6, Fig. 6 is the electrical block diagram according to the electronic equipment of fourth embodiment of the invention.As shown in Figure 6; The difference of present embodiment and above-mentioned the 3rd embodiment is; Digital Logic detection module 23 in the electronic equipment, analog signal detection module 24, power supply signal output module 25, voice signal output module 26, control module 27 and usb data transport module 28 can be integrated in the control chip, through being embedded in the control corresponding code at control chip to accomplish the function of above-mentioned each module.
And; In control chip, the VBUS of control chip capable of using end 351, ADC end 241, USB_ID end 331, USB_DN end 361 and USB_DP end 362, the first sound channel signal output and the second sound channel signal output part cooperate the control corresponding code to accomplish the corresponding function of power supply signal output module 25, analog signal detection module 24, Digital Logic detection module 23, usb data transport module 28 and voice signal output module 26.And, more can write the control corresponding code to control collaborative work between above each module, to reach the corresponding function of control module 27.Wherein, the universal input/output interface in USB_ID end 331, USB_DN end 361 and USB_DP end 362, first sound channel signal output and the second sound channel signal output part control chip capable of using is realized.And when electronic equipment was mobile phone, control chip was preferably base band signal processing chip.
Therefore; The invention provides a kind of electronic equipment and reach external power amplifier module recognition methods based on the MICRO-USB interface; Through utilizing originally MICRO-USB interface as data transmission terminal as the voice signal interface; And according to the ID in MICRO-USB interface end external power amplifier module is discerned, when practicing thrift cost, also simplified circuit structure.
More than be merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. an electronic equipment is characterized in that, comprising:
The MICRO-USB interface comprises ID end, VBUS end and data terminal;
External power amplifier module comprises the identification end, and said identification end is through one first grounding through resistance, and when said external power amplifier module accessed in the said MICRO-USB interface, said identification end was connected with said ID end;
The Digital Logic detection module; Comprise the Digital Logic test side; In said Digital Logic detection module, apply through pull-up resistor and draw voltage to said Digital Logic test side, said Digital Logic test side is connected with said ID end, is used to obtain the Digital Logic that said ID holds;
The analog signal detection module comprises the analog signal detection end, and said analog signal detection end is connected with said ID end, is used to obtain the analog voltage of said ID end;
The power supply signal output module comprises the power supply signal output, and said power supply signal output is connected with said VBUS end, is used for the out-put supply signal to said VBUS end;
The voice signal output module comprises audio signal output terminal, and said audio signal output terminal is connected with data terminal in the said MICRO-USB interface, is used for output sound signal to said data terminal;
Control module; The said Digital Logic of obtaining at said Digital Logic detection module is 0 o'clock; Judging has external connection module to be inserted in the said MICRO-USB interface; And further control the analog voltage that said analog signal detection module is obtained said ID end, when said analog voltage is not 0V, judge that said external connection module is said external power amplifier module; And control said power supply signal output module out-put supply signal to said external power amplifier module, control said voice signal output module output sound signal to said external power amplifier module.
2. electronic equipment according to claim 1 is characterized in that, said control chip further comprises:
The usb data transport module comprises the usb data transmission ends;
Analog switch; Comprise first end, second end and the 3rd end; Said first end is connected with said audio signal output terminal, and said second end is connected with said usb data transmission ends, and said the 3rd end is connected with said data terminal; Said first end is connected with said the 3rd end when said power supply signal output module is exported said power supply signal, and said first end is connected with said second end when said power supply signal output module stops to export said power supply signal;
Said control module is further when said analog voltage is 0V; Judge that said external connection module is the usb data transmission equipment; And control said power supply signal output module and stop to export said power supply signal, said usb data transport module carries out transfer of data through said usb data transmission ends and said usb data transmission equipment.
3. electronic equipment according to claim 2; It is characterized in that; Said data terminal comprises D+ end and D-end, and said voice signal comprises left channel signals and right-channel signals, and said audio signal output terminal comprises left channel signals output and right-channel signals output; Said analog switch comprises first analog switch and second analog switch, and said usb data transmission ends comprises D+ data transmission terminal and D-data transmission terminal.
4. according to claim 1 or 3 each described electronic equipments, it is characterized in that the resistance value of said first resistance is 1000 ohm.
5. according to claim 1 or 3 each described electronic equipments, it is characterized in that said power supply signal is 5V.
6. according to claim 1 or 3 each described electronic equipments, it is characterized in that, be provided with filter capacitor between said audio signal output terminal and the said data terminal.
7. according to claim 1 or 3 each described electronic equipments, it is characterized in that, be provided with second resistance between said analog signal detection end and the said ID end,
8. according to claim 1 or 3 each described electronic equipments, it is characterized in that said external power amplifier module further comprises:
Power amplifier, said power amplifier comprises:
The voice signal input when said external power amplifier module accesses in the said MICRO-USB interface, is connected with data terminal in the said MICRO-USB interface, and said power amplifier obtains said voice signal from said data terminal;
The power supply signal input when said external power amplifier module accesses in the said MICRO-USB interface, is connected with VBUS in said MICRO-USB interface end, and said power amplifier is held from said VBUS and obtained said power supply signal;
Loud speaker is connected with said power amplifier, carries out sounding according to said voice signal.
9. external power amplifier module recognition methods based on the MICRO-USB interface; It is characterized in that; Identification end that said external power amplifier module accesses to the ID end in the said MICRO-USB interface is set through one first grounding through resistance; In the Digital Logic detection module, apply and draw in voltage to the Digital Logic test side of said Digital Logic detection module, said method comprising the steps of through pull-up resistor:
A. the Digital Logic of utilizing the Digital Logic detection module to obtain said ID end is inserted in the said MICRO-USB interface to have judged whether external connection module;
B. be 0 o'clock in the said Digital Logic of obtaining, judging has external connection module to be inserted in the said MICRO-USB interface,
C. utilize the analog signal detection module to obtain the analog voltage of said ID end; When said analog voltage is not 0V; Judge that said external connection module is said external power amplifier module, and out-put supply signal and voice signal to said external power amplifier module.
10. method according to claim 9; It is characterized in that; Said method comprises that further step: d. is when said analog voltage is 0V; Judge that said external connection module is the usb data transmission equipment, and utilize usb data transport module and said usb data transmission equipment in the said electronic equipment to carry out transfer of data.
CN 201110135656 2011-05-24 2011-05-24 Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface Expired - Fee Related CN102361505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110135656 CN102361505B (en) 2011-05-24 2011-05-24 Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110135656 CN102361505B (en) 2011-05-24 2011-05-24 Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface

Publications (2)

Publication Number Publication Date
CN102361505A true CN102361505A (en) 2012-02-22
CN102361505B CN102361505B (en) 2013-07-10

Family

ID=45586758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110135656 Expired - Fee Related CN102361505B (en) 2011-05-24 2011-05-24 Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface

Country Status (1)

Country Link
CN (1) CN102361505B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106026006A (en) * 2016-06-30 2016-10-12 成绎半导体技术(上海)有限公司 USB Type-C interface female head intelligent detection and protection circuit
CN107079064A (en) * 2014-06-04 2017-08-18 内克派克有限公司 The battery of interchangeable modules is powered platform
CN110300318A (en) * 2019-05-15 2019-10-01 深圳康佳电子科技有限公司 A kind of USB terminal interface circuit and USB terminal interface circuit control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN201359725Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 USB interface circuit and portable hand-held device provided with the circuit
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN201359725Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 USB interface circuit and portable hand-held device provided with the circuit
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107079064A (en) * 2014-06-04 2017-08-18 内克派克有限公司 The battery of interchangeable modules is powered platform
CN107079064B (en) * 2014-06-04 2021-08-27 莫都威尔私人有限公司 Device for storing and routing electrical power and data to at least one party
CN106026006A (en) * 2016-06-30 2016-10-12 成绎半导体技术(上海)有限公司 USB Type-C interface female head intelligent detection and protection circuit
CN106026006B (en) * 2016-06-30 2019-07-16 成绎半导体技术(上海)有限公司 A kind of USB Type-C interface female intelligent measurement and protection circuit
CN110300318A (en) * 2019-05-15 2019-10-01 深圳康佳电子科技有限公司 A kind of USB terminal interface circuit and USB terminal interface circuit control method
CN110300318B (en) * 2019-05-15 2021-09-21 深圳康佳电子科技有限公司 USB terminal interface circuit and USB terminal interface circuit control method

Also Published As

Publication number Publication date
CN102361505B (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN203167074U (en) Mobile terminal configured with reuse interface
CN103475972B (en) Connecting part for headset plug, headset plug and terminal
WO2014032482A1 (en) System and method for detecting the ground and microphone input contacts in an audio plug
CN104335559A (en) Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
CN106535077B (en) A kind of earphone test circuit
CN104267924A (en) Mobile terminal and audio processing method thereof
CN204014027U (en) A kind of digital audio decoding general headrest with USB interface
EP2571288B1 (en) Mobile device for multi-channel sound collection and output using common connector, and driving method thereof
CN204496731U (en) A kind of Voice command dictation device
US20160249127A1 (en) Backward compatible system and method for using 4p audio jack to provide power and signal to headset with active noise cancellation
CN207354556U (en) A kind of head circuit, earphone and mobile terminal
CN105578344A (en) Earphone interface state detecting system and detecting method
CN207052880U (en) The earphone interface and mobile terminal of a kind of mobile terminal
CN102361505B (en) Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface
CN105828224B (en) Electronic device, corrector and earphone microphone for correcting electronic device
CN205987323U (en) Audio processing circuit and terminal based on type c interface
CN102355518A (en) Mobile phone and audio processing method thereof
CN102393811B (en) Transmission method, device and electronic equipment for digital signals of audio frequency interface
CN103200480A (en) Headset and working method thereof
CN103369430A (en) Earphone interface circuit and audio playing device
CN104969568A (en) Circuit, terminal and earphone for detecting the key movements of the headset
TW201301910A (en) Audio playing device and volume controlling method
CN106488044B (en) Mobile phone and system for mobile sound card and implementation method
CN105182166A (en) Listening device detection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130710

CF01 Termination of patent right due to non-payment of annual fee