[go: up one dir, main page]

CN111314817A - Switching control circuit, terminal equipment and switching control method - Google Patents

Switching control circuit, terminal equipment and switching control method Download PDF

Info

Publication number
CN111314817A
CN111314817A CN202010130688.0A CN202010130688A CN111314817A CN 111314817 A CN111314817 A CN 111314817A CN 202010130688 A CN202010130688 A CN 202010130688A CN 111314817 A CN111314817 A CN 111314817A
Authority
CN
China
Prior art keywords
power supply
pin
supply terminal
terminal
switch unit
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
CN202010130688.0A
Other languages
Chinese (zh)
Other versions
CN111314817B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010130688.0A priority Critical patent/CN111314817B/en
Publication of CN111314817A publication Critical patent/CN111314817A/en
Application granted granted Critical
Publication of CN111314817B publication Critical patent/CN111314817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Stereophonic Arrangements (AREA)

Abstract

The application discloses a switching control circuit, terminal equipment and a switching control method, which relate to the technical field of electronics and are applied to the terminal equipment comprising a first power supply end, a second power supply end and an audio connector, wherein the audio connector comprises a first power supply pin and a second power supply pin, and the switching control circuit comprises a detection module, a first switch module and a second switch module; the detection module is connected with the first power supply pin or the second power supply pin and is used for detecting whether the types of the audio playing equipment and the audio connector are matched or not when the audio playing equipment is connected with the audio connector; the first power supply pin is connected with the first power supply end through the first switch module and connected with the second power supply end through the second switch module; the second power supply pin is connected with the second power supply end through the first switch module and connected with the first power supply end through the second switch module; the first switch module and the second switch module are respectively connected with the detection module, and the first switch module is used for conducting when the types are matched; and the second switch module is used for conducting when the types are not matched. Thereby being compatible with audio playing devices of different standards.

Description

切换控制电路、终端设备及切换控制方法Switching control circuit, terminal equipment and switching control method

技术领域technical field

本申请涉及电子技术领域,更具体地,涉及一种切换控制电路、终端设备及切换控制方法。The present application relates to the field of electronic technology, and more particularly, to a switching control circuit, a terminal device and a switching control method.

背景技术Background technique

市场上的耳机主要有两种标准,即开放移动终端平台组织(Open MobileTerminal Platform,OMTP)的OMTP标准,也称国家标准或欧标和美国无线通信和互联网协会(Cellular Telecommunications Industry Association,CTIA)的CTIA标准,也称国际标准或美标。There are two main standards for headsets on the market, namely the OMTP standard of the Open Mobile Terminal Platform (OMTP), also known as the national standard or European standard and the Cellular Telecommunications Industry Association (CTIA) standard. CTIA standard, also known as international standard or American standard.

由于不同标准耳机的内部连接方式不同,所以目前终端一般只单一支持一种标准,导致终端的耳机孔和耳机类型不匹配时会出现声音失真、串音等不兼容问题,甚至可能导致麦克风不可用。Due to the different internal connection methods of earphones of different standards, currently the terminal generally supports only one standard, resulting in incompatibility problems such as sound distortion and crosstalk when the earphone jack of the terminal does not match the earphone type, and may even cause the microphone to be unavailable. .

发明内容SUMMARY OF THE INVENTION

本申请实施例提出了一种切换控制电路、终端设备及切换控制方法,能够同时兼容不同标准的音频播放设备。The embodiments of the present application propose a switching control circuit, a terminal device, and a switching control method, which can be compatible with audio playback devices of different standards at the same time.

第一方面,本申请实施例提供了一种切换控制电路,应用于终端设备,所述终端设备包括第一供电端、第二供电端和音频连接器,所述音频连接器包括第一电源引脚和第二电源引脚,所述切换控制电路包括:检测模块、第一开关模块与第二开关模块;所述检测模块,与所述第一电源引脚或所述第二电源引脚连接,用于在音频播放设备与所述音频连接器连接时,检测所述音频连接器与所述音频播放设备的类型是否匹配;所述第一电源引脚通过所述第一开关模块连接所述第一供电端,通过所述第二开关模块连接所述第二供电端;所述第二电源引脚通过所述第一开关模块连接所述第二供电端,通过所述第二开关模块连接所述第一供电端;所述第一开关模块,与所述检测模块连接,用于在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第一供电端导通,将所述第二电源引脚与所述第二供电端导通,以及在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第一供电端断开连接,将所述第二电源引脚与所述第二供电端断开连接;所述第二开关模块,与所述检测模块连接,用于在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第二供电端导通,将所述第二电源引脚与所述第一供电端导通,以及在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第二供电端断开连接,将所述第二电源引脚与所述第一供电端断开连接。In a first aspect, an embodiment of the present application provides a switching control circuit, which is applied to a terminal device. The terminal device includes a first power supply terminal, a second power supply terminal, and an audio connector, and the audio connector includes a first power supply lead. The switch control circuit includes: a detection module, a first switch module and a second switch module; the detection module is connected to the first power supply pin or the second power supply pin , used to detect whether the audio connector matches the type of the audio playback device when the audio playback device is connected to the audio connector; the first power pin is connected to the first switch module through the first switch module. The first power supply terminal is connected to the second power supply terminal through the second switch module; the second power supply pin is connected to the second power supply terminal through the first switch module, and is connected through the second switch module the first power supply terminal; the first switch module, connected to the detection module, is used for connecting the first power supply pin to the The first power supply terminal is turned on, the second power supply pin is connected to the second power supply terminal, and when the audio connector does not match the type of the audio playback device, the first power supply pin is turned on. The power supply pin is disconnected from the first power supply terminal, and the second power supply pin is disconnected from the second power supply terminal; the second switch module is connected with the detection module and is used for When the audio connector does not match the type of the audio playback device, the first power supply pin is connected to the second power supply terminal, and the second power supply pin is connected to the first power supply terminal. turn on, and when the audio connector matches the type of the audio playback device, disconnect the first power supply pin from the second power supply terminal, and connect the second power supply pin with all The first power supply terminal is disconnected.

第二方面,本申请实施例提供了一种终端设备,包括:壳体;设置于所述壳体上的音频连接器;设置于所述壳体内的第一供电端、第二供电端以及如上述第一方面所述的切换控制电路。In a second aspect, an embodiment of the present application provides a terminal device, including: a casing; an audio connector disposed on the casing; a first power supply terminal, a second power supply terminal, and the like The switching control circuit described in the first aspect above.

第三方面,本申请实施例提供了一种切换控制方法,应用于终端设备,所述终端设备包括第一供电端、第二供电端和音频连接器,所述音频连接器包括第一电源引脚和第二电源引脚,所述方法包括:在所述音频连接器与音频播放设备连接时,检测所述音频连接器与所述音频播放设备的类型是否匹配;在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第一供电端导通,将所述第二电源引脚与所述第二供电端导通,所述第一供电端和所述第二供电端的类型相反;在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第二供电端导通,将所述第二电源引脚与所述第一供电端导通。In a third aspect, an embodiment of the present application provides a switching control method, which is applied to a terminal device, where the terminal device includes a first power supply terminal, a second power supply terminal, and an audio connector, and the audio connector includes a first power supply lead pin and a second power pin, the method includes: when the audio connector is connected with the audio playback device, detecting whether the audio connector matches the type of the audio playback device; when the audio connector is connected to the audio playback device When the types of the audio playback devices are matched, the first power supply pin is connected to the first power supply terminal, the second power supply pin is connected to the second power supply terminal, and the first power supply pin is connected to the second power supply terminal. The types of the power supply terminal and the second power supply terminal are opposite; when the audio connector does not match the type of the audio playback device, the first power supply pin is connected to the second power supply terminal, and all the The second power supply pin is connected to the first power supply terminal.

本申请实施例提供的一种切换控制电路、终端设备及切换控制方法,应用于包括第一、第二供电端和音频连接器的终端设备,音频连接器包括第一和第二电源引脚,切换控制电路包括检测模块、第一与第二开关模块,其中,第一电源引脚通过第一开关模块连接第一供电端,通过第二开关模块连接第二供电端;第二电源引脚通过第一开关模块连接第二供电端,通过第二开关模块连接第一供电端;检测模块与第一或第二电源引脚连接,用于在音频播放设备与音频连接器连接时,检测二者的类型是否匹配,第一、第二开关模块分别与检测模块连接,并在类型匹配时第一开关模块导通,在类型不匹配时第二开关模块导通。由此,音频播放设备接入音频连接器时,可自动检测音频播放设备与音频连接器的类型是否匹配,并在类型匹配时,第一电源引脚与第一供电端导通,第二电源引脚与第二供电端导通,在类型不匹配时,第一电源引脚与第二供电端导通,第二电源引脚与第一供电端导通,从而能够使得两个电源引脚的电平发生改变,实现对不同标准的音频播放设备的兼容。A switching control circuit, a terminal device, and a switching control method provided by the embodiments of the present application are applied to a terminal device including first and second power supply terminals and an audio connector, and the audio connector includes first and second power pins, The switching control circuit includes a detection module, first and second switch modules, wherein the first power supply pin is connected to the first power supply terminal through the first switch module, and is connected to the second power supply terminal through the second switch module; The first switch module is connected to the second power supply terminal, and the second switch module is connected to the first power supply terminal; the detection module is connected to the first or second power supply pins, and is used to detect the two when the audio playback device is connected to the audio connector. Whether the types match, the first and second switch modules are respectively connected to the detection module, and the first switch module is turned on when the types match, and the second switch module is turned on when the types do not match. Therefore, when the audio playback device is connected to the audio connector, it can automatically detect whether the types of the audio playback device and the audio connector match, and when the types match, the first power supply pin is connected to the first power supply terminal, and the second power supply The pin is connected to the second power supply terminal. When the type does not match, the first power supply pin is connected to the second power supply terminal, and the second power supply pin is connected to the first power supply terminal, so that the two power supply pins can be connected. The level is changed to achieve compatibility with audio playback devices of different standards.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请一个实施例提供的切换控制电路的示意图;FIG. 1 shows a schematic diagram of a switching control circuit provided by an embodiment of the present application;

图2本申请一个示例性实施例提供的音频播放设备与音频连接器的插入连接示意图;FIG. 2 is a schematic diagram of the plug-in connection of an audio playback device and an audio connector provided by an exemplary embodiment of the present application;

图3示出了本申请另一个实施例提供的切换控制电路的示意图;FIG. 3 shows a schematic diagram of a switching control circuit provided by another embodiment of the present application;

图4示出了本申请一个示例性实施例提供的一种切换控制电路的连接示意图;FIG. 4 shows a schematic diagram of the connection of a switching control circuit provided by an exemplary embodiment of the present application;

图5示出了本申请另一个示例性实施例提供的一种切换控制电路的连接示意图;FIG. 5 shows a schematic connection diagram of a switching control circuit provided by another exemplary embodiment of the present application;

图6示出了本申请一个示例性实施例提供的切换控制电路的工作原理示意图;FIG. 6 shows a schematic diagram of the working principle of a switching control circuit provided by an exemplary embodiment of the present application;

图7示出了本申请另一个示例性实施例提供的切换控制电路的工作原理示意图;FIG. 7 shows a schematic diagram of the working principle of a switching control circuit provided by another exemplary embodiment of the present application;

图8示出了本申请一个实施例提供的终端设备的示意图;FIG. 8 shows a schematic diagram of a terminal device provided by an embodiment of the present application;

图9示出了本申请一个实施例提供的切换控制方法的流程示意图。FIG. 9 shows a schematic flowchart of a handover control method provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

在对本申请实施例进行详细的解释说明之前,首先对本申请实施例涉及到的概念进行如下解释:Before explaining the embodiments of the present application in detail, the concepts involved in the embodiments of the present application are first explained as follows:

1、耳机座:耳机的插座。1. Headphone holder: the socket of the headphone.

2、美标:对应CTIA标准,也称国际标准,美标耳机的3.5mm耳机针脚顺序是(由外往内依次,其中,耳机插入耳机座时最先进入耳机座的一侧为外):左声道-右声道-地线-麦克风(L/R/G/M)。2. American Standard: Corresponding to the CTIA standard, also known as the international standard, the 3.5mm earphone pin sequence of the American Standard earphone is (from the outside to the inside, among which, the side that first enters the earphone holder when the earphone is inserted into the earphone holder is the outside): Left channel-right channel-ground-microphone (L/R/G/M).

3、欧标耳机:对应OMTP标准,也称国家标准,欧标耳机的3.5mm耳机针脚顺序是(由外往内):左声道-右声道-麦克风-地线(L/R/M/G)。3. European standard earphones: corresponding to the OMTP standard, also known as the national standard, the pin order of the 3.5mm earphones of the European standard earphones is (from outside to inside): left channel-right channel-microphone-ground (L/R/M /G).

出于节省成本的原因,目前带有3.5mm耳机孔的终端上在设计之初只单一支持美标耳机或者欧标耳机,当耳机和终端的耳机座的类型不匹配时,可能出现声音失真、串音等不兼容的问题,甚至可能导致麦克风不可用。例如,当设计为仅支持识别美标耳机的终端在被插入欧标耳机时,终端可能无任何响应或者有异常的伴奏声,而人声基本消除,声音空灵。For cost-saving reasons, the current terminal with a 3.5mm headphone jack only supports American standard earphones or European standard earphones at the beginning of the design. Incompatibility issues such as crosstalk may even render the microphone unavailable. For example, when a terminal designed to only support the recognition of American standard earphones is inserted into European standard earphones, the terminal may have no response or abnormal accompaniment sound, but the human voice is basically eliminated, and the sound is ethereal.

基于上述问题,本申请实施例提供了一种切换控制电路、终端以及切换控制方法。下面将通过具体实施例进行详细说明。Based on the above problems, embodiments of the present application provide a switching control circuit, a terminal, and a switching control method. The following will be described in detail through specific embodiments.

请参阅图1,图1示出了本申请一个实施例提供的切换控制电路的示意图,如图1所示,该切换控制电路100包括:检测模块110、第一开关模块120以及第二开关模块130。Please refer to FIG. 1 . FIG. 1 shows a schematic diagram of a switching control circuit provided by an embodiment of the present application. As shown in FIG. 1 , the switching control circuit 100 includes: a detection module 110 , a first switch module 120 and a second switch module 130.

其中,切换控制电路100应用于终端设备,终端设备可以是手机、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑、台式电脑、头戴式设备或其他任意终端。为介绍切换控制电路100可实现的功能原理,先对切换控制电路100所连接的终端设备环境作出介绍,终端设备包括音频连接器210,第一供电端220以及第二供电端230。Wherein, the switching control circuit 100 is applied to a terminal device, and the terminal device can be a mobile phone, an MP3 player (Moving Picture Experts Group Audio Layer III, the standard audio layer 3 of the moving picture expert compression standard), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic Video Expert Compression Standard Audio Layer 4) Player, Laptop, Desktop, Head Mounted Device or any other terminal. In order to introduce the functional principle that the switching control circuit 100 can implement, the terminal equipment environment connected to the switching control circuit 100 is introduced first. The terminal equipment includes an audio connector 210 , a first power supply terminal 220 and a second power supply terminal 230 .

其中,第一供电端220与第二供电端230的类型不同。例如,可以是电势不同,即一个供电端处于高电势,另一个供电端处于低电势,其中,低电势的供电端可以是地端、电源负端,高电势的供电端可以是电源正端,也可以是其他电势高于低电势的供电端,在此不作限定。The types of the first power supply terminal 220 and the second power supply terminal 230 are different. For example, the potentials may be different, that is, one power supply terminal is at a high potential, and the other power supply terminal is at a low potential, wherein the power supply terminal of the low potential can be the ground terminal and the negative terminal of the power supply, and the power supply terminal of the high potential can be the positive terminal of the power supply, It can also be other power supply terminals whose potential is higher than the low potential, which is not limited here.

在一种实施方式中,第一供电端220处于高电势,第二供电端230处于低电势,此时,电流可从第一供电端220流出,从第二供电端230流入,例如,第一供电端220可以为电源正端,第二供电端230可以为电源负端或地端。在另一种实施方式中,第一供电端220处于低电势,第二供电端230可处于高电势,此时,电流可从第二供电端230流出,从第一供电端220流入。In one embodiment, the first power supply terminal 220 is at a high potential, and the second power supply terminal 230 is at a low potential. At this time, current can flow out from the first power supply terminal 220 and flow in from the second power supply terminal 230, for example, the first power supply terminal 230 The power supply terminal 220 may be the positive terminal of the power supply, and the second power supply terminal 230 may be the negative terminal or the ground terminal of the power supply. In another embodiment, the first power supply terminal 220 may be at a low potential, and the second power supply terminal 230 may be at a high potential. At this time, current may flow out from the second power supply terminal 230 and flow in from the first power supply terminal 220 .

其中,音频连接器210包括第一电源引脚211以及第二电源引脚212。其中,第一电源引脚211与第二电源引脚212在音频连接器210与音频播放设备连接时,用于连接音频播放设备的引脚。The audio connector 210 includes a first power supply pin 211 and a second power supply pin 212 . The first power supply pin 211 and the second power supply pin 212 are used to connect the audio playback device when the audio connector 210 is connected to the audio playback device.

在一个示例中,音频连接器210为3.5mm耳机座,音频播放设备为3.5mm耳机接口的耳机,此时,第一电源引脚211与第二电源引脚212中的其中一个用于连接音频播放设备的麦克(MIC)脚,另一个用于连接音频播放设备的地线(GND)脚。当音频播放设备与音频连接器210连接时,为使音频播放设备正常工作,音频播放设备的GND脚应当连接电源负端或接地,音频播放设备的MIC脚应当连接电源正端。In an example, the audio connector 210 is a 3.5mm headphone jack, and the audio playback device is a headphone with a 3.5mm headphone jack. In this case, one of the first power supply pin 211 and the second power supply pin 212 is used to connect audio The microphone (MIC) pin of the playback device, and the other is used to connect the ground (GND) pin of the audio playback device. When the audio playback device is connected to the audio connector 210, in order to make the audio playback device work normally, the GND pin of the audio playback device should be connected to the negative terminal of the power supply or the ground, and the MIC pin of the audio playback device should be connected to the positive terminal of the power supply.

本实施例中,若第一电源引脚211与音频播放设备的MIC脚连接,第二电源引脚212与音频播放设备的GND脚连接,则第一电源引脚211应当与高电势的供电端连接,第二电源引脚212应当与低电势的供电端连接,使得电流经第一电源引脚211流入音频播放设备的MIC引脚,再从音频播放设备的GND引脚流出至第二电源引脚212。In this embodiment, if the first power supply pin 211 is connected to the MIC pin of the audio playback device, and the second power supply pin 212 is connected to the GND pin of the audio playback device, the first power supply pin 211 should be connected to the high-potential power supply terminal Connection, the second power supply pin 212 should be connected to the low-potential power supply terminal, so that the current flows into the MIC pin of the audio playback device through the first power supply pin 211, and then flows out from the GND pin of the audio playback device to the second power supply pin. feet 212.

反之,若第一电源引脚211与音频播放设备的GND脚连接,第二电源引脚212与音频播放设备的MIC脚连接,则第一电源引脚211应当与低电势的供电端连接,第二电源引脚212应当与高电势的供电端连接,使得电流经第二电源引脚212流入音频播放设备的MIC引脚,再从音频播放设备的GND引脚流出至第一电源引脚212。Conversely, if the first power supply pin 211 is connected to the GND pin of the audio playback device, and the second power supply pin 212 is connected to the MIC pin of the audio playback device, the first power supply pin 211 should be connected to the low-potential power supply terminal, and the first power supply pin 211 should be connected to the low-potential power supply terminal. The second power supply pin 212 should be connected to the high-potential power supply terminal, so that the current flows into the MIC pin of the audio playback device through the second power supply pin 212 , and then flows out from the GND pin of the audio playback device to the first power supply pin 212 .

由此,本申请实施例提供切换控制电路可在不同音频播放设备与音频连接器210连接时均可实现上述连接,从而实现对不同的音频播放设备的兼容。Therefore, the switching control circuit provided in the embodiment of the present application can realize the above connection when different audio playback devices are connected to the audio connector 210 , thereby achieving compatibility with different audio playback devices.

检测模块110,与第一电源引脚211或第二电源引脚212连接,用于在音频播放设备与音频连接器210连接时,检测音频连接器210与音频播放设备的类型是否匹配。The detection module 110 is connected to the first power supply pin 211 or the second power supply pin 212 for detecting whether the audio connector 210 matches the audio playback device when the audio playback device is connected to the audio connector 210 .

下面为表述检测原理,以以音频连接器是3.5mm耳机座、音频播放设备为3.5mm耳机为例进行说明,第一电源引脚211与第二电源引脚212在音频连接器上的位置一定,3.5mm耳机座包括四个引脚,分别为左声道正极性(LP)脚、右声道负极性(RN)脚、GND引脚、MIC引脚。其中,MIC引脚的电势高于GND引脚。The following is the description of the detection principle. The audio connector is a 3.5mm headphone holder and the audio playback device is a 3.5mm headphone. , The 3.5mm headphone holder includes four pins, which are the left channel positive polarity (LP) pin, the right channel negative polarity (RN) pin, the GND pin, and the MIC pin. Among them, the potential of the MIC pin is higher than the GND pin.

由于美标耳机的针脚由外向内依次为L、R、GND、MIC,欧标耳机的针脚由外向内依次为L、R、MIC、GND,因此适配美标耳机的耳机座的引脚由内外应依次为LP引脚、RN引脚、GND引脚、MIC引脚,适配欧标耳机的耳机座的引脚由内向外则应依次为LP引脚、RN引脚、MIC引脚、GND引脚。由此可知,欧标耳机和美标耳机的MIC脚和GND脚之间的顺序相反,即欧标耳机由外向内的第3、4个脚分别为MIC脚和GND脚,美标耳机由外向内的第3、4个脚分别为GND脚和MIC脚。Since the pins of American standard earphones are L, R, GND, MIC from outside to inside, and the pins of European standard earphones are L, R, MIC, GND from outside to inside, so the pins of the headphone holder suitable for American standard earphones are set by The inside and outside should be the LP pin, the RN pin, the GND pin, the MIC pin, and the pins of the earphone holder that adapt to the European standard earphones should be the LP pin, RN pin, MIC pin, GND pin. It can be seen that the order between the MIC pin and the GND pin of the European standard earphone and the American standard earphone is reversed, that is, the third and fourth pins of the European standard earphone from the outside to the inside are the MIC pin and the GND pin respectively, and the American standard earphone is from the outside to the inside. The 3rd and 4th pins are the GND pin and the MIC pin respectively.

其中,MIC脚的电势高于GND脚的电势,则检测MIC脚的电压高于GND脚,且MIC脚对应的电压范围可记为高电平,GND脚对应的电压范围可记为低电平。需要说明的是,高电平与低电平分别对应的电压范围可以是自定义的,也可以采用MIC脚、GND脚的标准电压范围,本实施例中,高电平对应的电压高于低电平对应的电压,除此之外,本实施例对此不做其他限定。Among them, the potential of the MIC pin is higher than the potential of the GND pin, then the voltage of the detected MIC pin is higher than the GND pin, and the voltage range corresponding to the MIC pin can be recorded as high level, and the voltage range corresponding to the GND pin can be recorded as low level . It should be noted that the voltage ranges corresponding to the high level and the low level can be customized, and the standard voltage range of the MIC pin and the GND pin can also be used. In this embodiment, the voltage corresponding to the high level is higher than the low level. In addition to the voltage corresponding to the level, this embodiment does not make other limitations on this.

由于不同标准耳机的MIC、GND脚顺序不同,但音频连接器210的第一电源引脚120与第二电源引脚130的位置不变,例如可依次对应耳机的第3、4个脚,且检测模块110仅连接音频连接器210的第一电源引脚120、第二电源引脚130的其中一个时,那在不同标准的耳机插入音频连接器210时,检测模块110在同一个电源引脚处检测到的电路参数不同,因此可根据检测模块110检测的电路参数,确定所连接音频播放设备的类型,例如所插入耳机的标准,控制第一开关模块120、第二开关模块130的导通状态来实现对不同标准耳机的兼容。其中,电路参数可以是电压、电流等参数,即检测模块110可用于检测电压、电流或其他电路参数,本实施例对此不作限定。Since the order of the MIC and GND pins of different standard earphones is different, the positions of the first power supply pin 120 and the second power supply pin 130 of the audio connector 210 remain unchanged. When the detection module 110 is only connected to one of the first power supply pin 120 and the second power supply pin 130 of the audio connector 210, when headphones of different standards are inserted into the audio connector 210, the detection module 110 is connected to the same power supply pin. The circuit parameters detected at different places are different, so the type of the connected audio playback device can be determined according to the circuit parameters detected by the detection module 110, such as the standard of the inserted earphone, and the conduction of the first switch module 120 and the second switch module 130 can be controlled. status to achieve compatibility with different standard headsets. The circuit parameters may be parameters such as voltage and current, that is, the detection module 110 may be used to detect voltage, current or other circuit parameters, which is not limited in this embodiment.

请参阅图2,其示出了本申请一个示例性实施例提供的音频播放设备与音频连接器的插入连接示意图。图2中,音频连接器210由内向外的引脚依次为LP、RN引脚、第二电源引脚212与第一电源引脚211。此时,若音频播放设备30为美标耳机,则其插入音频连接器210时,MIC脚与第一电源引脚211连接,GND脚与第二电源引脚212连接。需要说明的是,图2中的音频播放设备30仅示出了其与音频连接器210连接部分的示意性结构,仅用于示意与音频连接器210的连接关系。Please refer to FIG. 2 , which shows a schematic diagram of the insertion and connection of an audio playback device and an audio connector provided by an exemplary embodiment of the present application. In FIG. 2 , the pins of the audio connector 210 from the inside to the outside are the LP pin, the RN pin, the second power supply pin 212 and the first power supply pin 211 in sequence. At this time, if the audio playback device 30 is an American standard earphone, when it is inserted into the audio connector 210 , the MIC pin is connected to the first power pin 211 , and the GND pin is connected to the second power pin 212 . It should be noted that, the audio playback device 30 in FIG. 2 only shows a schematic structure of the part connected with the audio connector 210 , and is only used to illustrate the connection relationship with the audio connector 210 .

作为一种实施方式,音频连接器210中第一电源引脚211可用于连接音频播放设备由外向内的第4个脚,即音频连接器210由外向内的第1个引脚,第二电源引脚212可用于连接音频播放设备由外向内的第3个脚,即音频连接器210由外向内的第二个引脚,即如图2所示。作为另一种实施方式,音频连接器210中的第一电源引脚211可用于连接该第3个脚,第二电源引脚212可用于连接该第4个脚。本实施例对此并不作限定。As an embodiment, the first power pin 211 of the audio connector 210 can be used to connect the fourth pin of the audio playback device from outside to inside, that is, the first pin of the audio connector 210 from outside to inside, the second power The pin 212 can be used to connect the third pin from the outside to the inside of the audio playback device, that is, the second pin from the outside to the inside of the audio connector 210 , as shown in FIG. 2 . As another embodiment, the first power pin 211 of the audio connector 210 can be used to connect the third pin, and the second power pin 212 can be used to connect the fourth pin. This embodiment does not limit this.

下面为表述方便,以如图2所示的第一电源引脚211、第二电源引脚212的位置为例进行说明。For convenience of description below, the positions of the first power supply pin 211 and the second power supply pin 212 shown in FIG. 2 are used as an example for description.

音频连接器210的第一电源引脚211通过第一开关模块120连接第一供电端220,通过第二开关模块130连接第二供电端230。第二电源引脚212通过第一开关模块120连接第二供电端230,通过第二开关模块130连接第一供电端220。The first power pin 211 of the audio connector 210 is connected to the first power supply terminal 220 through the first switch module 120 , and is connected to the second power supply terminal 230 through the second switch module 130 . The second power pin 212 is connected to the second power supply terminal 230 through the first switch module 120 , and is connected to the first power supply terminal 220 through the second switch module 130 .

第一开关模块120,与检测模块110连接,用于在音频连接器210与音频播放设备的类型匹配时,将第一电源引脚211与第一供电端220导通,将第二电源引脚212与第二供电端230导通,以及在音频连接器210与音频播放设备的类型不匹配时,将第一电源引脚211与第一供电端220断开连接,将第二电源引脚212与第二供电端230断开连接。The first switch module 120 is connected to the detection module 110, and is used to conduct the first power supply pin 211 with the first power supply terminal 220 when the audio connector 210 matches the type of the audio playback device, and connect the second power supply pin 212 is connected to the second power supply terminal 230, and when the audio connector 210 does not match the type of the audio playback device, the first power supply pin 211 is disconnected from the first power supply terminal 220, and the second power supply pin 212 Disconnect from the second power supply terminal 230 .

在一种实施方式中,第一开关模块120可包括至少两个开关元件,且两个开关元件与检测模块110连接,并至少一个开关元件连接于第一电源引脚211与第一供电端220之间,并受控于检测模块110,另至少一个开关元件连接于第二电源引脚212与第二供电端230之间,并受控于检测模块110,使得第一开关模块120的至少两个开关元件在匹配时同时导通,不匹配时同时断开。其中,开关元件可以是三极管,也可以是场效应管等元件,还可以是其他至少具有三端的开关器件,满足前述导通条件即可,本实施例对此不作限定。In one embodiment, the first switch module 120 may include at least two switch elements, and the two switch elements are connected to the detection module 110 , and the at least one switch element is connected to the first power pin 211 and the first power supply terminal 220 and controlled by the detection module 110, and at least one switch element is connected between the second power pin 212 and the second power supply terminal 230, and is controlled by the detection module 110, so that at least two switches of the first switch module 120 The switching elements are turned on at the same time when matched, and turned off at the same time when they are not matched. The switching element may be a triode, a field effect transistor or other element, and may also be other switching devices having at least three terminals, as long as the aforementioned conduction conditions are satisfied, which is not limited in this embodiment.

第二开关模块130,与检测模块110连接,用于在音频连接器210与音频播放设备的类型不匹配时,将第一电源引脚211与第二供电端230导通,将第二电源引脚212与第一供电端220导通,以及在音频连接器210与音频播放设备的类型匹配时,将第一电源引脚211与第二供电端230断开连接,将第二电源引脚212与第一供电端220断开连接。The second switch module 130 is connected to the detection module 110, and is used to conduct the first power supply pin 211 and the second power supply terminal 230 when the type of the audio connector 210 does not match the audio playback device, and conduct the second power supply The pin 212 is connected to the first power supply terminal 220, and when the audio connector 210 matches the type of the audio playback device, the first power supply pin 211 is disconnected from the second power supply terminal 230, and the second power supply pin 212 is disconnected. Disconnected from the first power supply terminal 220 .

在一些实施例中,由于音频播放设备与第一电源引脚211和第二电源引脚212连接的脚的类型不同,不同类型对应的电平不同,例如MIC脚对应高电平,GND脚对应低电平,因此,通过检测第一电源引脚211的电压,可确定与第一电源引脚211连接的音频播放设备的脚的类型,也可确定音频连接器210与音频播放设备的类型是否匹配。In some embodiments, since the audio playback device has different types of pins connected to the first power supply pin 211 and the second power supply pin 212, the levels corresponding to different types are different. For example, the MIC pin corresponds to a high level, and the GND pin corresponds to a high level. Low level, therefore, by detecting the voltage of the first power supply pin 211, the type of the pin of the audio playback device connected to the first power supply pin 211 can be determined, and it can also be determined whether the type of the audio connector 210 and the audio playback device is match.

在一些实施方式中,检测模块110可用于检测音频连接器210中第一电源引脚211或第二电源引脚212中目标电源引脚的目标电压,在目标电压与目标电源引脚对应的电压范围不匹配时,则可判定音频连接器210与音频播放设备的类型不匹配,在目标电压与目标电源引脚对应的电压范围匹配时,则可判定音频连接器210与音频播放设备的类型匹配。In some embodiments, the detection module 110 can be used to detect the target voltage of the target power supply pin in the first power supply pin 211 or the second power supply pin 212 of the audio connector 210, where the target voltage corresponds to the voltage of the target power supply pin When the range does not match, it can be determined that the audio connector 210 does not match the type of the audio playback device, and when the target voltage matches the voltage range corresponding to the target power supply pin, it can be determined that the audio connector 210 matches the type of the audio playback device .

进一步地,作为一种实施方式,检测模块110可对检测到的电压进行处理得到控制信号,并输出至第一开关模块120、第二开关模块130,以控制第一开关模块120与第三开关模块130的导通状态(即导通或断开)。此时,检测模块110可以包括比较器,用于根据检测到的电压输出对应的电平信号,例如可在一个输入端连接参考电压源,另一个输入端与目标电源引脚连接,从而通过比较目标电源引脚的目标电压与参考电压源的参考电压,在目标电压高于参考电压时,输出高电平(1),在目标电压不高于参考电压时,输出低电平(0)。在一个示例中,比较器可以是MAX913比较器,还可采用其他可根据电压输出电平信号的器件,本实施例对此不做限定。Further, as an implementation manner, the detection module 110 can process the detected voltage to obtain a control signal, and output the control signal to the first switch module 120 and the second switch module 130 to control the first switch module 120 and the third switch The on state (ie, on or off) of the module 130 . At this time, the detection module 110 may include a comparator for outputting a corresponding level signal according to the detected voltage. For example, one input terminal may be connected to a reference voltage source, and the other input terminal may be connected to the target power supply pin, so as to compare the The target voltage of the target power supply pin and the reference voltage of the reference voltage source output a high level (1) when the target voltage is higher than the reference voltage, and output a low level (0) when the target voltage is not higher than the reference voltage. In an example, the comparator may be a MAX913 comparator, and other devices capable of outputting level signals according to voltage may also be used, which is not limited in this embodiment.

作为另一种实施方式,检测模块110可不对检测到的电压作处理,即直接输出电压信号,而不转换成电平信号,使得第一开关模块120、第二开关模块130可根据检测模块110所检测到的目标电压切换导通状态。(但为表述方便和统一,后续统一用高电平指代较高的电压范围,低电平指代较低的电压范围,即可表示电压的高低,不特指电平信号。)此时,第一开关模块120与第二开关模块130的导通电压可不同,例如,第一开关模块120可以在目标电压处于高电平时导通,低电平时断开,第二开关模块130可以在低电平时导通,高电平时断开。此时,第一开关模块120、第二开关模块130可以由三极管、场效应管等构成,则无需额外的控制电路,即可根据目标电压切换导通状态。As another embodiment, the detection module 110 may not process the detected voltage, that is, directly output the voltage signal without converting it into a level signal, so that the first switch module 120 and the second switch module 130 can The detected target voltage switches the on state. (However, for the convenience and uniformity of expression, the high level will be used to refer to the higher voltage range, and the low level will refer to the lower voltage range, which means the level of the voltage, not the level signal.) , the turn-on voltages of the first switch module 120 and the second switch module 130 may be different. For example, the first switch module 120 may be turned on when the target voltage is at a high level and turned off when the target voltage is at a low level, and the second switch module 130 may be It is turned on when it is low and disconnected when it is high. At this time, the first switch module 120 and the second switch module 130 may be composed of triodes, field effect transistors, etc., so that the conduction state can be switched according to the target voltage without an additional control circuit.

在一个示例中,检测模块110可包括电压检测引脚,可与第一电源引脚211或第二电源引脚212直接连接,也可与可用于指示第一电源引脚211或第二电源引脚212的电平的端口连接,用于检测目标电源引脚的目标电压,并输出至第一开关模块120与第二开关模块130。其中,目标电源引脚为第一电源引脚211或第二电源引脚212。In one example, the detection module 110 may include a voltage detection pin, which may be directly connected to the first power supply pin 211 or the second power supply pin 212, or may be connected to the first power supply pin 211 or the second power supply pin for indicating the first power supply pin 211 or the second power supply pin. The level port of the pin 212 is connected to detect the target voltage of the target power supply pin and output to the first switch module 120 and the second switch module 130 . The target power supply pin is the first power supply pin 211 or the second power supply pin 212 .

第一开关模块120,用于在目标电源引脚的目标电压处于第一电压范围时,将第一电源引脚211与第一供电端220导通,将第二电源引脚212与第二供电端230导通,以及在目标电源引脚的目标电压处于第二电压范围时,将第一电源引脚211与第一供电端220断开连接,将第二电源引脚212与第二供电端230断开连接。The first switch module 120 is configured to conduct the first power supply pin 211 and the first power supply terminal 220 when the target voltage of the target power supply pin is in the first voltage range, and connect the second power supply pin 212 to the second power supply The terminal 230 is turned on, and when the target voltage of the target power supply pin is in the second voltage range, the first power supply pin 211 is disconnected from the first power supply terminal 220, and the second power supply pin 212 is connected to the second power supply terminal. 230 Disconnect.

其中,在一种实施方式中,第一供电端220的电势高于第二供电端230,此时,第一电压范围对应高电平,第二电压范围对应低电平。在另一种实施方式中,第一供电端220的电势低于第二供电端230,此时,第一电压范围对应低电平,第二电压范围对应高电平。Wherein, in one embodiment, the potential of the first power supply terminal 220 is higher than that of the second power supply terminal 230 . At this time, the first voltage range corresponds to a high level, and the second voltage range corresponds to a low level. In another embodiment, the potential of the first power supply terminal 220 is lower than that of the second power supply terminal 230 . At this time, the first voltage range corresponds to a low level, and the second voltage range corresponds to a high level.

第二开关模块130,用于在目标电源引脚的电压处于第一电压范围时,将第一电源引脚211与第二供电端230断开连接,将第二电源引脚212与第一供电端220断开连接,以及在目标电源引脚的电压处于第二电压范围时,将第一电源引脚211与第二供电端230导通,将第二电源引脚212与第一供电端220导通。The second switch module 130 is configured to disconnect the first power supply pin 211 from the second power supply terminal 230 and connect the second power supply pin 212 to the first power supply terminal when the voltage of the target power supply pin is in the first voltage range. The terminal 220 is disconnected, and when the voltage of the target power supply pin is in the second voltage range, the first power supply pin 211 is connected to the second power supply terminal 230, and the second power supply pin 212 is connected to the first power supply terminal 220. on.

在一些实施方式中,检测模块110可以与第一电源引脚211连接,则当检测到第一电源引脚211的电压对应高电平时,可判定音频连接器210与音频播放设备的类型匹配,当检测到第一电源引脚211的电压对应低电平时,可判定音频连接器210与音频播放设备的类型不匹配,也就是说,此时终端设备可默认适配于美标耳机。在另一些实施方式中,若检测模块110与第一电源引脚211连接,当检测到第一电源引脚211的电压对应低电平时,可判定类型匹配,否则不匹配,也就是说,此时终端设备可默认适配于欧标耳机。即本实施例对判定音频连接器210与音频播放设备的类型是否匹配的条件不作限定。In some embodiments, the detection module 110 can be connected to the first power pin 211, and when it is detected that the voltage of the first power pin 211 corresponds to a high level, it can be determined that the audio connector 210 matches the type of the audio playback device, When it is detected that the voltage of the first power pin 211 corresponds to a low level, it can be determined that the audio connector 210 does not match the type of the audio playback device, that is, the terminal device can be adapted to American standard headphones by default. In other embodiments, if the detection module 110 is connected to the first power pin 211, when it is detected that the voltage of the first power pin 211 corresponds to a low level, it can be determined that the type matches, otherwise it does not match, that is, this When the terminal device can be adapted to the European standard headset by default. That is, the present embodiment does not limit the conditions for determining whether the types of the audio connector 210 and the audio playback device match.

在另一些实施方式中,检测模块110可与第二电源引脚212连接,此时判定音频连接器210与音频播放设备的类型是否匹配的方式与上述检测模块110连接第一电源引脚211时类似,在此不再赘述。In other embodiments, the detection module 110 can be connected to the second power pin 212 , and the method of determining whether the audio connector 210 matches the type of the audio playback device is the same as when the detection module 110 is connected to the first power pin 211 similar, and will not be repeated here.

在一种实施方式中,以音频播放设备为耳机为例,第一供电端220可对应电源正端,第二供电端230可为地端,检测模块110与第一电源引脚211连接,当耳机插入音频连接器210时,检测模块110检测第一电源引脚211的目标电压,若目标电压对应高电平,此时音频播放设备的MIC脚与第一电源引脚211连接,即音频播放设备为欧标耳机,则导通第一开关模块120,以使与欧标耳机的MIC脚连接的第一电源引脚211与第一供电端220导通,与欧标耳机的GND脚连接的第二电源引脚212与第二供电端230导通即接地,使得欧标耳机可正常使用。In one embodiment, taking the audio playback device as an earphone as an example, the first power supply terminal 220 may correspond to the positive terminal of the power supply, the second power supply terminal 230 may be the ground terminal, and the detection module 110 is connected to the first power supply pin 211 . When the earphone is inserted into the audio connector 210, the detection module 110 detects the target voltage of the first power supply pin 211. If the target voltage corresponds to a high level, the MIC pin of the audio playback device is connected to the first power supply pin 211, that is, the audio playback device is connected to the first power supply pin 211. If the device is a European standard earphone, the first switch module 120 is turned on, so that the first power supply pin 211 connected to the MIC pin of the European standard earphone is connected to the first power supply terminal 220, and the GND pin of the European standard earphone is connected to The second power pin 212 is connected to the second power supply terminal 230 , that is, grounded, so that the European standard earphone can be used normally.

另外,若目标电压对应低电平,此时音频播放设备的GND脚与第一电源引脚211连接,即音频播放设备为美标耳机,则导通第二开关模块130,以使与美标耳机的GND脚连接的第一电源引脚211与第二供电端230导通即接地,与美标耳机的MIC脚连接的第二电源引脚212与第一供电端220导通,使得美标耳机可正常使用。由此实现对美标、欧标耳机的兼容。In addition, if the target voltage corresponds to a low level, and the GND pin of the audio playback device is connected to the first power pin 211, that is, the audio playback device is an American standard earphone, the second switch module 130 is turned on so as to connect with the American standard earphone. The first power pin 211 connected to the GND pin of the earphone is connected to the second power supply terminal 230, that is, grounded, and the second power supply pin 212 connected to the MIC pin of the American standard earphone is connected to the first power supply terminal 220, so that the American standard Headphones can be used normally. This achieves compatibility with American standard and European standard earphones.

本实施例提供的切换控制电路100,通过在音频播放设备接入音频连接器210时,检测模块110自动检测音频播放设备与音频连接器210的类型是否匹配,并在类型匹配时,第一电源引脚211通过第一开关模块120与第一供电端220导通,第二电源引脚212通过第一开关模块120与第二供电端230导通,在类型不匹配时,第一电源引脚211通过第二开关模块130与第二供电端230导通,第二电源引脚212通过第二开关模块130与第一供电端220导通,从而能够使得第一电源引脚211、第二电源引脚212的电平可根据音频播放设备的类型发生改变,以实现对不同标准的音频播放设备的兼容。In the switching control circuit 100 provided in this embodiment, when the audio playback device is connected to the audio connector 210, the detection module 110 automatically detects whether the types of the audio playback device and the audio connector 210 match, and when the types match, the first power supply The pin 211 is connected to the first power supply terminal 220 through the first switch module 120, and the second power supply pin 212 is connected to the second power supply terminal 230 through the first switch module 120. When the types do not match, the first power supply pin 211 is connected to the second power supply terminal 230 through the second switch module 130, and the second power supply pin 212 is connected to the first power supply terminal 220 through the second switch module 130, so that the first power supply pin 211, the second power supply The level of the pin 212 can be changed according to the type of audio playback device, so as to achieve compatibility with audio playback devices of different standards.

请参阅图3,图3示出了本申请另一个实施例提供的切换控制电路的示意图,如图3所示,该切换控制电路100包括检测模块110、第一开关模块120以及第二开关模块130。Please refer to FIG. 3 . FIG. 3 shows a schematic diagram of a switching control circuit provided by another embodiment of the present application. As shown in FIG. 3 , the switching control circuit 100 includes a detection module 110 , a first switch module 120 and a second switch module 130.

其中,第一开关模块120还包括:第一开关单元121以及第二开关单元122。第一开关单元121与检测模块110、第二开关单元122连接,用于根据检测模块110检测的检测结果控制第二开关单元122的导通状态。在一些实施方式中,第一开关单元121、第二开关单元122可以是三极管、场效应管等可用作开关的器件,本实施例对此不作限定。The first switch module 120 further includes: a first switch unit 121 and a second switch unit 122 . The first switch unit 121 is connected to the detection module 110 and the second switch unit 122 , and is used for controlling the conduction state of the second switch unit 122 according to the detection result detected by the detection module 110 . In some embodiments, the first switch unit 121 and the second switch unit 122 may be devices that can be used as switches, such as triodes, field effect transistors, etc., which are not limited in this embodiment.

其中,第二开关单元122,连接于第一电源引脚211与第一供电端220之间,第二开关单元122还连接于第二电源引脚212与第二供电端230之间。第一开关单元121与第二开关单元122用于在音频连接器210与音频播放设备的类型匹配时导通,不匹配时断开,以使得在类型匹配时,将通过第一开关模块120连接的第一电源引脚211与第一供电端220之间、第二电源引脚212与第二供电端230之间导通,以使得在类型匹配时,将通过第一开关模块120连接的第一电源引脚211与第一供电端220、第二电源引脚212与第二供电端230断开。The second switch unit 122 is connected between the first power supply pin 211 and the first power supply terminal 220 , and the second switch unit 122 is further connected between the second power supply pin 212 and the second power supply terminal 230 . The first switch unit 121 and the second switch unit 122 are used to conduct when the type of the audio connector 210 matches the audio playback device, and disconnect when they do not match, so that when the type is matched, the first switch module 120 will be connected. The first power supply pin 211 and the first power supply terminal 220, and between the second power supply pin 212 and the second power supply terminal 230 are connected, so that when the types are matched, the first power supply pin 211 connected through the first switch module 120 A power supply pin 211 is disconnected from the first power supply terminal 220 , and the second power supply pin 212 is disconnected from the second power supply terminal 230 .

另外,在一些实施例中,第二开关模块130可包括第三开关单元131,第三开关单元131与检测模块110连接,且第三开关单元131连接于第一电源引脚211与第二供电端230之间,第三开关单元131还连接于第二电源引脚212与第一供电端220之间。由于第三开关单元131的连接关系与第二开关模块130一致,则其工作原理也可参考第二开关模块130,在此不再赘述。In addition, in some embodiments, the second switch module 130 may include a third switch unit 131, the third switch unit 131 is connected to the detection module 110, and the third switch unit 131 is connected to the first power pin 211 and the second power supply Between the terminals 230 , the third switch unit 131 is further connected between the second power pin 212 and the first power supply terminal 220 . Since the connection relationship of the third switch unit 131 is the same as that of the second switch module 130 , its working principle can also be referred to the second switch module 130 , which will not be repeated here.

在一个实施例中,第一开关单元121、第二开关单元122、第三开关单元131可以均由绝缘栅场效应管构成,绝缘栅场效应管也称金属-氧化物-半导体型场效应管(Metal-Oxide-Semiconductor Field-Effect Transistor,MOSFET)、MOS管。MOS管包括两种类型,分别为N沟道型MOS管(即NMOS管)和P沟道型MOS管(即PMOS管)。由于不同类型的MOS管的导通电压不同,因此,第一开关单元121可根据检测模块110检测的电压导通或截止,进而控制第二开关单元122的导通或截止,以控制第一电源引脚211与第一供电端220的导通状态以及第二电源引脚212与第二供电端230的导通状态。In one embodiment, the first switch unit 121 , the second switch unit 122 , and the third switch unit 131 may all be composed of insulated gate field effect transistors, which are also called metal-oxide-semiconductor type field effect transistors. (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET), MOS tube. There are two types of MOS tubes, namely N-channel type MOS tubes (ie NMOS tubes) and P-channel type MOS tubes (ie PMOS tubes). Since the turn-on voltages of different types of MOS transistors are different, the first switch unit 121 can be turned on or off according to the voltage detected by the detection module 110, thereby controlling the turn-on or turn-off of the second switch unit 122 to control the first power supply The conduction state between the pin 211 and the first power supply terminal 220 and the conduction state between the second power supply pin 212 and the second power supply terminal 230 .

其中,MOS管是电压控制器件,栅极电流极小,MOS管饱和导通时产生的压降低,耗散功率小,效率也更高,并且由于MOS管的导通电阻小,效率高,适合大电流,成本低,因此利用MOS管实现切换控制电路100以实现对不同标准的音频播放设备的兼容,相较于其他使用集成好的开关芯片实现的方案而言,可大大降低成本、功耗,提高响应速度,使得响应速度达到微秒级。并且由于MOS管可根据电压实现导通或截止,还可无需额外增加控制电路来控制MOS管的导通状态。Among them, the MOS tube is a voltage control device, the gate current is extremely small, the voltage generated when the MOS tube is saturated and turned on is reduced, the power dissipation is small, and the efficiency is higher. High current and low cost, so using MOS tube to realize the switching control circuit 100 to achieve compatibility with audio playback equipment of different standards, compared with other solutions using integrated switch chips, it can greatly reduce cost and power consumption , to improve the response speed, so that the response speed reaches the microsecond level. And since the MOS tube can be turned on or off according to the voltage, it is also unnecessary to add a control circuit to control the conduction state of the MOS tube.

作为一种实施方式,第一开关单元121可以是NMOS管,第二开关单元122与第三开关单元131可以是PMOS管。在一个示例中,三个开关单元的连接关系可参阅图4,其示出了本申请一个示例性实施例提供的切换控制电路的示意图,如图4所示,第一开关单元121为MOS管Q1,类型为NMOS管,第二开关单元122为MOS管Q2,类型为PMOS管,第三开关单元131为MOS管Q3,类型为PMOS管。并具体地,Q1与Q3的栅极与电压检测引脚111连接,Q1的源极接地,Q1的漏极与Q2的栅极连接,Q2的源极与端口PORT1连接,Q2的漏极与输出端口OUT连接,Q3的源极与端口PORT2连接,Q3的漏极与输出端口OUT连接。另外,电阻R1、R2、R3可以是电阻,也可以是具有电阻特性的磁珠,还可以是其他具有电阻特性的元件等,本实施例对此不做限定。另外,第一开关单元121还通过电容C1接地,电容C1可用于通过交流,隔断直流。As an implementation manner, the first switch unit 121 may be an NMOS transistor, and the second switch unit 122 and the third switch unit 131 may be a PMOS transistor. In an example, the connection relationship of the three switch units can be referred to FIG. 4 , which shows a schematic diagram of a switching control circuit provided by an exemplary embodiment of the present application. As shown in FIG. 4 , the first switch unit 121 is a MOS transistor. Q1 is an NMOS transistor, the second switch unit 122 is a MOS transistor Q2 and a PMOS transistor, and the third switch unit 131 is a MOS transistor Q3 and a PMOS transistor. And specifically, the gates of Q1 and Q3 are connected to the voltage detection pin 111, the source of Q1 is grounded, the drain of Q1 is connected to the gate of Q2, the source of Q2 is connected to the port PORT1, and the drain of Q2 is connected to the output. The port OUT is connected, the source of Q3 is connected to the port PORT2, and the drain of Q3 is connected to the output port OUT. In addition, the resistors R1 , R2 , and R3 may be resistors, magnetic beads with resistance characteristics, or other elements with resistance characteristics, etc., which are not limited in this embodiment. In addition, the first switch unit 121 is also grounded through the capacitor C1, and the capacitor C1 can be used to pass the alternating current and cut off the direct current.

为简明示意,图4利用输出端口OUT指代用于连接第一电源引脚211与第二电源引脚212的电路,利用端口PORT1指代用于按第一电源引脚211连接第一供电端220、第二电源引脚212连接第二供电端230的方式进行连接的电路,利用端口PORT2指代用于按第一电源引脚211连接第二供电端230、第二电源引脚212连接第一供电端220的方式进行连接的电路。For the sake of simplicity, FIG. 4 uses the output port OUT to refer to the circuit for connecting the first power supply pin 211 and the second power supply pin 212, and uses the port PORT1 to refer to the circuit for connecting the first power supply terminal 220, The circuit for connecting the second power supply pin 212 to the second power supply terminal 230 is used to refer to the circuit for connecting the first power supply pin 211 to the second power supply terminal 230 and the second power supply pin 212 to the first power supply terminal by using the port PORT2. 220 way to connect the circuit.

以电压检测引脚111检测目标电源引脚后的输入信号可为高电平或低电平为例,图4中,当电压检测引脚111输入为1(高电平)时,Q1、Q2导通,Q3截止,此时,输出端口OUT连通至端口PORT1,使得第一电源引脚211与第一供电端220之间导通、第二电源引脚212与第二供电端230导通,即第一电源引脚211连通电源正端,第二电源引脚212接地;当电压检测引脚111输入为0(低电平)时,Q1、Q2截止,Q3导通,此时,输出端口OUT连通至端口PORT2,使得第一电源引脚211与第二供电端230导通、第二电源引脚212与第一供电端220导通,即第一电源引脚211接地,第二电源引脚212连通电源正端。由此,切换控制电路100可通过检测目标电源引脚的电压,控制第一电源引脚211与第二电源引脚212的电平,以使得两个电源引脚的不同电平组合可支持不同标准的音频播放设备。Taking the input signal after the voltage detection pin 111 detects the target power supply pin can be high level or low level as an example, in Figure 4, when the voltage detection pin 111 input is 1 (high level), Q1, Q2 is turned on, Q3 is turned off, at this time, the output port OUT is connected to the port PORT1, so that the first power supply pin 211 and the first power supply terminal 220 are connected, and the second power supply pin 212 and the second power supply terminal 230 are connected. That is, the first power supply pin 211 is connected to the positive terminal of the power supply, and the second power supply pin 212 is grounded; when the input of the voltage detection pin 111 is 0 (low level), Q1 and Q2 are turned off, and Q3 is turned on. At this time, the output port OUT is connected to the port PORT2, so that the first power supply pin 211 is connected to the second power supply terminal 230, and the second power supply pin 212 is connected to the first power supply terminal 220, that is, the first power supply pin 211 is grounded, and the second power supply The pin 212 is connected to the positive terminal of the power supply. Therefore, the switching control circuit 100 can control the level of the first power supply pin 211 and the second power supply pin 212 by detecting the voltage of the target power supply pin, so that different level combinations of the two power supply pins can support different levels Standard audio playback device.

作为另一种实施方式,第一开关单元121可以是PMOS管,第二开关单元122与第三开关单元131可以是NMOS管。在一个示例中,三个开关单元的连接关系可请参阅图5,其示出了一个示例性实施例提供的另一种切换控制电路的示意图,图5中输出端口OUT、端口PORT1、PORT2与图4中一致。如图5所示,第一开关单元121为MOS管Q1,类型为PMOS管,第二开关单元122为MOS管Q2,类型为NMOS管,第三开关单元131为MOS管Q3,类型为NMOS管。并具体地,Q1与Q3的栅极与电压检测引脚111连接,Q1的漏极与VDD连接,Q1的源极与Q2的栅极连接,Q2的源极与端口PORT1连接(具体地Q2的源极通过端口PORT1分别与第一供电端220、第二供电端230连接),Q2的漏极与输出端口OUT连接(具体地,Q2的漏极通过输出端口OUT分别与第一电源引脚211、第二电源引脚212连接),Q3的源极与端口PORT2连接(具体地Q3的源极通过端口PORT2分别与第一供电端220、第二供电端230连接),Q3的漏极与输出端口OUT连接(具体地,Q3的漏极通过输出端口OUT分别与第一电源引脚211、第二电源引脚212连接)。As another implementation manner, the first switch unit 121 may be a PMOS transistor, and the second switch unit 122 and the third switch unit 131 may be NMOS transistors. In an example, please refer to FIG. 5 for the connection relationship of the three switch units, which shows a schematic diagram of another switching control circuit provided by an exemplary embodiment. In FIG. 5, the output ports OUT, PORT1, PORT2 and consistent with Figure 4. As shown in FIG. 5 , the first switch unit 121 is a MOS transistor Q1 and the type is a PMOS transistor, the second switch unit 122 is a MOS transistor Q2 and the type is an NMOS transistor, and the third switch unit 131 is a MOS transistor Q3 and the type is an NMOS transistor. . And specifically, the gates of Q1 and Q3 are connected to the voltage detection pin 111, the drain of Q1 is connected to VDD, the source of Q1 is connected to the gate of Q2, and the source of Q2 is connected to the port PORT1 (specifically, the The source is connected to the first power supply terminal 220 and the second power supply terminal 230 respectively through the port PORT1), and the drain of Q2 is connected to the output port OUT (specifically, the drain of Q2 is connected to the first power supply pin 211 through the output port OUT respectively) , the second power supply pin 212 is connected), the source of Q3 is connected to the port PORT2 (specifically, the source of Q3 is connected to the first power supply terminal 220 and the second power supply terminal 230 through the port PORT2 respectively), and the drain of Q3 is connected to the output The port OUT is connected (specifically, the drain of Q3 is connected to the first power supply pin 211 and the second power supply pin 212 respectively through the output port OUT).

以电压检测引脚111检测目标电源引脚后的输入信号可为高电平或低电平为例,图5中,当电压检测引脚输入为0(低电平)时,Q1、Q2导通,Q3截止,此时,输出端口OUT连通至端口PORT1,使得第一电源引脚211连通电源正端,第二电源引脚212接地;当电压检测引脚111输入为1(高电平)时,Q1、Q2截止,Q3导通,此时,输出端口OUT连通至端口PORT2,使得第一电源引脚211接地,第二电源引脚212连通电源正端。由此,切换控制电路100可通过检测目标电源引脚的电压,控制第一电源引脚211与第二电源引脚212的电平,以使得两个电源引脚的不同电平组合可支持不同标准的音频播放设备。Taking the input signal after the voltage detection pin 111 detects the target power supply pin can be high level or low level as an example, in Figure 5, when the voltage detection pin input is 0 (low level), Q1, Q2 lead On, Q3 is off, at this time, the output port OUT is connected to the port PORT1, so that the first power supply pin 211 is connected to the positive end of the power supply, and the second power supply pin 212 is grounded; when the voltage detection pin 111 is input as 1 (high level) At this time, Q1 and Q2 are turned off and Q3 is turned on. At this time, the output port OUT is connected to the port PORT2, so that the first power supply pin 211 is grounded, and the second power supply pin 212 is connected to the positive terminal of the power supply. Therefore, the switching control circuit 100 can control the level of the first power supply pin 211 and the second power supply pin 212 by detecting the voltage of the target power supply pin, so that different level combinations of the two power supply pins can support different levels Standard audio playback device.

在一些实施例中,第一电源引脚211和第二电源引脚212的位置如图2所示,且第一供电端220为电源正端以及第二供电端230为地端。此时,当输出端口OUT连通至端口PORT1时,第一电源引脚211连通至第一供电端220,即电源正端,可用于连接MIC脚,且第二电源引脚212连通至第二供电端230,即接地,可用于连接GND脚,则可支持美标耳机的正常工作;当输出端口OUT连通至端口PORT2时,第一电源引脚211连通至第二供电端230,即接地,可用于连接GND脚,第二电源引脚212连通至第一供电端220,即电源正端,可用于连接MIC脚,则可支持欧标耳机的正常工作。从而可实现对不同标准耳机的兼容。In some embodiments, the positions of the first power supply pin 211 and the second power supply pin 212 are shown in FIG. 2 , and the first power supply terminal 220 is the positive terminal of the power supply and the second power supply terminal 230 is the ground terminal. At this time, when the output port OUT is connected to the port PORT1, the first power supply pin 211 is connected to the first power supply terminal 220, that is, the positive terminal of the power supply, which can be used to connect the MIC pin, and the second power supply pin 212 is connected to the second power supply Terminal 230, that is, ground, can be used to connect the GND pin, which can support the normal operation of American standard headphones; when the output port OUT is connected to the port PORT2, the first power supply pin 211 is connected to the second power supply terminal 230, that is, grounding, available For connecting to the GND pin, the second power pin 212 is connected to the first power supply terminal 220 , that is, the positive terminal of the power supply, which can be used to connect the MIC pin, which can support the normal operation of the European standard earphones. Thus, compatibility with different standard earphones can be realized.

在一些实施例中,根据电压检测引脚111所检测的目标电源引脚的不同,音频连接器210与音频播放设备的类型匹配时所对应电压范围可能不同,也就是说,目标电源引脚可与第一电压范围、第二电压范围对应,若目标电源引脚不同,则第一电压范围、第二电压范围也可不同。因此,根据目标电源引脚的不同,电压检测引脚111输入至第一开关单元121、第三开关单元131的电平可能不同,因此目标电源引脚可以与MOS管组合对应,目标电源引脚不同时,可采用不同的MOS管组合,例如图4、5所示的MOS管组合或其他MOS管组合。In some embodiments, according to the different target power pins detected by the voltage detection pin 111, the corresponding voltage range of the audio connector 210 and the audio playback device may be different when the type is matched, that is, the target power pin can be Corresponding to the first voltage range and the second voltage range, if the target power supply pins are different, the first voltage range and the second voltage range may also be different. Therefore, according to the difference of the target power supply pin, the voltage level input from the voltage detection pin 111 to the first switch unit 121 and the third switch unit 131 may be different, so the target power supply pin can correspond to the combination of MOS transistors, and the target power supply pin At different times, different MOS transistor combinations may be used, such as the MOS transistor combinations shown in FIGS. 4 and 5 or other MOS transistor combinations.

在一个实施例中,请参阅图6,其示出了本申请一个示例性实施例提供的切换控制电路的工作原理示意图。在音频连接器210与第一供电端220、第二供电端230之间可设置对称的如图4所示的切换开关电路,电压检测引脚111与第一电源引脚211连接,且第一电压范围对应高电平、第二电压范围对应低电平,此时可采用如图4所示的MOS管组合(Q1为NMOS管且Q2、Q3为PMOS管)。则当欧标耳机插入音频连接器210时,第一电源引脚211与欧标耳机的MIC脚连接,第二电源引脚212与欧标耳机的GND脚连接,则电压检测引脚111检测到第一电源引脚211的电压处于第一电压范围,此时Q1、Q1’、Q2、Q2’导通,Q3、Q3’截止,输出端口OUT连通至端口PORT1,以使得第一电源引脚211连通至电源正端,如通过上拉电阻Rup连通至偏置电压VBIAS,第二电源引脚212接地,从而可支持欧标耳机的正常工作。In one embodiment, please refer to FIG. 6 , which shows a schematic diagram of the working principle of the switching control circuit provided by an exemplary embodiment of the present application. Between the audio connector 210 and the first power supply terminal 220 and the second power supply terminal 230, a symmetrical switch circuit as shown in FIG. 4 can be arranged, the voltage detection pin 111 is connected to the first power supply pin 211, and the first power supply pin 211 The voltage range corresponds to a high level, and the second voltage range corresponds to a low level. At this time, a combination of MOS transistors as shown in FIG. 4 can be used (Q1 is an NMOS transistor and Q2 and Q3 are PMOS transistors). Then when the European standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the MIC pin of the European standard earphone, and the second power pin 212 is connected to the GND pin of the European standard earphone, then the voltage detection pin 111 detects the The voltage of the first power supply pin 211 is in the first voltage range. At this time, Q1, Q1', Q2, and Q2' are turned on, Q3 and Q3' are turned off, and the output port OUT is connected to the port PORT1, so that the first power supply pin 211 Connected to the positive terminal of the power supply, for example, connected to the bias voltage VBIAS through the pull-up resistor Rup, the second power supply pin 212 is grounded, so as to support the normal operation of the European standard earphone.

当美标耳机插入音频连接器210时,第一电源引脚211与美标耳机的GND脚连接,第二电源引脚212与美标耳机的MIC脚连接,则电压检测引脚111检测到第一电源引脚211的电压处于第二电压范围,此时Q1、Q1’、Q2、Q2’截止,Q3、Q3’导通,输出端口OUT连通至端口PORT2,以使得第一电源引脚211接地,第二电源引脚212连通至电源正端,从而可支持美标耳机的正常工作。When the American standard earphone is inserted into the audio connector 210, the first power supply pin 211 is connected to the GND pin of the American standard earphone, and the second power supply pin 212 is connected to the MIC pin of the American standard earphone, then the voltage detection pin 111 detects the first The voltage of a power supply pin 211 is in the second voltage range. At this time, Q1, Q1', Q2, and Q2' are turned off, Q3 and Q3' are turned on, and the output port OUT is connected to the port PORT2, so that the first power supply pin 211 is grounded , the second power pin 212 is connected to the positive terminal of the power supply, so as to support the normal operation of the American standard earphones.

在另一个实施例中,请参阅图7,其示出了本申请一个示例性实施例提供的切换控制电路的工作原理示意图。在音频连接器210与第一供电端220、第二供电端230之间可设置对称的如图5所示的电路,电压检测引脚111与第二电源引脚212连接,且第一电压范围对应低电平、第二电压范围对应高电平,此时可采用如图5所示的MOS管组合(Q1为PMOS管且Q2、Q3为NMOS管)。则当美标耳机插入音频连接器210时,第一电源引脚211与美标耳机的MIC脚连接,第二电源引脚212与美标耳机的GND脚连接,则电压检测引脚111检测到第二电源引脚212的电压处于第一电压范围,此时Q1、Q1’、Q2、Q2’截止,Q3、Q3’导通,输出端口OUT连通至端口PORT2,以使得第一电源引脚211接地,第二电源引脚212连通至电源正端,如通过上拉电阻Rup连通至偏置电压VBIAS,从而可支持美标耳机的正常工作。In another embodiment, please refer to FIG. 7 , which shows a schematic diagram of the working principle of the switching control circuit provided by an exemplary embodiment of the present application. A symmetrical circuit as shown in FIG. 5 can be arranged between the audio connector 210 and the first power supply terminal 220 and the second power supply terminal 230 , the voltage detection pin 111 is connected to the second power supply pin 212 , and the first voltage range Corresponding to the low level and the second voltage range corresponding to the high level, the MOS transistor combination shown in FIG. 5 can be used at this time (Q1 is a PMOS transistor and Q2 and Q3 are NMOS transistors). Then when the American standard earphone is inserted into the audio connector 210, the first power supply pin 211 is connected to the MIC pin of the American standard earphone, and the second power supply pin 212 is connected to the GND pin of the American standard earphone, then the voltage detection pin 111 detects the The voltage of the second power supply pin 212 is in the first voltage range. At this time, Q1, Q1', Q2, and Q2' are turned off, Q3 and Q3' are turned on, and the output port OUT is connected to the port PORT2, so that the first power supply pin 211 Grounding, the second power pin 212 is connected to the positive terminal of the power supply, for example, connected to the bias voltage VBIAS through the pull-up resistor Rup, so as to support the normal operation of the American standard earphone.

当欧标耳机插入音频连接器210时,第一电源引脚211与欧标耳机的GND脚连接,第二电源引脚212与欧标耳机的MIC脚连接,则电压检测引脚111检测到第二电源引脚211的电压处于第二电压范围,此时Q1、Q1’、Q2、Q2’导通,Q3、Q3’截止,输出端口OUT连通至端口PORT1,以使得第一电源引脚211连通至电源正端,第二电源引脚212接地,从而可支持欧标耳机的正常工作。When the European standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the GND pin of the European standard earphone, and the second power pin 212 is connected to the MIC pin of the European standard earphone, then the voltage detection pin 111 detects the first The voltage of the two power supply pins 211 is in the second voltage range. At this time, Q1, Q1', Q2, and Q2' are turned on, Q3 and Q3' are turned off, and the output port OUT is connected to the port PORT1, so that the first power supply pin 211 is connected. To the positive terminal of the power supply, the second power supply pin 212 is grounded, so as to support the normal operation of the European standard earphone.

在一些实施例中,输出端口OUT连通至端口PORT2以使第一电源引脚211接地,第二电源引脚212连通至电源正端的具体实施方式可以有多种,作为一种实施方式,可以是如图6、7所示的,切换控制电路100还可包括第一反相器141和第二反相器142,此时,端口PORT1与端口PORT2均连接至相同的电源正端和地端,其中,端口PORT2通过第一反相器141连接至第一供电端220,通过第二反相器142连接至第二供电端230,使得输出端口OUT连通至端口PORT2时,第一电源引脚211相当于连通至地端,第二电源引脚212相当于连通至电源正端。从而通过使输出端口OUT连通端口PORT1或端口PORT2可支持不同类型的音频播放设备,实现兼容。In some embodiments, the output port OUT is connected to the port PORT2 so that the first power supply pin 211 is grounded, and the second power supply pin 212 is connected to the positive terminal of the power supply in various specific implementations. As one implementation, it may be As shown in FIGS. 6 and 7 , the switching control circuit 100 may further include a first inverter 141 and a second inverter 142. At this time, the port PORT1 and the port PORT2 are both connected to the same positive power supply and ground. The port PORT2 is connected to the first power supply terminal 220 through the first inverter 141, and is connected to the second power supply terminal 230 through the second inverter 142, so that when the output port OUT is connected to the port PORT2, the first power supply pin 211 It is equivalent to being connected to the ground terminal, and the second power pin 212 is equivalent to being connected to the positive terminal of the power supply. Therefore, by connecting the output port OUT to the port PORT1 or the port PORT2, different types of audio playback devices can be supported to achieve compatibility.

作为另一种实施方式,也可不采用第一反相器141和第二反相器142,端口PORT1的连接可如图6、7所示的不变,端口PORT2中与第一电源引脚211连接的引脚与第二供电端212连接,以连接地端,端口PORT2中与第二电源引脚212连接的引脚与第一供电端211连接,以连接电源正端。实现与端口PORT1相反的连接。As another implementation manner, the first inverter 141 and the second inverter 142 may not be used, the connection of the port PORT1 may remain unchanged as shown in FIGS. 6 and 7 , and the port PORT2 is connected to the first power supply pin 211 The connected pin is connected to the second power supply terminal 212 to connect to the ground terminal, and the pin of the port PORT2 connected to the second power supply pin 212 is connected to the first power supply terminal 211 to connect to the positive terminal of the power supply. Implement the opposite connection to port PORT1.

另外,在一些实施例中,在目标电源引脚是第一电源引脚211时,与目标电源引脚是第二电源引脚212时,也可采用相同的MOS组合,但此时,作为一种实施方式,由于第一电源引脚211与第二电源引脚212的电平相反,因此在采用相同MOS管组合的情况下,若电压检测引脚111连接不同目标电源引脚,可在目标电源引脚与电压检测引脚111之间接入反相器,以使得目标电源引脚的电平经反相器翻转后才通过电压检测引脚111输入至第一开关单元121、第三开关单元131。In addition, in some embodiments, when the target power supply pin is the first power supply pin 211, and when the target power supply pin is the second power supply pin 212, the same MOS combination can also be used, but in this case, as a In one embodiment, since the levels of the first power supply pin 211 and the second power supply pin 212 are opposite, in the case of using the same combination of MOS transistors, if the voltage detection pin 111 is connected to a different target power supply pin, the An inverter is connected between the power supply pin and the voltage detection pin 111, so that the level of the target power supply pin is reversed by the inverter before being input to the first switch unit 121 and the third switch unit through the voltage detection pin 111 131.

在一种实施方式中,可采用如图4所示的MOS管组合,电压检测引脚111与第一电源引脚211连接,如图6所示;在另一种实施方式中,可采用如图4所示的MOS管组合,电压检测引脚111通过反相器与第二电源引脚122连接,以将第二电源引脚122的实际电平翻转后输入至第一开关单元121与第三开关单元131;在又一种实施方式中,可采用如图5所示的MOS管组合,电压检测引脚111与第二电源引脚212连接,如图7所示;在还一种实施方式中,可采用如图5所示的MOS管组合,电压检测引脚111通过反相器与第二电源引脚212连接,以将第二电源引脚122的实际电平翻转后输入至第一开关单元121与第三开关单元131。In one embodiment, the combination of MOS transistors shown in FIG. 4 can be used, and the voltage detection pin 111 is connected to the first power supply pin 211, as shown in FIG. 6; In the MOS transistor combination shown in FIG. 4, the voltage detection pin 111 is connected to the second power supply pin 122 through an inverter, so as to invert the actual level of the second power supply pin 122 and input it to the first switching unit 121 and the second power supply pin 122. Three switch units 131; in another embodiment, a combination of MOS transistors as shown in FIG. 5 can be used, and the voltage detection pin 111 is connected to the second power supply pin 212, as shown in FIG. 7; in yet another implementation In the method, the combination of MOS transistors as shown in FIG. 5 can be used, and the voltage detection pin 111 is connected to the second power supply pin 212 through an inverter, so as to invert the actual level of the second power supply pin 122 and input it to the first power supply pin 122. A switch unit 121 and a third switch unit 131 .

在一个具体示例中,若采用如图4所示的MOS管组合,则输入为高电平时Q1、Q2导通且Q3截止,输入为低电平时Q1、Q2截止且Q3导通,此时电压检测引脚111可连接第一电源引脚211(如美标耳机的MIC脚或欧标耳机的GND脚),在电压检测引脚111输入为高电平时,将输出端口OUT连通至端口PORT1,输入为低电平时,将输出端口OUT连通至端口PORT2。In a specific example, if the combination of MOS transistors as shown in Figure 4 is used, when the input is at a high level, Q1 and Q2 are turned on and Q3 is turned off; when the input is at a low level, Q1 and Q2 are turned off and Q3 is turned on. At this time, the voltage The detection pin 111 can be connected to the first power pin 211 (such as the MIC pin of the American standard earphone or the GND pin of the European standard earphone). When the input of the voltage detection pin 111 is at a high level, the output port OUT is connected to the port PORT1, When the input is low, connect the output port OUT to port PORT2.

当电压检测引脚111不连接第一电源引脚211、而是连接第二电源引脚212(如美标耳机的GND脚或欧标耳机的MIC脚)时,在电压检测引脚111与第二电源引脚212之间可接入反相器,则在第二电源引脚212对应的实际电平为低电平(相当于第二电源引脚212此时与耳机的GND脚连接)时,即此时所插入耳机为美标耳机,电压检测引脚111输入Q1、Q3的电平是高电平,将输出端口OUT连通至端口PORT1,以支持美标耳机。When the voltage detection pin 111 is not connected to the first power supply pin 211, but is connected to the second power supply pin 212 (such as the GND pin of American standard earphones or the MIC pin of European standard earphones), the voltage detection pin 111 is connected to the first power supply pin 212. An inverter can be connected between the two power pins 212, then when the actual level corresponding to the second power pin 212 is a low level (equivalent to the second power pin 212 being connected to the GND pin of the earphone at this time) , that is, the earphones inserted at this time are American standard earphones, the voltage detection pin 111 input Q1, Q3 level is high level, the output port OUT is connected to the port PORT1 to support American standard earphones.

在另一些实施方式中,为了在目标电源引脚是第一电源引脚211时,与目标电源引脚是第二电源引脚212时,也可采用相同的MOS组合,也可以不在目标电源引脚与电压检测引脚111之间接入反相器,而是在电压检测引脚111与第一开关单元121之间、电压检测引脚111与第三开关单元131之间接入反相器,原理可参考前述对反相器连接于目标电源引脚与电压检测引脚111之间的描述,在此不再赘述。可以理解的是,只要使得第一开关单元121、第三开关单元131所接收的电平信号发生翻转即可,本实施例对反相器的位置不作其他限定。In other embodiments, when the target power supply pin is the first power supply pin 211, and when the target power supply pin is the second power supply pin 212, the same MOS combination may be used, or the target power supply pin may not be used. An inverter is connected between the pin and the voltage detection pin 111, but an inverter is connected between the voltage detection pin 111 and the first switch unit 121, and between the voltage detection pin 111 and the third switch unit 131. The principle Reference may be made to the foregoing description of the inverter being connected between the target power supply pin and the voltage detection pin 111 , and details are not repeated here. It can be understood that as long as the level signals received by the first switch unit 121 and the third switch unit 131 are inverted, the position of the inverter is not limited in this embodiment.

在一个示例中,电压检测引脚111与第一电源引脚211连接,电压检测引脚111检测第一电源引脚211后输入切换控制电路的输入信号为高电平或低电平。此时,当美标耳机插入音频连接器210时,第一电源引脚211与美标耳机的MIC脚连接,则电压检测引脚111输入为1(高电平),Q1、Q2导通,Q3截止,此时,输出端口OUT连通至端口PORT1,即第一电源引脚211连接第一供电端220,第二电源引脚212连接第二供电端230,使得美标耳机的MIC脚接电源正端,GND脚接地,以支持美标耳机的正常工作;当欧标耳机插入音频连接器210时,第一电源引脚211与欧标耳机的GND脚连接,则电压检测引脚111输入为0(低电平),Q1、Q2截止,Q3导通,此时,输出端口OUT连通至端口PORT2,即第一电源引脚211连接第二供电端230、第二电源引脚212连接第一供电端220,使得欧标耳机的GND脚接地,MIC脚接电源正端,以支持欧标耳机的正常工作。从而可实现对美标、欧标耳机的兼容。In an example, the voltage detection pin 111 is connected to the first power supply pin 211 , and the voltage detection pin 111 detects the first power supply pin 211 and the input signal input to the switching control circuit is a high level or a low level. At this time, when the American standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the MIC pin of the American standard earphone, then the input of the voltage detection pin 111 is 1 (high level), Q1 and Q2 are turned on, Q3 is off, at this time, the output port OUT is connected to the port PORT1, that is, the first power pin 211 is connected to the first power supply terminal 220, and the second power supply pin 212 is connected to the second power supply terminal 230, so that the MIC pin of the American standard earphone is connected to the power supply The positive end, the GND pin is grounded to support the normal operation of the American standard earphone; when the European standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the GND pin of the European standard earphone, and the voltage detection pin 111 is input as 0 (low level), Q1 and Q2 are turned off, and Q3 is turned on. At this time, the output port OUT is connected to the port PORT2, that is, the first power supply pin 211 is connected to the second power supply terminal 230, and the second power supply pin 212 is connected to the first power supply pin 212. The power supply terminal 220 makes the GND pin of the European standard earphone grounded, and the MIC pin is connected to the positive terminal of the power supply, so as to support the normal operation of the European standard earphone. Thereby, compatibility with American standard and European standard headphones can be realized.

作为另一种实施方式,第一开关单元121可以是PMOS管,第二开关单元122与第三开关单元131可以是NMOS管。具体地,三个开关单元的连接关系可请参阅图5,其示出了一个示例性实施例提供的另一种切换控制电路的连接示意图,图5中输出端口OUT、端口PORT1、PORT2与图4中一致。如图5所示,第一开关单元121为PMOS管Q1,第二开关单元122为NMOS管Q2,第三开关单元131为NMOS管Q3。并具体地,Q1与Q3的栅极与电压检测引脚111连接,Q1的漏极与VDD连接,Q1的源极与Q2的栅极连接,Q2的源极与端口PORT1连接,Q2的漏极与输出端口OUT连接,Q3的源极与端口PORT2连接,Q3的漏极与输出端口OUT连接。As another implementation manner, the first switch unit 121 may be a PMOS transistor, and the second switch unit 122 and the third switch unit 131 may be NMOS transistors. Specifically, please refer to FIG. 5 for the connection relationship of the three switch units, which shows a schematic diagram of the connection of another switching control circuit provided by an exemplary embodiment. 4 are consistent. As shown in FIG. 5 , the first switch unit 121 is a PMOS transistor Q1 , the second switch unit 122 is an NMOS transistor Q2 , and the third switch unit 131 is an NMOS transistor Q3 . And specifically, the gates of Q1 and Q3 are connected to the voltage detection pin 111, the drain of Q1 is connected to VDD, the source of Q1 is connected to the gate of Q2, the source of Q2 is connected to the port PORT1, and the drain of Q2 is connected. It is connected to the output port OUT, the source of Q3 is connected to the port PORT2, and the drain of Q3 is connected to the output port OUT.

在另一个示例中,电压检测引脚111与第一电源引脚211连接,电压检测引脚111检测第一电源引脚211后输入切换控制电路的输入信号为高电平或低电平。此时,当美标耳机插入音频连接器210时,第一电源引脚211与美标耳机的MIC脚连接,则电压检测引脚输入为0(低电平)时,Q1、Q2导通,Q3截止,此时,输出端口OUT连通至端口PORT1,即第一电源引脚211连接第一供电端220,第二电源引脚212连接第二供电端230,使得美标耳机的MIC脚接电源正端,GND脚接地,以支持美标耳机的正常工作;当欧标耳机插入音频连接器210时,第一电源引脚211与欧标耳机的GND脚连接,则电压检测引脚111输入为1(高电平),Q1、Q2截止,Q3导通,此时,输出端口OUT连通至端口PORT2,即第一电源引脚211连接第二供电端230、第二电源引脚212连接第一供电端220,使得欧标耳机的GND脚接地,MIC脚接电源正端,以支持欧标耳机的正常工作。从而可实现对美标、欧标耳机的兼容。In another example, the voltage detection pin 111 is connected to the first power supply pin 211 , and after the voltage detection pin 111 detects the first power supply pin 211 , the input signal input to the switching control circuit is a high level or a low level. At this time, when the American standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the MIC pin of the American standard earphone, then when the voltage detection pin input is 0 (low level), Q1 and Q2 are turned on, Q3 is off, at this time, the output port OUT is connected to the port PORT1, that is, the first power pin 211 is connected to the first power supply terminal 220, and the second power supply pin 212 is connected to the second power supply terminal 230, so that the MIC pin of the American standard earphone is connected to the power supply The positive end, the GND pin is grounded to support the normal operation of the American standard earphone; when the European standard earphone is inserted into the audio connector 210, the first power pin 211 is connected to the GND pin of the European standard earphone, and the voltage detection pin 111 is input as 1 (high level), Q1 and Q2 are turned off, and Q3 is turned on. At this time, the output port OUT is connected to the port PORT2, that is, the first power supply pin 211 is connected to the second power supply terminal 230, and the second power supply pin 212 is connected to the first power supply pin 212. The power supply terminal 220 makes the GND pin of the European standard earphone grounded, and the MIC pin is connected to the positive terminal of the power supply, so as to support the normal operation of the European standard earphone. Thereby, compatibility with American standard and European standard headphones can be realized.

需要说明的是,本实施例未详细描述的部分可参考前述实施例,在此不再赘述。It should be noted that, for parts not described in detail in this embodiment, reference may be made to the foregoing embodiments, and details are not described herein again.

出于成本考虑目前市场上带有3.5mm耳机孔的移动终端大都不能同時支持用户插入美标耳机或者插入欧标耳机,当设计为仅支持识别美标耳机的终端在插入欧标耳机时,手机无任何响应或者有异常的伴奏声,而人声基本消除,声音空灵,导致用户体验较低。因此,本实施例通过提供利用MOS管作切换开关的切换控制电路,在音频播放设备与饮片连接器210连接时,通过电压检测引脚111检测与耳机MIC脚或GND脚连接的目标电源引脚的目标电压,以控制第一开关单元121、第二开关单元122以及第三开关单元131导通或截止,从而在目标电压处于不同电压范围时,可实现第一电源引脚211、第二电源引脚212与第一供电端220、第二供电端230之间的不同连接方式,由此实现对不同类型的音频播放设备,如不同标准的耳机的兼容,使得不同标准的耳机可连接终端设备并正常工作,大大提高用户体验。而且,相较于目前利用开关集成芯片实现兼容的方案而言,本实施例提供的切换控制电路,通过采用MOS管作切换开关来同时兼容美标耳机和欧标耳机,成本更低,功耗更小,响应速度在微秒级,响应速度更快并且不需要额外增加控制电路。并且由于MOS管可根据电压实现导通或截止,还可无需额外增加控制电路来控制MOS管的导通状态。Due to cost considerations, most mobile terminals with 3.5mm headphone jacks currently on the market cannot support users to insert American standard headphones or European standard headphones at the same time. There is no response or abnormal accompaniment sound, and the human voice is basically eliminated, and the sound is ethereal, resulting in a low user experience. Therefore, in this embodiment, by providing a switching control circuit using a MOS tube as a switching switch, when the audio playback device is connected to the tablet connector 210 , the voltage detection pin 111 detects the target power supply pin connected to the MIC pin or the GND pin of the earphone. target voltage to control the first switch unit 121, the second switch unit 122 and the third switch unit 131 to be turned on or off, so that when the target voltage is in different voltage ranges, the first power supply pin 211, the second power supply pin 211 and the second power supply can be realized. Different connection methods between the pin 212 and the first power supply terminal 220 and the second power supply terminal 230, thereby realizing compatibility with different types of audio playback devices, such as headphones of different standards, so that headphones of different standards can be connected to terminal equipment And work normally, greatly improving the user experience. Moreover, compared with the current solution that uses a switch integrated chip to achieve compatibility, the switching control circuit provided in this embodiment uses a MOS tube as a switching switch to be compatible with both American standard earphones and European standard earphones, with lower cost and lower power consumption. Smaller, the response speed is in the microsecond level, the response speed is faster and no additional control circuit is required. And since the MOS tube can be turned on or off according to the voltage, it is also unnecessary to add a control circuit to control the conduction state of the MOS tube.

请参阅图8,本申请实施例还提供了一种终端设备80,该终端设备80可包括壳体810、设置于壳体810上的音频连接器210、设置于壳体810内的第一供电端220、第二供电端230以及如上述实施例所述的切换控制电路100。Referring to FIG. 8 , an embodiment of the present application further provides a terminal device 80 . The terminal device 80 may include a casing 810 , an audio connector 210 disposed on the casing 810 , and a first power supply disposed in the casing 810 . The terminal 220, the second power supply terminal 230, and the switching control circuit 100 described in the above embodiments.

本实施例中,终端设备80可以是手机、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑、台式电脑、可穿戴式设备或其他任意终端。In this embodiment, the terminal device 80 may be a mobile phone, an MP3 player (Moving Picture Experts Group Audio Layer III, the standard audio layer 3 of the moving picture expert compression), MP4 (Moving Picture Experts Group Audio Layer IV, the standard audio layer 4 of the moving picture expert compression standard) ) player, laptop computer, desktop computer, wearable device or any other terminal.

其中,切换控制电路100分别与音频连接器210、第一供电端220、第二供电端230连接。需要说明的是,图8中仅为示意,只需满足前述连接关系,至于切换控制电路100、音频连接器210、第一供电端220、第二供电端230在终端设备80的具体位置,本实施例不做限定。The switching control circuit 100 is respectively connected with the audio connector 210 , the first power supply terminal 220 and the second power supply terminal 230 . It should be noted that FIG. 8 is only for illustration, and only needs to satisfy the aforementioned connection relationship. As for the specific positions of the switching control circuit 100 , the audio connector 210 , the first power supply terminal 220 and the second power supply terminal 230 in the terminal device 80 , this The embodiment is not limited.

其中,音频连接器210用于与音频播放设备连接,例如音频连接器210可以是3.5mm耳机接口的耳机座,可用于与3.5mm耳机接口的耳机连接,使得耳机可通过音频连接器210与终端设备进行数据传输。The audio connector 210 is used to connect with an audio playback device. For example, the audio connector 210 can be a headphone holder with a 3.5mm headphone jack, which can be used to connect with a headphone with a 3.5mm headphone jack, so that the headphone can be connected to the terminal through the audio connector 210. device for data transmission.

当音频播放设备与音频连接器210连接时,终端设备80可基于前述实施例所述的切换控制电路100通过检测音频连接器210与音频播放设备的类型是否匹配,来选择音频连接器210中第一电源引脚211、第二电源引脚212与第一供电端220、第二供电230的连接方式,从而实现对不同类型的音频播放设备的兼容。When the audio playback device is connected to the audio connector 210, the terminal device 80 can select the number of the audio connector 210 based on the switching control circuit 100 described in the foregoing embodiment by detecting whether the audio connector 210 matches the type of the audio playback device. The connection of the first power supply pin 211 and the second power supply pin 212 to the first power supply terminal 220 and the second power supply 230 can realize compatibility with different types of audio playback devices.

另外,本实施例也并不对壳体810的形状进行限定。In addition, this embodiment does not limit the shape of the casing 810 .

本领域技术人员可以理解,图8中示出的结构仅为示意,并不构成对终端设备80的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is for illustration only, and does not constitute a limitation to the terminal device 80, and may include more or less components than the one shown, or combine some components, or adopt different component layout.

本实施例提供的终端设备80具有如前述实施例的有益效果,在此不再赘述。The terminal device 80 provided in this embodiment has the same beneficial effects as the foregoing embodiments, and details are not described herein again.

请参阅图9,其示出了本申请实施例还提供了一种切换控制方法,可应用于上述终端设备,该方法包括:Please refer to FIG. 9 , which shows that an embodiment of the present application further provides a handover control method, which can be applied to the above-mentioned terminal device, and the method includes:

步骤S110:在音频连接器与音频播放设备连接时,检测音频连接器与音频播放设备的类型是否匹配。Step S110: When the audio connector is connected to the audio playback device, it is detected whether the types of the audio connector and the audio playback device match.

步骤S120:在音频连接器与音频播放设备的类型匹配时,将第一电源引脚与第一供电端导通,将第二电源引脚与第二供电端导通。Step S120: When the audio connector matches the type of the audio playback device, the first power supply pin is connected to the first power supply terminal, and the second power supply pin is connected to the second power supply terminal.

步骤S130:在音频连接器与音频播放设备的类型不匹配时,将第一电源引脚与第二供电端导通,将第二电源引脚与第一供电端导通。Step S130: When the audio connector does not match the type of the audio playback device, connect the first power supply pin to the second power supply terminal, and connect the second power supply pin to the first power supply terminal.

本实施例中,电源正端的类型与电源负端或地端的类型相反,第一供电端和第二供电端的类型相反,即作为一种实施方式,第一供电端为电源正端,第二供电端可以为电源负端或地端。作为另一种实施方式,第一供电端为电源负端或地端,第二供电端可以为电源正端。In this embodiment, the type of the positive terminal of the power supply is opposite to that of the negative terminal of the power supply or the ground terminal, and the types of the first power supply terminal and the second power supply terminal are opposite, that is, as an embodiment, the first power supply terminal is the positive terminal of the power supply, and the second power supply terminal The terminal can be the negative terminal of the power supply or the ground terminal. As another implementation manner, the first power supply terminal is the negative terminal of the power supply or the ground terminal, and the second power supply terminal may be the positive terminal of the power supply.

由于可在音频连接器与音频播放设备连接时,自动检测音频连接器与音频播放设备的类型是否匹配,并在类型匹配时,将第一电源引脚与第一供电端导通,在类型不匹配时,将第一电源引脚与相反的第二供电端导通,与第二电源引脚导通第二供电端,在类型不匹配时,使得的类型相反。Because when the audio connector is connected to the audio playback device, it can automatically detect whether the type of the audio connector and the audio playback device match, and when the type matches, the first power supply pin and the first power supply terminal are conducted. When matching, the first power supply pin is connected to the opposite second power supply terminal, and the second power supply terminal is connected to the second power supply pin. When the types do not match, the types are reversed.

其中,上述步骤可参考前述实施例,另外,上述方法能够应用于上述切换控制电路和终端,即该方法能够以上述切换控制电路和终端为执行载体,并实现如上述实施例所述的有益效果,具体地,可参阅前述实施例,在此不再赘述。The above-mentioned steps may refer to the foregoing embodiments. In addition, the above-mentioned method can be applied to the above-mentioned switching control circuit and terminal, that is, the method can use the above-mentioned switching control circuit and terminal as an execution carrier, and achieve the beneficial effects described in the above-mentioned embodiments. , specifically, reference may be made to the foregoing embodiments, which will not be repeated here.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1.一种切换控制电路,其特征在于,应用于终端设备,所述终端设备包括第一供电端、第二供电端和音频连接器,所述音频连接器包括第一电源引脚和第二电源引脚,所述切换控制电路包括:检测模块、第一开关模块与第二开关模块;1. A switching control circuit is characterized in that, it is applied to terminal equipment, and the terminal equipment comprises a first power supply terminal, a second power supply terminal and an audio frequency connector, and the audio frequency connector comprises a first power supply pin and a second power supply terminal. a power supply pin, the switching control circuit includes: a detection module, a first switch module and a second switch module; 所述第一电源引脚通过所述第一开关模块连接所述第一供电端,通过所述第二开关模块连接所述第二供电端;the first power pin is connected to the first power supply terminal through the first switch module, and is connected to the second power supply terminal through the second switch module; 所述第二电源引脚通过所述第一开关模块连接所述第二供电端,通过所述第二开关模块连接所述第一供电端;the second power pin is connected to the second power supply terminal through the first switch module, and is connected to the first power supply terminal through the second switch module; 所述检测模块,与所述第一电源引脚或所述第二电源引脚连接,用于在音频播放设备与所述音频连接器连接时,检测所述音频连接器与所述音频播放设备的类型是否匹配;The detection module is connected to the first power supply pin or the second power supply pin, and is used to detect the audio connector and the audio playback device when the audio playback device is connected to the audio connector. Whether the type matches; 所述第一开关模块,与所述检测模块连接,用于在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第一供电端导通,将所述第二电源引脚与所述第二供电端导通,以及在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第一供电端断开连接,将所述第二电源引脚与所述第二供电端断开连接;The first switch module is connected to the detection module, and is used to conduct the first power supply pin and the first power supply terminal when the audio connector matches the type of the audio playback device , conducting the second power supply pin with the second power supply terminal, and when the audio connector does not match the type of the audio playback device, connecting the first power supply pin with the first power supply pin A power supply terminal is disconnected, and the second power supply pin is disconnected from the second power supply terminal; 所述第二开关模块,与所述检测模块连接,用于在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第二供电端导通,将所述第二电源引脚与所述第一供电端导通,以及在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第二供电端断开连接,将所述第二电源引脚与所述第一供电端断开连接。The second switch module is connected to the detection module, and is used to connect the first power supply pin to the second power supply terminal when the audio connector does not match the type of the audio playback device. connect the second power supply pin with the first power supply terminal, and when the audio connector matches the type of the audio playback device, connect the first power supply pin with the first power supply pin The two power supply terminals are disconnected, and the second power supply pin is disconnected from the first power supply terminal. 2.根据权利要求1所述的切换控制电路,其特征在于,所述检测模块包括电压检测引脚;所述电压检测引脚,与所述第一电源引脚或所述第二电源引脚连接,用于检测目标电源引脚的目标电压,并输出至所述第一开关模块与所述第二开关模块,所述目标电源引脚为所述第一电源引脚或所述第二电源引脚;2. The switching control circuit according to claim 1, wherein the detection module comprises a voltage detection pin; the voltage detection pin is connected to the first power supply pin or the second power supply pin connected to detect the target voltage of the target power supply pin, and output to the first switch module and the second switch module, the target power supply pin is the first power supply pin or the second power supply pin; 所述第一开关模块,用于在所述目标电源引脚的目标电压处于第一电压范围时,将所述第一电源引脚与所述第一供电端导通,将所述第二电源引脚与所述第二供电端导通,以及在所述目标电源引脚的目标电压处于第二电压范围时,将所述第一电源引脚与所述第一供电端断开连接,将所述第二电源引脚与所述第二供电端断开连接;The first switch module is configured to conduct the first power supply pin and the first power supply terminal when the target voltage of the target power supply pin is in a first voltage range, and connect the second power supply The pin is connected to the second power supply terminal, and when the target voltage of the target power supply pin is in the second voltage range, the first power supply pin is disconnected from the first power supply terminal, and the the second power supply pin is disconnected from the second power supply terminal; 所述第二开关模块,用于在所述目标电源引脚的电压处于第一电压范围时,将所述第一电源引脚与所述第二供电端断开连接,将所述第二电源引脚与所述第一供电端断开连接,以及在所述目标电源引脚的电压处于第二电压范围时,将所述第一电源引脚与所述第二供电端导通,将所述第二电源引脚与所述第一供电端导通。The second switch module is used for disconnecting the first power supply pin from the second power supply terminal when the voltage of the target power supply pin is in a first voltage range, and connecting the second power supply The pin is disconnected from the first power supply terminal, and when the voltage of the target power supply pin is in the second voltage range, the first power supply pin is connected to the second power supply terminal, and all the The second power supply pin is connected to the first power supply terminal. 3.根据权利要求1或2所述的切换控制电路,其特征在于,所述第一开关模块包括第一开关单元与第二开关单元;3. The switching control circuit according to claim 1 or 2, wherein the first switch module comprises a first switch unit and a second switch unit; 所述第一开关单元,与所述检测模块、所述第二开关单元连接,用于根据所述检测模块检测的检测结果控制所述第二开关单元的导通状态;the first switch unit is connected to the detection module and the second switch unit, and is used for controlling the conduction state of the second switch unit according to the detection result detected by the detection module; 所述第二开关单元,连接于所述第一电源引脚与所述第一供电端之间,还连接于所述第二电源引脚与所述第二供电端之间,所述第一开关单元与所述第二开关单元用于在所述音频连接器与所述音频播放设备的类型匹配时导通,不匹配时断开。The second switch unit is connected between the first power supply pin and the first power supply terminal, and is also connected between the second power supply pin and the second power supply terminal. The switch unit and the second switch unit are configured to be turned on when the types of the audio connector and the audio playback device are matched, and disconnected when they are not matched. 4.根据权利要求3所述的切换控制电路,其特征在于,所述第二开关模块包括第三开关单元,所述第三开关单元与所述检测模块连接,且所述第三开关单元连接于所述第一电源引脚与所述第二供电端之间,所述第三开关单元还连接于所述第二电源引脚与所述第一供电端之间;4 . The switching control circuit according to claim 3 , wherein the second switch module comprises a third switch unit, the third switch unit is connected to the detection module, and the third switch unit is connected to the detection module. 5 . between the first power supply pin and the second power supply terminal, the third switch unit is further connected between the second power supply pin and the first power supply terminal; 所述第一开关单元、所述第二开关单元与所述第三开关单元由绝缘栅场效应管构成。The first switch unit, the second switch unit and the third switch unit are composed of insulated gate field effect transistors. 5.根据权利要求4所述的切换控制电路,其特征在于,所述电压检测引脚与所述第一电源引脚连接,且所述第一电压范围对应高电平,所述第二电压范围对应低电平,所述第一供电端为电源正端,所述第二供电端为地端;5 . The switching control circuit according to claim 4 , wherein the voltage detection pin is connected to the first power supply pin, the first voltage range corresponds to a high level, and the second voltage The range corresponds to a low level, the first power supply terminal is the positive terminal of the power supply, and the second power supply terminal is the ground terminal; 所述第一开关单元由N沟道型绝缘栅场效应管构成,所述第二开关单元以及所述第三开关单元由P沟道型绝缘栅场效应管构成;The first switch unit is formed by an N-channel type insulated gate field effect transistor, the second switch unit and the third switch unit are formed by a P-channel type insulated gate field effect transistor; 所述第一开关单元的第一栅极与所述电压检测引脚连接,所述第一开关单元的第一源极与地端连接,所述第一开关单元的第一漏极与所述第二开关单元的第二栅极连接;The first gate of the first switch unit is connected to the voltage detection pin, the first source of the first switch unit is connected to the ground, and the first drain of the first switch unit is connected to the the second gate of the second switch unit is connected; 所述第二开关单元的第二源极分别与所述第一供电端、所述第二供电端连接,所述第二开关单元的第二漏极分别与所述第一电源引脚、所述第二电源引脚连接;The second source of the second switch unit is respectively connected to the first power supply terminal and the second power supply terminal, and the second drain of the second switch unit is respectively connected to the first power supply pin, the second power supply terminal and the second power supply terminal. the second power pin connection; 所述第三开关单元的第三栅极与所述电压检测引脚连接,所述第三开关单元的第三源极分别与所述第一供电端、所述第二供电端连接,第三漏极分别与所述第一电源引脚、所述第二电源引脚连接。The third gate of the third switch unit is connected to the voltage detection pin, the third source of the third switch unit is respectively connected to the first power supply terminal and the second power supply terminal, and the third power supply terminal is connected to the third power supply terminal. The drains are respectively connected to the first power supply pin and the second power supply pin. 6.根据权利要求5所述的切换控制电路,其特征在于,所述电压检测引脚与所述第一电源引脚连接,且所述第一电压范围对应低电平,所述第二电压范围对应高电平,所述切换控制电路还包括第一反相器、第二反相器;6 . The switching control circuit according to claim 5 , wherein the voltage detection pin is connected to the first power supply pin, the first voltage range corresponds to a low level, and the second voltage The range corresponds to a high level, and the switching control circuit further includes a first inverter and a second inverter; 所述第三开关单元的第三源极分别通过所述第一反相器连接所述第一供电端,通过所述第二反相器连接所述第二供电端。The third source of the third switch unit is respectively connected to the first power supply terminal through the first inverter, and is connected to the second power supply terminal through the second inverter. 7.根据权利要求4所述的切换控制电路,其特征在于,所述电压检测引脚与所述第二电源引脚连接,且所述第一电压范围对应低电平,所述第二电压范围对应高电平,所述第一供电端为地端,所述第二供电端为电源正端;7 . The switching control circuit according to claim 4 , wherein the voltage detection pin is connected to the second power supply pin, and the first voltage range corresponds to a low level, and the second voltage The range corresponds to a high level, the first power supply terminal is the ground terminal, and the second power supply terminal is the positive terminal of the power supply; 所述第一开关单元由P沟道型绝缘栅场效应管构成,所述第二开关单元以及所述第三开关单元由N沟道型绝缘栅场效应管构成;The first switch unit is formed by a P-channel type insulated gate field effect transistor, the second switch unit and the third switch unit are formed by an N-channel type insulated gate field effect transistor; 所述第一开关单元的第一栅极与所述电压检测引脚连接,所述第一开关单元的第一漏极与电源正端连接,所述第一开关单元的第一源极与所述第二开关单元的第二栅极连接;The first gate of the first switch unit is connected to the voltage detection pin, the first drain of the first switch unit is connected to the positive terminal of the power supply, and the first source of the first switch unit is connected to the power supply. connecting the second gate of the second switch unit; 所述第二开关单元的第二源极分别与所述第一供电端、所述第二供电端连接,所述第二开关单元的第二漏极分别与所述第一电源引脚、所述第二电源引脚连接;The second source of the second switch unit is respectively connected to the first power supply terminal and the second power supply terminal, and the second drain of the second switch unit is respectively connected to the first power supply pin, the second power supply terminal and the second power supply terminal. the second power pin connection; 所述第三开关单元的第三栅极与所述电压检测引脚连接,所述第三开关单元的第三源极分别与所述第一供电端、所述第二供电端连接,所述第三开关单元的第三漏极分别与所述第一电源引脚、所述第二电源引脚连接。The third gate of the third switch unit is connected to the voltage detection pin, the third source of the third switch unit is respectively connected to the first power supply terminal and the second power supply terminal, and the The third drain of the third switch unit is respectively connected to the first power supply pin and the second power supply pin. 8.根据权利要求1所述的切换控制电路,其特征在于,所述音频播放设备为耳机。8. The switching control circuit according to claim 1, wherein the audio playback device is an earphone. 9.一种终端设备,其特征在于,包括:9. A terminal device, comprising: 壳体;case; 设置于所述壳体上的音频连接器;an audio connector arranged on the casing; 设置于所述壳体内的第一供电端、第二供电端以及如上述权利要求1-8任一项所述的切换控制电路。The first power supply terminal, the second power supply terminal and the switching control circuit according to any one of the above claims 1-8 are provided in the casing. 10.一种切换控制方法,其特征在于,应用于终端设备,所述终端设备包括第一供电端、第二供电端和音频连接器,所述音频连接器包括第一电源引脚和第二电源引脚,所述方法包括:10. A switching control method, characterized in that it is applied to a terminal device, the terminal device comprising a first power supply terminal, a second power supply terminal and an audio connector, and the audio connector includes a first power supply pin and a second power supply pin. power supply pins, the method includes: 在所述音频连接器与音频播放设备连接时,检测所述音频连接器与所述音频播放设备的类型是否匹配;When the audio connector is connected to the audio playback device, detecting whether the audio connector matches the type of the audio playback device; 在所述音频连接器与所述音频播放设备的类型匹配时,将所述第一电源引脚与所述第一供电端导通,将所述第二电源引脚与所述第二供电端导通;When the audio connector matches the type of the audio playback device, the first power supply pin is connected to the first power supply terminal, and the second power supply pin is connected to the second power supply terminal. turn on; 在所述音频连接器与所述音频播放设备的类型不匹配时,将所述第一电源引脚与所述第二供电端导通,将所述第二电源引脚与所述第一供电端导通。When the audio connector does not match the type of the audio playback device, the first power supply pin is connected to the second power supply terminal, and the second power supply pin is connected to the first power supply terminal is turned on.
CN202010130688.0A 2020-02-28 2020-02-28 Switching control circuit, terminal equipment and switching control method Active CN111314817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010130688.0A CN111314817B (en) 2020-02-28 2020-02-28 Switching control circuit, terminal equipment and switching control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010130688.0A CN111314817B (en) 2020-02-28 2020-02-28 Switching control circuit, terminal equipment and switching control method

Publications (2)

Publication Number Publication Date
CN111314817A true CN111314817A (en) 2020-06-19
CN111314817B CN111314817B (en) 2022-05-20

Family

ID=71147888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010130688.0A Active CN111314817B (en) 2020-02-28 2020-02-28 Switching control circuit, terminal equipment and switching control method

Country Status (1)

Country Link
CN (1) CN111314817B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003458A (en) * 2020-08-24 2020-11-27 珠海智融科技有限公司 Access pipe control circuit, power management chip and power device
CN113687707A (en) * 2021-10-26 2021-11-23 苏州浪潮智能科技有限公司 Power supply voltage control device of mainboard and server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012003720A1 (en) * 2010-07-08 2012-01-12 中兴通讯股份有限公司 Device and method for connecting earphones for mobile phone
US20130216061A1 (en) * 2012-02-20 2013-08-22 Chi Mei Communication Systems, Inc. Electronic device and method for enabling open mobile terminal platform headsets and standard headsets to be compatible
CN203883981U (en) * 2014-05-29 2014-10-15 包文韬 Headset with microphone signal MIC and GND automatic switching function
CN203933930U (en) * 2014-05-27 2014-11-05 深圳华智融科技股份有限公司 Earphone interface circuit and portable electron device
CN104936055A (en) * 2015-04-30 2015-09-23 上海锐鸿通信技术有限公司 Terminal with earphone interface and earphone interface adaptive method
CN105979422A (en) * 2016-06-29 2016-09-28 上海创功通讯技术有限公司 Mobile terminal, and earphone base control system and method thereof
CN207052880U (en) * 2017-08-01 2018-02-27 厦门美图移动科技有限公司 The earphone interface and mobile terminal of a kind of mobile terminal
CN208836374U (en) * 2018-09-14 2019-05-07 奇酷互联网络科技(深圳)有限公司 Headphone device, mainboard and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012003720A1 (en) * 2010-07-08 2012-01-12 中兴通讯股份有限公司 Device and method for connecting earphones for mobile phone
US20130216061A1 (en) * 2012-02-20 2013-08-22 Chi Mei Communication Systems, Inc. Electronic device and method for enabling open mobile terminal platform headsets and standard headsets to be compatible
CN203933930U (en) * 2014-05-27 2014-11-05 深圳华智融科技股份有限公司 Earphone interface circuit and portable electron device
CN203883981U (en) * 2014-05-29 2014-10-15 包文韬 Headset with microphone signal MIC and GND automatic switching function
CN104936055A (en) * 2015-04-30 2015-09-23 上海锐鸿通信技术有限公司 Terminal with earphone interface and earphone interface adaptive method
CN105979422A (en) * 2016-06-29 2016-09-28 上海创功通讯技术有限公司 Mobile terminal, and earphone base control system and method thereof
CN207052880U (en) * 2017-08-01 2018-02-27 厦门美图移动科技有限公司 The earphone interface and mobile terminal of a kind of mobile terminal
CN208836374U (en) * 2018-09-14 2019-05-07 奇酷互联网络科技(深圳)有限公司 Headphone device, mainboard and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003458A (en) * 2020-08-24 2020-11-27 珠海智融科技有限公司 Access pipe control circuit, power management chip and power device
CN113687707A (en) * 2021-10-26 2021-11-23 苏州浪潮智能科技有限公司 Power supply voltage control device of mainboard and server
CN113687707B (en) * 2021-10-26 2022-03-04 苏州浪潮智能科技有限公司 Power supply voltage control device of mainboard and server

Also Published As

Publication number Publication date
CN111314817B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
US9338570B2 (en) Method and apparatus for an integrated headset switch with reduced crosstalk noise
US7912501B2 (en) Audio I/O headset plug and plug detection circuitry
US9215526B2 (en) Circuit for microphone pin assignment detection and method thereof
KR20040018058A (en) Apparatus for detecting the earjack plug
CN102457793B (en) Earphone interface circuit and there is the electronic installation of this earphone interface circuit
CN111314817B (en) Switching control circuit, terminal equipment and switching control method
CN104244160A (en) Electronic device capable of being debugged through earphone port
CN102768558A (en) All-in-one computer having function of muting loudspeaker
US12135914B2 (en) Audio circuit, and device and control method related thereto
US8050428B2 (en) Audio signal transmission circuit
WO2019062717A1 (en) Playback device, and plaback method based on playback device
JP2017529734A (en) Mobile terminal
CN103974169B (en) Audio processing device and audio processing method
WO2020192376A1 (en) Determination circuit for positive and negative ends of earphone mic, method, and electronic device
CN116156389A (en) Audio crosstalk optimization circuit, audio crosstalk optimization method and terminal equipment
CN105187985B (en) Earphone with microphone signal MIC Yu GND automatic switching functions
CN109254753B (en) Audio signal interface circuit and device, control method, and playback device
CN115426591A (en) Earphone plug noise elimination circuit and mobile device
CN208971820U (en) Earphone insertion detection circuit, earphone isolation circuit and electronic equipment
US11457307B2 (en) Headphone driver and driving method thereof
CN205105382U (en) Circuit of eliminating earphone plug POP sound reaches electronic equipment including this circuit
TWI789712B (en) Headphone driver and driving method thereof
TWI763028B (en) Method and audio receiver capable of effectively reducing or avoiding current noise
CN110166878A (en) Headset switch control circuit, headset switch control method and electronic equipment
CN203590424U (en) Earphone output circuit for suppressing POP sound

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant