TW202006374A - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
TW202006374A
TW202006374A TW107124778A TW107124778A TW202006374A TW 202006374 A TW202006374 A TW 202006374A TW 107124778 A TW107124778 A TW 107124778A TW 107124778 A TW107124778 A TW 107124778A TW 202006374 A TW202006374 A TW 202006374A
Authority
TW
Taiwan
Prior art keywords
signal
earphone
connector
test signal
electronic device
Prior art date
Application number
TW107124778A
Other languages
Chinese (zh)
Other versions
TWI669513B (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

Images

Abstract

An electronic device includes a connector, a detector, an audio source, a signal generator, a switch element, an amplifier, and a processor. The detector determines whether an earphone is coupled to the connector. The signal generator generates a test signal. The test signal includes an AC (Alternating Current) portion and a DC (Direct Current) portion, and the DC portion is generated after the AC portion is generated. The switch element switches between the audio source and the signal generator. When the earphone is initially coupled to the connector, the switch element selects the test signal as an input signal. The amplifier amplifies the input signal, so as to generate an amplified signal. The amplified signal is transmitted to the connector and the earphone, such that the earphone generates a feedback signal according to the amplified signal. The processor calculates an impedance value of the earphone according to the feedback signal.

Description

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

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

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

在較佳實施例中,本發明提供一種電子裝置,用於偵測一耳機之阻抗值,並包括:一連接器;一偵測器,判斷該耳機是否耦接至該連接器;一音訊源,產生一聲音信號;一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;一放大器,放大該輸入信號,以產生一放大信號, 其中該放大信號係傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及一處理器,根據該回饋信號來計算出該耳機之該阻抗值。 In a preferred embodiment, the present invention provides an electronic device for detecting the impedance value of an earphone, and includes: a connector; a detector to determine whether the earphone is coupled to the connector; an audio source To generate a sound signal; a signal generator to generate a test signal, wherein the test signal includes an AC part and a DC part, and the DC part is generated after the AC part; a switch, 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 An amplified signal, wherein the amplified signal is transmitted to the connector and the headset so that the headset generates a feedback signal according to the amplified signal; and a processor calculates the impedance value of the headset based on the feedback signal.

在一些實施例中,該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz。 In some embodiments, the AC 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 the AC 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 headset, the processor adjusts a gain ratio of the amplifier according to the impedance value of the headset, 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: by a detector, determining whether an earphone is coupled to a connector of an electronic device; by an audio source, generating a Sound signal; by a signal generator, a test signal is generated, wherein the test signal includes an AC part and a DC part, and the DC part is generated after the AC part; by a switch, Switching between the audio source and the signal generator, wherein when the earphone is just coupled to the connector, the switch selects the test signal as an input signal; the amplifier amplifies the input signal, To generate an amplified signal; transmit the amplified signal to the connector and the headset, so that the headset generates a feedback signal according to the amplified signal; and a processor calculates the headset according to the feedback signal Impedance value.

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

100‧‧‧電子裝置 100‧‧‧Electronic device

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 test signal

215‧‧‧正弦波 215‧‧‧sine wave

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

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

L1‧‧‧電感器 L1‧‧‧Inductor

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

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

R1‧‧‧電阻器 R1‧‧‧resistor

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

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

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

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

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

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

為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出本發明之具體實施例,並配合所附圖式,作詳細說明如下。 In order to make the purpose, features and advantages of the present invention more obvious and understandable, specific embodiments of the present invention are specifically listed below, and in conjunction with the accompanying drawings, detailed descriptions are as follows.

在說明書及申請專利範圍當中使用了某些詞彙來指稱特定的元件。本領域技術人員應可理解,硬體製造商可能會用不同的名詞來稱呼同一個元件。本說明書及申請專利範圍並不以名稱的差異來作為區分元件的方式,而是以元件在功能 上的差異來作為區分的準則。在通篇說明書及申請專利範圍當中所提及的「包含」及「包括」一詞為開放式的用語,故應解釋成「包含但不僅限定於」。「大致」一詞則是指在可接受的誤差範圍內,本領域技術人員能夠在一定誤差範圍內解決所述技術問題,達到所述基本之技術效果。此外,「耦接」一詞在本說明書中包含任何直接及間接的電性連接手段。因此,若文中描述一第一裝置耦接至一第二裝置,則代表該第一裝置可直接電性連接至該第二裝置,或經由其它裝置或連接手段而間接地電性連接至該第二裝置。 Certain terms are used in the specification and patent application scope to refer to specific elements. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. This specification and the scope of patent application do not use the difference in names as the way to distinguish the components, but the differences in the functions of the components as the criteria for distinguishing. The terms "include" and "include" mentioned in the entire specification and patent application scope are open-ended terms, so they should be interpreted as "including but not limited to". The term "approximately" means that within the acceptable error range, those skilled in the art can solve the technical problem within a certain error range and achieve the basic technical effect. In addition, the term "coupled" in this specification includes any direct and indirect electrical connection means. Therefore, if it is described that a first device is coupled to a second device, it means that the first device can be directly electrically connected to the second device, or indirectly electrically connected to the second device through 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)耳機。 FIG. 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 (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 may be a smart phone (Smart Phone), a tablet computer (Tablet Computer), a desktop computer (Desktop Computer), or a notebook computer (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 Switch Element 150, an Amplifier 160, and a Processor 170. It must be understood that although not shown in FIG. 1, the electronic device 100 may further include other components, such as a battery module, a display device, and a touch control module Module), a speaker (Speaker), or (and) a housing (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 an earphone jack of the electronic device 100. The detector 120 is coupled to the connector 110 and can analyze the signal 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 has just started to be coupled to the connector 110 (or when the earphone 190 has just been inserted into the earphone jack), the detector 120 may generate a device presence signal to notify other components of the electronic device 100. There are cases where the headset 190 exists.

音訊源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 used to generate 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 used to generate a test signal ST. FIG. 2 is a waveform diagram of the test signal ST according to an embodiment of the invention. As shown in FIG. 2, the test signal ST includes an alternating current (AC) part 210 and a direct current (DC) part 220, wherein the direct current part 220 is generated after the alternating current part 210. Such AC and DC components of the test signal ST help to suppress the noise generated when the earphone 190 is coupled to the connector 110 and performs an impedance test.

切換器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 may be a single pole double throw switch (Single Pole Double Throw (SPDT) Switch). When the earphone 190 is just coupled to the connector 110, 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 can amplify 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 from the headphone 190 when the amplified signal SA is applied to the headphone 190. Then, the feedback signal SF can be received by the connector 110, and the processor 170 can then 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 may be proportional to the ratio of the aforementioned voltage value and 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)所述:

Figure 107124778-A0101-12-0006-13
Please refer to figure 2 again. In detail, the AC part 210 of the test signal ST may be a sine wave (Sine Wave) 215, wherein the frequency (Frequency) of the sine wave 215 may be greater than 20kHz, for example: 30kHz or 40kHz. The total time length TL of the AC 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 may 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 may be as described in the following equations (1) to (4):
Figure 107124778-A0101-12-0006-13

Figure 107124778-A0101-12-0006-11
Figure 107124778-A0101-12-0006-11

Figure 107124778-A0101-12-0006-12
Figure 107124778-A0101-12-0006-12

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, "TL" represents the total time length TL of the AC part 210 of the test signal ST, "DC "Represents the potential level DC of the DC part 220 of the test signal ST, and "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在進行阻抗測試時所產生之非理想雜訊聲響。 Generally speaking, the huge noise generated when the earphone 190 is inserted into the electronic device 100 is caused by the DC test signal applied to the earphone 190. In order to suppress this noise, the present invention proposes to use the test signal ST including the AC part 210 and the DC part 220 to replace the conventional DC test signal. Since the frequency of the AC portion 210 of the test signal ST is relatively high (eg, greater than 20 kHz), it will not be noticed by human ears. In addition, after an appropriate period of time expires (for example: after 5 times the period length T of the sine wave 215), the AC part 210 of the test signal ST will be converted into a DC part 220 to test the impedance value Z of the earphone 190 . At this time, regarding the voltage value and the current value of the earphone 190 have been stabilized (Steady State), the earphone 190 is less likely to generate noise. FIG. 3 is an equivalent circuit diagram of the earphone 190 according to an embodiment of the invention. As shown in FIG. 3, the earphone 190 can be modeled as a combination of an inductor L1 and a resistor, which is 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 time TL of the AC part 210 has passed. Therefore, the design of the present invention can effectively eliminate the non-ideal noise generated by the earphone 190 during the impedance test.

在一些實施例中,切換器150可與放大器160互相結合,以形成一多輸入單輸出放大器(Multi-Input and Single-Output Amplifier);在另一些實施例中,偵測器120或(且)信號產生器140可與處理器170互相結合,以形成一複合式處理器(Compound Processor),此二者皆不致影響本發明之效果。 In some embodiments, the switch 150 and the amplifier 160 can be combined with each other to form a multi-input and single-output amplifier (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 effect 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 processor 170 can further adjust the gain ratio 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 will become larger; conversely, if the impedance value Z of the earphone 190 becomes smaller, the gain magnification K of the amplifier 160 will become smaller. After the fine adjustment of the gain ratio K of the amplifier 160 is completed, the impedance test procedure for the earphone 190 has been completed. At this time, the earphone 190 can be operated normally. For example, the switch 150 can switch to the audio source 130 according to the instruction from the processor 170 and reselect the sound signal SS as the input signal SI of the amplifier 160, so that a user wearing the headset 190 can hear the updated amplified signal SA (that is, 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圖之控制方法當中。 FIG. 4 is a flowchart showing the control method according to an embodiment of the invention. This control method can be applied to the aforementioned electronic device 100. First, in step S410, a detector 120 is used to determine whether a headset 190 is coupled to a connector 110 of the electronic device 100. If not, the procedure returns to step S410. If so, in step S420, an audio source 130 generates an audio signal SS. Then, in step S430, a signal generator 140 generates a test signal ST, 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 first coupled to the connector 110, the switch 150 selects the test signal ST as an input signal SI. In step S450, the amplifier 160 amplifies the input signal SI to generate an amplified signal SA. In step S460, the amplified signal SA is transmitted to the connector 110 and the earphone 190, so that the earphone 190 generates a feedback signal SF according to the amplified signal SA. Finally, in step S470, a processor 170 calculates the impedance value Z of the earphone 190 according to the feedback signal SF. It must be noted that the above steps do not need to be performed in sequence, and any feature of the electronic device 100 of FIGS. 1-3 can be applied to the control method of FIG. 4.

第5圖係顯示根據本發明另一實施例所述之控制方法之流程圖。第5圖和第4圖相似。在第5圖之實施例中,控制方法更包括另一步驟S480。亦即,在處理器170計算出耳機190之阻抗值Z之後,再藉由處理器170,根據耳機190之阻抗值Z來調整放大器160之一增益倍率K,並藉由切換器150,更新並重新選擇聲音信號SS作為放大器160之輸入信號SI。 FIG. 5 is a flowchart showing a control method according to another embodiment of the 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 ratio K of the amplifier 160 according to the impedance value Z of the earphone 190, and updates and The sound signal SS is reselected as the input signal SI of the amplifier 160.

本發明提出一種新穎之電子裝置。藉由使用包括交流部份和直流信號之測試信號,耳機耦接至電子裝置並進行阻抗測試時所產生之雜訊聲響可被有效地消除。相較於傳統技術,本發明至少具有低成本、低複雜度,以及較佳之使用者經驗等優勢,故其很適合應於各種各式之電子裝置當中。 The invention provides a novel electronic device. By using the test signal including the AC part and the DC signal, the noise generated when the earphone is coupled to the electronic device and the impedance test is performed 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 very suitable for various electronic devices.

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

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

本發明雖以較佳實施例揭露如上,然其並非用以 限定本發明的範圍,任何熟習此項技藝者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention is disclosed as above with preferred embodiments, it is not intended to limit the scope of the present invention. Anyone who is familiar with this art can make some changes and retouching without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the attached patent application.

100‧‧‧電子裝置 100‧‧‧Electronic device

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

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

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

SF‧‧‧回饋信號 SF‧‧‧Feedback signal

SI‧‧‧輸入信號 SI‧‧‧Input signal

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

ST‧‧‧測試信號 ST‧‧‧Test signal

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

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

Claims (10)

一種電子裝置,用於偵測一耳機之阻抗值,並包括:一連接器;一偵測器,判斷該耳機是否耦接至該連接器;一音訊源,產生一聲音信號;一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;一放大器,放大該輸入信號,以產生一放大信號,其中該放大信號係傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及一處理器,根據該回饋信號來計算出該耳機之該阻抗值。 An electronic device for detecting the impedance value of an earphone, and includes: a connector; a detector to determine whether the earphone is coupled to the connector; an audio source to generate a sound signal; a signal generator To generate a test signal, where the test signal includes an AC part and a DC part, and the DC part is generated after the AC part; a switcher between the audio source and the signal generator Switching, wherein when the earphone is first 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 calculates the impedance value of the earphone according to the feedback signal. 如申請專利範圍第1項所述之電子裝置,其中該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz。 The electronic device as described in item 1 of the patent application scope, wherein the AC part of the test signal is a sine wave, and the frequency of the sine wave is greater than 20 kHz. 如申請專利範圍第2項所述之電子裝置,其中該測試信號之該交流部份之總時間長度為該正弦波之週期長度之至少5倍。 The electronic device as described in item 2 of the patent application scope, wherein the total time length of the AC part of the test signal is at least 5 times the period length of the sine wave. 如申請專利範圍第2項所述之電子裝置,其中該測試信號之該直流部份之電位位準等於該正弦波之最高電位位準。 The electronic device as described in item 2 of the patent application scope, wherein the potential level of the DC part of the test signal is equal to the highest potential level of the sine wave. 如申請專利範圍第1項所述之電子裝置,其中在該處理器計算出該耳機之該阻抗值之後,該處理器根據該耳機之該阻 抗值來調整該放大器之一增益倍率,而該切換器更新並選擇該聲音信號作為該輸入信號。 The electronic device as described in item 1 of the patent application scope, 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 The device updates and selects the sound signal as the input signal. 一種控制方法,包括下列步驟:藉由一偵測器,判斷一耳機是否耦接至一電子裝置之一連接器;藉由一音訊源,產生一聲音信號;藉由一信號產生器,產生一測試信號,其中該測試信號包括一交流部份和一直流部份,而該直流部份係在該交流部份之後產生;藉由一切換器,於該音訊源和該信號產生器之間作切換,其中當該耳機剛開始耦接至該連接器時,該切換器選擇該測試信號作為一輸入信號;藉由一放大器,放大該輸入信號,以產生一放大信號;將該放大信號傳送至該連接器和該耳機,使得該耳機根據該放大信號來產生一回饋信號;以及藉由一處理器,根據該回饋信號來計算出該耳機之該阻抗值。 A control method includes the following steps: by a detector, determining whether an earphone is coupled to a connector of an electronic device; by an audio source, generating a sound signal; by a signal generator, generating a Test signal, wherein the test signal includes an AC part and a DC part, and the DC part is generated after the AC part; by a switcher, it is operated between the audio source and the signal generator Switching, wherein when the earphone is just coupled to the connector, the switch selects the test signal as an input signal; by an amplifier, the input signal is amplified 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 a processor calculates the impedance value of the earphone according to the feedback signal. 如申請專利範圍第6項所述之控制方法,其中該測試信號之該交流部份為一正弦波,而該正弦波之頻率係大於20kHz。 The control method as described in Item 6 of the patent application scope, wherein the AC part of the test signal is a sine wave, and the frequency of the sine wave is greater than 20 kHz. 如申請專利範圍第7項所述之控制方法,其中該測試信號之該交流部份之總時間長度為該正弦波之週期長度之至少5倍。 The control method as described in item 7 of the patent application scope, wherein the total time length of the AC part of the test signal is at least 5 times the cycle length of the sine wave. 如申請專利範圍第7項所述之控制方法,其中該測試信號之該直流部份之電位位準等於該正弦波之最高電位位準。 The control method as described in item 7 of the patent application scope, wherein the potential level of the DC part of the test signal is equal to the highest potential level of the sine wave. 如申請專利範圍第6項所述之控制方法,更包括:在該處理器計算出該耳機之該阻抗值之後,藉由該處理器,根據該阻抗值來調整該放大器之一增益倍率;以及藉由該切換器,更新並選擇該聲音信號作為該輸入信號。 The control method as described in Item 6 of the patent application scope further includes: after the processor calculates the impedance value of the earphone, adjusting, by the processor, one of the gain magnifications of the amplifier according to the impedance value; and With the switch, the sound signal is updated and selected 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 TWI669513B (en) 2019-08-21
TW202006374A true 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9100757B2 (en) * 2012-07-02 2015-08-04 Apple Inc. Headset impedance detection
TWI536024B (en) * 2013-11-01 2016-06-01 瑞昱半導體股份有限公司 Impedance detecting device and method
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
TWI669513B (en) 2019-08-21

Similar Documents

Publication Publication Date Title
US9998823B2 (en) Systems and methods for reduction of audio artifacts in an audio system with dynamic range enhancement
US9955254B2 (en) Systems and methods for preventing distortion due to supply-based modulation index changes in an audio playback system
US10785568B2 (en) Reducing audio artifacts in a system for enhancing dynamic range of audio signal path
US9337795B2 (en) Systems and methods for gain calibration of an audio signal path
US9237401B2 (en) Electronic devices with adjustable bias impedances and adjustable bias voltages for accessories
US9813814B1 (en) Enhancing dynamic range based on spectral content of signal
KR102105315B1 (en) Detection circuit
JP6082008B2 (en) Audio signal processing method and audio signal processing apparatus using the same
TW201414114A (en) Earphone connection interface, terminal including the same, and method of operating the terminal
CN110418246B (en) Method and system for improving audio amplifier stability
US10483924B2 (en) Systems and methods for predictive switching in audio amplifiers
WO2013155921A1 (en) Method and electronic device for determining wire sequence of earphone
KR20140102389A (en) Audio jack detector and detecting method
US20120275624A1 (en) Energy-saving audio-amplifier control device
US9549248B2 (en) Method and apparatus for reducing crosstalk in an integrated headset
GB2555369A (en) Systems and methods for predictive switching in audio amplifiers
US20120250889A1 (en) Automatic volume reduction
TW201624915A (en) Audio output device and control method thereof
TWI669513B (en) Electronic device and control method thereof
JP6197593B2 (en) Signal processing device
TWI641270B (en) Combo-jack detecting circuit and operating method thereof
JP2010166553A (en) Amplifier circuit, activation method thereof, audio player using the same, and electronic apparatus
US11317208B2 (en) Speaker system and speaker configuration method
TWI429300B (en) Electronic apparatus
JP2011139232A (en) Electric apparatus