TWI669513B - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
TWI669513B
TWI669513B TW107124778A TW107124778A TWI669513B TW I669513 B TWI669513 B TW I669513B TW 107124778 A TW107124778 A TW 107124778A TW 107124778 A TW107124778 A TW 107124778A TW I669513 B TWI669513 B TW I669513B
Authority
TW
Taiwan
Prior art keywords
signal
earphone
connector
test signal
test
Prior art date
Application number
TW107124778A
Other languages
Chinese (zh)
Other versions
TW202006374A (en
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 TW107124778A priority Critical patent/TWI669513B/en
Application granted granted Critical
Publication of TWI669513B publication Critical patent/TWI669513B/en
Publication of TW202006374A publication Critical patent/TW202006374A/en

Links

Landscapes

  • Amplifiers (AREA)

Abstract

一種電子裝置,包括:一連接器、一偵測器、一音訊源、一信號產生器、一切換器、一放大器,以及一處理器。偵測器判斷一耳機是否耦接至連接器。信號產生器產生一測試信號,其中測試信號包括一交流部份和一直流部份,而直流部份係在交流部份之後產生。切換器係於音訊源和信號產生器之間作切換,其中當耳機剛開始耦接至連接器時,切換器選擇測試信號作為一輸入信號。放大器放大輸入信號,以產生一放大信號,其中放大信號係傳送至連接器和耳機,使得耳機根據放大信號來產生一回饋信號。處理器係根據回饋信號來計算出耳機之一阻抗值。 An electronic device includes: a connector, a detector, an audio source, a signal generator, a switch, an amplifier, and a processor. The detector determines whether a headset is coupled to the connector. The signal generator generates a test signal, wherein the test signal includes an AC portion and a DC portion, and the DC portion is generated after the AC portion. The switch is switched between the audio source and the signal generator, wherein the switch selects the test signal as an input signal when the earphone is initially coupled to the connector. The amplifier amplifies the input signal to generate an amplified signal, wherein the amplified signal is transmitted to the connector and the earphone such that the earphone generates a feedback signal based on the amplified signal. The processor calculates an impedance value of one of the earphones based on the feedback signal.

Description

電子裝置及其控制方法 Electronic device and control method thereof

本發明係關於一種電子裝置(Electronic Device),特別係關於一種可偵測耳機(Earphone)之阻抗值(Impedance Value)之電子裝置。 The present invention relates to an electronic device, and more particularly to an electronic device capable of detecting an impedance value of an earphone.

在傳統設計中,當一外接耳機(Earphone)耦接至一系統端時,系統端通常會傳送一直流(Direct Current,DC)測試信號至此耳機,以估計耳機之阻抗值(Impedance Value)。然而,純粹之直流測試信號可能導致配戴耳機之使用者聽到較大之一雜訊聲響(例如:「啵」一聲)。有鑑於此,勢必要提出一種全新之解決方案,以克服先前技術所面臨之問題。 In the traditional design, when an external earphone (Earphone) is coupled to a system end, the system end usually transmits a direct current (DC) test signal to the earphone to estimate the impedance value of the earphone (Impedance Value). However, a pure DC test signal may cause the user wearing the headset to hear a larger noise (for example, "click"). In view of this, it is necessary to propose a new solution to overcome the problems faced by the prior art.

在較佳實施例中,本發明提供一種電子裝置,用於偵測一耳機之阻抗值,並包括:一連接器;一偵測器,判斷該耳機是否耦接至該連接器;一音訊源,產生一聲音信號;一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;一放大器,放大該輸入信號,以產生一放大信號, 其中該放大信號係傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及一處理器,根據該回饋信號來計算出該耳機之該阻抗值。 In an embodiment, the present invention provides an electronic device for detecting an impedance value of an earphone, and includes: a connector; a detector for determining whether the earphone is coupled to the connector; an audio source Generating a sound signal; a signal generator generating a test signal, wherein the test signal includes an alternating current portion and a direct current portion, and the direct current portion is generated after the alternating current portion; a switcher Switching between the audio source and the signal generator, wherein when the earphone is initially coupled to the connector, the switch selects the test signal as an input signal; an amplifier amplifies the input signal to generate a Amplify the signal, The amplified signal is transmitted to the connector and the earphone, so that the earphone generates a feedback signal according to the amplified signal; and a processor calculates the impedance value of the earphone according to the feedback signal.

在一些實施例中,該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz。 In some embodiments, the alternating portion of the test signal is a sine wave and the frequency of the sine wave is greater than 20 kHz.

在一些實施例中,該測試信號之該交流部份之總時間長度為該正弦波之週期長度之至少5倍。 In some embodiments, the total length of time of the alternating portion of the test signal is at least 5 times the period length of the sine wave.

在一些實施例中,該測試信號之該直流部份之電位位準等於該正弦波之最高電位位準。 In some embodiments, the potential level of the DC portion of the test signal is equal to the highest potential level of the sine wave.

在一些實施例中,在該處理器計算出該耳機之該阻抗值之後,該處理器根據該耳機之該阻抗值來調整該放大器之一增益倍率,而該切換器更新並選擇該聲音信號作為該輸入信號。 In some embodiments, after the processor calculates the impedance value of the earphone, the processor adjusts a gain ratio of the amplifier according to the impedance value of the earphone, and the switch updates and selects the sound signal as The input signal.

在另一較佳實施例中,本發明提供一種控制方法,包括下列步驟:藉由一偵測器,判斷一耳機是否耦接至一電子裝置之一連接器;藉由一音訊源,產生一聲音信號;藉由一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;藉由一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;藉由一放大器,放大該輸入信號,以產生一放大信號;將該放大信號傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及藉由一處理器,根據該回饋信號來計算出該耳機之該阻抗值。 In another preferred embodiment, the present invention provides a control method, including the following steps: determining, by a detector, whether an earphone is coupled to a connector of an electronic device; generating an image by using an audio source a sound signal; a test signal is generated by a signal generator, wherein the test signal includes an alternating current portion and a direct current portion, and the direct current portion is generated after the alternating current portion; by a switcher, Switching between the audio source and the signal generator, wherein when the earphone is initially coupled to the connector, the switch selects the test signal as an input signal; and the input signal is amplified by an amplifier, Generating an amplified signal; transmitting the amplified signal to the connector and the earphone, such that the earphone generates a feedback signal according to the amplified signal; and calculating, by the processor, the earphone according to the feedback signal Impedance value.

在一些實施例中,該控制方法更包括:在該處理器計算出該耳機之該阻抗值之後,藉由該處理器,根據該阻抗值來調整該放大器之一增益倍率;以及藉由該切換器,更新並選擇該聲音信號作為該輸入信號。 In some embodiments, the controlling method further includes: after the processor calculates the impedance value of the earphone, adjusting, by the processor, a gain ratio of the amplifier according to the impedance value; and by using the switching The sound signal is updated and selected as the input signal.

100‧‧‧電子裝置 100‧‧‧Electronic devices

110‧‧‧連接器 110‧‧‧Connector

120‧‧‧偵測器 120‧‧‧Detector

130‧‧‧音訊源 130‧‧‧ audio source

140‧‧‧信號產生器 140‧‧‧Signal Generator

150‧‧‧切換器 150‧‧‧Switch

160‧‧‧放大器 160‧‧‧Amplifier

170‧‧‧處理器 170‧‧‧ processor

190‧‧‧耳機 190‧‧‧ headphone

210‧‧‧測試信號之交流部份 210‧‧‧Communication part of the test signal

215‧‧‧正弦波 215‧‧‧Sine wave

220‧‧‧測試信號之直流部份 220‧‧‧ DC part of the test signal

DC‧‧‧測試信號之直流部份之電位位準 DC‧‧‧ potential level of the DC part of the test signal

L1‧‧‧電感器 L1‧‧‧Inductors

MAX‧‧‧正弦波之最高電位位準 The highest potential level of the MAX‧‧‧ sine wave

K‧‧‧放大倍率 K‧‧‧Magnification

R1‧‧‧電阻器 R1‧‧‧Resistors

SA‧‧‧放大信號 SA‧‧‧Amplified signal

SF‧‧‧回饋信號 SF‧‧‧ feedback signal

SI‧‧‧輸入信號 SI‧‧‧ input signal

SS‧‧‧聲音信號 SS‧‧‧Sound signal

ST‧‧‧測試信號 ST‧‧‧ test signal

T‧‧‧週期長度 T‧‧‧ cycle length

TL‧‧‧總時間長度 TL‧‧‧ total length of time

VSS‧‧‧接地電位 VSS‧‧‧ Ground potential

Z‧‧‧阻抗值 Z‧‧‧ impedance value

第1圖係顯示根據本發明一實施例所述之電子裝置和耳機之示意圖。 1 is a schematic view showing an electronic device and an earphone according to an embodiment of the invention.

第2圖係顯示根據本發明一實施例所述之測試信號之波形圖。 2 is a waveform diagram showing test signals according to an embodiment of the present invention.

第3圖係顯示根據本發明一實施例所述之耳機之等效電路圖。 Figure 3 is a diagram showing an equivalent circuit diagram of a headphone according to an embodiment of the present invention.

第4圖係顯示根據本發明一實施例所述之控制方法之流程圖。 Figure 4 is a flow chart showing a control method according to an embodiment of the present invention.

第5圖係顯示根據本發明另一實施例所述之控制方法之流程圖。 Figure 5 is a flow chart showing a control method according to another embodiment of the present invention.

為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出本發明之具體實施例,並配合所附圖式,作詳細說明如下。 In order to make the objects, features and advantages of the present invention more comprehensible, the specific embodiments of the invention are set forth in the accompanying drawings.

在說明書及申請專利範圍當中使用了某些詞彙來指稱特定的元件。本領域技術人員應可理解,硬體製造商可能會用不同的名詞來稱呼同一個元件。本說明書及申請專利範圍並不以名稱的差異來作為區分元件的方式,而是以元件在功能 上的差異來作為區分的準則。在通篇說明書及申請專利範圍當中所提及的「包含」及「包括」一詞為開放式的用語,故應解釋成「包含但不僅限定於」。「大致」一詞則是指在可接受的誤差範圍內,本領域技術人員能夠在一定誤差範圍內解決所述技術問題,達到所述基本之技術效果。此外,「耦接」一詞在本說明書中包含任何直接及間接的電性連接手段。因此,若文中描述一第一裝置耦接至一第二裝置,則代表該第一裝置可直接電性連接至該第二裝置,或經由其它裝置或連接手段而間接地電性連接至該第二裝置。 Certain terms are used throughout the description and claims to refer to particular elements. Those skilled in the art will appreciate that a hardware manufacturer may refer to the same component by a different noun. This specification and the scope of patent application do not use the difference in name as the means of distinguishing components, but the function of components. The difference is used as a criterion for differentiation. The words "including" and "including" as used throughout the specification and patent application are open-ended terms and should be interpreted as "including but not limited to". The term "substantially" means that within the acceptable error range, those skilled in the art will be able to solve the technical problems within a certain error range to achieve the basic technical effects. In addition, the term "coupled" is used in this specification to include any direct and indirect electrical connection means. Therefore, if a first device is coupled to a second device, the first device can be directly electrically connected to the second device, or indirectly connected to the second device via other devices or connection means. Two devices.

第1圖係顯示根據本發明一實施例所述之電子裝置(Electronic Device)100和耳機(Earphone)190之示意圖。耳機190可以選擇性地耦接至電子裝置100,其可視為電子裝置100之一外接裝置(External Device)。電子裝置100和耳機190之型態和種類在本發明中並不特別限制。舉例而言,電子裝置100可以是一智慧型手機(Smart Phone)、一平板電腦(Tablet Computer)、一桌上型電腦(Desktop Computer),或是一筆記型電腦(Notebook Computer),而耳機190可以是一有線耳機或是一無線藍牙(Bluetooth)耳機。 1 is a schematic diagram showing an electronic device 100 and an earphone 190 according to an embodiment of the invention. The earphone 190 can be selectively coupled to the electronic device 100, which can be regarded as an external device of the electronic device 100. The types and types of the electronic device 100 and the earphone 190 are not particularly limited in the present invention. For example, the electronic device 100 can be a smart phone, a tablet computer, a desktop computer, or a notebook computer, and the headset 190 It can be a wired headset or a wireless Bluetooth headset.

如第1圖所示,電子裝置100包括:一連接器(Connector)110、一偵測器(Detector)120、一音訊源(Audio Source)130、一信號產生器(Signal Generator)140、一切換器(Switch Element)150、一放大器(Amplifier)160,以及一處理器(Processor)170。必須理解的是,雖然未顯示於第1圖中,但電子裝置100更可包括其他元件,例如:一電池模組(Battery Module)、一顯示器(Display Device)、一觸控模組(Touch Control Module)、一揚聲器(Speaker),或(且)一外殼(Housing)。 As shown in FIG. 1 , the electronic device 100 includes a connector 110 , a detector 120 , an audio source 130 , a signal generator 140 , and a switch . A Switch Element 150, an Amplifier 160, and a Processor 170. It should be understood that although not shown in FIG. 1 , the electronic device 100 may further include other components, such as: a battery module (Battery) Module), a Display Device, a Touch Control Module, a Speaker, or a Housing.

電子裝置100可用於偵測耳機190之阻抗值(Impedance Value)Z。連接器110可以是電子裝置100之一耳機插孔(Earphone Jack)。偵測器120係耦接至連接器110,並可分析來自連接器110之信號。詳細而言,偵測器120可用於判斷耳機190是否耦接至連接器110,以及耳機190何時耦接至連接器110。例如,當耳機190剛開始耦接至連接器110時(或當耳機190剛開始插入至耳機插孔時),偵測器120可產生一裝置存在信號,以通知電子裝置100之其他元件,目前有耳機190存在之情況。 The electronic device 100 can be used to detect the Impedance Value Z of the earphone 190. The connector 110 may be one of the earphone jacks of the electronic device 100. The detector 120 is coupled to the connector 110 and can analyze signals from the connector 110. In detail, the detector 120 can be used to determine whether the earphone 190 is coupled to the connector 110 and when the earphone 190 is coupled to the connector 110. For example, when the earphone 190 is initially coupled to the connector 110 (or when the earphone 190 is initially inserted into the earphone jack), the detector 120 can generate a device presence signal to notify other components of the electronic device 100, currently There are cases where the earphone 190 is present.

音訊源130係用於產生一聲音信號SS。例如,聲音信號SS可包括一音樂信號、一語音信號,或是此二者之混合信號。信號產生器140係用於產生一測試信號ST。第2圖係顯示根據本發明一實施例所述之測試信號ST之波形圖。如第2圖所示,測試信號ST包括一交流(Alternating Current,AC)部份210和一直流(Direct Current,DC)部份220,其中直流部份220係在交流部份210之後才產生。測試信號ST之此種交流和直流組成有助於抑制耳機190耦接至連接器110且進行阻抗測試時所產生之雜訊聲響。 The audio source 130 is for generating a sound signal SS. For example, the sound signal SS may include a music signal, a voice signal, or a mixed signal of the two. The signal generator 140 is for generating a test signal ST. 2 is a waveform diagram showing a test signal ST according to an embodiment of the present invention. As shown in FIG. 2, the test signal ST includes an alternating current (AC) portion 210 and a direct current (DC) portion 220, wherein the direct current portion 220 is generated after the alternating current portion 210. Such alternating current and direct current components of the test signal ST help to suppress the noise of the noise generated when the earphone 190 is coupled to the connector 110 and subjected to impedance testing.

切換器150可於音訊源130和信號產生器140之間作切換,以將音訊源130或信號產生器140兩者擇一耦接至放大器160。例如,切換器150可以是一單刀雙擲開關(Single Pole Double Throw(SPDT)Switch)。當耳機190剛開始耦接至連接器 110時,切換器150可選擇信號產生器140之測試信號ST作為放大器160之一輸入信號SI。放大器160可將輸入信號SI放大一增益倍率K,以產生一放大信號SA。接著,放大信號SA(亦即,放大後之測試信號ST)更可被傳送至連接器110和耳機190,使得耳機190可根據放大信號SA來產生一回饋信號(Feedback Signal)SF。例如,回饋信號SF可包括當放大信號SA施加於耳機190時由耳機190處所回傳之一電壓值和一電流值。然後,回饋信號SF可由連接器110所接收,而處理器170可再根據此回饋信號SF來計算出耳機190之阻抗值Z。舉例而言,耳機190之阻抗值Z可以正比於前述電壓值和前述電流值兩者之比值。 The switch 150 can switch between the audio source 130 and the signal generator 140 to selectively couple the audio source 130 or the signal generator 140 to the amplifier 160. For example, the switch 150 can be a Single Pole Double Throw (SPDT) Switch. When the earphone 190 is initially coupled to the connector At 110 o'clock, the switch 150 can select the test signal ST of the signal generator 140 as one of the input signals SI of the amplifier 160. The amplifier 160 amplifies the input signal SI by a gain factor K to generate an amplified signal SA. Then, the amplified signal SA (that is, the amplified test signal ST) can be further transmitted to the connector 110 and the earphone 190, so that the earphone 190 can generate a feedback signal SF according to the amplified signal SA. For example, the feedback signal SF may include a voltage value and a current value returned by the earphone 190 when the amplified signal SA is applied to the earphone 190. Then, the feedback signal SF can be received by the connector 110, and the processor 170 can further calculate the impedance value Z of the earphone 190 according to the feedback signal SF. For example, the impedance value Z of the earphone 190 can be proportional to the ratio of the aforementioned voltage value to the aforementioned current value.

請再次參考第2圖。詳細而言,測試信號ST之交流部份210可為一正弦波(Sine Wave)215,其中此正弦波215之頻率(Frequency)可大於20kHz,例如:30kHz或40kHz。測試信號ST之交流部份210之總時間長度TL可為正弦波215之週期長度T之至少5倍以上。測試信號ST之直流部份220之電位位準DC可等於正弦波215之最高電位位準MAX。換言之,測試信號ST之前述參數設定可如下列方程式(1)至(4)所述: Please refer to Figure 2 again. In detail, the AC portion 210 of the test signal ST can be a sine wave (Sine Wave) 215, wherein the frequency of the sine wave 215 can be greater than 20 kHz, for example, 30 kHz or 40 kHz. The total length of time TL of the alternating current portion 210 of the test signal ST may be at least 5 times greater than the period length T of the sine wave 215. The potential level DC of the DC portion 220 of the test signal ST can be equal to the highest potential level MAX of the sine wave 215. In other words, the aforementioned parameter setting of the test signal ST can be as described in the following equations (1) to (4):

DC=MAX...................................................(4)其中「F」代表正弦波215之頻率,「T」代表正弦波215之週期長度T,「TL」代表測試信號ST之交流部份210之總時間長度TL,「DC」代表測試信號ST之直流部份220之電位位準DC,而 「MAX」代表正弦波215之最高電位位準MAX。 DC=MAX.................................................. .... (4) where "F" represents the frequency of the sine wave 215, "T" represents the period length T of the sine wave 215, and "TL" represents the total time length TL of the AC portion 210 of the test signal ST, "DC" Represents the potential level DC of the DC portion 220 of the test signal ST, "MAX" represents the highest potential level MAX of the sine wave 215.

一般而言,耳機190插入電子裝置100時所產生之巨大雜訊聲響係導因於施加在耳機190上之直流測試信號。為抑制此雜訊,本發明提出使用包括交流部份210和直流部份220之測試信號ST來取代一般傳統之直流測試信號。由於測試信號ST之交流部份210之頻率較高(例如:大於20kHz),其將不會被人類之耳朵所察覺。另外,在一段適當時間期滿後(例如:在正弦波215之週期長度T之5倍之後),測試信號ST之交流部份210將轉變為直流部份220,以測試耳機190之阻抗值Z。此時,關於耳機190之電壓值和電流值皆已趨於穩態(Steady State),故耳機190不易再產生雜訊。第3圖係顯示根據本發明一實施例所述之耳機190之等效電路圖。如第3圖所示,耳機190可模擬為一電感器(Inductor)L1和一電阻器(Resistor)之組合,其係與接地電位VSS互相串聯。初始時,耳機190之電感器L1之暫態電流(Transient Current)可能會導致雜訊聲響,但此暫態電流於交流部份210之總時間長度TL過後將會自然消失。因此,本發明之設計可有效消除耳機190在進行阻抗測試時所產生之非理想雜訊聲響。 In general, the large noise sound generated when the earphone 190 is inserted into the electronic device 100 is caused by the DC test signal applied to the earphone 190. To suppress this noise, the present invention proposes to replace the conventional conventional DC test signal with a test signal ST comprising an AC portion 210 and a DC portion 220. Since the frequency of the alternating portion 210 of the test signal ST is relatively high (eg, greater than 20 kHz), it will not be perceived by the human ear. In addition, after expiration of a suitable period of time (eg, after 5 times the period length T of the sine wave 215), the AC portion 210 of the test signal ST will be converted to the DC portion 220 to test the impedance value Z of the headphone 190. . At this time, regarding the voltage value and the current value of the earphone 190, the Steady State has been tended to be stable, so that the headphone 190 is less likely to generate noise. 3 is an equivalent circuit diagram showing an earphone 190 according to an embodiment of the present invention. As shown in FIG. 3, the earphone 190 can be analogized as a combination of an inductor (L1) and a resistor (Resistor) which are connected in series with the ground potential VSS. Initially, the transient current (Transient Current) of the inductor L1 of the earphone 190 may cause noise, but the transient current will naturally disappear after the total length of time TL of the AC portion 210. Therefore, the design of the present invention can effectively eliminate the non-ideal noise generated by the earphone 190 when performing impedance testing.

在一些實施例中,切換器150可與放大器160互相結合,以形成一多輸入單輸出放大器(Multi-Input and Single-Output Amplifier);在另一些實施例中,偵測器120或(且)信號產生器140可與處理器170互相結合,以形成一複合式處理器(Compound Processor),此二者皆不致影響本發明之效果。 In some embodiments, the switch 150 can be combined with the amplifier 160 to form a Multi-Input and Single-Output Amplifier; in other embodiments, the detector 120 or (and) The signal generator 140 can be combined with the processor 170 to form a compound processor, neither of which affects the effects of the present invention.

在處理器170計算出耳機190之阻抗值Z之後,處理 器170更可根據耳機190之阻抗值Z來調整放大器160之增益倍率K。例如,若耳機190之阻抗值Z變大,則放大器160之增益倍率K將變大;反之,若耳機190之阻抗值Z變小,則放大器160之增益倍率K將變小。在放大器160之增益倍率K微調完畢後,關於耳機190之阻抗測試程序已全部完成,此時耳機190可進行正常操作。例如,切換器150可根據來自處理器170之指令,切換至音訊源130並重新選擇聲音信號SS作為放大器160之輸入信號SI,是以配戴耳機190之一使用者可聽到更新後之放大信號SA(亦即,放大後之聲音信號SS,而非放大後之測試信號ST)。 After the processor 170 calculates the impedance value Z of the earphone 190, the processing The controller 170 can further adjust the gain magnification K of the amplifier 160 according to the impedance value Z of the earphone 190. For example, if the impedance value Z of the earphone 190 becomes larger, the gain magnification K of the amplifier 160 becomes larger; conversely, if the impedance value Z of the earphone 190 becomes smaller, the gain magnification K of the amplifier 160 becomes smaller. After the fine adjustment of the gain magnification K of the amplifier 160 is completed, the impedance test procedure for the earphone 190 has all been completed, and the earphone 190 can perform normal operation. For example, the switch 150 can switch to the audio source 130 and reselect the sound signal SS as the input signal SI of the amplifier 160 according to an instruction from the processor 170, so that the user can hear the updated amplified signal by wearing the earphone 190. SA (ie, the amplified sound signal SS, not the amplified test signal ST).

第4圖係顯示根據本發明一實施例所述之控制方法之流程圖。此控制方法可適用於前述之電子裝置100。首先,在步驟S410,藉由一偵測器120,判斷一耳機190是否耦接至電子裝置100之一連接器110。若否,則程序又回到步驟S410。若是,在步驟S420,藉由一音訊源130,產生一聲音信號SS。然後,在步驟S430,藉由一信號產生器140,產生一測試信號ST,其中測試信號ST包括一交流部份210和一直流部份220,而直流部份220係在交流部份210之後產生。在步驟S440,藉由一切換器150,於音訊源130和信號產生器140之間作切換,其中當耳機190剛開始耦接至連接器110時,切換器150選擇測試信號ST作為一輸入信號SI。在步驟S450,藉由一放大器160,放大輸入信號SI,以產生一放大信號SA。在步驟S460,將放大信號SA傳送至連接器110和耳機190,使得耳機190根據放大信號SA來產生一回饋信號SF。最後,在步驟S470,藉由一處理器170, 根據回饋信號SF來計算出耳機190之阻抗值Z。必須注意的是,以上步驟無須依次序執行,且第1-3圖之電子裝置100之任一特徵皆可套用至第4圖之控制方法當中。 Figure 4 is a flow chart showing a control method according to an embodiment of the present invention. This control method can be applied to the aforementioned electronic device 100. First, in step S410, it is determined by a detector 120 whether an earphone 190 is coupled to one of the connectors 110 of the electronic device 100. If not, the program returns to step S410. If so, in step S420, a sound signal SS is generated by an audio source 130. Then, in step S430, a test signal ST is generated by a signal generator 140, wherein the test signal ST includes an AC portion 210 and a DC portion 220, and the DC portion 220 is generated after the AC portion 210. . In step S440, a switch 150 is used to switch between the audio source 130 and the signal generator 140. When the earphone 190 is initially coupled to the connector 110, the switch 150 selects the test signal ST as an input signal. SI. In step S450, the input signal SI is amplified by an amplifier 160 to generate an amplified signal SA. At step S460, the amplified signal SA is transmitted to the connector 110 and the earphone 190 such that the earphone 190 generates a feedback signal SF based on the amplified signal SA. Finally, in step S470, by a processor 170, The impedance value Z of the earphone 190 is calculated based on the feedback signal SF. It should be noted that the above steps need not be sequentially performed, and any of the features of the electronic device 100 of FIGS. 1-3 can be applied to the control method of FIG.

第5圖係顯示根據本發明另一實施例所述之控制方法之流程圖。第5圖和第4圖相似。在第5圖之實施例中,控制方法更包括另一步驟S480。亦即,在處理器170計算出耳機190之阻抗值Z之後,再藉由處理器170,根據耳機190之阻抗值Z來調整放大器160之一增益倍率K,並藉由切換器150,更新並重新選擇聲音信號SS作為放大器160之輸入信號SI。 Figure 5 is a flow chart showing a control method according to another embodiment of the present invention. Figure 5 is similar to Figure 4. In the embodiment of FIG. 5, the control method further includes another step S480. That is, after the processor 170 calculates the impedance value Z of the earphone 190, the processor 170 adjusts the gain magnification K of the amplifier 160 according to the impedance value Z of the earphone 190, and updates the switch 150 by the switch 150. The sound signal SS is reselected as the input signal SI of the amplifier 160.

本發明提出一種新穎之電子裝置。藉由使用包括交流部份和直流信號之測試信號,耳機耦接至電子裝置並進行阻抗測試時所產生之雜訊聲響可被有效地消除。相較於傳統技術,本發明至少具有低成本、低複雜度,以及較佳之使用者經驗等優勢,故其很適合應於各種各式之電子裝置當中。 The present invention proposes a novel electronic device. By using a test signal including an alternating current portion and a direct current signal, the noise generated by the earphone coupled to the electronic device and performing the impedance test can be effectively eliminated. Compared with the conventional technology, the present invention has at least the advantages of low cost, low complexity, and better user experience, so it is suitable for various electronic devices.

值得注意的是,以上所述之元件參數皆非為本發明之限制條件。設計者可以根據不同需要調整這些設定值。本發明之電子裝置和控制方法並不僅限於第1-5圖所圖示之狀態。本發明可以僅包括第1-5圖之任何一或複數個實施例之任何一或複數項特徵。換言之,並非所有圖示之特徵均須同時實施於本發明之電子裝置和控制方法當中。 It should be noted that the above-mentioned component parameters are not the limitations of the present invention. Designers can adjust these settings to suit different needs. The electronic device and control method of the present invention are not limited to the state illustrated in Figures 1-5. The present invention may include only any one or more of the features of any one or a plurality of embodiments of Figures 1-5. In other words, not all illustrated features must be implemented simultaneously in the electronic device and control method of the present invention.

在本說明書以及申請專利範圍中的序數,例如「第一」、「第二」、「第三」等等,彼此之間並沒有順序上的先後關係,其僅用於標示區分兩個具有相同名字之不同元件。 The ordinal numbers in this specification and the scope of the patent application, such as "first", "second", "third", etc., have no sequential relationship with each other, and are only used to indicate that two are identical. Different components of the name.

本發明雖以較佳實施例揭露如上,然其並非用以 限定本發明的範圍,任何熟習此項技藝者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed above in the preferred embodiment, it is not The scope of the present invention is defined by those skilled in the art, and modifications and modifications may be made without departing from the spirit and scope of the invention, and the scope of the invention is defined by the scope of the appended claims. Prevail.

Claims (4)

一種電子裝置,用於偵測一耳機之阻抗值,並包括:一連接器;一偵測器,判斷該耳機是否耦接至該連接器;一音訊源,產生一聲音信號;一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;一放大器,放大該輸入信號,以產生一放大信號,其中該放大信號係傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及一處理器,根據該回饋信號來計算出該耳機之該阻抗值;其中該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz;其中該測試信號之該交流部份之總時間長度為該正弦波之週期長度之至少5倍;其中該測試信號之該直流部份之電位位準等於該正弦波之最高電位位準。 An electronic device for detecting an impedance value of an earphone, and comprising: a connector; a detector for determining whether the earphone is coupled to the connector; an audio source for generating a sound signal; and a signal generator Generating a test signal, wherein the test signal includes an alternating current portion and a direct current portion, and the direct current portion is generated after the alternating current portion; a switch between the audio source and the signal generator Switching, wherein when the earphone is initially coupled to the connector, the switch selects the test signal as an input signal; an amplifier amplifies the input signal to generate an amplified signal, wherein the amplified signal is transmitted to The connector and the earphone enable the earphone to generate a feedback signal according to the amplified signal; and a processor to calculate the impedance value of the earphone according to the feedback signal; wherein the alternating portion of the test signal is a a sine wave having a frequency greater than 20 kHz; wherein the total length of the alternating portion of the test signal is at least 5 times the period length of the sine wave; The DC potential of the bit portion of the test signal is equal to the highest potential of the quasi-sine wave to the level. 如申請專利範圍第1項所述之電子裝置,其中在該處理器計算出該耳機之該阻抗值之後,該處理器根據該耳機之該阻抗值來調整該放大器之一增益倍率,而該切換器更新並選 擇該聲音信號作為該輸入信號。 The electronic device of claim 1, wherein after the processor calculates the impedance value of the earphone, the processor adjusts a gain ratio of the amplifier according to the impedance value of the earphone, and the switching Update and select The sound signal is selected as the input signal. 一種控制方法,包括下列步驟:藉由一偵測器,判斷一耳機是否耦接至一電子裝置之一連接器;藉由一音訊源,產生一聲音信號;藉由一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;藉由一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;藉由一放大器,放大該輸入信號,以產生一放大信號;將該放大信號傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及藉由一處理器,根據該回饋信號來計算出該耳機之該阻抗值;其中該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz;其中該測試信號之該交流部份之總時間長度為該正弦波之週期長度之至少5倍;其中該測試信號之該直流部份之電位位準等於該正弦波之最高電位位準。 A control method includes the following steps: determining, by a detector, whether a headset is coupled to a connector of an electronic device; generating an audio signal by using an audio source; and generating a signal by using a signal generator a test signal, wherein the test signal includes an AC portion and a DC portion, and the DC portion is generated after the AC portion; and a switch is used between the audio source and the signal generator Switching, wherein when the earphone is initially coupled to the connector, the switch selects the test signal as an input signal; and the input signal is amplified by an amplifier to generate an amplified signal; the amplified signal is transmitted to The connector and the earphone enable the earphone to generate a feedback signal according to the amplified signal; and calculate, by the processor, the impedance value of the earphone according to the feedback signal; wherein the alternating portion of the test signal Is a sine wave, and the frequency of the sine wave is greater than 20 kHz; wherein the total length of the alternating portion of the test signal is at least 5 times the period length of the sine wave Wherein the test portion of the DC voltage signal is equal to the quasi-sine wave of the highest potential level. 如申請專利範圍第3項所述之控制方法,更包括:在該處理器計算出該耳機之該阻抗值之後,藉由該處理器, 根據該阻抗值來調整該放大器之一增益倍率;以及藉由該切換器,更新並選擇該聲音信號作為該輸入信號。 The control method of claim 3, further comprising: after the processor calculates the impedance value of the earphone, by using the processor, Adjusting a gain ratio of one of the amplifiers according to the impedance value; and updating, by the switch, the sound signal as the input signal.
TW107124778A 2018-07-18 2018-07-18 Electronic device and control method thereof TWI669513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107124778A TWI669513B (en) 2018-07-18 2018-07-18 Electronic device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107124778A TWI669513B (en) 2018-07-18 2018-07-18 Electronic device and control method thereof

Publications (2)

Publication Number Publication Date
TWI669513B true TWI669513B (en) 2019-08-21
TW202006374A TW202006374A (en) 2020-02-01

Family

ID=68316327

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107124778A TWI669513B (en) 2018-07-18 2018-07-18 Electronic device and control method thereof

Country Status (1)

Country Link
TW (1) TWI669513B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003616A1 (en) * 2012-07-02 2014-01-02 Timothy M. Johnson Headset Impedance Detection
TW201518739A (en) * 2013-11-01 2015-05-16 Realtek Semiconductor Corp Impedance detecting device and method
CN104837102A (en) * 2014-02-11 2015-08-12 联发科技股份有限公司 Method and electronic device for headphone speaker impedance detection
CN204613303U (en) * 2015-06-02 2015-09-02 刘俊杰 A kind of small-sized electric impedance analyzer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003616A1 (en) * 2012-07-02 2014-01-02 Timothy M. Johnson Headset Impedance Detection
TW201518739A (en) * 2013-11-01 2015-05-16 Realtek Semiconductor Corp Impedance detecting device and method
CN104837102A (en) * 2014-02-11 2015-08-12 联发科技股份有限公司 Method and electronic device for headphone speaker impedance detection
US9794669B2 (en) * 2014-02-11 2017-10-17 Mediatek Inc. Devices and methods for headphone speaker impedance detection
CN204613303U (en) * 2015-06-02 2015-09-02 刘俊杰 A kind of small-sized electric impedance analyzer

Also Published As

Publication number Publication date
TW202006374A (en) 2020-02-01

Similar Documents

Publication Publication Date Title
KR102105315B1 (en) Detection circuit
US9338570B2 (en) Method and apparatus for an integrated headset switch with reduced crosstalk noise
US9998823B2 (en) Systems and methods for reduction of audio artifacts in an audio system with dynamic range enhancement
CN107078707B (en) System and method for gain calibration of an audio signal path
US9237401B2 (en) Electronic devices with adjustable bias impedances and adjustable bias voltages for accessories
KR101646964B1 (en) Circuit apparatus and method for recognition earphone in electronic device
US20100104119A1 (en) Audio output device
US20130142350A1 (en) Multi-standard headset support with integrated ground switching
CN110418246B (en) Method and system for improving audio amplifier stability
CN107113489A (en) The apparatus and method for removing and inserting for test earphone
KR20140102389A (en) Audio jack detector and detecting method
US9326079B2 (en) Detection circuit
US9848270B2 (en) Electronic device, earphone, and electronic device system
TWI669513B (en) Electronic device and control method thereof
TW201624915A (en) Audio output device and control method thereof
JP2010258967A (en) Electronic device, control method of the same, and electroacoustic transducer
JP6197593B2 (en) Signal processing device
TW201909654A (en) Combo-jack detecting circuit and operating method thereof
EP3214855B1 (en) Device and method for adjusting an output to an audio port based on a determined sensitivity
US11317208B2 (en) Speaker system and speaker configuration method
CN114630237B (en) Audio device, control method and device thereof and electronic device
TWI429300B (en) Electronic apparatus
JP2008199334A (en) Audio reproducing device and audio circuit
TWI658693B (en) Signal gain control method and electronic device
TWI511034B (en) Electronic device and control method