Movatterモバイル変換


[0]ホーム

URL:


CN104105046A - Detection circuit - Google Patents

Detection circuit
Download PDF

Info

Publication number
CN104105046A
CN104105046ACN201310120676.XACN201310120676ACN104105046ACN 104105046 ACN104105046 ACN 104105046ACN 201310120676 ACN201310120676 ACN 201310120676ACN 104105046 ACN104105046 ACN 104105046A
Authority
CN
China
Prior art keywords
pin
plug
microphone
detection circuit
voltage
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
CN201310120676.XA
Other languages
Chinese (zh)
Other versions
CN104105046B (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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer IncfiledCriticalAcer Inc
Priority to CN201310120676.XApriorityCriticalpatent/CN104105046B/en
Publication of CN104105046ApublicationCriticalpatent/CN104105046A/en
Application grantedgrantedCritical
Publication of CN104105046BpublicationCriticalpatent/CN104105046B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

A detection circuit comprises a first pin, a second pin, a voltage division detection circuit, a processing unit, a microphone switcher and a coder-decoder. The first pin and the second pin are used for being connected with at least one signal conduction area of a plug of the earphone, and the voltage division detection circuit is used for generating first voltage division and second voltage division according to the signal conduction areas connected with the first pin and the second pin. The processing unit generates a switching control signal according to the first and second divided voltages to control the microphone switch. When the processing unit detects that the first pin and the second pin are respectively connected with the microphone area and the grounding area of the plug, the first pin and the second pin are respectively connected with the microphone output node and the grounding; when the processing unit detects that the first pin and the second pin are respectively connected with the grounding area and the microphone area, the first pin and the second pin are respectively connected with the grounding node and the microphone output node. By adopting the detection circuit, the type of the earphone inserted into the jack of the earphone can be judged.

Description

Translated fromChinese
检测电路detection circuit

技术领域technical field

本发明涉及一种电子装置,尤其涉及一种具有自动检测耳机插头的功能的电子装置。The invention relates to an electronic device, in particular to an electronic device with the function of automatically detecting earphone plugs.

背景技术Background technique

现今的电子装置常配备有耳机插孔,特别是手持式电子装置,以使用耳机播放音乐、录音、通话等。由于耳机结合麦克风已蔚为趋势,因此电子装置需要能借由所收纳的耳机插头,判断是否为一般耳机,或是结合麦克风的耳机。然而,麦克风耳机的插头具有两种型式,现今的电子装置通常只能判断此两种麦克风耳机中的一种与一般耳机的差别。如果使用者持有的是另一种插头型式的麦克风耳机,此时电子装置就无法加以判断。Today's electronic devices are often equipped with earphone jacks, especially hand-held electronic devices, so that the earphones can be used to play music, record, make calls, and so on. Since earphones combined with microphones have become a trend, the electronic device needs to be able to judge whether it is a normal earphone or an earphone combined with a microphone by the received earphone plug. However, there are two types of plugs for microphones and earphones, and today's electronic devices usually can only determine the difference between one of the two types of microphones and earphones and ordinary earphones. If the user is holding a microphone earphone with another plug type, the electronic device cannot judge at this time.

有鉴于此,需要一种新的方案,以解决上述问题。In view of this, a new solution is needed to solve the above problems.

发明内容Contents of the invention

针对现有技术存在的问题,本发明提供一种检测电路,用以检测耳机的插头,包括第一接脚与第二接脚、分压检测电路、处理单元、麦克风切换器以及编解码器。第一接脚与第二接脚连接该插头的至少一信号传导区。分压检测电路根据第一接脚与第二接脚所连接的信号传导区,产生第一分压与第二分压。处理单元根据第一分压与第二分压,判断第一接脚与第二接脚所连接的信号传导区,并产生切换控制信号。麦克风切换器根据切换控制信号,当处理单元判断第一接脚与第二接脚分别连接插头的麦克风区与接地区时,将第一接脚连接麦克风输出节点,并将第二接脚耦接至接地,并且当处理单元判断第一接脚与第二接脚分别连接插头的接地区与麦克风区时,将第一接脚连接该接地,并将第二接脚耦接至麦克风输出节点。编解码器则耦接至麦克风输出节点。Aiming at the problems existing in the prior art, the present invention provides a detection circuit for detecting the plug of an earphone, including a first pin and a second pin, a voltage division detection circuit, a processing unit, a microphone switch and a codec. The first pin and the second pin are connected to at least one signal conduction area of the plug. The divided voltage detection circuit generates a first divided voltage and a second divided voltage according to the signal conduction area connected to the first pin and the second pin. The processing unit judges the signal conduction area connected to the first pin and the second pin according to the first divided voltage and the second divided voltage, and generates a switching control signal. The microphone switcher connects the first pin to the microphone output node and couples the second pin to the microphone output node when the processing unit judges that the first pin and the second pin are respectively connected to the microphone area and the ground area of the plug according to the switching control signal. to the ground, and when the processing unit judges that the first pin and the second pin are respectively connected to the ground area and the microphone area of the plug, the first pin is connected to the ground, and the second pin is coupled to the microphone output node. The codec is coupled to the microphone output node.

采用本申请提供的检测电路,可以判断出耳机的插孔中插入的耳机的类型。By using the detection circuit provided in the present application, the type of the earphone inserted into the earphone jack can be judged.

附图说明Description of drawings

图1为三种类型的耳机插头以及电子装置的示意图;1 is a schematic diagram of three types of earphone plugs and electronic devices;

图2为本发明所提供的检测电路的电路图;Fig. 2 is the circuit diagram of detection circuit provided by the present invention;

图3到图5为本发明所提供的不同接脚对应于时序的电位变化图;FIG. 3 to FIG. 5 are potential change diagrams of different pins corresponding to timing provided by the present invention;

图6图为本发明所提供的判断耳机插头类型的表格;Figure 6 is a table for judging the type of earphone plug provided by the present invention;

图7为本发明所提供的检测电路的操作流程图;Fig. 7 is the operation flowchart of the detection circuit provided by the present invention;

图8为本发明所提供的另一检测电路的电路图;Fig. 8 is a circuit diagram of another detection circuit provided by the present invention;

图9到图11为本发明所提供的不同接脚对应于时序的电位变化图;FIG. 9 to FIG. 11 are potential change diagrams of different pins corresponding to timing provided by the present invention;

图12为本发明所提供的另一检测电路的操作流程图。FIG. 12 is an operation flowchart of another detection circuit provided by the present invention.

【主要元件附图标记说明】[Description of reference signs of main components]

100~电子装置100~Electronic device

102~插孔102~jack

122、132、142、208~插头122, 132, 142, 208~plug

124、135~麦克风区124, 135~microphone area

125、134、144~接地区125, 134, 144~ grounding area

126、136、145~右音频信号区126, 136, 145 ~ right audio signal area

127、137、146~左音频信号区127, 137, 146 ~ left audio signal area

128~第一类型的麦克风耳机128 ~ The first type of microphone headphone

129、139、149~连接线129, 139, 149~connection line

138~第二类型的麦克风耳机138 ~ The second type of microphone headphone

148~一般耳机148~general headphones

200~检测电路200~detection circuit

202~处理单元202~processing unit

204~编解码器204~codec

206~麦克风切换器206~Microphone Switcher

211~第一接脚211~the first pin

212~第二接脚212~second pin

213~第三接脚213~the third pin

214~第四接脚214~the fourth pin

215~第五接脚215~the fifth pin

222、224、226~电容222, 224, 226~capacitance

230~分压检测电路230~Voltage detection circuit

231-237~电阻231-237~resistor

MIC~麦克风电压源MIC~microphone voltage source

N1~第一分压节点N1~the first voltage divider node

N2~第二分压节点N2~second voltage division node

N3~麦克风输出节点N3~microphone output node

N4~第三分压节点N4~third voltage division node

VDD~电压源VDD~voltage source

具体实施方式Detailed ways

以下将详细讨论本发明各种实施例的装置及使用方法。然而值得注意的是,本发明所提供的许多可行的发明概念可实施在各种特定范围中。这些特定实施例仅用于举例说明本发明的装置及使用方法,但非用于限定本发明的范围。Devices and methods of use of various embodiments of the present invention are discussed in detail below. It should be noted, however, that the present invention provides many possible inventive concepts that can be implemented in various specific scopes. These specific examples are only used to illustrate the device and method of use of the present invention, but are not intended to limit the scope of the present invention.

图1为可收纳三种不同类型插头的电子装置。如图所示,电子装置100包括插孔102以及检测电路200,插孔102可收纳第一类型的麦克风耳机128的插头122、第二类型的麦克风耳机138的插头132、以及一般耳机148的插头142。第一类型的麦克风耳机128经由连接线129连接至插头122,第一类型的麦克风耳机128至少包括左右二声道的耳机以及麦克风。插头122包括沿着单插脚长度按预定次序配置的四个信号传导区,从插头底部开始依序为麦克风区124、接地区125、右音频信号区126以及左音频信号区127,其中左及右音频信号区可相互对调。Figure 1 shows an electronic device that can accommodate three different types of plugs. As shown in the figure, the electronic device 100 includes a jack 102 and a detection circuit 200. The jack 102 can accommodate the plug 122 of the first type of microphone earphone 128, the plug 132 of the second type of microphone earphone 138, and the plug of a general earphone 148. 142. The first type of microphone earphone 128 is connected to the plug 122 via the connecting wire 129 , and the first type of microphone earphone 128 at least includes earphones with two channels of left and right and a microphone. The plug 122 includes four signal conduction areas configured in a predetermined order along the length of a single pin, which are a microphone area 124, a grounding area 125, a right audio signal area 126, and a left audio signal area 127 from the bottom of the plug, wherein the left and right The audio signal areas can be swapped with each other.

第二类型的麦克风耳机138经由连接线139连接至插头132,第二类型的麦克风耳机138至少包括左右二声道的耳机以及麦克风。要注意的是,第一类型的麦克风耳机128与第二类型的麦克风耳机138的主要差别在于插头122与132。如图1所示,插头132包括沿着单插脚长度按预定次序配置的四个信号传导区,从插头底部开始依序为接地区134、麦克风区135、右音频信号区136以及左音频信号区137,其中左和右音频信号区可相互对调。The second type of microphone earphone 138 is connected to the plug 132 via the connection line 139 , and the second type of microphone earphone 138 at least includes earphones with two channels of left and right and a microphone. It should be noted that the main difference between the first type of microphone headset 128 and the second type of microphone headset 138 lies in the plugs 122 and 132 . As shown in FIG. 1 , the plug 132 includes four signal conducting areas arranged in a predetermined order along the length of a single pin, which are a grounding area 134, a microphone area 135, a right audio signal area 136, and a left audio signal area in sequence from the bottom of the plug. 137, wherein the left and right audio signal areas can be swapped with each other.

一般耳机148经由连接线149连接至插头142,一般耳机148至少包括左右二声道的耳机。插头142包括沿着单插脚长度按预定次序配置的三个信号传导区,从插头底部开始依序为接地区144、右音频信号区145以及左音频信号区146,其中左和右音频信号区可互换。换言之,一般耳机148不包括麦克风区。The general earphone 148 is connected to the plug 142 via the connecting wire 149, and the general earphone 148 includes at least two-channel earphones. The plug 142 includes three signal conduction areas arranged in a predetermined order along the length of a single pin, starting from the bottom of the plug in order of a grounding area 144, a right audio signal area 145, and a left audio signal area 146, wherein the left and right audio signal areas can be exchange. In other words, the general earphone 148 does not include a microphone area.

图2为本发明中检测电路的一实施例的电路图。检测电路200包括处理单元202、编解码器204、麦克风切换器206、分压检测电路230、第一至第四接脚211~214、电阻231~237以及电容222、224与226。第一接脚211、第二接脚212、第三接脚213以及第四接脚214用以电性连接至被收纳至一插孔(未显示)的插头208。第一接脚211至第四接脚214可以特定次序配置,以确保电性连接至插头上的各区域。举例来说,若插头208为图1中的第一类型的麦克风耳机128的插头122,则麦克风区124接触至第一接脚211,接地区125接触至第二接脚212,右音频信号区126接触至第三接脚213,左音频信号区127接触至第四接脚214。若插头208为图1中的第二类型的麦克风耳机138的插头132,则接地区132接触至第一接脚211,麦克风区135接触至第二接脚212,右音频信号区136接触至第三接脚213,左音频信号区137接触至第四接脚214。若插头208为图1中的一般耳机148的插头142,则接地区144接触至第一接脚211与第二接脚212,右音频信号区145接触至第三接脚213,左音频信号区146接触至第四接脚214。FIG. 2 is a circuit diagram of an embodiment of the detection circuit in the present invention. The detection circuit 200 includes a processing unit 202 , a codec 204 , a microphone switch 206 , a voltage division detection circuit 230 , first to fourth pins 211 - 214 , resistors 231 - 237 , and capacitors 222 , 224 and 226 . The first pin 211 , the second pin 212 , the third pin 213 and the fourth pin 214 are used to electrically connect to a plug 208 received in a socket (not shown). The first pin 211 to the fourth pin 214 can be arranged in a specific order to ensure electrical connection to various regions on the plug. For example, if the plug 208 is the plug 122 of the microphone headphone 128 of the first type in FIG. 126 is connected to the third pin 213 , and the left audio signal area 127 is connected to the fourth pin 214 . If the plug 208 is the plug 132 of the microphone earphone 138 of the second type in FIG. The third pin 213 , the left audio signal area 137 is in contact with the fourth pin 214 . If the plug 208 is the plug 142 of the general earphone 148 in FIG. 146 contacts to the fourth pin 214 .

分压检测电路230包括电阻231~234。电阻231具有一第一端耦接至电压源VDD,以及一第二端耦接至一第一分压节点N1,其中第一分压节点N1上的电压为第一分压,而电阻232具有一第一端耦接至第一分压节点N1,以及一第二端耦接至第一接脚211。电阻233具有一第一端耦接至电压源VDD,以及一第二端耦接至一第二分压节点N2,其中第二分压节点N2上的电压为第二分压,而电阻234具有一第一端耦接至第二分压节点N2,以及一第二端耦接至第二接脚212。处理单元202用以根据第一分压节点N1与第二分压节点N2上的第一、第二电压,判断插孔所连接的插头208是第一类型的麦克风耳机128、第二类型的麦克风耳机138与一般耳机148中的哪一种,并根据判断结果输出一切换控制信号。The divided voltage detection circuit 230 includes resistors 231 - 234 . The resistor 231 has a first terminal coupled to the voltage source VDD, and a second terminal coupled to a first voltage dividing node N1, wherein the voltage on the first voltage dividing node N1 is the first divided voltage, and the resistor 232 has A first terminal is coupled to the first voltage dividing node N1 , and a second terminal is coupled to the first pin 211 . The resistor 233 has a first terminal coupled to the voltage source VDD, and a second terminal coupled to a second voltage dividing node N2, wherein the voltage on the second voltage dividing node N2 is the second divided voltage, and the resistor 234 has A first terminal is coupled to the second voltage dividing node N2 , and a second terminal is coupled to the second pin 212 . The processing unit 202 is configured to determine whether the plug 208 connected to the jack is the first type of microphone earphone 128 or the second type of microphone according to the first and second voltages on the first voltage dividing node N1 and the second voltage dividing node N2. Which one is the earphone 138 or the general earphone 148, and outputs a switching control signal according to the judgment result.

麦克风切换器206耦接于第一、第二接脚211与212和编解码器204之间。麦克风切换器206具有一第一输入端耦接至第一接脚211、一第二输入端耦接至第二接脚212、一第一输出端耦接至麦克风输出节点N3、一第二输出端耦接至接地,以及一控制端耦接处理单元202所输出的切换控制信号。麦克风切换器206用以根据切换控制信号,将插头208的麦克风区所连接的一对应接脚耦接至麦克风输出节点N3,并将插头208的接地区所连接的一对应接脚耦接至接地。举例而言,当插孔所连接的插头208属于第一类型的麦克风耳机128时,切换控制信号会控制麦克风切换器206将第一接脚211连接至麦克风输出节点N3,并将第二接脚212连接至接地。当插孔所连接的插头208属于第二类型的麦克风耳机138时,切换控制信号会控制麦克风切换器206将第二接脚212连接至麦克风输出节点N3,并将第一接脚212连接至接地。当插孔所连接的插头208属于一般耳机148时,切换控制信号会控制麦克风切换器206将第一、第二接脚211与212分别连接至麦克风输出节点N3与接地,或将第一、第二接脚211与212分别连接至接地与麦克风输出节点N3。此外,麦克风切换器206在平时(即插孔尚未收纳耳机插头时)可被设定为预设开启(Normal Open)或是预设关闭(Normal Close)。在本发明的实施例中,麦克风切换器206被设定为预设开启时,则会中断该麦克风输出节点N3与第一接脚211、第二接脚212的电性连接,并且不会将第一接脚211和第二接脚212电性连接至接地。The microphone switch 206 is coupled between the first and second pins 211 and 212 and the codec 204 . The microphone switch 206 has a first input end coupled to the first pin 211, a second input end coupled to the second pin 212, a first output end coupled to the microphone output node N3, a second output The terminal is coupled to the ground, and a control terminal is coupled to the switching control signal output by the processing unit 202 . The microphone switcher 206 is used to couple a corresponding pin connected to the microphone area of the plug 208 to the microphone output node N3 and couple a corresponding pin connected to the ground area of the plug 208 to the ground according to the switch control signal. . For example, when the plug 208 connected to the jack belongs to the first type of microphone headphone 128, the switching control signal will control the microphone switcher 206 to connect the first pin 211 to the microphone output node N3, and connect the second pin 212 is connected to ground. When the plug 208 connected to the jack belongs to the second type of microphone earphone 138, the switching control signal will control the microphone switcher 206 to connect the second pin 212 to the microphone output node N3, and connect the first pin 212 to the ground . When the plug 208 connected to the jack belongs to the general earphone 148, the switching control signal will control the microphone switcher 206 to connect the first and second pins 211 and 212 to the microphone output node N3 and ground respectively, or connect the first and second pins to the ground. The two pins 211 and 212 are respectively connected to the ground and the microphone output node N3. In addition, the microphone switch 206 can be set to default open (Normal Open) or default close (Normal Close) at normal times (ie, when the jack has not received the earphone plug). In the embodiment of the present invention, when the microphone switch 206 is set to be turned on by default, the electrical connection between the microphone output node N3 and the first pin 211 and the second pin 212 will be interrupted, and the The first pin 211 and the second pin 212 are electrically connected to the ground.

此外,麦克风输出节点N3也借由电阻235耦接至一麦克风电压源MIC。编解码器204具有一第一输入端借由电容222耦接至麦克风输出节点N3、一第二输入端借由电容224耦接至第三接脚213,以及一第三输入端借由电容226耦接至第四接脚214。编解码器204用以将来自处理单元202的数字音频信号转换为可提供至插头208的模拟音频信号和/或将来自插头208的模拟音频信号转换为可提供至处理单元202的数字音频信号,但不限定于此。In addition, the microphone output node N3 is also coupled to a microphone voltage source MIC via a resistor 235 . The codec 204 has a first input terminal coupled to the microphone output node N3 via a capacitor 222 , a second input terminal coupled to the third pin 213 via a capacitor 224 , and a third input terminal coupled to the third pin 213 via a capacitor 226 coupled to the fourth pin 214 . The codec 204 is used to convert the digital audio signal from the processing unit 202 into an analog audio signal that can be provided to the plug 208 and/or convert the analog audio signal from the plug 208 into a digital audio signal that can be provided to the processing unit 202, But not limited to this.

此外,检测电路200还包括一第五接脚215,用以当插头208被收纳至该插孔之中时,连接第一接脚211至第四接脚214中的一个,处理单元202则根据第五接脚215上的电压转态,判断插头208被收纳至该插孔之中或插头208由插孔中移除。In addition, the detection circuit 200 also includes a fifth pin 215, which is used to connect one of the first pin 211 to the fourth pin 214 when the plug 208 is received in the jack, and the processing unit 202 then The voltage on the fifth pin 215 transitions to determine whether the plug 208 is received into the jack or the plug 208 is removed from the jack.

图3为收纳第一类型的麦克风耳机的插头时不同接脚对应于时序的电位变化图。由于麦克风切换器206被设定为预设开启,意即第一、第二接脚并不会电性连接至麦克风输出节点N3或接地。因此,当第一至第四接脚未与麦克风耳机128连接时,第一接脚211与第二接脚212会借由分压检测电路230连接到电压源VDD,故处理单元202检测到第一、第二分压皆为高电平(HIGH)。此时,第五接脚215因尚未连接至第二接脚212而处于高电平。因此,在图3中,第一接脚211、第二接脚212与第五接脚215在时间T1之前都处于高电平。FIG. 3 is a diagram of potential changes of different pins corresponding to timing when the plug of the first type of microphone and earphone is received. Since the microphone switch 206 is set to be turned on by default, it means that the first pin and the second pin are not electrically connected to the microphone output node N3 or ground. Therefore, when the first to fourth pins are not connected to the microphone earphone 128, the first pin 211 and the second pin 212 are connected to the voltage source VDD through the voltage division detection circuit 230, so the processing unit 202 detects the first 1. The second divided voltage is both high level (HIGH). At this time, the fifth pin 215 is at a high level because it has not been connected to the second pin 212 . Therefore, in FIG. 3 , the first pin 211 , the second pin 212 and the fifth pin 215 are all at high level before time T1 .

当已收纳第一类型的麦克风耳机128的插头(亦即时间T1)时,由于该插头上的四个区域依序为麦克风区、接地区、右音频信号区与左音频信号区,使得第一接脚211处于高电平,第二接脚212处于接地,其中接地属于低电平(LOW)。此时,处理单元202透过第一分压节点N1与第二分压节点N2的第一、第二分压,分别检测到第一接脚211与第二接脚212分别处于高电平与低电平,因而控制麦克风切换器206将第一接脚211连接到麦克风区,第二接脚212连接到接地区。此外,第五接脚215因为借由该插头连接至第二接脚212,因此也处于低电平。此时处理单元202设定当第五接脚215转变为高电平,就代表该插头由插孔中移除。在拔出第一类型的麦克风耳机128的插头(亦即时间T2)时,第五接脚215会转变为高电平,检测电路200因而判断插头已被拔出。此时,处理单元202会将麦克风切换器206重新设定为预设开启,使得第二接脚212与第一接脚211重新处于高电平。如图3所示,第五接脚、第二接脚212、与第一接脚211依序重新回到高电平。When the plug of the microphone earphone 128 of the first type has been received (that is, time T1), since the four regions on the plug are sequentially the microphone region, the ground region, the right audio signal region and the left audio signal region, the first The pin 211 is at a high level, and the second pin 212 is at a ground level, wherein the ground is at a low level (LOW). At this time, the processing unit 202 respectively detects that the first pin 211 and the second pin 212 are in high level and Low level, thus controlling the microphone switch 206 to connect the first pin 211 to the microphone area, and the second pin 212 to the ground area. In addition, because the fifth pin 215 is connected to the second pin 212 through the plug, it is also at a low level. At this time, the processing unit 202 sets that when the fifth pin 215 changes to a high level, it means that the plug is removed from the jack. When the plug of the first-type microphone earphone 128 is pulled out (ie time T2), the fifth pin 215 will change to a high level, and the detection circuit 200 thus judges that the plug has been pulled out. At this time, the processing unit 202 resets the microphone switch 206 to be turned on by default, so that the second pin 212 and the first pin 211 are at high level again. As shown in FIG. 3 , the fifth pin, the second pin 212 , and the first pin 211 return to the high level in sequence.

图4为收纳第二类型的麦克风耳机138的插头时不同接脚对应于时序的电位变化图。同样地,当第一至第四接脚211~214未与麦克风耳机138连接时,处理单元202检测到第一、第二分压皆为高电平(HIGH)。当已收纳第二类型的麦克风耳机138的插头(亦即时间T1)时,由于该插头上的四个区域依序为接地区、麦克风区、右音频信号区与左音频信号区,使得第一接脚211处于低电平,第二接脚212处于高电平。此时,处理单元202透过第一分压节点N1与第二分压节点N2上的第一、第二分压,分别检测到第一接脚211与第二接脚212分别为低电平与高电平,因而控制麦克风切换器206将第一接脚211连接到接地区,第二接脚212连接到麦克风区。此外,第五接脚215因为借由该插头连接第二接脚212,因此也处于高电平。此时处理单元202设定当第五接脚215转变为低电平,就代表该插头208由插孔中移除。在拔出第二类型的麦克风耳机138的插头(即时间T2)时,第五接脚215会转变为低电平,检测电路200因而判断插头已被拔出。接着,处理单元202将麦克风切换器206重新设定为预设开启,使得第一接脚211与第二接脚212重新回到高电平。如图4所示,第五接脚215回到低电平,第二接脚212与第一接脚211依序重新回到高电平。FIG. 4 is a diagram of potential changes of different pins corresponding to timing when the plug of the second type of microphone earphone 138 is received. Similarly, when the first to fourth pins 211 - 214 are not connected to the microphone headphone 138 , the processing unit 202 detects that both the first and second divided voltages are at high levels (HIGH). When the plug of the microphone earphone 138 of the second type has been received (that is, time T1), since the four regions on the plug are the grounding region, the microphone region, the right audio signal region and the left audio signal region in sequence, the first The pin 211 is at low level, and the second pin 212 is at high level. At this time, the processing unit 202 respectively detects that the first pin 211 and the second pin 212 are at low level through the first and second divided voltages on the first voltage dividing node N1 and the second voltage dividing node N2 and high level, thus controlling the microphone switch 206 to connect the first pin 211 to the ground area, and the second pin 212 to the microphone area. In addition, because the fifth pin 215 is connected to the second pin 212 through the plug, it is also at a high level. At this time, the processing unit 202 sets that when the fifth pin 215 changes to a low level, it means that the plug 208 is removed from the socket. When the plug of the second-type microphone earphone 138 is pulled out (ie time T2), the fifth pin 215 will change to a low level, and the detection circuit 200 thus determines that the plug has been pulled out. Then, the processing unit 202 resets the microphone switch 206 to be turned on by default, so that the first pin 211 and the second pin 212 return to the high level again. As shown in FIG. 4 , the fifth pin 215 returns to a low level, and the second pin 212 and the first pin 211 sequentially return to a high level.

图5为收纳一般耳机148的插头时不同接脚对应于时序的电位变化图。同样地,当第一至第四接脚未与麦克风耳机138连接时,处理单元202检测到第一、第二分压皆为高电平。当收纳一般耳机148的插头(亦即时间T1)时,由于该插头上的四个区域依序为接地区、右音频信号区与左音频信号区,使得第一接脚211与第二接脚212都处于低电平。此时,处理单元202透过第一分压节点N1与第二分压节点N2,检测到第一接脚211与第二接脚212皆为低电平,因而控制麦克风切换器206,使得第一接脚211连接到麦克风区,第二接脚212连接到接地区。此外,第五接脚215因为连接第二接脚212,因此也处于低电平。此时处理单元202设定当第五接脚215转变为高电平时,就表示插头由插孔中移除。在拔出一般耳机148的插头(亦即时间T2)时,第五接脚215会转变为高电平,检测电路200因而判断插头已被拔出。然后处理单元202将麦克风切换器206重新设定为预设开启,第一接脚211与第二接脚212重新回到高电平。如图5所示,第五接脚215、第一接脚211、与第二接脚212重新回到高电平。FIG. 5 is a diagram of potential changes of different pins corresponding to timing when the plug of the general earphone 148 is received. Likewise, when the first to fourth pins are not connected to the microphone headphone 138 , the processing unit 202 detects that both the first and second divided voltages are at high levels. When receiving the plug of the general earphone 148 (that is, time T1), since the four areas on the plug are the grounding area, the right audio signal area and the left audio signal area in sequence, the first pin 211 and the second pin 212 are at low level. At this moment, the processing unit 202 detects that both the first pin 211 and the second pin 212 are at low level through the first voltage dividing node N1 and the second voltage dividing node N2, and thus controls the microphone switch 206 so that the second One pin 211 is connected to the microphone area, and the second pin 212 is connected to the ground area. In addition, because the fifth pin 215 is connected to the second pin 212 , it is also at a low level. At this time, the processing unit 202 sets that when the fifth pin 215 changes to a high level, it means that the plug is removed from the jack. When the plug of the general earphone 148 is pulled out (that is, time T2), the fifth pin 215 will change to a high level, and the detection circuit 200 thus judges that the plug has been pulled out. Then the processing unit 202 resets the microphone switch 206 to be turned on by default, and the first pin 211 and the second pin 212 return to high level again. As shown in FIG. 5 , the fifth pin 215 , the first pin 211 , and the second pin 212 return to the high level again.

因此,在本实施例中,检测电路200对于耳机插头类型的判断可总结为图6的表格。由于麦克风切换器206设定为预设开启,故在插孔尚未收纳插头时,第一接脚211与第二接脚212皆预设为高电平。当收纳的是第一类型的麦克风耳机128的插头时,第一接脚211为高电平,第二接脚212则转变为低电平;当收纳的是第二类型的麦克风耳机138的插头时,第二接脚212为高电平,第一接脚211则转变为低电平;而当收纳的是一般耳机148的插头时,第一接脚211与第二接脚212皆为低电平。总言之,如果第一接脚211与第二接脚212只有一者的电位为低电平,即可判断已容纳一耳机插头,且该耳机为一麦克风耳机;若第一接脚211与第二接脚212皆为低电平,则可判断已容纳一耳机插头,且该耳机为一般耳机。Therefore, in this embodiment, the determination of the type of the earphone plug by the detection circuit 200 can be summarized in the table of FIG. 6 . Since the microphone switch 206 is set to be turned on by default, both the first pin 211 and the second pin 212 are at high level by default when the plug is not received in the jack. When receiving the plug of the microphone earphone 128 of the first type, the first pin 211 is high level, and the second pin 212 is changed to a low level; when the plug of the microphone earphone 138 of the second type is received When the second pin 212 is at a high level, the first pin 211 is at a low level; and when the plug of the general earphone 148 is received, both the first pin 211 and the second pin 212 are at a low level level. In a word, if the potential of only one of the first pin 211 and the second pin 212 is low level, it can be judged that an earphone plug has been accommodated, and the earphone is a microphone earphone; If the second pins 212 are all at low level, it can be judged that an earphone plug has been accommodated, and the earphone is a normal earphone.

图7为本发明所提供的检测电路的操作流程图。在本实施例中,第五接脚215用以当插头被收纳至插孔时电性连接至第二接脚212,且麦克风切换器206被设定为预设开启。在步骤S700中,处理单元202透过分压检测电路230判断第二接脚212处于何种电位,若处于低电平(LOW)则流程进行到步骤S702;若处于高电平(HIGH)则流程进行到步骤S708。在第二接脚212处于低电平时,由于第五接脚215借由插头电性连接至第二接脚212,故第五接脚215也处于低电平,且处理单元202透过第五接脚215而检测到已收纳耳机的插头。在步骤S702中,麦克风切换器206收到处理单元202所送出的切换控制信号,使得第一接脚211连接到麦克风区,第二接脚212连接到接地区。接着,在步骤S704,处理单元202设定当第五接脚215转变为高电平时,就表示插头由插孔中移除。于步骤S706中,处理单元202判断第五接脚215处于何种电位,若仍处于低电平则回到步骤S706,表示耳机插头未被拔出,电子装置100仍继续使用耳机;若处于高电平表示处理单元202检测到耳机插头已被拔出,则流程进行到步骤S716。在步骤S716中,处理单元202控制麦克风切换器206,使得第一接脚211与第二接脚212恢复到高电平,意即麦克风切换器206重新设定为预设开启。FIG. 7 is an operation flowchart of the detection circuit provided by the present invention. In this embodiment, the fifth pin 215 is used to electrically connect to the second pin 212 when the plug is received in the socket, and the microphone switch 206 is set to be turned on by default. In step S700, the processing unit 202 judges what potential the second pin 212 is at through the voltage division detection circuit 230. If it is at a low level (LOW), the process proceeds to step S702; if it is at a high level (HIGH), the process proceeds to Go to step S708. When the second pin 212 is at a low level, since the fifth pin 215 is electrically connected to the second pin 212 through the plug, the fifth pin 215 is also at a low level, and the processing unit 202 passes through the fifth pin. Pin 215 detects that the plug of the earphone has been received. In step S702 , the microphone switcher 206 receives a switching control signal from the processing unit 202 , so that the first pin 211 is connected to the microphone area, and the second pin 212 is connected to the ground area. Next, in step S704 , the processing unit 202 sets that when the fifth pin 215 changes to a high level, it means that the plug is removed from the socket. In step S706, the processing unit 202 judges what potential the fifth pin 215 is at, and if it is still at a low level, it returns to step S706, indicating that the earphone plug has not been pulled out, and the electronic device 100 continues to use the earphone; If the level indication processing unit 202 detects that the headphone plug has been pulled out, the flow proceeds to step S716. In step S716 , the processing unit 202 controls the microphone switch 206 so that the first pin 211 and the second pin 212 are restored to a high level, which means that the microphone switch 206 is reset to be turned on by default.

在步骤S708中,处理单元202透过分压检测电路230判断第一接脚211处于何种电位。若第一接脚211处于高电平,则回到步骤S700,亦即尚未收纳任何插头而恢复到预设电位;若第一接脚211处于低电平,表示已收纳一耳机插头,流程进行到步骤S710。在步骤S710中,麦克风切换器206收到处理单元202所送出的切换控制信号,使得第一接脚211连接到接地区,第二接脚212连接到麦克风区。接着,在步骤S712,处理单元202设定当第五接脚215转变为低电平时,就表示插头由插孔中移除。在步骤S714中,处理单元202判断第五接脚处于何种电位,若仍处于高电平则回到步骤S714,表示耳机插头未被拔出,电子装置100仍继续使用耳机;若处于低电平表示耳机插头已被拔出,则流程进行到步骤S716。在步骤S716,麦克风切换器206收到处理单元202所送出的切换控制信号,使得第一接脚211与第二接脚212恢复到高电平。In step S708 , the processing unit 202 determines which potential the first pin 211 is at through the voltage division detection circuit 230 . If the first pin 211 is at a high level, return to step S700, that is, the preset potential has not been received yet; if the first pin 211 is at a low level, it means that an earphone plug has been received, and the process proceeds Go to step S710. In step S710 , the microphone switch 206 receives a switching control signal sent by the processing unit 202 , so that the first pin 211 is connected to the ground area, and the second pin 212 is connected to the microphone area. Next, in step S712 , the processing unit 202 sets that when the fifth pin 215 changes to a low level, it means that the plug is removed from the jack. In step S714, the processing unit 202 judges what potential the fifth pin is at, and if it is still at a high level, it returns to step S714, indicating that the earphone plug has not been pulled out, and the electronic device 100 continues to use the earphone; Ping indicates that the earphone plug has been pulled out, and the process proceeds to step S716. In step S716 , the microphone switch 206 receives a switching control signal sent by the processing unit 202 , so that the first pin 211 and the second pin 212 return to a high level.

图8为检测电路200的另一实施例的电路图。此实施与图2所示实施例的差别处在于,在分压检测电路230之中除了电阻231~234之外,还包括电阻238与239。电阻238具有一第一端耦接至电压源VDD,以及一第二端耦接至一第三分压节点N4上的第三分压,而电阻239具有一第一端耦接至第三分压节点N4,以及一第二端耦接至第五接脚215。另一差别之处在于,此实施例中处理单元202电性耦接至第三分压节点N4,并且第五接脚215用以于插头被收纳至插孔时电性连接至第四接脚214。除此之外,麦克风切换器206、编解码器204、处理单元202以及四个接脚的功能与运作方式仍然与前一实施例相同。FIG. 8 is a circuit diagram of another embodiment of the detection circuit 200 . The difference between this implementation and the embodiment shown in FIG. 2 is that, in addition to the resistors 231 - 234 , the divided voltage detection circuit 230 also includes resistors 238 and 239 . The resistor 238 has a first terminal coupled to the voltage source VDD, and a second terminal coupled to a third divided voltage on a third voltage dividing node N4, and the resistor 239 has a first terminal coupled to the third divided voltage. The pressure node N4 and a second terminal are coupled to the fifth pin 215 . Another difference is that in this embodiment, the processing unit 202 is electrically coupled to the third voltage dividing node N4, and the fifth pin 215 is used to be electrically connected to the fourth pin when the plug is received in the socket. 214. Besides, the functions and operation modes of the microphone switch 206 , the codec 204 , the processing unit 202 and the four pins are still the same as the previous embodiment.

图9为图8中的实施例于收纳第一类型的麦克风耳机128的插头时不同接脚对应于时序的电位变化图。由于麦克风切换器206被设定为预设开启,因此当第一至第四接脚未与麦克风耳机128连接时,第一接脚211与第二接脚212会借由分压检测电路230连接到电压源VDD,故处理单元202检测到第一、第二分压皆为高电平。因此,在图9中,第一接脚211、第二接脚212、与第五接脚215在时间T1之前都处于高电平。FIG. 9 is a potential change diagram of different pins corresponding to timing when the plug of the first type of microphone earphone 128 is received in the embodiment of FIG. 8 . Since the microphone switch 206 is set to be turned on by default, when the first to fourth pins are not connected to the microphone headphone 128 , the first pin 211 and the second pin 212 are connected via the voltage division detection circuit 230 to the voltage source VDD, so the processing unit 202 detects that both the first and second divided voltages are at high level. Therefore, in FIG. 9 , the first pin 211 , the second pin 212 , and the fifth pin 215 are all at high level before time T1 .

当收纳第一类型的麦克风耳机128的插头时(亦即图9中的T1),由于该插头上的四个区域依序为麦克风区、接地区、右音频信号区与左音频信号区,使得第一接脚211处于高电平,第二接脚212处于低电平。此时处理单元202透过第三分压节点N4的第三分压,检测到第五接脚215由于耦接至插头208的左/右音频信号区而处于低电平,因而控制麦克风切换器206将第一接脚211连接到麦克风区,第二接脚212连接到接地区。在拔出第一类型的麦克风耳机128的插头(亦即图9中的T2)时,第五接脚215会转变为高电平,检测电路200因而判断插头已被拔出。然后处理单元202将麦克风切换器206重新设定为预设开启,第二接脚212与第一接脚211重新回到高电平。如图9所示,第五接脚215、第二接脚212、与第一接脚211依序重新回到高电平。When receiving the plug of the first type of microphone earphone 128 (i.e. T1 in FIG. 9 ), since the four areas on the plug are sequentially the microphone area, the ground area, the right audio signal area and the left audio signal area, so that The first pin 211 is at high level, and the second pin 212 is at low level. At this time, the processing unit 202 detects that the fifth pin 215 is at a low level due to being coupled to the left/right audio signal area of the plug 208 through the third voltage division of the third voltage division node N4, and thus controls the microphone switch. 206 connects the first pin 211 to the microphone field and the second pin 212 to the ground field. When the plug of the first-type microphone earphone 128 (ie T2 in FIG. 9 ) is pulled out, the fifth pin 215 will change to a high level, and the detection circuit 200 thus judges that the plug has been pulled out. Then the processing unit 202 resets the microphone switch 206 to be turned on by default, and the second pin 212 and the first pin 211 return to the high level again. As shown in FIG. 9 , the fifth pin 215 , the second pin 212 , and the first pin 211 return to the high level in sequence.

图10为收纳第二类型的麦克风耳机138的插头时不同接脚对应于时序的电位变化图。如同图9,第一接脚121、第二接脚122、与第五接脚215在时间T1之前都处于高电平。当收纳第二类型的麦克风耳机138的插头(亦时间T1)时,由于该插头上的四个区域依序为接地区、麦克风区、右音频信号区与左音频信号区,使得第一接脚211处于低电平,第二接脚212处于高电平;此时,处理单元202透过第三分压节点N4的第三分压,检测到第五接脚215由于耦接至插头208的左/右音频信号区而处于低电平,因而控制麦克风切换器206,使得第一接脚211连接到接地区,第二接脚212连接到麦克风区。在拔出第二类型的麦克风耳机138的插头时(亦即图10中的T2),第五接脚215转变为高电平,检测电路200因而判断插头已被拔出。然后处理单元202将麦克风切换器206重新设定为预设开启,第一接脚211与第二接脚212重新回到高电平。FIG. 10 is a diagram of potential changes of different pins corresponding to timing when the plug of the second type of microphone headphone 138 is received. As shown in FIG. 9 , the first pin 121 , the second pin 122 , and the fifth pin 215 are all at high level before time T1 . When receiving the plug of the second type of microphone earphone 138 (also time T1), since the four areas on the plug are the grounding area, the microphone area, the right audio signal area and the left audio signal area in sequence, the first pin 211 is at a low level, and the second pin 212 is at a high level; at this time, the processing unit 202 detects that the fifth pin 215 is coupled to the plug 208 through the third voltage division of the third voltage division node N4 The left/right audio signal area is at a low level, thus controlling the microphone switch 206 so that the first pin 211 is connected to the ground area, and the second pin 212 is connected to the microphone area. When the plug of the second-type microphone earphone 138 is pulled out (ie T2 in FIG. 10 ), the fifth pin 215 changes to a high level, and the detection circuit 200 thus judges that the plug has been pulled out. Then the processing unit 202 resets the microphone switch 206 to be turned on by default, and the first pin 211 and the second pin 212 return to high level again.

图11为收纳一般耳机148的插头时不同接脚对应于时序的电位变化图。如同图9,第一接脚211、第二接脚212、与第五接脚215在时间T1之前都处于高电平。当收纳一般耳机148的插头(亦即时间T1)时,由于该插头上的四个区域依序为接地区、右音频信号区与左音频信号区,使得第一接脚211与第二接脚212都处于低电平;此时处理单元202透过第三分压节点N4的第三分压,检测到第五接脚215由于耦接至插头208的左/右音频信号区而处于低电平,因而控制麦克风切换器206,使得第一接脚211连接到麦克风区,第二接脚212连接到接地区。在拔出一般耳机148的插头(亦即时间T2)时,第五接脚215会转变为高电平,检测电路200因而判断插头已被拔出。然后处理单元202将麦克风切换器206重新设定为预设开启,使得第一接脚211与第二接脚212重新回到高电平。如图11所示,第五接脚215、第一接脚211、与第二接脚212重新回到高电平。FIG. 11 is a diagram of potential changes of different pins corresponding to timing when the plug of a general earphone 148 is received. As shown in FIG. 9 , the first pin 211 , the second pin 212 , and the fifth pin 215 are all at high level before time T1 . When receiving the plug of the general earphone 148 (that is, time T1), since the four areas on the plug are the grounding area, the right audio signal area and the left audio signal area in sequence, the first pin 211 and the second pin 212 are at low level; at this time, the processing unit 202 detects that the fifth pin 215 is in low power due to being coupled to the left/right audio signal area of the plug 208 through the third voltage division of the third voltage division node N4 Therefore, the microphone switch 206 is controlled such that the first pin 211 is connected to the microphone field and the second pin 212 is connected to the ground field. When the plug of the general earphone 148 is pulled out (that is, time T2), the fifth pin 215 will change to a high level, and the detection circuit 200 thus judges that the plug has been pulled out. Then the processing unit 202 resets the microphone switch 206 to be turned on by default, so that the first pin 211 and the second pin 212 return to the high level again. As shown in FIG. 11 , the fifth pin 215 , the first pin 211 , and the second pin 212 return to the high level again.

图12为本发明所提供的另一检测电路的操作流程图。在本实施例中,第五接脚215用以当插头被收纳至插孔时电性连接至第四接脚214,且麦克风切换器206被设定为预设开启。在步骤S1200中,处理单元202透过分压检测电路230判断第二接脚212处于何种电位,若处于低电平(LOW)则流程进行到步骤S1202;若处于高电平(HIGH)则流程进行到步骤S1208。在步骤S1202,麦克风切换器206收到处理单元202所送出的切换控制信号,使得第一接脚211连接到麦克风区,第二接脚212连接到接地区,然后进行到步骤S1206。在步骤S1206中,处理单元202判断第五接脚215处于何种电位,若仍处于低电平则回到步骤S1206,表示耳机插头未被拔出,电子装置100仍继续使用耳机;若处于高电平则表示处理单元202检测到耳机插头已被拔出,则流程进行到步骤S1216。在步骤S1216中,处理单元202控制麦克风切换器206,使得第一接脚211与第二接脚212恢复到高电平,意即麦克风切换器206重新设定为预设开启。FIG. 12 is an operation flowchart of another detection circuit provided by the present invention. In this embodiment, the fifth pin 215 is used to electrically connect to the fourth pin 214 when the plug is received in the jack, and the microphone switch 206 is set to be turned on by default. In step S1200, the processing unit 202 judges what potential the second pin 212 is at through the voltage division detection circuit 230, and if it is at a low level (LOW), the process proceeds to step S1202; if it is at a high level (HIGH), the process proceeds to Go to step S1208. In step S1202, the microphone switch 206 receives a switch control signal from the processing unit 202, so that the first pin 211 is connected to the microphone area, and the second pin 212 is connected to the ground area, and then proceed to step S1206. In step S1206, the processing unit 202 judges what potential the fifth pin 215 is at, and if it is still at a low level, it returns to step S1206, indicating that the earphone plug has not been pulled out, and the electronic device 100 continues to use the earphone; level means that the processing unit 202 detects that the headphone plug has been pulled out, and the flow proceeds to step S1216. In step S1216 , the processing unit 202 controls the microphone switch 206 so that the first pin 211 and the second pin 212 return to a high level, which means that the microphone switch 206 is reset to be turned on by default.

在步骤S1208中,处理单元202透过分压检测电路230判断第一接脚211处于何种电位。若第一接脚211处于高电平,则回到步骤S1200,亦即尚未收纳任何插头而恢复到预设电位;若第一接脚211处于低电平,表示已收纳一耳机插头,流程进行到步骤S1210。在步骤S1210中,麦克风切换器206收到处理单元202所送出的切换控制信号,使得第一接脚211连接到接地区,第二接脚212连接到麦克风区。接着进行到步骤S1206,之后的流程如前所述,故此处不再重复说明。In step S1208 , the processing unit 202 determines which potential the first pin 211 is at through the voltage division detection circuit 230 . If the first pin 211 is at a high level, return to step S1200, that is, the preset potential has not been received yet; if the first pin 211 is at a low level, it means that an earphone plug has been received, and the process proceeds Go to step S1210. In step S1210 , the microphone switch 206 receives a switching control signal from the processing unit 202 , so that the first pin 211 is connected to the ground area, and the second pin 212 is connected to the microphone area. Then proceed to step S1206, and the subsequent processes are as described above, so the description will not be repeated here.

在以上所述的实施例中,在插头被收纳至插孔时,第五接脚215分别电性连接至第二接脚212或第四接脚214,并且麦克风切换器被设定为预设开启时的实施例。值得注意的是,第五接脚215可在插头被收纳至插孔时,电性连接至第一接脚211至第四接脚214中的任一个,麦克风切换器可设定为预设开启或是预设关闭。In the above-mentioned embodiment, when the plug is received in the jack, the fifth pin 215 is electrically connected to the second pin 212 or the fourth pin 214 respectively, and the microphone switch is set to a default Example when turned on. It is worth noting that the fifth pin 215 can be electrically connected to any one of the first pin 211 to the fourth pin 214 when the plug is received in the jack, and the microphone switch can be set to be turned on by default. or off by default.

以上所述的内容,仅为本发明的较佳实施例而已,当不能以此限定本发明实施的范围,即大凡依本发明权利要求及发明说明内容所作的简单的等效变化与修饰,皆仍属本发明专利涵盖的范围内。另外,本发明的任一实施例或权利要求不需达成本发明所公开的全部目的或优点或特点。此外,摘要部分和标题仅是用来辅助专利文件搜索之用,并非用来限制本发明的权利范围。The content described above is only a preferred embodiment of the present invention, and should not limit the scope of the present invention, that is, all simple equivalent changes and modifications made according to the claims of the present invention and the content of the description of the invention are all Still belong to the scope that the patent of the present invention covers. In addition, any embodiment or claim of the present invention need not achieve all the objects or advantages or features disclosed in the present invention. In addition, the abstract and the title are only used to assist the search of patent documents, and are not used to limit the scope of rights of the present invention.

Claims (9)

Translated fromChinese
1.一种检测电路,用以检测一耳机的一插头,包括:1. A detection circuit for detecting a plug of an earphone, comprising:一第一接脚与一第二接脚,用以连接该插头的至少一信号传导区;a first pin and a second pin for connecting at least one signal conduction area of the plug;一分压检测电路,用以根据该第一接脚与该第二接脚所连接的该至少一信号传导区,产生一第一分压与一第二分压;a divided voltage detection circuit, used to generate a first divided voltage and a second divided voltage according to the at least one signal conduction area connected to the first pin and the second pin;一处理单元,根据该第一分压与该第二分压,判断该第一接脚与该第二接脚所连接的该至少一信号传导区,并产生一切换控制信号;A processing unit, according to the first divided voltage and the second divided voltage, judges the at least one signal conduction area connected to the first pin and the second pin, and generates a switching control signal;一麦克风切换器,用以根据该切换控制信号,当该处理单元判断该第一接脚与该第二接脚分别连接该插头的一麦克风区与一接地区时,将该第一接脚连接一麦克风输出节点,并将该第二接脚耦接至一接地,并且当该处理单元判断该第一接脚与该第二接脚分别连接该插头的该接地区与该麦克风区时,将该第一接脚连接至该接地,并将该第二接脚耦接至该麦克风输出节点;以及A microphone switcher, used for connecting the first pin to a microphone area and a ground area of the plug when the processing unit judges that the first pin and the second pin are respectively connected to a microphone area and a ground area of the plug according to the switching control signal a microphone output node, and the second pin is coupled to a ground, and when the processing unit determines that the first pin and the second pin are respectively connected to the ground area and the microphone area of the plug, the the first pin is connected to the ground and couples the second pin to the microphone output node; and一编解码器,用以耦接至该麦克风输出节点。A codec is used for coupling to the microphone output node.2.如权利要求1所述的检测电路,其中该编解码器用以将来自该处理单元的数字音频信号转换为模拟音频信号,并将来自该插头的模拟音频信号转换为数字音频信号。2. The detection circuit as claimed in claim 1, wherein the codec is used to convert the digital audio signal from the processing unit into an analog audio signal, and convert the analog audio signal from the plug into a digital audio signal.3.如权利要求1所述的检测电路,其中该处理单元还包括一第三接脚以及一第四接脚,用以连接该插头的一右音频信号区以及一左音频信号区与该编解码器。3. The detection circuit as claimed in claim 1, wherein the processing unit further comprises a third pin and a fourth pin for connecting a right audio signal area and a left audio signal area of the plug with the coding decoder.4.如权利要求3所述的检测电路,其中该分压检测电路包括:4. The detection circuit as claimed in claim 3, wherein the divided voltage detection circuit comprises:一第一电阻,具有一第一端耦接至一电压源,以及一第二端耦接至一第一分压节点;a first resistor having a first terminal coupled to a voltage source, and a second terminal coupled to a first voltage dividing node;一第二电阻,具有一第一端耦接至该第一分压节点,以及一第二端耦接至该接地;a second resistor having a first end coupled to the first voltage dividing node, and a second end coupled to the ground;一第三电阻,具有一第一端耦接至该电压源,以及一第二端耦接至一第二分压节点;以及a third resistor having a first terminal coupled to the voltage source, and a second terminal coupled to a second voltage dividing node; and一第四电阻,具有一第一端耦接至该第二分压节点,以及一第二端耦接至该接地。A fourth resistor has a first terminal coupled to the second voltage dividing node, and a second terminal coupled to the ground.5.如权利要求4所述的检测电路,还包括一第五接脚,用以当该插头被收纳至一插孔之中时,连接该第一接脚至该第四接脚的其中之一,该处理单元根据该第五接脚上的电压转态,判断该插头被收纳至该插孔之中或该插头由该插孔中移除。5. The detection circuit as claimed in claim 4, further comprising a fifth pin for connecting the first pin to one of the fourth pins when the plug is received in a jack One, the processing unit judges that the plug is received into the socket or the plug is removed from the socket according to the voltage transition on the fifth pin.6.如权利要求3所述的检测电路,其中该分压检测电路包括:6. The detection circuit as claimed in claim 3, wherein the divided voltage detection circuit comprises:一第一电阻,具有一第一端耦接至一电压源,以及一第二端耦接至一第一分压节点;a first resistor having a first terminal coupled to a voltage source, and a second terminal coupled to a first voltage dividing node;一第二电阻,具有一第一端耦接至该第一分压节点,以及一第二端耦接至该接地;a second resistor having a first end coupled to the first voltage dividing node, and a second end coupled to the ground;一第三电阻,具有一第一端耦接至该电压源,以及一第二端耦接至一第二分压节点;a third resistor having a first terminal coupled to the voltage source, and a second terminal coupled to a second voltage dividing node;一第四电阻,具有一第一端耦接至该第二分压节点,以及一第二端耦接至该接地;a fourth resistor having a first terminal coupled to the second voltage dividing node, and a second terminal coupled to the ground;一第五电阻,具有一第一端耦接至该电压源,以及一第二端耦接至一第三分压节点;以及a fifth resistor having a first terminal coupled to the voltage source, and a second terminal coupled to a third voltage dividing node; and一第六电阻,具有一第一端耦接至该第三分压节点,以及一第二端耦接至该接地。A sixth resistor has a first terminal coupled to the third voltage dividing node, and a second terminal coupled to the ground.7.如权利要求6所述的检测电路,还包括一第五接脚,耦接至该第三分压节点,用以当该插头被收纳至一插孔之中时,连接该第一接脚至该第四接脚的其中之一,该处理单元根据该第三分压节点上的电压转态,判断该插头被收纳至该插孔之中或该插头由该插孔中移除。7. The detection circuit as claimed in claim 6, further comprising a fifth pin coupled to the third voltage dividing node for connecting the first pin when the plug is received into a jack. pin to one of the fourth pins, and the processing unit determines whether the plug is received into the jack or the plug is removed from the jack according to the voltage transition on the third voltage dividing node.8.如权利要求7所述的检测电路,其中当该插头被收纳至该插孔之中时,该第三分压节点上的电压为一低电位,并且该插头由该插孔中移除时,该第三分压节点上的电压为高电位。8. The detection circuit as claimed in claim 7, wherein when the plug is received into the jack, the voltage on the third voltage dividing node is a low potential, and the plug is removed from the jack , the voltage on the third voltage dividing node is a high potential.9.如权利要求3所述的检测电路,其中于该插头尚未被收纳至该插孔中之前,该麦克风切换器中断该麦克风输出节点与该第一接脚、该第二接脚的电性连接,并且该麦克风切换器不会将该第一接脚和该第二接脚电性连接至该接地。9. The detection circuit as claimed in claim 3, wherein before the plug is received into the jack, the microphone switch interrupts the electrical connection between the microphone output node and the first pin and the second pin connected, and the microphone switcher does not electrically connect the first pin and the second pin to the ground.
CN201310120676.XA2013-04-092013-04-09 detection circuitExpired - Fee RelatedCN104105046B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310120676.XACN104105046B (en)2013-04-092013-04-09 detection circuit

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310120676.XACN104105046B (en)2013-04-092013-04-09 detection circuit

Publications (2)

Publication NumberPublication Date
CN104105046Atrue CN104105046A (en)2014-10-15
CN104105046B CN104105046B (en)2018-03-27

Family

ID=51672791

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310120676.XAExpired - Fee RelatedCN104105046B (en)2013-04-092013-04-09 detection circuit

Country Status (1)

CountryLink
CN (1)CN104105046B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105050001A (en)*2015-08-062015-11-11宁波萨瑞通讯有限公司Headset compatible circuit and working method thereof
CN105635902A (en)*2014-11-042016-06-01中兴通讯股份有限公司Audio interface compatible with digital audio device and implementation method
CN105807911A (en)*2014-12-302016-07-27环达电脑(上海)有限公司Automatic earphone recognition device and method
CN109889953A (en)*2019-03-082019-06-14李志飞Sound equipment and audio signal and microphone signal input control circuit thereof
CN116546410A (en)*2022-01-262023-08-04荣耀终端有限公司 Access detection method of electronic device interface, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2819226Y (en)*2005-07-222006-09-20华为技术有限公司Earphone inserted tester
CN201204638Y (en)*2007-01-052009-03-04苹果公司System and single-pin plug
US20090227298A1 (en)*2008-03-102009-09-10Kyocera CorporationEarphone Microphone-Mountable Electronic Appliance
WO2012031481A1 (en)*2010-09-072012-03-15中兴通讯股份有限公司Adaptive circuit of earphone interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2819226Y (en)*2005-07-222006-09-20华为技术有限公司Earphone inserted tester
CN201204638Y (en)*2007-01-052009-03-04苹果公司System and single-pin plug
US20090227298A1 (en)*2008-03-102009-09-10Kyocera CorporationEarphone Microphone-Mountable Electronic Appliance
WO2012031481A1 (en)*2010-09-072012-03-15中兴通讯股份有限公司Adaptive circuit of earphone interface

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105635902A (en)*2014-11-042016-06-01中兴通讯股份有限公司Audio interface compatible with digital audio device and implementation method
CN105807911A (en)*2014-12-302016-07-27环达电脑(上海)有限公司Automatic earphone recognition device and method
CN105050001A (en)*2015-08-062015-11-11宁波萨瑞通讯有限公司Headset compatible circuit and working method thereof
CN109889953A (en)*2019-03-082019-06-14李志飞Sound equipment and audio signal and microphone signal input control circuit thereof
CN116546410A (en)*2022-01-262023-08-04荣耀终端有限公司 Access detection method of electronic device interface, electronic device and storage medium

Also Published As

Publication numberPublication date
CN104105046B (en)2018-03-27

Similar Documents

PublicationPublication DateTitle
TWI539829B (en) Detection circuit
CN102056072B (en) Method, apparatus and system for detecting accessories on an audio jack
KR101946486B1 (en)Ear-phone Operation System and Ear-phone Operating Method, and Portable Device supporting the same
TWI533720B (en)Audio codec with audio jack detection function and audio jack detection method
CN104519444A (en) Audio signal processing circuit and audio system
WO2017161746A1 (en)User equipment
CN104105046B (en) detection circuit
US9774152B2 (en)Forward and backward compatible 5 pole audio plug and jack system
WO2013155921A1 (en)Method and electronic device for determining wire sequence of earphone
TW201218547A (en)Earphone interface circuit and mobile phone using the same
JP2010278691A (en) Audio device recognition apparatus and portable computer
TW201336326A (en)Electronic device and method for enabling compatibility of different headsets
WO2017113697A1 (en)Method providing compatibility of reverse insertion of earphone connector and device
WO2016070531A1 (en)Audio port, information processing method, device, player, and storage medium thereof
CN108054541B (en)Switching device, multi-equipment detection system and detection method thereof
US8050428B2 (en)Audio signal transmission circuit
CN108769847A (en)A kind of microphone and implementation method with intelligent conversion interface
TW201025742A (en)Portable electric apparatus and jack connection method therefor
CN103458351B (en) Composite connector detection circuit and audio codec
CN206650845U (en)Headset detection device and intelligent electronic device
CN204350273U (en)Tone code product and tone code communication channel circuit
CN109218914B (en) Audio playback device and audio transmission circuit
TW201349890A (en)Combo-jack detecting circuit
TW201909654A (en)Combo-jack detecting circuit and operating method thereof
CN105812980A (en)Earphone

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180327


[8]ページ先頭

©2009-2025 Movatter.jp