KR20220016710A - Method for determining whether an external device is connected, and an electronic device supporting the same - Google Patents

Method for determining whether an external device is connected, and an electronic device supporting the same Download PDF

Info

Publication number
KR20220016710A
KR20220016710A KR1020200097002A KR20200097002A KR20220016710A KR 20220016710 A KR20220016710 A KR 20220016710A KR 1020200097002 A KR1020200097002 A KR 1020200097002A KR 20200097002 A KR20200097002 A KR 20200097002A KR 20220016710 A KR20220016710 A KR 20220016710A
Authority
KR
South Korea
Prior art keywords
comparator
output signal
terminal
electronic device
ear connector
Prior art date
Application number
KR1020200097002A
Other languages
Korean (ko)
Inventor
이승혁
나효석
이상준
홍두윤
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020200097002A priority Critical patent/KR20220016710A/en
Priority to PCT/KR2021/009682 priority patent/WO2022030847A1/en
Publication of KR20220016710A publication Critical patent/KR20220016710A/en

Links

Images

Classifications

    • 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
    • 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/1016Earpieces of the intra-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • 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

Abstract

Disclosed is an electronic device including: an ear connector into which an earphone plug is inserted; a first comparator for comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector through a first electrical path and a reference voltage according to a first specified condition applied from a second terminal, thereby outputting a first output signal; a second comparator for comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branching from a point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, thereby outputting a second output signal; and a processor electrically connected to the first comparator and the second comparator to determine a connection state with the plug of the earphone based on the first output signal output from the first comparator and the second output signal output from the second comparator. In addition, various embodiments understood through the present specification are possible. Therefore, deterioration of current consumption performance of the electronic device is prevented.

Description

외부 장치의 연결 유무를 판단하는 방법 및 이를 지원하는 전자 장치{Method for determining whether an external device is connected, and an electronic device supporting the same}A method for determining whether an external device is connected, and an electronic device supporting the same

본 문서의 다양한 실시 예들은, 외부 장치의 연결 유무를 판단하는 방법 및 이를 지원하는 전자 장치에 관한 것이다.Various embodiments of the present document relate to a method of determining whether an external device is connected and an electronic device supporting the same.

멀티미디어 기술의 발전으로 전자 장치(예: 스마트 폰)는 통화 기능, 음악 재생 기능, 동영상 재생 기능 등의 다양한 기능을 사용자에게 제공할 수 있다. 예를 들어, 전자 장치는 오디오 신호의 입력 또는 출력을 사용자에게 지원하기 위하여 이어 커넥터(ear connector) 내에 이어 폰 플러그(earphone plug)가 삽입되는 경우, 이어 폰과 연결되며, 연결된 이어 폰을 통해 다양한 기능을 제공할 수 있다.With the development of multimedia technology, an electronic device (eg, a smart phone) may provide a user with various functions, such as a call function, a music playback function, and a video playback function. For example, when an earphone plug is inserted into an ear connector to support input or output of an audio signal to a user, the electronic device is connected to the earphone, and is connected to various types of audio signals through the connected earphone. function can be provided.

기존에는 표준화 추세에 따라, 전자 장치에 6핀 이어 커넥터(6pin ear connector)를 사용하였지만, 대량 생산 및 가격 절감 등의 이유로 6핀 이어 커넥터 대신 5핀 이어 커넥터(5pin ear connector)의 사용 필요성이 대두됨과 동시에, 5핀 이어 커넥터의 침수 성능과 관련된 문제점이 제시되었다.In the past, according to the standardization trend, a 6-pin ear connector was used for electronic devices, but the need to use a 5-pin ear connector instead of a 6-pin ear connector is emerging for reasons such as mass production and cost reduction. At the same time, problems related to the submersion performance of the 5-pin ear connector were presented.

기존의 5핀 이어 커넥터에 이어 폰 플러그가 삽입되는 경우, 입력 신호가 전자 장치의 코덱(CODEC) 및 프로세서(processor)에 각각 인가되었으며, 그 중 프로세서는 인가되는 입력 신호를 ADC 단자를 통해 인가 받을 수 있다. 그러나, 프로세서는 ADC 단자를 통해 인가되는 입력 신호에 대한 동작을 즉각적으로 수행할 수 없기 때문에, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행할 수 있다. 프로세서는 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되어, 이어 폰 플러그와 이어 커넥터 간의 연결 상태(예: 이어 폰과 전자 장치의 연결 유무 및 이어 커넥터 내부의 상태)를 확인할 수 있다. 다만, 상기 프로세서가 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행함에 따라, 전자 장치의 소모 전류 성능이 열화되는 문제점이 발생할 수 있다.When an earphone plug is inserted into the existing 5-pin ear connector, input signals are respectively applied to a CODEC and a processor of the electronic device, among which the processor receives the applied input signal through the ADC terminal. can However, since the processor cannot immediately perform an operation on an input signal applied through the ADC terminal, an operation of periodically switching from a sleep mode to a wake up mode may be performed. . The processor periodically goes from sleep mode to wake up mode, so that the connection status between the earphone plug and the ear connector (e.g., whether the earphone is connected to the electronic device and the state inside the ear connector) can be checked. However, as the processor periodically performs an operation of switching from a sleep mode to a wake up mode, current consumption performance of the electronic device may deteriorate.

본 문서에 개시되는 다양한 실시예들은, 전자 장치는 5핀 이어 커넥터에 이어 폰 플러그가 삽입되는 경우, 5핀 이어 커넥터에 포함된 복수 개의 단자 중 좌측 감지 단자를 통해 입력 신호를 수신하고, 수신한 입력 신호를 한 쌍의 비교기에 각각 인가할 수 있다. 전자 장치는 각각의 입력 신호를 수신한 한 쌍의 비교기를 통해 지정된 조건을 기반으로 각각의 출력 신호를 출력할 수 있다. 전자 장치의 프로세서는 인터럽트 단자를 통해 각각의 출력 신호를 수신하고, 수신한 출력 신호를 기반으로 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 즉각적으로 판단할 수 있다.According to various embodiments disclosed in this document, when an earphone plug is inserted into a 5-pin ear connector, the electronic device receives an input signal through a left sensing terminal among a plurality of terminals included in the 5-pin ear connector, and receives the received signal. An input signal may be applied to a pair of comparators, respectively. The electronic device may output each output signal based on a specified condition through a pair of comparators receiving each input signal. The processor of the electronic device may receive each output signal through the interrupt terminal, and may immediately determine a connection state between the earphone plug and the ear connector based on the received output signal.

본 발명의 다양한 실시예에 따른 전자 장치는 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기 및 상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path through a first electrical path, and a second terminal. A first comparator that compares a reference voltage according to an applied first specified condition to output a first output signal, a third connected to the sensing terminal through a second electrical path branched from a point of the first electrical path A second comparator outputting a second output signal by comparing an input signal applied from a terminal and a reference voltage according to a second specified condition applied from a fourth terminal, and the first comparator and the second comparator are electrically connected, , based on a first output signal output from the first comparator and a second output signal output from the second comparator, a processor for determining a connection state with the plug of the earphone.

본 발명의 다양한 실시예에 따른 전자 장치는 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate) 및 상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected through a first electrical path to a sensing terminal included in the ear connector, and a second terminal. A first comparator that compares a reference voltage according to an applied first specified condition to output a first output signal, a third connected to the sensing terminal through a second electrical path branched from a point of the first electrical path a second comparator that compares an input signal applied from a terminal with a reference voltage according to a second specified condition applied from a fourth terminal, and outputs a second output signal, and is connected to the first comparator and the second comparator; Based on a first output signal output from the first comparator and a second output signal output from the second comparator, a gate outputting a third output signal, and a third output signal output from the gate , a processor for checking a connection state with the plug of the earphone.

본 발명의 다양한 실시예에 따른 전자 장치는 디스플레이, 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및 상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes a display, an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected to a sensing terminal included in the ear connector through a first electrical path, and a second A first comparator that compares a reference voltage according to a first specified condition applied from a terminal and outputs a first output signal, and is connected to the sensing terminal through a second electrical path branched from one point of the first electrical path a second comparator outputting a second output signal by comparing the input signal applied from the third terminal and the reference voltage according to the second specified condition applied from the fourth terminal; and a plug of the earphone connected to the display, the first comparator, and the second comparator, based on a first output signal output from the first comparator and a second output signal output from the second comparator and a processor that determines the connection state of the , and outputs the determination result through the display.

본 문서에 개시되는 다양한 실시 예에 따르면, 외부 장치의 연결 유무를 판단하는 방법 및 이를 지원하는 전자 장치는, 좌측 감지 단자를 통해 입력 신호를 수신하고, 수신한 입력 신호를 한 쌍의 비교기에 각각 인가하고, 지정된 조건을 기반으로 한 쌍의 비교기가 출력하는 출력 신호를 프로세서의 인터럽트 단자를 통해 수신함으로써, 프로세서가 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 확인하기 위하여, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행하지 않기 때문에, 전자 장치의 소모 전류 성능이 열화되는 문제점을 해결할 수 있다.According to various embodiments of the present disclosure, a method for determining whether an external device is connected and an electronic device supporting the same receive an input signal through a left sensing terminal, and apply the received input signal to a pair of comparators, respectively In order for the processor to check the connection state between the earphone plug and the ear connector by receiving the output signal output by a pair of comparators through the interrupt terminal of the processor, the processor periodically performs a sleep mode (sleep mode). ) to the wake-up mode is not performed, so a problem in which the current consumption performance of the electronic device deteriorates can be solved.

또한, 프로세서가 인터럽트 단자를 통해 출력 신호를 수신하기 때문에, ADC 포트 제거에 따른 재료비를 절감할 수 있으며, 5핀 이어 커넥터에서의 이물질에 의한 이어 폰의 오인식을 방지할 수 있다. In addition, since the processor receives the output signal through the interrupt terminal, it is possible to reduce the material cost due to the removal of the ADC port, and it is possible to prevent misrecognition of the earphone by foreign substances in the 5-pin ear connector.

이 외에도 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과가 제공될 수 있다.In addition to this, various effects that are directly or indirectly identified through this document may be provided.

도 1은 본 발명의 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 블록도이다.
도 3은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 순서도이다.
도 4는 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 도면이다.
도 5는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 블록도이다.
도 6은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 순서도이다.
도 7은 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 다른 방법을 설명하기 위한 도면이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
3 is a flowchart illustrating a method of determining whether an earphone is connected, according to an embodiment of the present invention.
4 is a diagram for explaining a method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.
5 is another block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
6 is another flowchart of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
7 is a diagram for explaining another method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.

상술한 도면의 설명과 관련하여, 동일 또는 대응되는 구성 요소에 대해서는 동일한 참조 번호가 부여될 수 있다.In relation to the description of the above drawings, the same reference numerals may be assigned to the same or corresponding components.

이하, 첨부된 도면을 참조하여 본 발명의 다양한 실시예들이 설명된다. 설명의 편의를 위하여 도면에 도시된 구성요소들은 그 크기가 과장 또는 축소될 수 있으며, 도시된 바에 의해 한정되는 것은 아니다.Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. For convenience of description, the sizes of the components shown in the drawings may be exaggerated or reduced, and the figures are not limited thereto.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 may be included. In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the co-processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output a sound signal to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external device (eg, an electronic device) connected directly or wirelessly to the sound output module 155 or the electronic device 101 . device 102) (eg, speakers or headphones).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)가 외부 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 establishes a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external device (eg, the electronic device 102, the electronic device 104, or the server 108). , and may support performing communication through an established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 includes various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101 , an external device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 블록도이다.2 is a block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.

도 2를 참조하면, 전자 장치(200)(예: 도 1의 전자 장치(101))는 이어 커넥터(201)(예: 도 1의 연결 단자(178)), 제1 전기적 경로(203), 제2 전기적 경로(205) , 제1 비교기(207), 제2 비교기(209) 및 프로세서(211)(예: 도 1의 프로세서(120))를 포함할 수 있다. 그러나, 상기 전자 장치(200)의 구성이 이에 한정되는 것은 아니다.Referring to FIG. 2 , the electronic device 200 (eg, the electronic device 101 of FIG. 1 ) includes an ear connector 201 (eg, the connection terminal 178 of FIG. 1 ), a first electrical path 203 , It may include a second electrical path 205 , a first comparator 207 , a second comparator 209 , and a processor 211 (eg, the processor 120 of FIG. 1 ). However, the configuration of the electronic device 200 is not limited thereto.

다양한 실시예에 따르면, 상기 전자 장치(200)는 상술한 구성 요소들 중 적어도 하나를 생략할 수 있으며, 적어도 하나의 다른 구성 요소를 포함할 수 있다. 일 예로 상기 전자 장치(200)는 디스플레이(예: 도 1의 디스플레이 모듈(160))를 포함할 수 있다. 상기 전자 장치(200)는 상기 디스플레이를 통해 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 표시할 수 있다.According to various embodiments, the electronic device 200 may omit at least one of the above-described components, and may include at least one other component. For example, the electronic device 200 may include a display (eg, the display module 160 of FIG. 1 ). The electronic device 200 may display a connection state between the earphone plug and the ear connector through the display.

일 실시예에 따르면, 상기 이어 커넥터(201)는 마이크 입력 및/또는 오디오 출력 기능을 가지는 이어 폰의 플러그를 수용할 수 있는 소켓을 의미할 수 있으며, 상기 이어 커넥터(201)를 통해 상기 전자 장치(200)에는 4극 이어 폰 또는 3극 이어폰이 접속될 수 있다. 상기 4극 이어 폰의 플러그는 마이크 단자, 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다. 상기 3극 이어 폰의 플러그는 마이크 단자를 제외한 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다.According to an embodiment, the ear connector 201 may mean a socket capable of accommodating a plug of an earphone having a microphone input and/or audio output function, and the electronic device through the ear connector 201 . A 4-pole earphone or a 3-pole earphone may be connected to 200 . The plug of the 4-pole earphone may include a microphone terminal, a ground terminal, a right sound terminal, and a left sound terminal. The plug of the three-pole earphone may include a ground terminal, a right sound terminal, and a left sound terminal except for the microphone terminal.

일 실시예에 따르면, 상기 이어 커넥터(201)는 4극 이어 폰 플러그의 마이크 단자와 접촉하는 제1 핀, 이어 폰 플러그의 그라운드 단자와 접촉하는 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to an embodiment, the ear connector 201 has a first pin in contact with the microphone terminal of the 4-pole earphone plug, a second pin in contact with the ground terminal of the earphone plug, and a right sound terminal of the earphone plug. and a third pin, a fourth pin and a fifth pin contacting the left acoustic terminal of the earphone plug.

다른 실시예에 따르면, 상기 이어 커넥터(201)는 3극 이어 폰 플러그의 그라운드 단자와 접촉하는 제1 핀, 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to another embodiment, the ear connector 201 includes a first pin and a second pin contacting the ground terminal of the three-pole earphone plug, a third pin contacting the right sound terminal of the earphone plug, and the earphone plug. It may include a fourth pin and a fifth pin contacting the left acoustic terminal.

일 실시예에 따르면, 상기 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제5 핀은 좌측 감지(L-detection) 단자일 수 있다. 본 발명에서 언급하는 이어 커넥터(201)는 5핀 이어 커넥터(5pin ear connector)일 수 있다. According to an embodiment, the fifth pin contacting the left acoustic terminal of the earphone plug may be a left-side detection (L-detection) terminal. The ear connector 201 referred to in the present invention may be a 5-pin ear connector.

일 실시예에 따르면, 상기 이어 커넥터(201)에 상기 이어 폰 플러그(예: 도 1의 전자 장치(102))가 삽입되는 경우, 상기 이어 커넥터(201)의 감지 단자, 제1 비교기(207) 및 제2 비교기(209)에 인가되고 있는 풀 업(pull-up) 전압이 전압 분배될 수 있다. 보다 자세하게 설명하면, 상기 이어 커넥터(201) 내의 상기 감지 단자, 상기 제1 비교기(207) 및 상기 제2 비교기(209)에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 감지 단자는 이어 폰 플러그의 좌측 음향 단자와 접촉하는 좌측 감지 단자일 수 있다.According to an embodiment, when the earphone plug (eg, the electronic device 102 of FIG. 1 ) is inserted into the ear connector 201 , the sensing terminal of the ear connector 201 and the first comparator 207 . And a pull-up voltage being applied to the second comparator 209 may be voltage-divided. In more detail, a pull-up voltage by a bias power may be always applied to the sensing terminal in the ear connector 201 , the first comparator 207 , and the second comparator 209 . The sensing terminal may be a left sensing terminal in contact with the left sound terminal of the earphone plug.

일 실시예에 따르면, 상기 이어 커넥터(201) 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 바이어스 전원과 연결된 풀 업 저항과 이어 폰 플러그에 연결된 풀 다운 저항에 의해 상기 풀 업 전압의 전압이 분배될 수 있다. 이하, 상기 이어 커넥터(201) 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다. 상기 입력 신호는 상기 제1 비교기(207) 및 상기 제2 비교기(209) 각각에 인가될 수 있다.일 실시예에 따르면, 상기 제1 비교기(207) 및 상기 제2 비교기(209)는 상기 이어 커넥터(201)의 5개의 핀 중 상기 좌측 감지 단자와 전기적 경로를 통해 연결될 수 있다. 상기 제1 비교기(207)는 상기 좌측 감지 단자와 상기 제1 전기적 경로(203)를 통해 연결될 수 있다. 상기 제2 비교기(209)는 상기 제1 전기적 경로(203)의 일 지점에서 분기되는 제2 전기적 경로(205)를 통해 상기 좌측 감지 단자와 연결될 수 있다.According to an embodiment, when the earphone plug is inserted into the ear connector 201 , the voltage of the pull-up voltage may be divided by a pull-up resistor connected to the bias power supply and a pull-down resistor connected to the earphone plug. can Hereinafter, the earphone plug is inserted into the ear connector 201 to initiate the voltage-divided pull-up voltage as an input signal. The input signal may be applied to each of the first comparator 207 and the second comparator 209 . According to an embodiment, the first comparator 207 and the second comparator 209 are the Among the five pins of the connector 201 , it may be connected to the left sensing terminal through an electrical path. The first comparator 207 may be connected to the left sensing terminal through the first electrical path 203 . The second comparator 209 may be connected to the left sensing terminal through a second electrical path 205 branched from one point of the first electrical path 203 .

일 실시예에 따르면, 상기 제1 비교기(207)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제1 비교기(207)는 상기 입력 신호(전압 레벨이 변경된 풀 업 전압)를 상기 제1 전기적 경로(203)를 통해 수신할 수 있다. 상기 제1 비교기(207)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제1 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제1 비교기(207)에 포함된 상기 제1 단자가 -극인 경우, 제2 단자는 +극일 수 있다. 반대로 제1 단자가 +극인 경우, 제2 단자는 -극일 수 있다.According to an embodiment, the first comparator 207 may output the input signal as a first output signal based on a first specified condition. The first comparator 207 may receive the input signal (a pull-up voltage having a changed voltage level) through the first electrical path 203 . The first comparator 207 may receive a reference voltage based on a first specified condition through one of the first terminal and the second terminal. When the first terminal included in the first comparator 207 has a negative pole, the second terminal may have a positive pole. Conversely, when the first terminal is a + pole, the second terminal may be a - pole.

상기 제1 지정된 조건은 상기 이어 커넥터(201)와 상기 이어 폰 플러그 간의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다.The first specified condition may be reference voltage information for determining whether there is a connection between the ear connector 201 and the earphone plug.

예를 들어, 상기 제1 비교기(207)는 +극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.9V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.9V 이상이면 로우(low) 레벨의 신호를 출력할 수 있다. 상기 제1 비교기(207)는 수신하는 입력 신호의 전압 레벨이 0.9V 미만인 경우, 하이(high) 레벨의 신호를 출력할 수 있다. 상기 제1 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the first comparator 207 is low when the voltage level of the received input signal is 0.9V or more when the reference voltage level based on the first specified condition applied to the + pole is 0.9V. level signal can be output. The first comparator 207 may output a high level signal when the voltage level of the received input signal is less than 0.9V. The level of the first output signal may be determined as a high level or a low level based on the voltage level of the input signal and the reference voltage level.

다른 예를 들어, 상기 제1 비교기(207)의 -극에 상기 제1 지정된 조건에 기반한 기준 전압이 인가될 수 있다. 이 경우, 상기 제1 전기적 경로를 통해 상기 좌측 감지 단자로부터 입력 신호를 수신하는 단자는 +극일 수 있다. 상기 제1 비교기(207)는 -극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.7V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.7V 이상이면, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기(201)가 수신하는 입력 신호의 전압 레벨이 0.7V 미만인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. As another example, a reference voltage based on the first specified condition may be applied to the -pole of the first comparator 207 . In this case, the terminal receiving the input signal from the left sensing terminal through the first electrical path may be a + pole. The first comparator 207 outputs a high-level output signal when the voltage level of the received input signal is 0.7V or more when the reference voltage level based on the first specified condition applied to the -pole is 0.7V. can do. When the voltage level of the input signal received by the first comparator 201 is less than 0.7V, a low-level output signal may be output.

일 실시예에 따르면, 상기 제2 비교기(209)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다. 상기 제2 비교기(209)는 상기 입력 신호를 상기 제2 전기적 경로(205)를 통해 수신할 수 있다. 상기 제2 비교기(209)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제2 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제2 비교기(209)에 포함된 상기 제3 단자가 -극인 경우, 제4 단자는 +극일 수 있다. 반대로 제3 단자가 +극인 경우, 제4 단자는 -극일 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터(201) 내부에 이물질의 유무를 판단하기 위한 기준 전압 정보일 수 있다.According to an embodiment, the second comparator 209 may output the input signal as a second output signal based on a second specified condition. The second comparator 209 may receive the input signal through the second electrical path 205 . The second comparator 209 may receive a reference voltage based on a second specified condition through one of the first terminal and the second terminal. When the third terminal included in the second comparator 209 has a negative pole, the fourth terminal may have a positive pole. Conversely, when the third terminal is a + pole, the fourth terminal may be a - pole. The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector 201 .

예를 들어, 상기 제2 비교기(209)는 +극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.2V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.2V 이상이면 로우(low) 신호를 출력할 수 있다. 상기 제2 비교기(203)는 수신하는 입력 신호의 전압 레벨이 0.2V 미만인 경우, 하이(high) 신호를 출력할 수 있다. 상기 제2 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the second comparator 209 is low when the voltage level of the received input signal is 0.2V or more when the reference voltage level based on the second specified condition applied to the + pole is 0.2V. signal can be output. The second comparator 203 may output a high signal when the voltage level of the received input signal is less than 0.2V. The level of the second output signal may be determined as a high level or a low level based on the voltage level of the input signal and the reference voltage level.

다른 예를 들어, 상기 제2 비교기(209)는 -극을 통해 상기 제2 지정된 조건에 기반한 기준 전압을 인가 받을 수 있다. 이 경우, 상기 제2 비교기(209)는 상기 좌측 감지 단자와 연결된 상기 제2 전기적 경로와 연결된 +극을 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기(209)는 -극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.7V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.7V 이상이면, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기(209)가 수신하는 입력 신호의 전압 레벨이 0.7V 미만인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. As another example, the second comparator 209 may receive the reference voltage based on the second specified condition through the -pole. In this case, the second comparator 209 may receive an input signal through a + electrode connected to the second electrical path connected to the left sensing terminal. The second comparator 209 outputs a high-level output signal when the voltage level of the received input signal is 0.7V or more when the reference voltage level based on the second specified condition applied to the -pole is 0.7V. can do. When the voltage level of the input signal received by the second comparator 209 is less than 0.7V, a low-level output signal may be output.

즉, 상기 제2 비교기(209)가 출력하는 제2 출력 신호의 레벨은 상기 제2 지정된 조건에 따른 기준 전압이 +극 및 -극 중 어느 하나에 인가되는지에 따라 변경될 수 있다. 또한, 상기 이어 커넥터(201) 내에 이물질이 존재할 때의 입력 신호의 전압 레벨과 이물질이 존재하지 않을 때의 입력 신호의 전압 레벨이 다르기 때문에, 상기 입력 신호를 인가받는 상기 제1 비교기(207) 및 상기 제2 비교기(209))로부터 출력되는 출력 신호의 레벨은 변경될 수 있다.That is, the level of the second output signal output by the second comparator 209 may be changed according to whether the reference voltage according to the second specified condition is applied to either the + pole or the - pole. In addition, since the voltage level of the input signal when there is a foreign material in the ear connector 201 is different from the voltage level of the input signal when there is no foreign material, the first comparator 207 to which the input signal is applied; and The level of the output signal output from the second comparator 209 may be changed.

일 실시예에 따르면, 상기 프로세서(211)는 상기 제1 비교기(207)가 출력하는 제1 출력 신호 및 상기 제2 비교기(209)가 출력하는 제2 출력 신호를 인터럽트 단자를 통해 수신할 수 있다. 상기 프로세서(211)는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨을 기반으로, 상기 이어 커넥터(201)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(201) 내의 이물질 유무 상태를 판단할 수 있다. According to an embodiment, the processor 211 may receive a first output signal output by the first comparator 207 and a second output signal output by the second comparator 209 through an interrupt terminal. . The processor 211 determines whether or not there is a connection between the ear connector 201 and the earphone plug and the presence or absence of foreign substances in the ear connector 201 based on the levels of the received first and second output signals. can do.

상기 이어 커넥터(201)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(201) 내의 이물질 유무 상태를 판단하는 동작은 도 4에서 자세하게 설명하도록 한다. The operation of determining whether there is a connection between the ear connector 201 and the earphone plug and the presence or absence of foreign substances in the ear connector 201 will be described in detail with reference to FIG. 4 .

상기와 같이 상기 프로세서(211)는 상기 인터럽트 단자를 통해 출력 신호를 수신함에 따라, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행하지 않으므로, 상기 전자 장치(200)의 소모 전류 성능이 열화되는 문제점을 해결할 수 있다.As described above, when the processor 211 receives an output signal through the interrupt terminal, it does not perform an operation of periodically switching from a sleep mode to a wake up mode, so that the electronic device It is possible to solve the problem that the current consumption performance of (200) is deteriorated.

다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 2의 제1 비교기(207)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 2의 제2 비교기(209)) 및 상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200 of FIG. 2 ) is an earphone into which the plug of the earphone (eg, the electronic device 102 of FIG. 1 ) is inserted. A connector (eg, the connection terminal 178 of FIG. 1 or the ear connector 201 of FIG. 2 ), a sensing terminal (eg, the fifth pin 401e of FIG. 4 ) included in the ear connector, and a first electrical path ( Example: Comparing an input signal applied from a first terminal connected through the first electrical path 203 of FIG. 2 and a reference voltage according to a first specified condition applied from a second terminal, outputting a first output signal The sensing through a first comparator (eg, the first comparator 207 of FIG. 2 ), a second electrical path branching from a point of the first electrical path (eg, the second electrical path 205 of FIG. 2 ) A second comparator (eg, the second comparator of FIG. 2 ) that compares the input signal applied from the third terminal connected to the terminal and the reference voltage according to the second specified condition applied from the fourth terminal, and outputs the second output signal (209)) and electrically connected to the first comparator and the second comparator, based on a first output signal output from the first comparator and a second output signal output from the second comparator, the earphone It may include a processor (eg, the processor 120 of FIG. 1 or the processor 211 of FIG. 2 ) that determines the connection state with the plug.

다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰의 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the plug of the ear phone.

다양한 실시예에 따르면, 상기 프로세서는, 상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고, 상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단할 수 있다.According to various embodiments, the processor detects a change in the received first output signal, determines whether the earphone is connected to the electronic device, and detects a change in the received second output signal. , it is possible to determine whether there is a foreign substance inside the ear connector.

다양한 실시예에 따르면, 상기 제1 지정된 조건은, 상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보 및 상기 제2 지정된 조건은, 상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보를 포함할 수 있다.According to various embodiments, the first specified condition is a condition set in the first comparator, and the reference voltage information for determining whether the earphone plug is connected to the electronic device and the second specified condition include: As a condition set in the second comparator, reference voltage information for determining whether there is a foreign substance inside the ear connector may be included.

다양한 실시예에 따르면, 상기 프로세서는, 상기 수신하는 제1 출력 신호의 전압 레벨이 상기 제1 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 폰의 플러그가 상기 전자 장치에 연결된 것으로 판단하고,According to various embodiments, the processor determines that the plug of the earphone is connected to the electronic device when the voltage level of the received first output signal is equal to or less than a reference voltage set as the first specified condition,

상기 수신하는 제2 출력 신호의 전압 레벨이 상기 제2 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 커넥터 내부에 이물질이 존재하지 않는 것으로 판단할 수 있다.When the voltage level of the received second output signal is equal to or less than the reference voltage set as the second specified condition, it may be determined that there is no foreign material inside the ear connector.

다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 어어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.

다양한 실시예에 따르면, 상기 프로세서는, 제1 인터럽트 단자를 통해 상기 제1 출력 신호를 수신하고, 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다.According to various embodiments, the processor may receive the first output signal through a first interrupt terminal and receive a second output signal through a second interrupt terminal.

다양한 실시예에 따르면 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 디스플레이(예: 도 1의 디스플레이 모듈(160)), 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 2의 제1 비교기(207)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 2의 제2 비교기(209)) 및 상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200 of FIG. 2 ) includes a display (eg, the display module 160 of FIG. 1 ) and a plug of an earphone (eg: An ear connector (eg, the connection terminal 178 of FIG. 1 or the ear connector 201 of FIG. 2 ) into which the electronic device 102 of FIG. 1 ) is inserted, and a sensing terminal included in the ear connector (eg, the ear connector of FIG. 4 ) The fifth pin 401e) and the first electrical path (eg, the first electrical path 203 of FIG. 2 ) connected to the input signal applied from the first terminal and the second terminal according to the first specified condition A first comparator (eg, the first comparator 207 of FIG. 2 ) that compares the reference voltage and outputs a first output signal, a second electrical path that is branched from a point of the first electrical path (eg, FIG. 2 ) A second output signal is output by comparing the input signal applied from the third terminal connected to the sensing terminal through the second electrical path 205 of is connected to a second comparator (eg, the second comparator 209 of FIG. 2 ) and the display, the first comparator, and the second comparator, and the first output signal output from the first comparator and the second comparator A processor (eg, the processor 120 of FIG. 1 or the processor of FIG. 2 ) that determines a connection state with the plug of the earphone based on a second output signal output from the device and outputs the determination result through the display (211)) may be included.

다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the earphone plug.

다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.

다양한 실시예에 따르면, 상기 제1 지정된 조건은, 상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보 및 상기 제2 지정된 조건은, 상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보를 포함할 수 있다.According to various embodiments, the first specified condition is a condition set in the first comparator, and the reference voltage information for determining whether the earphone plug is connected to the electronic device and the second specified condition include: As a condition set in the second comparator, reference voltage information for determining whether there is a foreign substance inside the ear connector may be included.

다양한 실시예에 따르면, 상기 프로세서는, 상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고, 상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단할 수 있다.According to various embodiments, the processor detects a change in the received first output signal, determines whether the earphone is connected to the electronic device, and detects a change in the received second output signal. , it is possible to determine whether there is a foreign substance inside the ear connector.

다양한 실시예에 따르면, 상기 프로세서는, 상기 판단한 이어폰의 연결 유무 및 상기 판단한 이어 커넥터 내부의 이물질 유무에 기반하여, 결정되는 네 개의 연결 상태 중 하나의 상태를 상기 디스플레이를 통해 출력할 수 있다.According to various embodiments, the processor may output, through the display, one of the four connection states determined based on the determined presence or absence of the earphone connection and the determined presence or absence of a foreign object inside the ear connector.

도 3은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 순서도이다.301 동작에서 전자 장치(예: 도 1의 전자 장치(101))는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)) 내에 이어 폰 플러그가 삽입되는 경우, 입력 신호를 감지할 수 있다.3 is a flowchart illustrating a method of determining whether an earphone is connected, according to an embodiment of the present invention. In operation 301, the electronic device (eg, the electronic device 101 of FIG. 1 ) connects to an ear connector (eg, the electronic device 101 of FIG. 1 ). : When an earphone plug is inserted into the connection terminal 178 of FIG. 1 or the ear connector 201 of FIG. 2), an input signal can be detected.

일 실시예에 따르면, 상기 이어 커넥터 내의 감지 단자, 제1 비교기 및 제2 비교기에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치의 바이어스 전원과 연결된 풀 업 저항과 상기 삽입된 이어 폰 플러그의 풀 다운 저항에 의해 상기 풀 업 전압이 전압 분배되어, 전압 레벨이 변경될 수 있다. 이하, 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, a pull-up voltage by a bias power may be always applied to the sensing terminal, the first comparator, and the second comparator in the ear connector. When the earphone plug is inserted into the ear connector, the pull-up voltage is divided by a pull-up resistor connected to the bias power of the electronic device and a pull-down resistor of the inserted earphone plug, and the voltage level is changed can be Hereinafter, the earphone plug is inserted into the ear connector to initiate a voltage-divided pull-up voltage as an input signal.

303 동작에서 상기 입력 신호는 제1 비교기(예: 도 2의 제1 비교기(207) 및 제2 비교기(예: 도 2의 제2 비교기(209)) 각각에 인가될 수 있다. 상기 제1 비교기는 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 좌측 감지(L-detection) 단자와 연결될 수 있다. 상기 제2 비교기는 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 좌측 감지 단자와 연결될 수 있다. In operation 303, the input signal may be applied to each of a first comparator (eg, the first comparator 207 of FIG. 2 and a second comparator (eg, the second comparator 209 of FIG. 2)). The first comparator may be connected to the left detection (L-detection) terminal through a first electrical path (eg, the first electrical path 203 in Fig. 2) The second comparator is branched at a point in the first electrical path It may be connected to the left sensing terminal through a second electrical path (eg, the second electrical path 205 of FIG. 2 ).

즉, 상기 입력 신호는 상기 제1 전기적 경로를 통해 상기 제1 비교기에 인가될 수 있으며, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 제2 비교기에 인가될 수 있다.That is, the input signal may be applied to the first comparator through the first electrical path, and may be applied to the second comparator through a second electrical path branched from one point of the first electrical path.

305 동작에서, 상기 전자 장치는 한 쌍의 비교기를 통해 제1 출력 신호 및 제2 출력 신호를 출력할 수 있다.In operation 305, the electronic device may output a first output signal and a second output signal through a pair of comparators.

일 실시예에 따르면, 한 쌍의 비교기는 제1 비교기 및 제2 비교기를 포함할 수 있다. 상기 전자 장치는 상기 입력 신호가 인가된 상기 제1 비교기를 통해 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제1 지정된 조건은 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제1 지정된 조건은 제1 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the pair of comparators may include a first comparator and a second comparator. The electronic device may output a first output signal based on a first specified condition through the first comparator to which the input signal is applied. The first specified condition may be reference voltage information for determining whether the earphone plug and the ear connector are connected. The first specified condition may be set in the first comparator, and the reference voltage information may be changed according to the set value.

일 실시예에 따르면, 상기 제1 비교기는 상기 입력 신호를 인가 받는 경우, 제1 지정된 조건에 따라 상기 제1 출력 신호를 하이(high) 레벨의 출력 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. According to an embodiment, when the first comparator receives the input signal, it outputs the first output signal as a high-level output signal or a low-level signal according to a first specified condition. can

예를 들어, 상기 제1 지정된 조건에 따른 기준 전압 0.9V가 제1 비교기의 +극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 -극과 연결된 제1 전기적 경로를 통해 입력 신호를 수신할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 0.7V인 경우, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.9V보다 높은 1V인 경우, 로우 레벨의 신호를 출력할 수 있다. For example, the reference voltage 0.9V according to the first specified condition may be applied to the + pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the -pole of the first comparator. The first comparator may output a high level output signal when the voltage level of the received input signal is 0.7V. The first comparator may output a low-level signal when the voltage level of the received input signal is 1V higher than the reference voltage 0.9V.

다른 예를 들어, 제1 지정된 조건에 따른 기준 전압 0.7V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 +극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 상기 입력 신호의 전압 레벨이 0.5V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기가 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.7V 보다 높은 0.8V인 경우, 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.7V according to the first specified condition may be applied to the -pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the + electrode of the first comparator. The first comparator may output an output signal of a low level when the voltage level of the input signal is 0.5V. When the voltage level of the input signal applied to the first comparator is 0.8V, which is higher than the reference voltage of 0.7V, the high-level signal may be output.

일 실시예에 따르면, 상기 전자 장치는 상기 좌측 감지 단자와 연결된 제2 전기적 경로를 통해 상기 입력 신호가 인가된 제2 비교기를 통해, 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제2 지정된 조건은 제2 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the electronic device may output a second output signal based on a second specified condition through a second comparator to which the input signal is applied through a second electrical path connected to the left sensing terminal. . The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector. The second specified condition may be set in the second comparator, and the reference voltage information may be changed according to the set value.

일 실시예에 따르면, 제2 비교기는 상기 입력 신호를 인가 받는 경우, 제2 지정된 조건에 따라 상기 제2 출력 신호를 하이(high) 레벨의 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. 예를 들어, 상기 제2 지정된 조건에 따른 기준 전압 0.2V가 제2 비교기의 +극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 -극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.1V인 경우 하이 레벨의 신호를 출력할 수 있다. 상기 제2 비교기가 수신한 입력 신호의 전압 레벨이 기준 전압 0.2V보다 높은 0.5V인 경우, 로우 레벨의 신호를 출력할 수 있다. According to an embodiment, when receiving the input signal, the second comparator may output the second output signal as a high level signal or a low level signal according to a second specified condition. . For example, the reference voltage 0.2V according to the second specified condition may be applied to the + pole of the second comparator. The second comparator may receive an input signal through a second electrical path connected to the -pole of the second comparator. The second comparator may output a high level signal when the voltage level of the input signal is 0.1V. When the voltage level of the input signal received by the second comparator is 0.5V higher than the reference voltage 0.2V, a low-level signal may be output.

다른 예를 들어, 제2 지정된 조건에 따른 기준 전압 0.5V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 +극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.3V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기가 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.5V 보다 높은 0.8V인 경우, 상기 제2 비교기는 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.5V according to the second specified condition may be applied to the -pole of the first comparator. The second comparator may receive an input signal through a second electrical path connected to the + electrode of the second comparator. The second comparator may output an output signal of a low level when the voltage level of the input signal is 0.3V. When the voltage level of the input signal applied to the second comparator is 0.8V, which is higher than the reference voltage of 0.5V, the second comparator may output a high-level signal.

307 동작에서, 상기 전자 장치는 상기 제1 출력 신호를 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그 간의 연결 유무를 확인할 수 있다.In operation 307, the electronic device may determine whether there is a connection between the ear connector and the earphone plug based on the first output signal.

일 실시예에 따르면, 상기 전자 장치의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))는 제1 인터럽트 단자를 통해 상기 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이(high) 레벨 또는 로우(low) 레벨인지를 확인하여, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다.According to an embodiment, the processor of the electronic device (eg, the processor 120 of FIG. 1 or the processor 211 of FIG. 2 ) may receive the first output signal from the first comparator through a first interrupt terminal. have. The processor may determine whether the level of the received first output signal is a high level or a low level to determine a connection state between the ear connector and the earphone plug.

예를 들어, 상기 프로세서는 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 인터럽트 단자를 통해 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서가 수신한 제1 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인할 수 있다.For example, the processor may receive the first output signal through the first interrupt terminal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. When the level of the received first output signal is a high level signal, the processor may determine that the ear connector and the earphone plug are connected. When the level of the first output signal received by the processor is a low level signal, it may be determined that the ear connector and the earphone plug are not connected.

다른 예를 들어, 상기 프로세서는 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 인터럽트 단자를 통해 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서는 상기 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인할 수 있다. As another example, the processor may receive the first output signal through the first interrupt terminal from the first comparator to which the reference voltage according to the first specified condition is applied to the -pole. When the level of the first output signal received from the first comparator is a low level signal, the processor may determine that the ear connector and the earphone plug are connected. When the level of the first output signal received from the first comparator is a high level signal, the processor may determine that the ear connector and the earphone plug are not connected.

309 동작에서, 상기 전자 장치는 상기 제2 출력 신호를 기반으로, 상기 이어 커넥터 내의 이물질 유무를 확인할 수 있다.In operation 309, the electronic device may determine whether there is a foreign substance in the ear connector based on the second output signal.

일 실시예에 따르면, 상기 전자 장치의 프로세서는 상기 제2 비교기로부터 제2 인터럽트 단자를 통해 수신한 제2 출력 신호가 하이 레벨 또는 로우 레벨인지를 확인하여, 상기 이어 커넥터 내의 이물질 유무 상태를 확인할 수 있다.According to an embodiment, the processor of the electronic device may check whether the second output signal received from the second comparator through the second interrupt terminal is at a high level or a low level to check the presence or absence of foreign matter in the ear connector. have.

예를 들어, 상기 프로세서는 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 수신한 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서가 제2 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 존재하는 것으로 확인할 수 있다.For example, the processor may receive the second output signal through the second interrupt terminal from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the level of the received second output signal is a high level signal, the processor may determine that there is no foreign material in the ear connector. When the level of the second output signal is a low level signal, the processor may determine that a foreign material is present in the ear connector.

다른 예를 들어, 상기 프로세서는 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 로우 레벨의 출력 신호인 경우, 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 존재하는 것으로 확인할 수 있다.As another example, the processor may receive the second output signal through the second interrupt terminal from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the level of the second output signal received from the second comparator is the low level output signal, the processor may determine that there is no foreign material in the ear connector. When the level of the second output signal received from the second comparator is a high level signal, the processor may determine that a foreign material is present in the ear connector.

311 동작에서, 상기 전자 장치는 상기 307 동작 및 309 동작에서의 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 정상 연결 상태인 것으로 판단할 수 있다.In operation 311 , the electronic device may determine that the earphone plug and the ear connector are in a normal connection state based on the check results in operations 307 and 309 .

일 실시예에 따르면, 상기 전자 장치의 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 정상적으로 연결된 상태인 것을 판단할 수 있다.According to an embodiment, the processor of the electronic device may determine that the ear connector and the earphone plug are connected in operation 307 , and may determine that there is no foreign material in the ear connector in operation 309 . The processor may determine that the earphone plug and the ear connector are normally connected based on the result of the check.

예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 하이 레벨인 것을 확인할 수 있다. 또한, 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 하이 레벨인 것을 확인할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨이 하이 레벨인 것을 확인하면, 상기 이어 폰 플러그와 이어 커넥터가 정상 연결 상태인 것을 판단할 수 있다. For example, the processor may determine that the level of the first output signal received from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole is the high level. Also, the processor may confirm that the level of the second output signal received from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole is the high level. The processor may determine that the earphone plug and the ear connector are in a normal connection state when it is confirmed that the received first output signal and the second output signal have a high level.

다른 예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨이 로우 레벨인 것으로 확인되면, 상기 이어 폰 플러그와 이어 커넥터가 정상 연결 상태인 것을 판단할 수 있다.As another example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the -pole. The processor may receive a second output signal from a second comparator to which a reference voltage according to the second specified condition is applied to a negative pole. The processor may determine that the earphone plug and the ear connector are in a normal connection state when it is confirmed that the received first output signal and the second output signal have a low level.

313 동작에서, 상기 프로세서는 상기 307 동작 및 309 동작에서의 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상 연결 상태인 것으로 판단할 수 있다.In operation 313 , the processor may determine that the earphone plug and the ear connector are in an abnormal connection state based on the result of the check in operations 307 and 309 .

일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서는 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 있는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 즉, 상기 프로세서는 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 상태인 것으로 오 인식한 것을 판단할 수 있다.According to an embodiment, the processor may determine that the ear connector and the earphone plug are connected in operation 307 . The processor may determine that there is a foreign material in the ear connector in operation 309 . The processor may determine that the earphone plug and the ear connector are in an abnormally connected state based on the result of the check. That is, the processor may determine that it is incorrectly recognized that the ear connector and the earphone plug are in a connected state due to a foreign substance present in the ear connector.

예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 또한, 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하면, 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 상태인 것으로 오 인식한 것을 판단할 수 있다.For example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. Also, the processor may receive a second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the processor determines that the level of the received first output signal is the high level and the level of the second output signal is the low level, the ear connector and the earphone plug are damaged due to foreign substances present in the ear connector It can be judged that it is erroneously recognized as being in a connected state.

일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인하고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 있는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 즉, 상기 프로세서는 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 폰 플러그가 상기 이어 커넥터에 접속되지 않은 상태인 것으로 판단할 수 있다.According to an embodiment, in operation 307, the processor determines that the ear connector and the earphone plug are not connected, and in operation 309, determines that there is a foreign substance in the ear connector. The processor may determine that the earphone plug and the ear connector are in an abnormally connected state based on the result of the check. That is, the processor may determine that the earphone plug is not connected to the ear connector due to a foreign substance present in the ear connector.

예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하는 경우, 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 폰 플러그가 상기 이어 커넥터에 접속되지 않은 상태인 것으로 판단할 수 있다.For example, the processor may receive a first output signal from a first comparator to which a reference voltage according to the first specified condition is applied to a negative pole. The processor may receive a second output signal from a second comparator to which a reference voltage according to the second specified condition is applied to a negative pole. When the processor determines that the level of the received first output signal is the high level and the level of the second output signal is the low level, the earphone plug is damaged by the foreign material present in the ear connector It can be determined that it is not connected to .

일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인하고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 상기 프로세서는 상기 이어 폰 플러그가 상기 이어 커넥터에 삽입된 상태이지만, 상기 이어 커넥터에 상기 이어 폰 플러그가 이물질이 아닌 다른 요인으로 인해 접속되지 않은 상태인 것으로 판단할 수 있다.According to an embodiment, the processor may determine that the ear connector and the earphone plug are not connected in operation 307 , and determine that there is no foreign material in the ear connector in operation 309 . The processor may determine that the earphone plug and the ear connector are in an abnormally connected state based on the result of the check. The processor may determine that the earphone plug is inserted into the ear connector, but the earphone plug is not connected to the ear connector due to a factor other than a foreign substance.

예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 로우 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하는 경우, 상기 이어 폰 플러그가 상기 이어 커넥터에 삽입된 상태이지만, 상기 이어 커넥터에 상기 이어 폰 플러그가 이물질이 아닌 다른 요인(예: 이어 폰 선의 단선)으로 인해 접속되지 않은 상태인 것으로 판단할 수 있다.For example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. The processor may receive a second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the processor determines that the level of the received first output signal is the low level and the level of the second output signal is the low level, the earphone plug is inserted into the ear connector, but the ear connector It may be determined that the earphone plug is not connected due to a factor other than a foreign substance (eg, disconnection of the earphone wire).

도 4는 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.

도 4를 참조하면, 이어 커넥터(401)(예: 도 2의 이어 커넥터(201))는 제1 핀(401a), 제2 핀(401b), 제3 핀(401c), 제4 핀(401d), 제5 핀(401e)을 포함할 수 있다. Referring to FIG. 4 , the ear connector 401 (eg, the ear connector 201 of FIG. 2 ) includes a first pin 401a, a second pin 401b, a third pin 401c, and a fourth pin 401d. ) and a fifth pin 401e.

일 실시예에 따르면, 상기 이어 커넥터(401) 내에 삽입되는 이어 폰 플러그가 4극 이어 폰 플러그인 경우, 상기 제1 핀(401a)은 4극 이어 플러그의 마이크 단자와 접촉할 수 있다. 상기 이어 커넥터 내에 이어폰 플러그가 삽입되는 경우, 전자 장치(예: 도 2의 전자 장치(200))는 상기 제1 핀(401a)을 통해 이어 폰에서 발생된 음을 입력 받을 수 있다.According to an embodiment, when the earphone plug inserted into the ear connector 401 is a 4-pole earphone plug-in, the first pin 401a may contact the microphone terminal of the 4-pole ear plug. When the earphone plug is inserted into the ear connector, the electronic device (eg, the electronic device 200 of FIG. 2 ) may receive a sound generated by the earphone through the first pin 401a.

일 실시예에 따르면, 상기 제2 핀(401b)은 상기 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. According to an embodiment, the second pin 401b may be connected to a ground terminal of the earphone plug when the earphone plug is inserted into the ear connector.

다른 실시예에 따르면, 상기 이어 커넥터(401) 내에 삽입되는 이어 폰 플러그가 3극 이어 폰 플러그인 경우, 상기 제1 핀(401a) 및 상기 제2 핀(401b)은 상기 3극 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. 이하에서는, 상기 이어 커넥터(401)를 4극 이어 커넥터로 가정하여 서술하도록 한다.According to another embodiment, when the earphone plug inserted into the ear connector 401 is a 3-pole earphone plug-in, the first pin 401a and the second pin 401b are the ground of the 3-pole earphone plug. terminal can be connected. Hereinafter, it is assumed that the ear connector 401 is a 4-pole ear connector.

일 실시예에 따르면, 상기 제3 핀(401c)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 왼쪽 단의 음이 이어 폰의 좌측 음향 단자를 통해 출력될 수 있도록, 상기 좌측 음향 단자와 연결될 수 있다. 상기 제4 핀(401d)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 오른쪽 단의 음이 이어 폰의 우측 음향 단자를 통해 출력될 수 있도록, 상기 우측 음향 단자와 연결될 수 있다. 상기 제3 핀(401c) 및 상기 제4 핀(401d)은 상기 이어 폰 플러그의 풀 다운(pull down) 저항 R3와 각각 연결될 수 있다. 상기 풀 다운 저항 R3는 상기 이어 커넥터 내에 삽입되는 플러그를 포함하는 외부 장치의 저항 값에 따라 변경될 수 있다.According to an embodiment, the third pin 401c is configured so that, when an earphone plug is inserted into an ear connector, a left end sound generated by the electronic device can be output through a left sound terminal of the earphone. It may be connected to the left sound terminal. The fourth pin 401d may be connected to the right sound terminal so that, when an earphone plug is inserted into the ear connector, the right end sound generated by the electronic device may be output through the right sound terminal of the earphone. have. The third pin 401c and the fourth pin 401d may be respectively connected to a pull down resistor R3 of the earphone plug. The pull-down resistor R3 may be changed according to a resistance value of an external device including a plug inserted into the ear connector.

일 실시예에 따르면, 상기 제5 핀(401e)은 제1 비교기(403)(예: 도 2의 제1 비교기(207))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결될 수 있고, 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 제2 비교기(405)(예: 도 2의 제2 비교기(209))와 연결될 수 있다. 상기 제5 핀(401e)은 상기 제1 전기적 경로와 제2 전기적 경로로 분기되기 전 지점에서 시리즈(series) 저항 R2와 바이어스 전원과 연결되어 있는 풀 업(pull up) 저항 R1과 회로적으로 연결될 수 있다. 상기 시리즈 저항 R2는 입력 신호의 전압 레벨 범위를 조절하기 위한 저항일 수 있다. 즉, 상기 제5 핀(401e), 제1 비교기 및 제2 비교기에는 상기 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다.According to an embodiment, the fifth pin 401e is connected to a first comparator 403 (eg, the first comparator 207 of FIG. 2 ) and a first electrical path (eg, the first electrical path 203 of FIG. 2 ). )), and a second comparator 405 (eg, in FIG. 2 ) through a second electrical path (eg, the second electrical path 205 in FIG. 2 ) branching at one point of the first electrical path. The second comparator 209) may be connected. The fifth pin 401e is circuitly connected to a pull-up resistor R1 connected to a series resistor R2 and a bias power supply at a point before branching into the first electrical path and the second electrical path. can The series resistor R2 may be a resistor for adjusting the voltage level range of the input signal. That is, the pull-up voltage by the bias power may be always applied to the fifth pin 401e, the first comparator, and the second comparator.

일 실시예에 따르면, 상기 이어 커넥터 내에 외부 장치의 플러그가 삽입되는 경우, 기존에 입력되고 있는 풀 업 전압의 전압 레벨은 상기 바이어스 전원과 연결된 저항 R1과 상기 외부 장치의 저항 값을 가지는 저항 R3와 상기 시리즈 저항 R2를 기반으로 전압 분배되어, 상기 풀 업 전압의 전압 레벨이 결정될 수 있다. 이하, 상기 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, when a plug of an external device is inserted into the ear connector, the voltage level of the previously input pull-up voltage is a resistor R1 connected to the bias power supply and a resistor R3 having a resistance value of the external device. A voltage may be divided based on the series resistor R2 to determine a voltage level of the pull-up voltage. Hereinafter, the voltage-divided pull-up voltage is started as an input signal.

예를 들면, 상기 저항 R1의 값이 470k 옴으로 설정되고, 저항 R2의 값이 10k 옴으로 설정되어 있는 경우, 상기 이어 커넥터(401) 내에 32 옴으로 설정되어 있는 이어 폰의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 상기 입력 신호의 전압 레벨이 0.037617V로 결정될 수 있다.For example, when the value of the resistor R1 is set to 470k ohms and the value of the resistor R2 is set to 10k ohms, a plug of an earphone set to 32 ohms can be inserted into the ear connector 401 . have. When the voltage of the bias power supply is 2.5V, a voltage of 2.5V is divided based on the resistance values set in the resistors R1, R2, and R3 so that the voltage level of the input signal is determined to be 0.037617V.

다른 예를 들어, 상기 이어 커넥터(701) 내에 수분이 유입되어, 상기 이어 커넥터(701) 내부의 저항들이 병렬 회로를 형성하는 경우, 상기 이어 커넥터(701) 내의 저항 값은 300k 옴으로 변경될 수 있다. 상기 수분이 유입된 상태의 이어 커넥터(401) 내에 32 옴으로 설정되어 있는 이어 폰의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 상기 입력 신호의 전압 레벨이 0.715385V로 결정될 수 있다.As another example, when moisture flows into the ear connector 701 and the resistances inside the ear connector 701 form a parallel circuit, the resistance value in the ear connector 701 may be changed to 300k ohms. have. A plug of an earphone set to 32 ohms may be inserted into the ear connector 401 in a state in which moisture has been introduced. When the voltage of the bias power supply is 2.5V, a voltage of 2.5V is divided based on the resistance values set in the resistors R1, R2, and R3, so that the voltage level of the input signal is determined to be 0.715385V.

일 실시예에 따르면, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제5 핀(401e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 상기 입력 신호를 각각 수신할 수 있다. 상기 제1 비교기(403)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제2 비교기(405)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다.According to an embodiment, the first comparator 403 and the second comparator 405 may receive the input signal through a first electrical path and a second electrical path connected to the fifth pin 401e, respectively. have. The first comparator 403 may output the input signal as a first output signal based on a first specified condition. The second comparator 405 may output the input signal as a second output signal based on a second specified condition.

예를 들어, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제1 전기적 경로 및 상기 제2 전기적 경로를 통해 전압 레벨이 0.037617V인 입력 신호를 수신할 수 있다. 상기 제2 전기적 경로는 상기 제1 비교기의 -극과 연결될 수 있다. 제1 지정된 조건에 따른 기준 전압 0.9V가 +극에 인가되는 제1 비교기(403)는 하이 레벨의 제1 출력 신호를 출력 할 수 있다. 제2 지정된 조건에 따른 기준 전압 0.2V가 +극에 인가되는 제2 비교기(405)는 하이 레벨의 제2 출력 신호를 출력할 수 있다.For example, the first comparator 403 and the second comparator 405 may receive an input signal having a voltage level of 0.037617V through the first electrical path and the second electrical path. The second electrical path may be connected to the -pole of the first comparator. The first comparator 403 to which the reference voltage 0.9V according to the first specified condition is applied to the + pole may output a high level first output signal. The second comparator 405 to which the reference voltage 0.2V according to the second specified condition is applied to the + pole may output a second output signal of a high level.

다른 예를 들어, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제5 핀(401e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 전압 레벨이 0.715385V인 입력 신호를 수신할 수 있다. 제1 지정된 조건에 따른 기준 전압 0.9V가 +극에 인가되는 상기 제1 비교기(403)는 하이 레벨의 제1 출력 신호를 출력 할 수 있다 제2 지정된 조건에 따른 기준 전압 0.2V가 +극에 인가되는 상기 제2 비교기(405)는 로우 레벨의 제2 출력 신호를 출력할 수 있다.As another example, the first comparator 403 and the second comparator 405 receive an input signal having a voltage level of 0.715385V through a first electrical path and a second electrical path connected to the fifth pin 401e. can receive The first comparator 403 to which the reference voltage 0.9V according to the first specified condition is applied to the + pole may output a first output signal of high level. The reference voltage 0.2V according to the second specified condition is applied to the + pole. The applied second comparator 405 may output a second output signal of a low level.

일 실시예에 따르면, 상기 프로세서(407)는 인터럽트 단자를 통해 상기 제1 출력 신호 및 상기 제2 출력 신호를 수신하고, 수신한 제1 출력 신호 및 상기 제2 출력 신호를 기반으로, 이어 커넥터(501)와 외부 장치 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무를 판단할 수 있다.According to an embodiment, the processor 407 receives the first output signal and the second output signal through an interrupt terminal, and based on the received first output signal and the second output signal, an ear connector ( It is possible to determine whether there is a connection between the 501 ) and an external device and whether there is a foreign substance in the ear connector 501 .

예를 들어, 상기 프로세서(407)는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401)와 상기 외부 장치가 연결된 상태인 것을 판단할 수 있다. 또한, 상기 프로세서(407)는 상기 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401) 내에 이물질이 없는 것으로 판단할 수 있다. 상기 프로세서(407) 상기 판단 결과들을 기반으로, 상기 이어 커넥터(401)에 상기 외부 장치가 정상 연결된 상태인 것을 판단할 수 있다.For example, when the level of the received first output signal is a high level signal, the processor 407 may determine that the ear connector 401 and the external device are connected. Also, when the level of the second output signal is a high level signal, the processor 407 may determine that there is no foreign material in the ear connector 401 . The processor 407 may determine that the external device is normally connected to the ear connector 401 based on the determination results.

다른 예를 들어, 상기 프로세서(407)는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401)와 상기 외부 장치가 연결된 상태인 것을 판단할 수 있다. 또한, 상기 프로세서(407)는 상기 제2 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터(401) 내에 이물질이 존재하는 것으로 판단할 수 있다. 상기 프로세서(407)는 상기 판단 결과들을 기반으로, 상기 이어 커넥터(401) 내에 존재하는 이물질로 인해 상기 외부 장치가 연결된 것으로 오 인식된 상태임을 판단할 수 있다.As another example, when the level of the received first output signal is a high level signal, the processor 407 may determine that the ear connector 401 and the external device are connected. Also, when the level of the second output signal is a low level signal, the processor 407 may determine that a foreign material is present in the ear connector 401 . Based on the determination results, the processor 407 may determine that the external device is erroneously recognized as being connected due to a foreign substance present in the ear connector 401 .

도 5는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 블록도이다.5 is another block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.

도 5를 참조하면, 상기 전자 장치(500)(예: 도 1의 전자 장치(101))는 이어 커넥터(501)(예: 도 1의 연결 단자(178)), 제1 전기적 경로(503)(예: 도 2의 제1 전기적 경로(203)), 제2 전기적 경로(505)(예: 도 2의 제2 전기적 경로(205)), 제1 비교기(507)(예: 도 2의 제1 비교기(207)), 제2 비교기(509)(예: 도 2의 제2 비교기(209)), 게이트(511) 및 프로세서(53)(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다. 그러나, 상기 전자 장치(200)의 구성이 이에 한정되는 것은 아니다.Referring to FIG. 5 , the electronic device 500 (eg, the electronic device 101 of FIG. 1 ) includes an ear connector 501 (eg, the connection terminal 178 of FIG. 1 ) and a first electrical path 503 . (eg, first electrical path 203 of FIG. 2 ), second electrical path 505 (eg, second electrical path 205 of FIG. 2 ), first comparator 507 (eg, second electrical path 205 of FIG. 2 ) 1 comparator 207 ), second comparator 509 (eg, second comparator 209 in FIG. 2 ), gate 511 , and processor 53 (eg, processor 120 in FIG. 1 or in FIG. 2 ). A processor 211) may be included. However, the configuration of the electronic device 200 is not limited thereto.

다양한 실시예에 따르면, 상기 전자 장치(500)는 상술한 구성 요소들 중 적어도 하나를 생략할 수 있으며, 적어도 하나의 다른 구성 요소를 포함할 수 있다. 일 예로 상기 전자 장치(500)는 디스플레이(예: 도 1의 디스플레이 모듈(160))를 포함할 수 있다. 상기 전자 장치(500)는 상기 제3 출력 신호를 기반으로 확인한 상기 이어 커넥터(501)와 상기 이어 폰 플러그 간의 연결 상태(예: 이어 커넥터와 이어 폰 플러그 간의 연결 유무 및 이어 커넥터 내의 이물질 유무)를 상기 디스플레이를 통해 표시할 수 있다.According to various embodiments, the electronic device 500 may omit at least one of the above-described components, and may include at least one other component. For example, the electronic device 500 may include a display (eg, the display module 160 of FIG. 1 ). The electronic device 500 checks the connection state between the ear connector 501 and the earphone plug (eg, whether there is a connection between the ear connector and the earphone plug and whether there is a foreign substance in the ear connector), which is checked based on the third output signal. It can be displayed through the display.

일 실시예에 따르면, 상기 이어 커넥터(501)는 마이크 입력 및/또는 오디오 출력 기능을 가지는 이어 폰의 플러그를 수용할 수 있는 소켓을 의미할 수 있으며, 상기 이어 커넥터(501)를 통해 상기 전자 장치(500)에는 4극 이어 폰 또는 3극 이어폰이 접속될 수 있다. 상기 4극 이어 폰의 플러그는 마이크 단자, 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다. 상기 3극 이어 폰의 플러그는 마이크 단자를 제외한 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다.According to an embodiment, the ear connector 501 may mean a socket capable of accommodating a plug of an earphone having a microphone input and/or audio output function, and the electronic device through the ear connector 501 . A 4-pole earphone or a 3-pole earphone may be connected to 500 . The plug of the 4-pole earphone may include a microphone terminal, a ground terminal, a right sound terminal, and a left sound terminal. The plug of the three-pole earphone may include a ground terminal, a right sound terminal, and a left sound terminal except for the microphone terminal.

일 실시예에 따르면, 상기 이어 커넥터(501)는 4극 이어 폰 플러그의 마이크 단자와 접촉하는 제1 핀, 이어 폰 플러그의 그라운드 단자와 접촉하는 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to an embodiment, the ear connector 501 has a first pin in contact with the microphone terminal of the 4-pole earphone plug, a second pin in contact with the ground terminal of the earphone plug, and a right sound terminal of the earphone plug. and a third pin, a fourth pin and a fifth pin contacting the left acoustic terminal of the earphone plug.

다른 실시예에 따르면, 상기 이어 커넥터(501)는 3극 이어 폰 플러그의 그라운드 단자와 접촉하는 제1 핀, 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to another embodiment, the ear connector 501 includes a first pin and a second pin contacting the ground terminal of the three-pole earphone plug, a third pin contacting the right sound terminal of the earphone plug, and the earphone plug. It may include a fourth pin and a fifth pin contacting the left acoustic terminal.

일 실시예에 따르면, 상기 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제5 핀은 좌측 감지(L-detection) 단자일 수 있다. 본 발명에서 언급하는 이어 커넥터(501)는 5핀 이어 커넥터(5pin ear connector)일 수 있다. According to an embodiment, the fifth pin contacting the left acoustic terminal of the earphone plug may be a left-side detection (L-detection) terminal. The ear connector 501 referred to in the present invention may be a 5-pin ear connector.

일 실시예에 따르면, 상기 이어 커넥터(501)에 상기 이어 폰 플러그가 삽입되는 경우, 상기 이어 커넥터(501)의 감지 단자, 제1 비교기(507) 및 제2 비교기(509)에 인가되고 있는 풀 업(pull-up) 전압이 전압 분배될 수 있다. 보다 자세하게 설명하면, 상기 이어 커넥터(501) 내의 상기 감지 단자, 상기 제1 비교기(507) 및 상기 제2 비교기(509)에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 감지 단자는 이어 폰 플러그의 좌측 음향 단자와 접촉하는 좌측 감지 단자일 수 있다.According to an embodiment, when the earphone plug is inserted into the ear connector 501 , the pull being applied to the sensing terminal of the ear connector 501 , the first comparator 507 , and the second comparator 509 . A pull-up voltage may be voltage divided. In more detail, a pull-up voltage by a bias power may be always applied to the sensing terminal in the ear connector 501 , the first comparator 507 , and the second comparator 509 . The sensing terminal may be a left sensing terminal in contact with the left sound terminal of the earphone plug.

일 실시예에 따르면, 상기 이어 커넥터(501) 내에 이어 폰 플러그가 삽입되는 경우, 상기 바이어스 전원과 연결된 풀 업 저항과 이어 폰 플러그에 연결된 풀 다운 저항에 의해 상기 풀 업 전압의 전압이 분배될 수 있다. 이하, 상기 이어 커넥터(501) 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다. 상기 입력 신호는 상기 상기 제1 비교기(507) 및 상기 제2 비교기(509) 각각에 인가될 수 있다.일 실시예에 따르면, 상기 제1 비교기(507) 및 상기 제2 비교기(509)는 상기 이어 커넥터(501)의 5개의 핀 중 상기 좌측 감지 단자와 전기적 경로를 통해 연결될 수 있다. 상기 제1 비교기(507)는 상기 좌측 감지 단자와 상기 제1 전기적 경로(503)를 통해 연결될 수 있다. 상기 제2 비교기(509)는 상기 제1 전기적 경로(503)의 일 지점에서 분기되는 제2 전기적 경로(505)를 통해 상기 좌측 감지 단자와 연결될 수 있다.According to an embodiment, when an earphone plug is inserted into the ear connector 501 , the pull-up voltage may be divided by a pull-up resistor connected to the bias power supply and a pull-down resistor connected to the earphone plug. have. Hereinafter, the earphone plug is inserted into the ear connector 501 to initiate the voltage-divided pull-up voltage as an input signal. The input signal may be applied to each of the first comparator 507 and the second comparator 509 . According to an embodiment, the first comparator 507 and the second comparator 509 are It may be connected to the left sensing terminal among the five pins of the connector 501 through an electrical path. The first comparator 507 may be connected to the left sensing terminal through the first electrical path 503 . The second comparator 509 may be connected to the left sensing terminal through a second electrical path 505 branched from one point of the first electrical path 503 .

일 실시예에 따르면, 상기 제1 비교기(507)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제1 비교기(507)는 상기 입력 신호(전압 레벨이 변경된 풀 업 전압)를 상기 제1 전기적 경로(503)를 통해 수신할 수 있다. 상기 제1 비교기(507)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제1 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제1 비교기(507)에 포함된 상기 제1 단자가 -극인 경우, 제2 단자는 +극일 수 있다. 반대로 제1 단자가 +극인 경우, 제2 단자는 -극일 수 있다.According to an embodiment, the first comparator 507 may output the input signal as a first output signal based on a first specified condition. The first comparator 507 may receive the input signal (a pull-up voltage with a changed voltage level) through the first electrical path 503 . The first comparator 507 may receive a reference voltage based on a first specified condition through one of the first terminal and the second terminal. When the first terminal included in the first comparator 507 has a negative pole, the second terminal may have a positive pole. Conversely, when the first terminal is a + pole, the second terminal may be a - pole.

상기 제1 지정된 조건은 상기 이어 커넥터(501)와 상기 이어 폰 플러그 간의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다.The first specified condition may be reference voltage information for determining whether there is a connection between the ear connector 501 and the earphone plug.

예를 들어, 상기 제1 비교기(507)는 +극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.9V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.9V 이상이면 로우(low) 레벨의 신호를 출력할 수 있다. 상기 제1 비교기(507)는 수신하는 입력 신호의 전압 레벨이 0.9V 미만인 경우, 하이(high) 레벨의 신호를 출력할 수 있다. 상기 제1 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the first comparator 507 is low when the voltage level of the received input signal is 0.9V or more when the reference voltage level based on the first specified condition applied to the + pole is 0.9V. level signal can be output. The first comparator 507 may output a high level signal when the voltage level of the received input signal is less than 0.9V. The level of the first output signal may be determined as a high level or a low level based on the voltage level of the input signal and the reference voltage level.

일 실시예에 따르면, 상기 제2 비교기(509)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다. 상기 제2 비교기(509)는 상기 입력 신호를 상기 제2 전기적 경로(505)를 통해 수신할 수 있다. 상기 제2 비교기(509)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제2 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제2 비교기(509)에 포함된 상기 제3 단자가 -극인 경우, 제4 단자는 +극일 수 있다. 반대로 제3 단자가 +극인 경우, 제4 단자는 -극일 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터(501) 내부에 이물질의 유무를 판단하기 위한 기준 전압 정보일 수 있다.According to an embodiment, the second comparator 509 may output the input signal as a second output signal based on a second specified condition. The second comparator 509 may receive the input signal through the second electrical path 505 . The second comparator 509 may receive a reference voltage based on a second specified condition through one of the first terminal and the second terminal. When the third terminal included in the second comparator 509 has a negative pole, the fourth terminal may have a positive pole. Conversely, when the third terminal is a + pole, the fourth terminal may be a - pole. The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector 501 .

예를 들어, 상기 제2 비교기(509)는 +극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.2V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.2V 이상이면 로우(low) 신호를 출력할 수 있다. 상기 제2 비교기(509)는 수신하는 입력 신호의 전압 레벨이 0.2V 미만인 경우, 하이(high) 신호를 출력할 수 있다. 상기 제2 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the second comparator 509 is low when the voltage level of the received input signal is 0.2V or more when the reference voltage level based on the second specified condition applied to the + pole is 0.2V. signal can be output. The second comparator 509 may output a high signal when the voltage level of the received input signal is less than 0.2V. The level of the second output signal may be determined as a high level or a low level based on the voltage level of the input signal and the reference voltage level.

일 실시예에 따르면, 상기 게이트(511)는 상기 제1 비교기(507)가 출력한 제1 출력 신호 및 상기 제2 비교기(509)가 출력한 제2 출력 신호를 인가 받을 수 있다. 상기 게이트(511)는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the gate 511 may receive the first output signal output by the first comparator 507 and the second output signal output by the second comparator 509 . The gate 511 may be an AND gate.

일 실시예에 따르면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨 및 상기 제2 출력 신호의 레벨에 기반하여 제3 출력 신호를 출력할 수 있다. According to an embodiment, the gate 511 may output a third output signal based on the level of the first output signal and the level of the second output signal.

예를 들면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 하이 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다. 다른 예를 들면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.For example, when the level of the first output signal is a high level and the level of the second output signal is a high level, the gate 511 may output a third output signal of a high level. As another example, when the level of the first output signal is a high level and the level of the second output signal is a low level, the gate 511 may output a third output signal of a low level.

일 실시예에 따르면, 상기 프로세서(513)는 인터럽트 단자를 통해 상기 게이트(511)로부터 제3 출력 신호를 수신할 수 있다. 상기 프로세서(513)는 상기 제3 출력 신호를 기반으로, 상기 이어 커넥터(501)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무 상태를 판단할 수 있다. 상기 이어 커넥터(501)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무 상태를 판단하는 동작은 도 6에서 자세하게 설명하도록 한다.According to an embodiment, the processor 513 may receive a third output signal from the gate 511 through an interrupt terminal. The processor 513 may determine whether there is a connection between the ear connector 501 and the earphone plug and the presence or absence of foreign matter in the ear connector 501 based on the third output signal. The operation of determining whether there is a connection between the ear connector 501 and the earphone plug and the presence or absence of foreign matter in the ear connector 501 will be described in detail with reference to FIG. 6 .

예를 들어, 상기 프로세서(513)는 수신한 제3 출력 신호의 레벨이 하이 레벨인 경우, 상기 이어 커넥터(501)와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다. 다른 예를 들어, 상기 프로세서(513)는 수신한 제3 출력 신호의 레벨이 로우 레벨인 경우, 상기 이어 커넥터(501)와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다.For example, when the level of the received third output signal is a high level, the processor 513 may determine that the ear connector 501 and the earphone plug are in a normal connection state. For another example, when the level of the received third output signal is a low level, the processor 513 may determine that the ear connector 501 and the ear phone plug are in an abnormal connection state.

다양한 실시예에 따르면, 상기 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 5의 이어 커넥터(501)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 5의 제1 전기적 경로(503))를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 5의 제1 비교기(507)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 5의 제2 전기적 경로(505))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 5의 제2 비교기(509)), 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate)(예: 도 5의 게이트(511)) 및 상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서(예: 도 1의 프로세서(120) 또는 도 5의 프로세서(513))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200 of FIG. 2 ) is inserted into the earphone plug (eg, the electronic device 102 of FIG. 1 ). An ear connector (eg, the connection terminal 178 of FIG. 1 or the ear connector 501 of FIG. 5 ), a sensing terminal (eg, the fifth pin 401e of FIG. 4 ) included in the ear connector, and a first electrical path By comparing the input signal applied from the first terminal connected through (eg, the first electrical path 503 of FIG. 5 ) with the reference voltage according to the first specified condition applied from the second terminal, the first output signal is output through a first comparator (eg, the first comparator 507 of FIG. 5 ), and a second electrical path that is branched from a point of the first electrical path (eg, the second electrical path 505 of FIG. 5 ). A second comparator (eg, the second comparator of FIG. 5 ) that compares the input signal applied from the third terminal connected to the sensing terminal and the reference voltage according to the second specified condition applied from the fourth terminal, and outputs the second output signal a comparator (509), connected to the first comparator and the second comparator, based on a first output signal output from the first comparator and a second output signal output from the second comparator, a third output signal Based on a gate (eg, the gate 511 of FIG. 5 ) that outputs of the processor 120 or the processor 513 of FIG. 5).

다양한 실시예에 따르면, 상기 프로세서는, 상기 게이트로부터 수신한 제3 출력 신호를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 정상 연결 상태인 제1 상태 및 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 비정상 연결 상태인 제2 상태 중 하나를 확인할 수 있다.According to various embodiments, the processor may include a first state in which the connection state between the earphone plug and the ear connector is a normal connection state and the earphone plug and the ear based on the third output signal received from the gate. One of the second states in which the connection state of the connector is an abnormal connection state may be checked.

다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the earphone plug.

다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.

다양한 실시예에 따르면, 상기 게이트는, 앤드 게이트(AND gate)를 포함할 수 있다.According to various embodiments, the gate may include an AND gate.

다양한 실시예에 따르면, 상기 전자 장치는, 디스플레이를 더 포함하고, 상기 프로세서는, 상기 디스플레이를 통해 상기 확인 결과를 출력할 수 있다.According to various embodiments, the electronic device may further include a display, and the processor may output the confirmation result through the display.

다양한 실시예에 따르면, 상기 프로세서는, 상기 게이트로부터 인터럽트 단자를 통해 상기 제3 출력 신호를 수신할 수 있다.According to various embodiments, the processor may receive the third output signal from the gate through an interrupt terminal.

도 6은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 순서도이다.6 is another flowchart of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.

601 동작에서 전자 장치(예: 도 1의 전자 장치(101))는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)) 내에 이어 폰 플러그가 삽입되는 경우, 입력 신호를 감지할 수 있다.In operation 601 , the electronic device (eg, the electronic device 101 of FIG. 1 ) inserts an earphone plug into an ear connector (eg, the connection terminal 178 of FIG. 1 or the ear connector 201 of FIG. 2 ). The input signal can be detected.

일 실시예에 따르면, 상기 이어 커넥터 내의 감지 단자, 제1 비교기 및 제2 비교기에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치의 바이어스 전원과 연결된 풀 업 저항과 상기 삽입된 이어 폰 플러그의 풀 다운 저항에 의해 상기 풀 업 전압이 전압 분배되어, 전압 레벨이 변경될 수 있다. 이하, 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, a pull-up voltage by a bias power may be always applied to the sensing terminal, the first comparator, and the second comparator in the ear connector. When the earphone plug is inserted into the ear connector, the pull-up voltage is divided by the pull-up resistor connected to the bias power of the electronic device and the pull-down resistor of the inserted earphone plug, and the voltage level is changed can be Hereinafter, the earphone plug is inserted into the ear connector to initiate a voltage-divided pull-up voltage as an input signal.

603 동작에서 상기 입력 신호는 제1 비교기(예: 도 2의 제1 비교기(209)) 및 제2 비교기(예: 도 2의 제2 비교기(209))에 각각 인가될 수 있다. 상기 제1 비교기는 제1 전기적 경로(예: 도 2 제1 전기적 경로(203))를 통해 좌측 감지(L-detection) 단자와 연결될 수 있다. 상기 제2 비교기는 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 좌측 감지 단자와 연결될 수 있다. In operation 603 , the input signal may be applied to a first comparator (eg, the first comparator 209 of FIG. 2 ) and a second comparator (eg, the second comparator 209 of FIG. 2 ), respectively. The first comparator may be connected to a left detection (L-detection) terminal through a first electrical path (eg, the first electrical path 203 of FIG. 2 ). The second comparator may be connected to the left sensing terminal through a second electrical path (eg, the second electrical path 205 of FIG. 2 ) branched at one point of the first electrical path.

즉, 상기 입력 신호는 상기 제1 전기적 경로를 통해 상기 제1 비교기에 인가될 수 있으며, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 제2 비교기에 인가될 수 있다.That is, the input signal may be applied to the first comparator through the first electrical path, and may be applied to the second comparator through a second electrical path branched from one point of the first electrical path.

605 동작에서, 상기 전자 장치는 상기 제1 비교기를 통해 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제1 지정된 조건은 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제1 지정된 조건은 제1 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.In operation 605, the electronic device may output a first output signal based on a first specified condition through the first comparator. The first specified condition may be reference voltage information for determining whether the earphone plug and the ear connector are connected. The first specified condition may be set in the first comparator, and the reference voltage information may be changed according to the set value.

일 실시예에 따르면, 상기 제1 비교기는 상기 입력 신호를 인가받는 경우, 제1 지정된 조건에 따라 상기 제1 출력 신호를 하이(high) 레벨의 출력 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. According to an embodiment, the first comparator may output the first output signal as a high-level output signal or a low-level signal according to a first specified condition when the input signal is applied. can

예를 들어, 상기 제1 지정된 조건에 따른 기준 전압 0.9V가 제1 비교기의 +극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 -극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 0.7V인 경우, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.9V보다 높은 1V인 경우, 로우 레벨의 신호를 출력할 수 있다. For example, the reference voltage 0.9V according to the first specified condition may be applied to the + pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the -pole of the first comparator. When the voltage level of the applied input signal is 0.7V, the first comparator may output an output signal of a high level. The first comparator may output a low-level signal when the voltage level of the received input signal is 1V higher than the reference voltage 0.9V.

다른 예를 들어, 제1 지정된 조건에 따른 기준 전압 0.7V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 +극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 0.5V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.7V 보다 높은 0.8V인 경우, 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.7V according to the first specified condition may be applied to the -pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the + electrode of the first comparator. The first comparator may output a low-level output signal when the voltage level of the applied input signal is 0.5V. The first comparator may output a high level signal when the voltage level of the applied input signal is 0.8V higher than the reference voltage 0.7V.

607 동작에서, 상기 전자 장치는 제2 비교기를 통해 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다. In operation 607, the electronic device may output a second output signal based on a second specified condition through the second comparator.

일 실시예에 따르면, 상기 제2 비교기는 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 입력 신호를 인가 받을 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제2 지정된 조건은 제2 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the second comparator may receive the input signal through a second electrical path branched from one point of the first electrical path. The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector. The second specified condition may be set in the second comparator, and the reference voltage information may be changed according to the set value.

일 실시예에 따르면, 상기 제2 비교기는 상기 입력 신호를 수신하는 경우, 제2 지정된 조건에 따라 상기 제2 출력 신호를 하이(high) 레벨의 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. 예를 들어, 상기 제2 지정된 조건에 따른 기준 전압 0.2V가 제2 비교기의 +극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 -극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.1V인 경우 하이 레벨의 신호를 출력할 수 있다. 상기 제2 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.2V보다 높은 0.5V인 경우, 로우 레벨의 신호를 출력할 수 있다. According to an embodiment, when the second comparator receives the input signal, it may output the second output signal as a high level signal or a low level signal according to a second specified condition. have. For example, the reference voltage 0.2V according to the second specified condition may be applied to the + pole of the second comparator. The second comparator may receive an input signal through a second electrical path connected to the -pole of the second comparator. The second comparator may output a high level signal when the voltage level of the input signal is 0.1V. The second comparator may output a low-level signal when the voltage level of the received input signal is 0.5V higher than the reference voltage 0.2V.

다른 예를 들어, 제2 지정된 조건에 따른 기준 전압 0.5V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 +극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 수신한 입력 신호의 전압 레벨이 0.3V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기가 수신한 입력 신호의 전압 레벨이 기준 전압 0.5V 보다 높은 0.8V인 경우, 상기 제2 비교기는 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.5V according to the second specified condition may be applied to the -pole of the first comparator. The second comparator may receive an input signal through a second electrical path connected to the + electrode of the second comparator. The second comparator may output a low-level output signal when the voltage level of the received input signal is 0.3V. When the voltage level of the input signal received by the second comparator is 0.8V, which is higher than the reference voltage of 0.5V, the second comparator may output a high-level signal.

609 동작에서, 상기 전자 장치는 게이트(예: 도 5의 게이트(511))를 통해 제1 출력 신호 및 제2 출력 신호를 기반으로 제3 출력 신호를 출력할 수 있다. In operation 609 , the electronic device may output a third output signal based on the first output signal and the second output signal through a gate (eg, the gate 511 of FIG. 5 ).

일 실시예에 따르면, 상기 전자 장치는 제1 출력 신호 및 제2 출력 신호를 인가 받은 게이트를 통해 하이 레벨(high) 레벨의 제3 출력 신호 또는 로우(low) 레벨의 제3 출력 신호를 출력할 수 있다. 상기 게이트는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the electronic device may output a high level third output signal or a low level third output signal through a gate to which the first output signal and the second output signal are applied. can The gate may be an AND gate.

예를 들어, 상기 게이트는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가된 제1 비교기로부터 하이 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 게이트는 상기 제2 지정된 조건에 따른 기준 전압이 +극이 인가된 제2 비교기로부터 하이 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 2 출력 신호의 레벨이 하이 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다.For example, the gate may receive a high level first output signal from a first comparator to which the reference voltage according to the first specified condition is applied to the + pole. In addition, the gate may receive a high level second output signal from a second comparator to which the + pole of the reference voltage according to the second specified condition is applied. The gate may output a high level third output signal when the received first output signal and the second output signal have a high level.

다른 예를 들어, 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 하나라도 로우 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.As another example, when at least one of the received first output signal and the second output signal has a low level, the gate may output a low-level third output signal.

다른 실시예에 따르면, 상기 게이트는 노 알 게이트(nor gate)일 수 있다. 예를 들어, 상기 노 알 게이트는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가된 제1 비교기로부터 로우 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 노 알 게이트는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가된 제2 비교기로부터 로우 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 2 출력 신호의 레벨이 로우 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다.According to another embodiment, the gate may be a nor gate. For example, the NO-R gate may receive a low-level first output signal from a first comparator to which a reference voltage according to the first specified condition is applied to a negative pole. Also, the NO-R gate may receive a low-level second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to a negative pole. The gate may output a high level third output signal when the received first output signal and the second output signal have a low level.

다른 예를 들어, 상기 노 알 게이트는 상기 인가 받은 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 하나라도 하이 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.As another example, when at least one of the applied first output signal and the second output signal has a high level, the NOR gate may output a low-level third output signal.

611 동작에서, 상기 전자 장치는 상기 제3 출력 신호를 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다.In operation 611, the electronic device may check a connection state between the ear connector and the earphone plug based on the third output signal.

일 실시예에 따르면, 상기 전자 장치의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(209))는 인터럽트 단자를 통해 제3 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨을 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다. According to an embodiment, the processor of the electronic device (eg, the processor 120 of FIG. 1 or the processor 209 of FIG. 2 ) may receive the third output signal through an interrupt terminal. The processor may check a connection state between the ear connector and the earphone plug based on the level of the received third output signal.

예를 들어, 상기 게이트가 앤드 게이트(and gate)일 수 있다. 상기 프로세서는 상기 게이트로부터 인터럽트 단자를 통해 수신한 제3 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다.For example, the gate may be an AND gate. When the level of the third output signal received from the gate through the interrupt terminal is a high level signal, the processor may determine that the ear connector and the earphone plug are in a normal connection state.

다른 예를 들어, 상기 프로세서가 상기 수신한 제3 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다. 즉, 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨을 기반으로 이어 커넥터와 이어 폰 플러그의 연결 상태를 확인할 수 있다.As another example, when the level of the third output signal received by the processor is a low level signal, it may be confirmed that the ear connector and the earphone plug are in an abnormal connection state. That is, the processor may check the connection state of the ear connector and the earphone plug based on the level of the received third output signal.

또 다른 예를 들어, 상기 게이트가 노 알 게이트(nor gate)일 수 있다. 상기 프로세서는 상기 노 알 게이트로부터 상기 제3 출력 신호를 수신할 수 있다. 상기 프로세서는 제3 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다. 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다.As another example, the gate may be a nor gate. The processor may receive the third output signal from the NO R gate. When the level of the third output signal is the low level signal, the processor may determine that the ear connector and the earphone plug are in an abnormal connection state. When the level of the received third output signal is a high level signal, the processor may determine that the ear connector and the earphone plug are in a normal connection state.

즉, 도 6은 상기 프로세서가 상기 게이트로부터 인터럽트 단자를 통해 수신한 제3 출력 신호의 레벨을 기반으로, 이어 커넥터와 이어 폰 플러그의 연결 상태를 확인할 수 있다 따라서, 상기 프로세서는 상기 제1 비교기로부터 출력되는 상기 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 상기 제2 출력 신호를 기반으로, 이어 커넥터와 이어 폰 플러그 간의 연결 상태를 판단하는 동작을 수행하지 않을 수 있다.That is, in FIG. 6 , the processor can check the connection state of the ear connector and the earphone plug based on the level of the third output signal received from the gate through the interrupt terminal. An operation of determining a connection state between an ear connector and an earphone plug may not be performed based on the first output signal outputted and the second output signal outputted from the second comparator.

도 7은 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 다른 방법을 설명하기 위한 도면이다.7 is a diagram for explaining another method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.

도 7을 참조하면, 이어 커넥터(701)(예: 도 2의 이어 커넥터(201))는 제1 핀(701a), 제2 핀(701b), 제3 핀(701c), 제4 핀(701d), 제5 핀(701e)을 포함할 수 있다. Referring to FIG. 7 , the ear connector 701 (eg, the ear connector 201 of FIG. 2 ) includes a first pin 701a, a second pin 701b, a third pin 701c, and a fourth pin 701d. ) and a fifth pin 701e.

일 실시예에 따르면, 상기 이어 커넥터(701) 내에 삽입되는 이어 폰 플러그가 4극 이어 폰 플러그인 경우, 상기 제1 핀(701a)은 4극 이어 플러그의 마이크 단자와 접촉할 수 있다. 상기 이어 커넥터 내에 이어폰 플러그가 삽입되는 경우, 전자 장치(예: 도 2의 전자 장치(200))는 상기 제1 핀(701a)을 통해 이어 폰에서 발생된 음을 입력 받을 수 있다.According to an embodiment, when the earphone plug inserted into the ear connector 701 is a 4-pole earphone plug-in, the first pin 701a may contact the microphone terminal of the 4-pole ear plug. When the earphone plug is inserted into the ear connector, the electronic device (eg, the electronic device 200 of FIG. 2 ) may receive the sound generated by the earphone through the first pin 701a.

일 실시예에 따르면, 상기 제2 핀(701b)은 상기 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. According to an embodiment, the second pin 701b may be connected to a ground terminal of the earphone plug when the earphone plug is inserted into the ear connector.

다른 실시예에 따르면, 상기 이어 커넥터(701) 내에 삽입되는 이어 폰 플러그가 3극 이어 폰 플러그인 경우, 상기 제1 핀(701a) 및 상기 제2 핀(701b)은 상기 3극 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. 이하에서는, 상기 이어 커넥터(701)를 4극 이어 커넥터로 가정하여 서술하도록 한다.According to another embodiment, when the earphone plug inserted into the ear connector 701 is a 3-pole earphone plug-in, the first pin 701a and the second pin 701b are the ground of the 3-pole earphone plug. terminal can be connected. Hereinafter, it is assumed that the ear connector 701 is a 4-pole ear connector.

일 실시예에 따르면, 상기 제3 핀(701c)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 왼쪽 단의 음이 이어 폰의 좌측 음향 단자를 통해 출력될 수 있도록, 상기 좌측 음향 단자와 연결될 수 있다. 상기 제4 핀(701d)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 오른쪽 단의 음이 이어 폰의 우측 음향 단자를 통해 출력될 수 있도록, 상기 우측 음향 단자와 연결될 수 있다. 상기 제3 핀(701c) 및 상기 제4 핀(701d)은 상기 이어 폰 플러그의 풀 다운(pull down) 저항 R3와 각각 연결될 수 있다. 상기 풀 다운 저항 R3는 상기 이어 커넥터 내에 삽입되는 플러그를 포함하는 외부 장치의 저항 값에 따라 변경될 수 있다.According to an embodiment, the third pin 701c is configured so that, when the earphone plug is inserted into the ear connector, the left end sound generated by the electronic device can be output through the left sound terminal of the earphone. It may be connected to the left sound terminal. The fourth pin 701d may be connected to the right sound terminal so that, when an earphone plug is inserted into the ear connector, the right end sound generated by the electronic device can be output through the right sound terminal of the earphone. have. The third pin 701c and the fourth pin 701d may be respectively connected to a pull down resistor R3 of the earphone plug. The pull-down resistor R3 may be changed according to a resistance value of an external device including a plug inserted into the ear connector.

일 실시예에 따르면, 상기 제5 핀(701e)은 제1 비교기(703)(예: 도 2의 제1 비교기(207))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결될 수 있고, 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 제2 비교기(705)(예: 도 2의 제2 비교기(209))와 연결될 수 있다. 상기 제5 핀(701e)은 상기 제1 전기적 경로와 제2 전기적 경로로 분기되기 전 지점에서 시리즈(series) 저항 R2 및 풀 업(pull up) 저항 R1과 연결될 수 있다. 상기 시리즈 저항 R2는 입력 신호의 전압 레벨 범위를 조절하기 위한 저항일 수 있다. 즉, 상기 제5 핀(701e), 제1 비교기 및 제2 비교기에는 상기 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다.According to an embodiment, the fifth pin 701e is connected to a first comparator 703 (eg, the first comparator 207 of FIG. 2 ) and a first electrical path (eg, the first electrical path 203 of FIG. 2 ). )), and a second comparator 705 (eg, in FIG. 2 ) through a second electrical path (eg, the second electrical path 205 in FIG. 2 ) branching at one point of the first electrical path. The second comparator 209) may be connected. The fifth pin 701e may be connected to a series resistor R2 and a pull-up resistor R1 at a point before branching into the first electrical path and the second electrical path. The series resistor R2 may be a resistor for adjusting the voltage level range of the input signal. That is, the pull-up voltage by the bias power may always be applied to the fifth pin 701e, the first comparator, and the second comparator.

일 실시예에 따르면, 상기 이어 커넥터 내에 외부 장치의 플러그가 삽입되는 경우, 기존에 입력되고 있는 풀 업 전압 상기 바이어스 전원과 연결된 저항 R1과 상기 외부 장치의 저항 값을 가지는 저항 R3와 상기 시리즈 저항 R2를 기반으로 전압 분배되어, 상기 풀 업 전압의 전압 레벨이 결정될 수 있다. 이하, 상기 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an exemplary embodiment, when a plug of an external device is inserted into the ear connector, a resistor R1 connected to the bias power source and a resistor R1 connected to the bias power supply that are previously inputted, a resistor R3 having a resistance value of the external device, and the series resistor R2 By dividing the voltage based on , the voltage level of the pull-up voltage may be determined. Hereinafter, the voltage-divided pull-up voltage is started as an input signal.

예를 들면, 상기 저항 R1의 값이 470k 옴으로 설정되고, 저항 R2의 값이 33k 옴으로 설정되어 있는 경우, 상기 이어 커넥터(701) 내에 저항 값이 12k 옴으로 설정되어 있는 오픈 케이블(open cable)의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 입력 신호의 전압 레벨이 0.157282V로 결정될 수 있다.For example, when the value of the resistor R1 is set to 470k ohm and the value of the resistor R2 is set to 33k ohm, the open cable in which the resistance value is set to 12k ohm in the ear connector 701 ) can be inserted. When the voltage of the bias power supply is 2.5V, a voltage of 2.5V is divided based on the resistance values set in the resistors R1, R2, and R3, so that the voltage level of the input signal is determined to be 0.157282V.

다른 예를 들어, 상기 이어 커넥터(701) 내에 수분이 유입되어, 상기 이어 커넥터(701) 내부의 저항들이 병렬 회로를 형성하는 경우, 상기 이어 커넥터(701) 내의 저항 값은 300k 옴으로 변경될 수 있다. 상기 수분이 유입된 상태의 이어 커넥터(401) 내에 12k 옴으로 설정되어 있는 오픈 케이블의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 입력 신호의 전압 레벨이 0.746451V로 결정될 수 있다.As another example, when moisture flows into the ear connector 701 and the resistances inside the ear connector 701 form a parallel circuit, the resistance value in the ear connector 701 may be changed to 300k ohms. have. An open cable plug set to 12k ohms may be inserted into the ear connector 401 in a state in which moisture is introduced. When the voltage of the bias power supply is 2.5V, a voltage of 2.5V is divided based on the resistance values set in the resistors R1, R2, and R3 so that the voltage level of the input signal is determined to be 0.746451V.

일 실시예에 따르면, 상기 제1 비교기(703) 및 상기 제2 비교기(705)는 상기 제5 핀(701e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 입력 신호를 각각 인가 받을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다.According to an embodiment, the first comparator 703 and the second comparator 705 may receive input signals through a first electrical path and a second electrical path connected to the fifth pin 701e, respectively. . The first comparator 703 may output a first output signal based on a first specified condition. The second comparator 705 may output a second output signal based on a second specified condition.

예를 들어, 상기 제1 비교기(703)는 제1 전기적 경로를 통해 전압 레벨이 0.157282V인 입력 신호를 인가 받을 수 있다. 상기 제1 전기적 경로는 상기 제1 비교기(703)의 -극과 연결되어 있을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건에 따른 기준 전압 0.9V가 +극을 통해 인가되는 경우, 하이 레벨의 제1 출력 신호를 출력할 수 있다. 또한, 상기 제2 비교기(705)는 제2 전기적 경로를 통해 전압 레벨이 0.157282V인 입력 신호를 인가 받을 수 있다. 상기 제2 전기적 경로는 상기 제2 비교기(705)의 -극과 연결되어 있을 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건에 따른 기준 전압 0.2V가 +극을 통해 인가되는 경우, 하이 레벨의 제2 출력 신호를 출력할 수 있다.For example, the first comparator 703 may receive an input signal having a voltage level of 0.157282V through a first electrical path. The first electrical path may be connected to the -pole of the first comparator 703 . The first comparator 703 may output a first output signal of a high level when the reference voltage 0.9V according to the first specified condition is applied through the + pole. Also, the second comparator 705 may receive an input signal having a voltage level of 0.157282V through a second electrical path. The second electrical path may be connected to the -pole of the second comparator 705 . The second comparator 705 may output a high level second output signal when the reference voltage 0.2V according to the second specified condition is applied through the + pole.

다른 예를 들어, 상기 제1 비교기(703)는 제1 전기적 경로를 통해 전압 레벨이 0.746451V인 입력 신호를 인가 받을 수 있다. 상기 제1 전기적 경로는 상기 제1 비교기(703)의 -극과 연결되어 있을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건에 따른 기준 전압 0.9V가 +극을 통해 인가되는 경우, 하이 레벨의 제1 출력 신호를 출력 할 수 있다. 또한, 상기 제2 비교기(705)는 제2 전기적 경로를 통해 전압 레벨이 0.746451V인 입력 신호를 인가 받을 수 있다. 상기 제2 전기적 경로는 상기 제2 비교기(705)의 -극과 연결되어 있을 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건에 따른 기준 전압 0.2V가 +극을 통해 인가되는 경우, 로우 레벨의 제2 출력 신호를 출력할 수 있다.As another example, the first comparator 703 may receive an input signal having a voltage level of 0.746451V through a first electrical path. The first electrical path may be connected to the -pole of the first comparator 703 . The first comparator 703 may output a first output signal of a high level when the reference voltage 0.9V according to the first specified condition is applied through the + pole. Also, the second comparator 705 may receive an input signal having a voltage level of 0.746451V through a second electrical path. The second electrical path may be connected to the -pole of the second comparator 705 . The second comparator 705 may output a second output signal of a low level when the reference voltage 0.2V according to the second specified condition is applied through the + pole.

일 실시예에 따르면, 게이트(707)는 상기 제1 출력 신호 및 상기 제2 출력 신호를 인가 받을 수 있다. 상기 게이트(707)는 상기 인가 받은 제1 출력 신호의 레벨 및 제2 출력 신호의 레벨을 기반으로, 제3 출력 신호를 출력할 수 있다. 상기 게이트(707)는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the gate 707 may receive the first output signal and the second output signal. The gate 707 may output a third output signal based on the applied level of the first output signal and the level of the second output signal. The gate 707 may be an AND gate.

예를 들어, 상기 게이트(707)가 상기 제1 비교기(703)로부터 하이 레벨의 제1 출력 신호 및 상기 제2 비교기(705)로부터 하이 레벨의 제2 출력 신호를 수신한 경우, 하이 레벨을 가지는 제3 출력 신호를 출력할 수 있다. 다른 예를 들어, 상기 게이트(707)는 상기 인가 받은 제1 출력 신호 및 제2 출력 신호에서 로우 레벨의 신호가 하나라도 존재하는 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.For example, when the gate 707 receives a high level first output signal from the first comparator 703 and a high level second output signal from the second comparator 705 , the gate 707 has a high level. A third output signal may be output. As another example, when at least one low-level signal exists in the applied first output signal and the second output signal, the gate 707 may output a low-level third output signal.

다른 실시예에 따르면, 상기 게이트(707)는 노 알 게이트(nor gate)일 수 있다. 예를 들어, 상기 노 알 게이트는 제1 지정된 조건에 따라 기준 전압이 -극을 통해 인가되는 제1 비교기(703)로부터 로우 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 노 알 게이트는 제2 지정된 조건에 따라 기준 전압이 -극을 통해 인가되는 제2 비교기(705)로부터 로우 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 노 알 게이트는 상기 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 로우 레벨인 경우, 하이 레벨을 가지는 제3 출력 신호를 출력할 수 있다. 다른 예를 들어, 상기 게이트(707)는 상기 인가 받은 제1 출력 신호 및 제2 출력 신호에서 하이 레벨의 신호가 하나라도 존재하는 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.According to another embodiment, the gate 707 may be a nor gate. For example, the NO-R gate may receive a low-level first output signal from the first comparator 703 to which a reference voltage is applied through a negative pole according to a first specified condition. Also, the NO-R gate may receive a low-level second output signal from the second comparator 705 to which a reference voltage is applied through a negative pole according to a second specified condition. The NO R gate may output a third output signal having a high level when the levels of the first output signal and the second output signal are low levels. As another example, the gate 707 may output a low-level third output signal when at least one high-level signal is present in the applied first output signal and the second output signal.

일 실시예에 따르면, 프로세서(709)는 인터럽트 단자를 통해 상기 게이트(707)로부터 출력된 제3 출력 신호를 수신할 수 있다. 상기 프로세서(709)는 상기 인가 받은 제3 출력 신호를 기반으로 상기 이어 커넥터(701)와 상기 외부 장치 간의 연결 상태를 확인할 수 있다.According to an embodiment, the processor 709 may receive the third output signal output from the gate 707 through an interrupt terminal. The processor 709 may check a connection state between the ear connector 701 and the external device based on the applied third output signal.

예를 들어, 상기 프로세서(709)는 수신한 제3 출력 신호의 레벨이 하이 레벨인 경우, 상기 이어 커넥터(701)와 상기 외부 장치의 플러그가 정상 연결 상태인 것을 확인할 수 있다. 다른 예를 들어, 상기 프로세서(709)는 인가 받은 제3 출력 신호의 레벨이 로우 레벨인 경우, 상기 이어 커넥터(701)와 상기 외부 장치의 플러그가 비정상 연결 상태인 것을 확인할 수 있다.For example, when the level of the received third output signal is a high level, the processor 709 may determine that the ear connector 701 and the plug of the external device are in a normal connection state. As another example, when the level of the applied third output signal is the low level, the processor 709 may determine that the ear connector 701 and the plug of the external device are in an abnormal connection state.

다른 실시예에 따르면, 상기 프로세서(709)는 상기 확인 결과를 상기 전자 장치의 디스플레이(미도시)를 통해 표시할 수 있다. According to another embodiment, the processor 709 may display the confirmation result through a display (not shown) of the electronic device.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A , B, or C" each may include any one of, or all possible combinations of, items listed together in the corresponding one of the phrases. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

Claims (20)

전자 장치에 있어서,
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및
상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서를 포함하는 전자 장치.
In an electronic device,
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path and a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal; and
It is electrically connected to the first comparator and the second comparator, and is connected to a plug of the earphone based on a first output signal output from the first comparator and a second output signal output from the second comparator An electronic device comprising a processor for determining a state.
제1항에 있어서,
상기 이어 커넥터는,
상기 이어 폰의 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.
According to claim 1,
The ear connector is
and five terminals connected to the plug of the earphone.
제1항에 있어서,
상기 프로세서는,
상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고,
상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단하는 전자 장치.
According to claim 1,
The processor is
detecting a change in the received first output signal to determine whether the earphone is connected to the electronic device;
An electronic device for detecting a change in the received second output signal to determine whether there is a foreign substance inside the ear connector.
제1 항에 있어서,
상기 제1 지정된 조건은,
상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보; 및
상기 제2 지정된 조건은,
상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보인 전자 장치.
According to claim 1,
The first specified condition is,
reference voltage information for determining whether the earphone plug is connected to the electronic device under the condition set in the first comparator; and
The second specified condition is,
The electronic device which is reference voltage information for determining the presence or absence of foreign substances inside the ear connector under the condition set in the second comparator.
제4항에 있어서,
상기 프로세서는,
상기 수신하는 제1 출력 신호의 전압 레벨이 상기 제1 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 폰의 플러그가 상기 전자 장치에 연결된 것으로 판단하고,
상기 수신하는 제2 출력 신호의 전압 레벨이 상기 제2 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 커넥터 내부에 이물질이 존재하지 않는 것으로 판단하는 전자 장치.
5. The method of claim 4,
The processor is
When the voltage level of the received first output signal is less than or equal to the reference voltage set under the first specified condition, it is determined that the plug of the earphone is connected to the electronic device,
When the voltage level of the received second output signal is equal to or less than the reference voltage set as the second specified condition, the electronic device determines that there is no foreign substance inside the ear connector.
제1항에 있어서,
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 어어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.
According to claim 1,
The sensing terminal is
An electronic device that is a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
제1항에 있어서,
상기 프로세서는,
제1 인터럽트 단자를 통해 상기 제1 출력 신호를 수신하고, 제2 인터럽트 단자를 통해 제2 출력 신호를 수신하는 전자 장치.
According to claim 1,
The processor is
An electronic device that receives the first output signal through a first interrupt terminal and receives a second output signal through a second interrupt terminal.
전자 장치에 있어서,
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기;
상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate); 및
상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서를 포함하는 전자 장치.
In an electronic device,
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path with a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal;
A gate connected to the first comparator and the second comparator for outputting a third output signal based on a first output signal output from the first comparator and a second output signal output from the second comparator ); and
and a processor configured to check a connection state with a plug of the earphone based on a third output signal output from the gate.
제8항에 있어서,
상기 프로세서는,
상기 게이트로부터 수신한 제3 출력 신호를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 정상 연결 상태인 제1 상태 및 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 비정상 연결 상태인 제2 상태 중 하나를 확인하는 전자 장치.
9. The method of claim 8,
The processor is
Based on the third output signal received from the gate, a first state in which the connection state between the earphone plug and the ear connector is a normal connection state, and a second state in which the connection state between the earphone plug and the ear connector is an abnormal connection state An electronic device that checks one of two states.
제8항에 있어서,
상기 이어 커넥터는,
상기 이어 폰 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.
9. The method of claim 8,
The ear connector is
and five terminals connected to the earphone plug.
제8항에 있어서,
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.
9. The method of claim 8,
The sensing terminal is
an electronic device that is a left-side detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
제8항에 있어서,
상기 게이트는,
앤드 게이트(AND gate)인 전자 장치.
9. The method of claim 8,
The gate is
An electronic device that is an AND gate.
제8항에 있어서,
디스플레이를 더 포함하고,
상기 프로세서는, 상기 디스플레이를 통해 상기 확인 결과를 출력하는 전자 장치.
9. The method of claim 8,
further comprising a display;
The processor is configured to output the confirmation result through the display.
제8항에 있어서,
상기 프로세서는,
상기 게이트로부터 인터럽트 단자를 통해 상기 제3 출력 신호를 수신하는 전자 장치.
9. The method of claim 8,
The processor is
The electronic device receives the third output signal from the gate through an interrupt terminal.
전자 장치에 있어서,
디스플레이;
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및
상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서를 포함하는 전자 장치.
In an electronic device,
display;
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path and a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal; and
It is connected to the display, the first comparator, and the second comparator, and based on a first output signal output from the first comparator and a second output signal output from the second comparator, and a processor for determining a connection state and outputting the determination result through the display.
제15항에 있어서,
상기 이어 커넥터는,
상기 이어 폰 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.
16. The method of claim 15,
The ear connector is
and five terminals connected to the earphone plug.
제15항에 있어서,
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.
16. The method of claim 15,
The sensing terminal is
an electronic device that is a left-side detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
제15항에 있어서,
상기 제1 지정된 조건은,
상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보; 및
상기 제2 지정된 조건은,
상기 제2 비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보인 전자 장치.
16. The method of claim 15,
The first specified condition is,
reference voltage information for determining whether the earphone plug is connected to the electronic device under the condition set in the first comparator; and
The second specified condition is,
The electronic device which is reference voltage information for determining whether there is a foreign substance inside the ear connector under the condition set in the second comparator.
제15 항에 있어서,
상기 프로세서는,
상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고,
상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단하는 전자 장치.
16. The method of claim 15,
The processor is
detecting a change in the received first output signal to determine whether the earphone is connected to the electronic device;
An electronic device for detecting a change in the received second output signal to determine whether there is a foreign substance inside the ear connector.
제19항에 있어서,
상기 프로세서는,
상기 판단한 이어폰의 연결 유무 및 상기 판단한 이어 커넥터 내부의 이물질 유무에 기반하여, 결정되는 네 개의 연결 상태 중 하나의 상태를 상기 디스플레이를 통해 출력하는 전자 장치.
20. The method of claim 19,
The processor is
The electronic device outputs, through the display, one of the four connection states determined based on the determined presence or absence of the earphone connection and the determined presence or absence of a foreign substance inside the ear connector.
KR1020200097002A 2020-08-03 2020-08-03 Method for determining whether an external device is connected, and an electronic device supporting the same KR20220016710A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200097002A KR20220016710A (en) 2020-08-03 2020-08-03 Method for determining whether an external device is connected, and an electronic device supporting the same
PCT/KR2021/009682 WO2022030847A1 (en) 2020-08-03 2021-07-27 Method for determining connection or not of external device, and electronic device supporting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200097002A KR20220016710A (en) 2020-08-03 2020-08-03 Method for determining whether an external device is connected, and an electronic device supporting the same

Publications (1)

Publication Number Publication Date
KR20220016710A true KR20220016710A (en) 2022-02-10

Family

ID=80117385

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200097002A KR20220016710A (en) 2020-08-03 2020-08-03 Method for determining whether an external device is connected, and an electronic device supporting the same

Country Status (2)

Country Link
KR (1) KR20220016710A (en)
WO (1) WO2022030847A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101900680B1 (en) * 2012-07-18 2018-11-08 삼성전자 주식회사 Ear-phone System and Ear-phone Device and Portable Device supporting the same
TWI520626B (en) * 2013-12-02 2016-02-01 緯創資通股份有限公司 Pin detecting circuit for microphone and pin detecting method thereof
KR20160052405A (en) * 2014-10-31 2016-05-12 페어차일드 세미컨덕터 코포레이션 Audio crosstalk calibration switch
KR102391940B1 (en) * 2015-06-24 2022-04-28 삼성전자 주식회사 Electronic apparatus and method for preventing misperception of ear phone inserting of the same
US10951973B2 (en) * 2017-03-09 2021-03-16 Huawei Technologies Co., Ltd. Headset, terminal, and control method

Also Published As

Publication number Publication date
WO2022030847A1 (en) 2022-02-10

Similar Documents

Publication Publication Date Title
US20230259188A1 (en) Electronic device comprising connector
KR20220054108A (en) Method and electronic device for providing fast charging
KR20200026583A (en) In and out port and electronic device including the same
KR20220016710A (en) Method for determining whether an external device is connected, and an electronic device supporting the same
KR20230016363A (en) Electronic device for controlling processing period of usage state information about battery and operating method thereof
KR20220019391A (en) Electronic device and method for controlling charging thereof
KR20220048827A (en) Method of requesting replacement of stylus pen tip and electronic device supporting the same
KR20220139606A (en) Electronic device for detecting an accessory
KR20200102256A (en) Electronic device including logic circuit for determining connecting state of connector
US20230350474A1 (en) Power supply circuit and electronic device comprising same
US20230420960A1 (en) Electronic device including battery pack, and operation method of electronic device
US20230420973A1 (en) Electronic device method for controlling charging current for multiple batteries based on sensing resistors
KR20220013110A (en) Electronic device, and method for measuring voltage of battery in electronic device
KR20220136725A (en) Electronic device for identifying connection of an external power source and method of operating the same
KR20230057668A (en) Electronic device, and method for protecting a battery in electronic device
KR20240000999A (en) Electronic device and method for controlling charging current for multiple batteries based on sensing resistor
KR20220124482A (en) Electronic device including circuit for identifying device and dentifying thereof
KR20220123994A (en) Electronic apparatus and method for controlling power supply of the same
KR20230052176A (en) Electronic device for controlling operation state using operational amplifier and method of operating the same
KR20220117670A (en) Electronic device and method for controlling the electronic device
KR20230018630A (en) Electronic device and operation method thereof
KR20230030733A (en) Electronic device comprising plural audio devices and controlling method of the same
KR20220152779A (en) Electronic device and method for updating of external electronic device using the same
KR20220124006A (en) Power supply device and method for controlling power supply of the same
KR20230035869A (en) An apparatus and method for performing matching between electronic devices