TWI481837B - Devices and methods for eliminating pop noise - Google Patents

Devices and methods for eliminating pop noise Download PDF

Info

Publication number
TWI481837B
TWI481837B TW098125027A TW98125027A TWI481837B TW I481837 B TWI481837 B TW I481837B TW 098125027 A TW098125027 A TW 098125027A TW 98125027 A TW98125027 A TW 98125027A TW I481837 B TWI481837 B TW I481837B
Authority
TW
Taiwan
Prior art keywords
surge
glitch
processing module
voltage
type
Prior art date
Application number
TW098125027A
Other languages
Chinese (zh)
Other versions
TW201104231A (en
Inventor
Chia Pin Lin
Original Assignee
Chi Mei Comm Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Priority to TW098125027A priority Critical patent/TWI481837B/en
Publication of TW201104231A publication Critical patent/TW201104231A/en
Application granted granted Critical
Publication of TWI481837B publication Critical patent/TWI481837B/en

Links

Landscapes

  • Electronic Switches (AREA)

Description

突波消除裝置及消除突波之方法 Surge elimination device and method for eliminating surge

本發明涉及一種裝置及方法,尤其涉及一種突波消除裝置及利用該裝置消除突波之方法。 The present invention relates to an apparatus and method, and more particularly to a surge elimination apparatus and a method of using the same to eliminate a surge.

於個人電腦、移動電話、個人數位助理(Personal Digital Assistant,PDA)等各類可攜式電子裝置音頻之設計中,突波問題一直係困擾人們之難題之一。 In the design of audio of various portable electronic devices such as personal computers, mobile phones, and personal digital assistants (PDAs), the surge problem has always been one of the problems that plague people.

一般突波來源於以下幾種情況:插入一音頻附件時瞬間產生之突波;插入該音頻附件時,由於音頻附件本身設計不良亦產生突波;該兩種突波經過該移動電話內之一數位訊號處理(Digital Signal Processing,簡稱DSP)進行濾波時,由於該DSP之濾波效能不足,未將該突波消除乾淨等等;因為音頻路徑之切換,如將聲道切換成耳機、藍牙耳機、麥克風等音頻附件輸出會產生突波;因為聲音之調整產生突波等。因為前三種情況導致產生之突波都是由音頻附件引起的,故此處將前三種情況歸於第一類突波,將後兩種情況歸於第二類突波。 Generally, the glitch originates from the following situations: a sudden wave generated when an audio accessory is inserted; when the audio accessory is inserted, a glitch is generated due to poor design of the audio accessory itself; the two glitch passes through one of the mobile phones When digital signal processing (DSP) is used for filtering, the filtering performance of the DSP is insufficient, and the glitch is not cleaned, etc.; because of the switching of the audio path, such as switching the channel into a headset, a Bluetooth headset, The audio accessory output such as a microphone generates a glitch; the adjustment of the sound produces a glitch and the like. Because the first three cases caused the glitch caused by the audio accessory, the first three cases are attributed to the first type of glitch, and the latter two cases are attributed to the second type of glitch.

然而,不論是第一類突波還是第二類突波,該突波之產生都是用戶不能允許的。 However, whether it is the first type of glitch or the second type of glitch, the generation of the glitch is not allowed by the user.

有鑒於此,有必要提供一種能有效消除突波之裝置。 In view of this, it is necessary to provide a device that can effectively eliminate the glitch.

另,還有必要提供一種利用該裝置消除突波之方法。 In addition, it is also necessary to provide a method of eliminating surges using the device.

一種突波消除裝置,其包括一處理模組、一突波消除電路及一存儲模組,該突波消除電路及該存儲模組分別與該處理模組電性連接,所述突波消除電路包括一控制端及一突波消除晶片該存儲模組內存儲有驅動該突波消除電路工作之流程,所述處理模組判斷輸入的音頻訊號是否有突波,若沒有突波,則控制該突波消除電路之控制端之電壓為第一電平,該音頻訊號經過該突波消除晶片時不受影響,若有突波,則由所述處理模組判斷突波類型,所述突波類型包括切換一音頻附件時產生的第一類突波及聲音調整時產生的第二類突波,該處理模組判斷出該突波之類型後,運行該存儲模組內相應之流程,並控制該控制端之電壓為第二電平以驅動該突波消除電路將該突波消除。 A surge elimination device includes a processing module, a surge eliminating circuit, and a storage module, wherein the surge eliminating circuit and the storage module are electrically connected to the processing module, respectively, the surge eliminating circuit The utility model includes a control terminal and a surge elimination chip. The storage module stores a flow for driving the surge cancellation circuit. The processing module determines whether the input audio signal has a glitch, and if there is no glitch, controls the The voltage of the control terminal of the surge cancellation circuit is a first level, and the audio signal is not affected by the surge cancellation chip. If there is a surge, the processing module determines the type of the surge, the surge The type includes a first type of glitch generated when switching an audio accessory and a second type of glitch generated when the sound is adjusted. After the processing module determines the type of the glitch, the corresponding process in the storage module is executed and controlled. The voltage at the control terminal is at a second level to drive the surge cancellation circuit to cancel the glitch.

一種消除突波之方法,其包括以下步驟:所述處理模組判斷該突波之類型;當判斷該突波為一第一類突波時,該處理模組運行一第一流程,所述第一流程包括:該處理模組產生一中斷訊號;該處理模組運行一附屬流程,控制該控制端之電壓為第二電平以驅動所述突波消除電路將該突波消除;該處理模組判斷一音頻附件是否穩定;若穩定,則該音頻附件進入一穩定狀態,若不穩定,則該音頻附件進入一初始狀態,並等待產生下一中斷訊號;當判斷該突波為一第二類突波時,該處理模組運行一第二流程,所述第二流程包括:該處理模組運行一附屬流程,控制該控制端之電壓為第二電平以驅動所述突波消除電路將該突波消除;該處 理模組設置一音頻路徑增益及其它參數;該處理模組停止運行所述附屬流程。 A method for eliminating a glitch, comprising the steps of: the processing module determining a type of the glitch; and when determining that the glitch is a first type of glitch, the processing module runs a first process, The first process includes: the processing module generates an interrupt signal; the processing module runs an auxiliary process, and controls the voltage of the control terminal to be a second level to drive the surge cancellation circuit to cancel the surge; The module determines whether an audio accessory is stable; if stable, the audio accessory enters a stable state; if unstable, the audio accessory enters an initial state, and waits for a next interrupt signal; when determining that the hop is a first In the second type of surge, the processing module runs a second process, the second process includes: the processing module runs an auxiliary process, and controls the voltage of the control terminal to be a second level to drive the surge cancellation The circuit eliminates the glitch; The module sets an audio path gain and other parameters; the processing module stops running the satellite process.

與習知技術相比,該突波消除裝置藉由設置一突波消除電路並針對不同類型之突波設置不同之驅動流程,該等驅動流程結合該突波消除電路分別將不同類型之突波消除,可以有效地避免習知技術中出現突波消除不徹底,音頻輸出效果不佳等問題,使用戶享受到較完美之音質。 Compared with the prior art, the spur elimination device sets different spur waves by setting a spur elimination circuit and different driving processes for different types of glitch. Elimination can effectively avoid problems such as incomplete elimination of the surge and poor audio output in the prior art, so that the user can enjoy a perfect sound quality.

100‧‧‧突波消除裝置 100‧‧‧ Surge Elimination Device

10‧‧‧處理模組 10‧‧‧Processing module

20‧‧‧突波消除電路 20‧‧‧ Surge Elimination Circuit

30‧‧‧存儲模組 30‧‧‧ Storage Module

12‧‧‧CPU 12‧‧‧CPU

14‧‧‧類比數位轉換器 14‧‧‧ Analog Digital Converter

16‧‧‧定時單元 16‧‧‧Time unit

18‧‧‧中斷計時器 18‧‧‧ interrupt timer

22‧‧‧控制端 22‧‧‧Control end

23‧‧‧突波消除晶片 23‧‧‧ Surge Elimination Wafer

24‧‧‧輸入端 24‧‧‧ input

26‧‧‧第一輸出端 26‧‧‧ first output

28‧‧‧第二輸出端 28‧‧‧second output

S1‧‧‧第一源極 S1‧‧‧first source

S2‧‧‧第二源極 S2‧‧‧Second source

G1‧‧‧第一閘極 G1‧‧‧ first gate

G2‧‧‧第二閘極 G2‧‧‧second gate

D1‧‧‧第一汲極 D1‧‧‧First bungee

C1‧‧‧第一電容 C1‧‧‧first capacitor

C2‧‧‧第二電容 C2‧‧‧second capacitor

D2‧‧‧第二汲極 D2‧‧‧second bungee

圖1為本發明突波消除裝置較佳實施例之功能方框圖;圖2為本發明突波消除裝置較佳實施例中突波消除電路之電路圖;圖3為本發明突波消除裝置較佳實施方式中處理器(Center Processing Unit,CPU)之工作流程圖;圖4為本發明突波消除裝置較佳實施方式中附屬流程之工作流程圖;圖5為本發明突波消除裝置較佳實施方式中第一流程之工作流程圖;圖6為本發明突波消除裝置較佳實施方式中第二流程之工作流程圖。 1 is a functional block diagram of a preferred embodiment of the surge removing device of the present invention; FIG. 2 is a circuit diagram of a surge eliminating circuit in a preferred embodiment of the surge removing device of the present invention; FIG. 3 is a preferred embodiment of the surge removing device of the present invention. FIG. 4 is a flow chart of the operation of the auxiliary processing in the preferred embodiment of the surge removing device of the present invention; FIG. 5 is a flowchart of a preferred embodiment of the surge removing device of the present invention; FIG. 6 is a flowchart of the second process of the preferred embodiment of the surge removing device of the present invention.

請參閱圖1,本發明公開了一種突波消除裝置100,其用於消除移動電話、PDA等可攜式電子裝置中之突波。於本實施例中以將突波消除裝置100應用於移動電話為例加以說明。 Referring to FIG. 1, the present invention discloses a surge elimination device 100 for eliminating a surge in a portable electronic device such as a mobile phone or a PDA. In the present embodiment, the application of the surge canceling apparatus 100 to a mobile phone will be described as an example.

本發明較佳實施例提供之突波消除裝置100包括一處理模組10、一突波消除電路20及一存儲模組30。該處理模組10分別與該突波消除電路20及該存儲模組30電性連接。該存儲模組30內存儲有驅動該突波消除電路20工作之流程。該處理模組10判斷突波類型後,運行該存儲模組30內相應之流程,並驅動該突波消除電路20將該突波消除。 The surge removing device 100 provided by the preferred embodiment of the present invention includes a processing module 10, a surge removing circuit 20, and a memory module 30. The processing module 10 is electrically connected to the surge eliminating circuit 20 and the storage module 30 respectively. A flow for driving the surge canceling circuit 20 is stored in the memory module 30. After determining the type of the glitch, the processing module 10 runs a corresponding flow in the storage module 30 and drives the glitch canceling circuit 20 to cancel the glitch.

請參閱圖1,該處理模組10包括一CPU12、一類比數位轉換器14、一定時單元16及一中斷計時器18。該類比數位轉換器14、定時單元16及中斷計時器18分別與該CPU12電性連接。該CPU12用於判斷一音頻訊號中是否包含有突波成分及該突波之類型,同時控制該類比數位轉換器14等器件之工作。該類比數位轉換器14用於讀取一音頻附件之電壓。該定時單元16用於設定該突波消除電路20之工作時間。該中斷計時器18用於計算該類比數位轉換器14讀取音頻附件電壓之時間。 Referring to FIG. 1 , the processing module 10 includes a CPU 12 , an analog-to-digital converter 14 , a timing unit 16 , and an interrupt timer 18 . The analog-to-digital converter 14, the timing unit 16, and the interrupt timer 18 are electrically connected to the CPU 12, respectively. The CPU 12 is configured to determine whether an audio component includes a glitch component and a type of the glitch, and control the operation of the analog converter 14 and the like. The analog to digital converter 14 is used to read the voltage of an audio accessory. The timing unit 16 is configured to set the operating time of the surge cancellation circuit 20. The interrupt timer 18 is used to calculate the time at which the analog to digital converter 14 reads the audio accessory voltage.

請參閱圖2,該突波消除電路20置於一移動電話輔助輸出端(圖未示)及音頻輸出端(圖未示)之間,該輔助輸出端輸出一音頻訊號,該突波消除電路20用於將該音頻訊號於最終輸出前經過最後濾波,以確保該音頻輸出端輸出一不含突波之音頻訊號。該突波消除電路20包括一控制端22、一突波消除晶片23、一輸入端24、一第一輸出端26及一第二輸出端28。該控制端22由該CPU12控制輸入,該突波消除晶片23可以為型號為NTZD3154N之場效電晶體或者具有相同特性之可用於消除突波之其他晶片或電路,其具體包括六個管腳。其中,該突波消除晶片23之第一源極S1及第二源極S2均接地。該突波消除晶片23之第一閘極G1及第二閘極G2均 電性連接至控制端22。該第一汲極D1與該輸入端24電性連接並形成一節點(圖未標),該節點藉由一用於濾波之第一電容C1與第一輸出端26電性連接。該第二汲極D2藉由一第二電容C2與該第二輸出端28串聯連接,該第二電容C2用於濾波。該輸入端24與該輔助輸出端電性連接;該第一輸出端26及第二輸出端28分別用於輸出左右聲道訊號,其分別與該移動電話之左聲道及右聲道電性連接。 Referring to FIG. 2, the surge cancellation circuit 20 is disposed between a mobile phone auxiliary output terminal (not shown) and an audio output terminal (not shown). The auxiliary output terminal outputs an audio signal, and the surge cancellation circuit 20 is used for final filtering of the audio signal before final output to ensure that the audio output outputs a non-surge audio signal. The surge cancellation circuit 20 includes a control terminal 22, a surge canceling chip 23, an input terminal 24, a first output terminal 26, and a second output terminal 28. The control terminal 22 is controlled by the CPU 12, and the surge cancellation chip 23 can be a field effect transistor of the type NTZD3154N or other wafer or circuit having the same characteristics that can be used to eliminate the surge, which specifically includes six pins. The first source S1 and the second source S2 of the surge eliminating chip 23 are both grounded. The first gate G1 and the second gate G2 of the surge eliminating chip 23 are both Electrically connected to the control terminal 22. The first drain D1 is electrically connected to the input terminal 24 and forms a node (not labeled). The node is electrically connected to the first output terminal 26 by a first capacitor C1 for filtering. The second drain D2 is connected in series with the second output terminal 28 by a second capacitor C2, and the second capacitor C2 is used for filtering. The input terminal 24 is electrically connected to the auxiliary output terminal; the first output terminal 26 and the second output terminal 28 are respectively configured to output left and right channel signals respectively, and respectively, the left channel and the right channel of the mobile phone are electrically connected. connection.

當該CPU12判斷該音頻訊號中包含有突波成分時,該CPU12控制該控制端22之電壓為高電平,此時該音頻訊號於經過該突波消除晶片23時,其突波成分導地,即該突波被消除,這樣該第一輸出端26及該第二輸出端28輸出之為不含有突波之音頻訊號。當該CPU12判斷該音頻訊號中未包含有突波成分時,該CPU12控制該控制端22之電壓為低電平,此時該音頻訊號經過該突波消除晶片23時不受影響,即該第一輸出端26及該第二輸出端28輸出的仍然為原音頻訊號。 When the CPU 12 determines that the audio signal includes a glitch component, the CPU 12 controls the voltage of the control terminal 22 to be a high level. At this time, when the audio signal passes through the glitch canceling chip 23, the spur component is grounded. That is, the glitch is eliminated, so that the first output terminal 26 and the second output terminal 28 output an audio signal that does not contain a glitch. When the CPU 12 determines that the audio signal does not include the glitch component, the CPU 12 controls the voltage of the control terminal 22 to be a low level. At this time, the audio signal is not affected by the undulation chip 23, that is, the first The output of an output 26 and the second output 28 is still the original audio signal.

該存儲模組30內存儲有驅動該突波消除電路20工作之一第一流程、一第二流程及一可由第一流程及第二流程調用之附屬流程。當該CPU12判斷屬於第一類突波時,運行第一流程,並驅動該突波消除電路20將第一類突波消除;當該CPU12判斷屬於第二類突波時,運行第二流程,並驅動該突波消除電路20將第二類突波消除。 The storage module 30 stores a first process for driving the surge cancellation circuit 20, a second process, and an auxiliary process that can be invoked by the first process and the second process. When the CPU 12 determines that it belongs to the first type of glitch, the first process is executed, and the spur elimination circuit 20 is driven to cancel the first type of glitch; when the CPU 12 determines that it belongs to the second type of glitch, the second process is executed. The glitch canceling circuit 20 is driven to cancel the second type of glitch.

請參閱圖3,該CPU12用於判斷該音頻訊號中是否包含有突波成分,判斷該突波之類型,並調用相應之流程運行以消除突波,其具體包括以下步驟。 Referring to FIG. 3, the CPU 12 is configured to determine whether the audio signal includes a glitch component, determine the type of the glitch, and invoke a corresponding process to eliminate the glitch, which specifically includes the following steps.

步驟S3:該CPU12判斷該音頻訊號中是否包含有突波,若判斷包含有突波,執行步驟S4;若判斷沒有,則執行步驟S5。 Step S3: The CPU 12 determines whether the audio signal includes a glitch, and if it is determined that the glitch is included, the step S4 is performed; if not, the step S5 is performed.

步驟S4:該CPU12判斷突波之類型,若判斷屬於第一類突波時,執行步驟S6,若判斷屬於第二類突波時,執行步驟S7。 Step S4: The CPU 12 determines the type of the glitch. If it is determined that it belongs to the first type of glitch, step S6 is performed, and if it is determined to belong to the second type of glitch, step S7 is performed.

步驟S5:該CPU12控制該突波消除電路20中之控制端22之電壓為低電平,即該音頻訊號於經過該突波消除電路20時不受影響。同時返回步驟S3,即繼續判斷音頻訊號中是否有突波。 Step S5: The CPU 12 controls the voltage of the control terminal 22 in the surge cancellation circuit 20 to be low, that is, the audio signal is not affected when passing through the surge cancellation circuit 20. At the same time, returning to step S3, it is continued to determine whether there is a glitch in the audio signal.

步驟S6:該CPU12運行第一流程。 Step S6: The CPU 12 runs the first process.

步驟S7:該CPU12運行第二流程。 Step S7: The CPU 12 runs the second process.

圖4係該附屬流程之工作流程圖,當CPU12運行該附屬流程時,說明該音頻訊號中含有突波,故該CPU12控制該突波消除電路20中之控制端22之電壓輸出高電平,進而使該突波消除電路20將該突波消除。當該CPU12停止運行該附屬流程時,該CPU12控制該突波消除電路20中控制端22之電壓輸出低電平,即該音頻訊號經過該突波消除電路20時不受影響。當該CPU12運行該附屬流程時,其具體包括以下步驟。 4 is a working flow chart of the auxiliary process. When the CPU 12 runs the auxiliary process, the audio signal includes a glitch, so the CPU 12 controls the voltage output of the control terminal 22 in the glitch canceling circuit 20 to a high level. Further, the surge cancel circuit 20 cancels the glitch. When the CPU 12 stops running the auxiliary flow, the CPU 12 controls the voltage output of the control terminal 22 in the surge cancellation circuit 20 to output a low level, that is, the audio signal is not affected when passing through the surge cancellation circuit 20. When the CPU 12 runs the affiliate process, it specifically includes the following steps.

步驟S11:該CPU12控制該控制端22之電壓為高電平。 Step S11: The CPU 12 controls the voltage of the control terminal 22 to be a high level.

步驟S12:啟動該定時單元16,該突波消除電路20開始工作。因為此時該突波消除電路20之控制端22之電壓為高電平,故該突波消除電路20將該輸入端24中之突波成分導地,使輸出至第一輸出端26及第二輸出端28之音頻訊號不含突波成分。 Step S12: The timing unit 16 is activated, and the surge cancellation circuit 20 starts to operate. Because the voltage of the control terminal 22 of the surge cancellation circuit 20 is at a high level at this time, the surge cancellation circuit 20 grounds the spur component in the input terminal 24 to output to the first output terminal 26 and The audio signal of the two output terminals 28 does not contain a surge component.

步驟S13:該定時單元16之定時時間N到達。 Step S13: The timing time N of the timing unit 16 arrives.

步驟S14:該CPU12確認控制端22之電壓是否仍然為高電平,若是,說明於該定時單元16計時過程中,該控制端22之電壓一直為高電平,故可確保該突波已消除,此時將執行步驟S15;若不是,說明該CPU12未使該控制端22之電壓為高電平,此時返回步驟S11,即繼續控制該控制端22之電壓,如此循環,直至將該突波消除。 Step S14: The CPU 12 confirms whether the voltage of the control terminal 22 is still at a high level. If yes, it indicates that the voltage of the control terminal 22 is always at a high level during the timing of the timing unit 16, so that the glitch is eliminated. At this time, step S15 will be executed; if not, it indicates that the CPU 12 does not make the voltage of the control terminal 22 high, and then returns to step S11 to continue to control the voltage of the control terminal 22, and thus loops until the burst Wave elimination.

步驟S15:設置完成。 Step S15: The setting is completed.

請參閱圖5,當該CPU12判斷屬於第一類突波時,將運行該第一流程,即啟動下列步驟S20-S30以將該第一類突波消除。 Referring to FIG. 5, when the CPU 12 determines that it belongs to the first type of glitch, the first process will be executed, that is, the following steps S20-S30 are initiated to eliminate the first type of glitch.

步驟S20:此處將未插入音頻附件及拔出音頻附件後音頻附件之狀態定義為初始狀態,將該音頻附件完全插入時音頻附件之狀態定義為穩定狀態且將該穩定狀態下之電壓定義為一穩定電壓。因為第一類突波之產生係由音頻附件引起,而對於該CPU12來說,該音頻附件之插入及拔出均是一中斷,故該CPU12將產生一中斷訊號,進而處理該中斷。 Step S20: Here, the state of the audio accessory after the audio accessory is not inserted and the audio accessory is unplugged is defined as an initial state, and the state of the audio accessory is defined as a steady state when the audio accessory is fully inserted, and the voltage in the steady state is defined as A stable voltage. Because the first type of glitch is caused by the audio accessory, for the CPU 12, the insertion and removal of the audio accessory is an interruption, so the CPU 12 will generate an interrupt signal to process the interrupt.

步驟S21:該CPU12運行該附屬流程,即控制該控制端22之電壓切換為高電平,以使該突波消除電路20將該突波消除。 Step S21: The CPU 12 runs the auxiliary flow, that is, controls the voltage of the control terminal 22 to switch to a high level, so that the surge cancellation circuit 20 cancels the glitch.

隨後,為確保準確判斷該突波已消除,該CPU12將同時採用兩種方式分別進行判斷,即同時執行步驟S22及步驟S23。 Subsequently, in order to ensure accurate judgment that the glitch has been eliminated, the CPU 12 will separately perform the determination in two ways, that is, perform step S22 and step S23 simultaneously.

步驟S22:該CPU12檢測是否還有中斷產生,當其檢測還有中斷產生時,因為該音頻附件之插入只會產生一次中斷,故說明於觸發該突波消除電路20運行以消除突波時,該音頻附件已拔出,此時將執行步驟S24,當確認沒有中斷產生時,執行步驟S25。 Step S22: The CPU 12 detects whether there is still an interrupt generation. When the detection and the interrupt are generated, since the insertion of the audio accessory only generates an interrupt, it is explained that when the surge cancellation circuit 20 is triggered to operate to eliminate the glitch, The audio accessory has been unplugged, and step S24 will be executed at this time, and when it is confirmed that no interruption is generated, step S25 is performed.

步驟S23:啟動該中斷計時器18,開始對該類比數位轉換器14讀取音頻附件之電壓之時間進行計時,計時時間為n,該時間n為一跟隨類比數位轉換器14讀取該音頻附件之電壓次數變化之變數。 Step S23: Start the interrupt timer 18, and start counting the time when the analog digital converter 14 reads the voltage of the audio accessory. The time is n, and the time n is a following analog digital converter 14 to read the audio accessory. The variable of the number of voltage changes.

步驟S24:因為該CPU12已確認還有中斷產生,即該音頻附件已拔出,此時不需要該突波消除電路20運行以消除突波,故該CPU12將停止運行該附屬流程,同時返回初始狀態。 Step S24: Since the CPU 12 has confirmed that the interrupt is generated, that is, the audio accessory has been pulled out, the surge eliminating circuit 20 is not required to operate to eliminate the glitch at this time, so the CPU 12 will stop the auxiliary process and return to the initial state. status.

步驟S25:因為該CPU12已確認沒有中斷產生,說明已無音頻附件產生中斷,故其將確認該音頻附件處於穩定狀態並執行步驟S28。 Step S25: Since the CPU 12 has confirmed that no interruption is generated, it indicates that no audio accessory has generated an interruption, so it will confirm that the audio accessory is in a steady state and execute step S28.

步驟S26:該類比數位轉換器14讀取該音頻附件之電壓。 Step S26: The analog digital converter 14 reads the voltage of the audio accessory.

步驟S27:該CPU12判斷該音頻附件之電壓是否為該穩定電壓,如果是,說明該音頻附件已完全插入,此時執行步驟S28,若不是,則執行步驟S29。 Step S27: The CPU 12 determines whether the voltage of the audio accessory is the stable voltage. If yes, it indicates that the audio accessory has been fully inserted. At this time, step S28 is performed, and if not, step S29 is performed.

步驟S28:與步驟S25結合判斷,因為該步驟S25已判定該音頻附件處於穩定狀態,即步驟S25及步驟S28均判定該音頻附件已處於穩定狀態,故進入步驟S30。 Step S28: The determination is combined with step S25, because the step S25 has determined that the audio accessory is in a stable state, that is, both steps S25 and S28 determine that the audio accessory is in a stable state, and therefore proceeds to step S30.

步驟S29:該CPU12判斷類比數位轉換器14讀取該音頻附件之電壓之時間n是否小於該定時單元16之定時時間N,如果是,說明該突波消除電路20仍然在執行,此時將返回步驟S26,即再次讀取該音頻附件之電壓;如果不是,說明該突波消除電路20已執行完,而該音頻附件之電壓仍然不為穩定電壓,即說明該音頻附件已拔出。此時將返回到步驟S24,即該CPU12停止運行該附屬流程,以防止該音頻訊號被破壞,同時該音頻附件回到初始狀態。 Step S29: The CPU 12 determines whether the time n at which the analog digital converter 14 reads the voltage of the audio accessory is less than the timing time N of the timing unit 16, and if so, it indicates that the surge cancellation circuit 20 is still executing, and will return at this time. In step S26, the voltage of the audio accessory is read again; if not, it indicates that the surge cancellation circuit 20 has been executed, and the voltage of the audio accessory is still not stable, that is, the audio accessory has been pulled out. At this time, the process returns to step S24, that is, the CPU 12 stops the operation of the subsidiary flow to prevent the audio signal from being destroyed, and the audio accessory returns to the initial state.

步驟S30:該CPU12停止運行附屬流程,以防止已消除突波之音頻訊號被破壞,同時該音頻附件進入一穩定狀態。 Step S30: The CPU 12 stops running the auxiliary process to prevent the audio signal of the cancelled surge from being destroyed, and the audio accessory enters a stable state.

請參閱圖6,當該CPU12判斷屬於第二類突波時,將運行第二流程,即啟動下列步驟S31-S34以將該第二類突波消除。 Referring to FIG. 6, when the CPU 12 determines that it belongs to the second type of glitch, the second flow will be executed, that is, the following steps S31-S34 are started to eliminate the second type of glitch.

步驟S31:因為該CPU12已判斷屬於第二類突波,故該CPU12將運行該附屬流程,即驅動該突波消除電路20工作,以消除一些音頻切換過程中或聲音調整過程中產生之突波。 Step S31: Since the CPU 12 has judged that it belongs to the second type of glitch, the CPU 12 will run the affiliation flow, that is, drive the spur elimination circuit 20 to eliminate some glitch generated during the audio switching process or during the sound adjustment process. .

步驟S32:於消除突波之後,設置音頻增益及其他一些參數等,以正確地進行音頻路徑之切換及聲音之調整。 Step S32: After eliminating the glitch, set the audio gain and other parameters to correctly switch the audio path and adjust the sound.

步驟S33:設置完參數後,停止運行該附屬流程,以防止已消除突波之音頻訊號被破壞。 Step S33: After setting the parameters, stop running the auxiliary process to prevent the audio signal of the cancelled surge from being destroyed.

步驟S34:流程結束。 Step S34: The process ends.

請一併參閱圖1,利用該突波消除裝置10消除突波時,先藉由該CPU12判斷是否有突波,如果沒有,則控制該突波消除電路20之控制端22之電壓輸出低電平,同時繼續進行判斷,若有,則該CPU12繼續判斷該突波之類型,再根據判斷之類型運行相應之流程,即當該CPU12判斷該突波之類型為上述所述之第一類時,其運行第一流程,當該CPU12判斷該突波之類型為上述所述之第二類時,其運行第二流程,於該CPU12運行該第一流程及第二流程時均結合該附屬流程,同時驅動該突波消除電路20工作,使其分別將該第一類突波及第二類突波消除。 Referring to FIG. 1 together, when the surge removing device 10 is used to eliminate the glitch, the CPU 12 first determines whether there is a glitch, and if not, controls the voltage output of the control terminal 22 of the glitch canceling circuit 20 to be low. Leveling, while continuing to judge, if any, the CPU 12 continues to determine the type of the glitch, and then runs a corresponding process according to the type of the judgment, that is, when the CPU 12 determines that the type of the glitch is the first type described above. And running the first process, when the CPU 12 determines that the type of the hop is the second type described above, the second process is executed, and the CPU 12 runs the first process and the second process to combine the auxiliary process. At the same time, the surge cancellation circuit 20 is driven to cancel the first type of surge and the second type of surge, respectively.

顯然,該突波消除裝置100藉由設置一突波消除電路20並針對不同類型之突波設置不同之驅動流程,該等驅動流程結合該突波消 除電路分別將不同類型之突波消除,可以有效地避免習知技術中出現之突波消除不徹底,音頻輸出效果不佳等問題,使用戶享受到較完美之音質。 Obviously, the surge canceling device 100 sets different driving processes for different types of surges by providing a surge canceling circuit 20, and the driving processes combine the burst cancellation In addition to the circuit to eliminate different types of surges, it can effectively avoid the problem of incomplete wave elimination and poor audio output in the prior art, so that users can enjoy a perfect sound quality.

另外,本領域技術人員還可於本發明權利要求公開之範圍及精神內做其他形式及細節上之各種修改、添加及替換。當然,這些依據本發明精神所做之各種修改、添加及替換等變化,均應包含於本發明所要求保護之範圍之內。 In addition, various modifications, additions and substitutions in other forms and details may be made by those skilled in the art. It is a matter of course that various modifications, additions and substitutions made in accordance with the spirit of the invention are included in the scope of the invention as claimed.

100‧‧‧突波消除裝置 100‧‧‧ Surge Elimination Device

10‧‧‧處理模組 10‧‧‧Processing module

20‧‧‧突波消除電路 20‧‧‧ Surge Elimination Circuit

30‧‧‧存儲模組 30‧‧‧ Storage Module

12‧‧‧CPU 12‧‧‧CPU

14‧‧‧類比數位轉換器 14‧‧‧ Analog Digital Converter

16‧‧‧定時單元 16‧‧‧Time unit

18‧‧‧中斷計時器 18‧‧‧ interrupt timer

Claims (9)

一種突波消除裝置,其改良在於:所述突波消除裝置包括一處理模組、一突波消除電路及一存儲模組,所述突波消除電路及所述存儲模組分別與所述處理模組電性連接,所述突波消除電路包括一控制端及一突波消除晶片,所述存儲模組內存儲有驅動所述突波消除電路工作之流程,所述處理模組判斷輸入的音頻訊號是否有突波,若沒有突波,則控制該突波消除電路之控制端之電壓為第一電平,該音頻訊號經過該突波消除晶片時不受影響,若有突波,則由所述處理模組判斷突波類型,所述突波類型包括切換一音頻附件時產生的第一類突波及聲音調整時產生的第二類突波,所述處理模組判斷出所述突波之類型後,運行所述存儲模組內相應之流程,並控制該控制端之電壓為第二電平以驅動所述突波消除電路將所述突波消除。 A surge removing device is improved in that the surge removing device comprises a processing module, a surge eliminating circuit and a storage module, and the surge eliminating circuit and the storage module are respectively associated with the processing The module is electrically connected, the surge elimination circuit includes a control terminal and a surge elimination chip, and the storage module stores a flow for driving the surge cancellation circuit, and the processing module determines the input. Whether there is a glitch in the audio signal, if there is no glitch, the voltage of the control terminal of the glitch canceling circuit is controlled to be a first level, and the audio signal is not affected by the glitch eliminating the chip, if there is a glitch, Determining a glitch type by the processing module, the hop type includes a first type of glitch generated when an audio accessory is switched, and a second type of glitch generated when the sound is adjusted, and the processing module determines the glitch After the type of wave, the corresponding process in the storage module is operated, and the voltage of the control terminal is controlled to be a second level to drive the surge cancellation circuit to cancel the surge. 如申請專利範圍第1項所述之突波消除裝置,其中所述處理模組包括一CPU、一類比數位轉換器、一定時單元及一中斷計時器,所述類比數位轉換器、定時單元及中斷計時器分別與所述CPU電性連接,所述CPU判斷所述突波之類型,所述類比數位轉換器讀取一音頻附件之電壓,所述定時單元設定所述突波消除電路之工作時間,所述中斷計時器計算所述類比數位轉換器讀取所述音頻附件電壓之時間。 The surge cancellation device of claim 1, wherein the processing module comprises a CPU, an analog-to-digital converter, a timing unit, and an interrupt timer, the analog digital converter, the timing unit, and The interrupt timer is electrically connected to the CPU, the CPU determines the type of the surge, the analog digital converter reads the voltage of an audio accessory, and the timing unit sets the operation of the surge cancellation circuit. At the time, the interrupt timer calculates the time at which the analog digital converter reads the audio accessory voltage. 如申請專利範圍第2項所述之突波消除裝置,其中所述突波消除電路還包括一輸入端、一第一輸出端及一第二輸出端,所述控制端之電壓由所述CPU提供,所述輸入端用於輸入音頻訊號,所述第一輸出端及第二輸出端分別輸出左右聲道訊號。 The surge elimination device of claim 2, wherein the surge cancellation circuit further includes an input terminal, a first output terminal, and a second output terminal, wherein the voltage of the control terminal is used by the CPU The input end is configured to input an audio signal, and the first output end and the second output end respectively output left and right channel signals. 如申請專利範圍第3項所述之突波消除裝置,其中所述突波消除晶片分別 與所述控制端、所述輸入端、所述第一輸出端及所述第二輸出端電性連接。 The surge removing device according to claim 3, wherein the surge removing chip is respectively And electrically connected to the control terminal, the input terminal, the first output terminal, and the second output terminal. 如申請專利範圍第4項所述之突波消除裝置,其中所述突波消除晶片為NTZD3154N,包括一第一源極、一第二源極、一第一閘極、一第二閘極、一第一汲極及一第二汲極,所述第一源極及第二源極接地,所述第一閘極及第二閘極分別與所述控制端電性連接,所述第一汲極與所述輸入端電性連接並形成一節點,所述節點與所述第一輸出端電性連接,所述第二汲極電性連接至所述第二輸出端。 The surge elimination device of claim 4, wherein the surge canceling chip is NTZD3154N, and includes a first source, a second source, a first gate, and a second gate. a first drain and a second drain, the first source and the second source are grounded, and the first gate and the second gate are electrically connected to the control end, respectively, the first The drain is electrically connected to the input end and forms a node, the node is electrically connected to the first output end, and the second drain is electrically connected to the second output end. 如申請專利範圍第5項所述之突波消除裝置,其中所述突波消除電路還包括一第一電容及一第二電容,所述節點與所述第一輸出端藉由所述第一電容串聯連接,所述第二汲極與所述第二輸出端藉由所述第二電容串聯連接。 The spur elimination device of claim 5, wherein the spur elimination circuit further includes a first capacitor and a second capacitor, wherein the node and the first output are by the first The capacitors are connected in series, and the second drain and the second output are connected in series by the second capacitor. 如申請專利範圍第2項所述之突波消除裝置,其中所述存儲模組內存儲有一用於消除第一類突波之第一流程、一用於消除第二類突波之第二流程及一附屬流程,所述附屬流程由所述第一流程及第二流程調用。 The surge elimination device of claim 2, wherein the storage module stores a first flow for eliminating the first type of surge, and a second flow for eliminating the second type of surge. And an affiliate process, where the affiliate process is invoked by the first process and the second process. 一種消除突波之方法,應用於如申請專利範圍第1-7任意一項所述之突波消除裝置中,其包括以下步驟:a.所述處理模組判斷突波之類型;b.當判斷所述突波為一第一類突波時,該處理模組運行一第一流程之步驟,所述第一流程包括:該處理模組產生一中斷訊號;該處理模組運行一附屬流程,控制該控制端之電壓為第二電平以驅動所述突波消除電路將所述突波消除;該處理模組判斷一音頻附件是否穩定;若穩定,則該音頻附件進入一穩定狀態,若不穩定,則該音頻附件進入一初始狀態,並等待產生下一中斷訊號;當判斷所述突波為一第二類突波時,該處理模組運行一第二流程之步驟 ,所述第二流程包括:該處理模組運行一附屬流程,控制該控制端之電壓為第二電平以驅動所述突波消除電路將所述突波消除;該處理模組設置一音頻路徑增益及其它參數;該處理模組停止運行所述附屬流程。 A method for eliminating a glitch, which is applied to a spur wave canceling device according to any one of claims 1 to 7, which comprises the steps of: a. the processing module determines the type of the glitch; b. When the hop is determined to be a first type of glitch, the processing module runs a first process step, the first process includes: the processing module generates an interrupt signal; and the processing module runs an auxiliary process Controlling the voltage of the control terminal to a second level to drive the surge cancellation circuit to cancel the surge; the processing module determines whether an audio accessory is stable; if stable, the audio accessory enters a stable state, If unstable, the audio accessory enters an initial state and waits for a next interrupt signal; when it is determined that the glitch is a second type of glitch, the processing module runs a second process step The second process includes: the processing module runs an auxiliary process, and controls a voltage of the control terminal to be a second level to drive the surge cancellation circuit to cancel the glitch; and the processing module sets an audio Path gain and other parameters; the processing module stops running the satellite process. 如申請專利範圍第8項所述之消除突波之方法,其中判斷所述音頻附件是否穩定時,包括一檢測是否還有中斷訊號之步驟及一判斷所述音頻附件之電壓是否為一穩定電壓之步驟,該二步驟同時進行,僅當檢測到沒有中斷訊號且判斷所述音頻附件之電壓是所述穩定電壓時,才判定所述音頻附件穩定。 The method for canceling a surge according to claim 8, wherein determining whether the audio accessory is stable includes a step of detecting whether there is an interrupt signal and determining whether the voltage of the audio accessory is a stable voltage In the step, the two steps are performed simultaneously, and it is determined that the audio accessory is stable only when it is detected that there is no interrupt signal and it is judged that the voltage of the audio accessory is the stable voltage.
TW098125027A 2009-07-24 2009-07-24 Devices and methods for eliminating pop noise TWI481837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098125027A TWI481837B (en) 2009-07-24 2009-07-24 Devices and methods for eliminating pop noise

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098125027A TWI481837B (en) 2009-07-24 2009-07-24 Devices and methods for eliminating pop noise

Publications (2)

Publication Number Publication Date
TW201104231A TW201104231A (en) 2011-02-01
TWI481837B true TWI481837B (en) 2015-04-21

Family

ID=44813529

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098125027A TWI481837B (en) 2009-07-24 2009-07-24 Devices and methods for eliminating pop noise

Country Status (1)

Country Link
TW (1) TWI481837B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9618712B2 (en) 2012-02-23 2017-04-11 Taiwan Semiconductor Manufacturing Company, Ltd. Optical bench on substrate and method of making the same
US10180547B2 (en) 2012-02-23 2019-01-15 Taiwan Semiconductor Manufacturing Company, Ltd. Optical bench on substrate

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179261A (en) * 2006-11-09 2008-05-14 鸿富锦精密工业(深圳)有限公司 Surge current suppressing circuit and audio product using the same
US20090052100A1 (en) * 2007-08-23 2009-02-26 Stephen Paul Robb Method of forming an esd detector and structure therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179261A (en) * 2006-11-09 2008-05-14 鸿富锦精密工业(深圳)有限公司 Surge current suppressing circuit and audio product using the same
US20090052100A1 (en) * 2007-08-23 2009-02-26 Stephen Paul Robb Method of forming an esd detector and structure therefor

Also Published As

Publication number Publication date
TW201104231A (en) 2011-02-01

Similar Documents

Publication Publication Date Title
JP6438070B2 (en) Adaptation of secondary path response model in downlink tone detection and noise cancellation system
US9129586B2 (en) Prevention of ANC instability in the presence of low frequency noise
JP6757416B2 (en) Feedback howl management in adaptive denoising system
KR102031023B1 (en) Sequenced adaptation of anti-noise generator response and secondary path response in an adaptive noise canceling system
US9264823B2 (en) Audio headset with automatic equalization
EP3008916A1 (en) Systems and methods for detection and cancellation of narrow-band noise
KR20150143704A (en) Systems and methods for hybrid adaptive noise cancellation
US9620101B1 (en) Systems and methods for maintaining playback fidelity in an audio system with adaptive noise cancellation
GB2558005A (en) Adaptation of dynamic range enhancement based on noise floor of signal
JP2007189543A (en) Echo canceler
TWI481837B (en) Devices and methods for eliminating pop noise
JP5352159B2 (en) Method and apparatus for calibrating a telephone handsfree system
WO2017053041A1 (en) Systems and methods for distributed adaptive noise cancellation
KR20070001710A (en) Click noise remove apparatus and method for mobile communication device
JP5221597B2 (en) Noise reduction device, noise reduction method, and audio equipment
TWI478148B (en) Signal processing apparatus
TWI763232B (en) Method and device for eliminating unstable noise
CN101937681B (en) Surge eliminating device and method
JP2010016620A (en) Radio communication device, mobile communication terminal, radio communication control method, and radio communication control program
JP7065584B2 (en) Amplifier circuit
JP4045003B2 (en) Expansion station and its system
JP4743085B2 (en) Echo canceller
JP2007124255A (en) Ip telephone and its control method
KR100585771B1 (en) Echo canceller for mobile communication device
JP2010252025A (en) External sound input circuit