TWI809710B - Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker - Google Patents

Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker Download PDF

Info

Publication number
TWI809710B
TWI809710B TW111105201A TW111105201A TWI809710B TW I809710 B TWI809710 B TW I809710B TW 111105201 A TW111105201 A TW 111105201A TW 111105201 A TW111105201 A TW 111105201A TW I809710 B TWI809710 B TW I809710B
Authority
TW
Taiwan
Prior art keywords
signal
circuit
switch
switch circuit
coupled
Prior art date
Application number
TW111105201A
Other languages
Chinese (zh)
Other versions
TW202333508A (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 TW111105201A priority Critical patent/TWI809710B/en
Application granted granted Critical
Publication of TWI809710B publication Critical patent/TWI809710B/en
Publication of TW202333508A publication Critical patent/TW202333508A/en

Links

Images

Abstract

A driving circuit of a loudspeaker includes a periodic signal generation circuit, a signal processing circuit, a class-D amplifier circuit, a current sensing circuit, and a sample and hold circuit. The periodic signal generation circuit is arranged to generate a periodic signal and a control signal. The signal processing circuit is coupled to the periodic signal generation circuit, and is arranged to generate a pre-driving signal. The class-D amplifier circuit is coupled to the signal processing circuit, and is arranged to drive the loudspeaker according to the pre-driving signal. The current sensing circuit is coupled to the class-D amplifier circuit, and is arranged to generate a current sensing signal. The sample and hold circuit is coupled to the periodic signal generation circuit and the current sensing circuit, and is arranged to sample and hold the current sensing signal according to the control signal, to generate a current sampling signal.

Description

應用於揚聲器的驅動電路以及用以產生揚聲器的電流取樣訊號的方法Driving circuit applied to loudspeaker and method for generating current sampling signal of loudspeaker

本發明係有關於電流取樣,且尤指揚聲器的驅動電路以及用以產生揚聲器的電流取樣訊號的相關方法。The present invention relates to current sampling, and especially to a driving circuit of a loudspeaker and a related method for generating a current sampling signal of the loudspeaker.

揚聲器係具有音圈(voice coil)的裝置,其中音圈移動一振膜(diaphragm)並且將電子訊號轉換為聲音訊號。當音圈的溫度過高或振膜的位移太大時,揚聲器可能會受損,對於一種典型的D類放大器來說,其係用以驅動揚聲器以達到撥放音樂的效果,然而,為了避免揚聲器受損,一種智慧放大器可能另需要偵測揚聲器的狀況(例如取得流經揚聲器的電流訊號),以判斷揚聲器操作的工作環境(例如溫度)。A loudspeaker is a device with a voice coil that moves a diaphragm and converts electrical signals into audio signals. When the temperature of the voice coil is too high or the displacement of the diaphragm is too large, the speaker may be damaged. For a typical class D amplifier, it is used to drive the speaker to achieve the effect of playing music. However, in order to avoid If the speaker is damaged, a smart amplifier may additionally need to detect the condition of the speaker (such as obtaining a signal of the current flowing through the speaker) to determine the operating environment (such as temperature) of the speaker.

舉例來說,複數個電流感測電阻(例如兩個電流感測電阻)可添加在耦接於揚聲器的D類放大器,以測量流經揚聲器的電流。一種電流偵測架構係將電流感測電阻耦接在揚聲器的兩端,另一種電流偵測架構係將電流感測電阻耦接至地。與前者相比,將電流感測電阻耦接至地的電流偵測架構具有較好的雜波底值(noise floor),然而,倘若電流感測電阻不是匹配(matching)的話(例如電流感測電阻的電阻值是不同的),則此架構可能會具有較差的二階諧波失真(second-order harmonic distortion),此外,電流感測電阻的不匹配可能會造成直流偏置(DC offset)的問題,因此,極需一種具有此架構之應用於揚聲器的新穎的驅動電路以及用以產生揚聲器之電流取樣訊號的相關方法。For example, a plurality of current sensing resistors (such as two current sensing resistors) can be added to the class D amplifier coupled to the speaker to measure the current flowing through the speaker. One current sensing architecture couples the current sensing resistor across the speaker, and the other current sensing architecture couples the current sensing resistor to ground. Compared with the former, the current sensing architecture that couples the current sensing resistor to ground has a better noise floor. However, if the current sensing resistor is not matching (such as current sensing The resistance value of the resistor is different), this architecture may have poor second-order harmonic distortion (second-order harmonic distortion), in addition, the mismatch of the current sense resistor may cause DC offset (DC offset) problems Therefore, there is a great need for a novel driving circuit with this structure applied to a loudspeaker and a related method for generating a current sampling signal of the loudspeaker.

因此,本發明的目的之一在於提供一種應用於揚聲器的驅動電路以及用以產生揚聲器之電流取樣訊號的相關方法,以解決上述問題。Therefore, one object of the present invention is to provide a driving circuit applied to a speaker and a related method for generating a current sampling signal of the speaker, so as to solve the above-mentioned problems.

根據本發明一實施例,提供了一種應用於揚聲器的驅動電路。該驅動電路可包含有一週期訊號產生電路、一訊號處理電路、一D類放大器電路、一電流感測電路以及一取樣與保持電路。週期訊號產生電路可用以產生一週期訊號以及一控制訊號,其中控制訊號係用以指示週期訊號之一特定極端值的發生時序。訊號處理電路可耦接於週期訊號產生電路,並且可用以接收一第一音頻輸入訊號、一第二音頻輸入訊號以及週期訊號,以及根據第一音頻輸入訊號、第二音頻輸入訊號以及週期訊號來產生一預驅動訊號,其中第二音頻輸入訊號係第一音頻輸入訊號的一反向訊號。D類放大器電路可耦接於訊號處理電路,並且可用以根據預驅動訊號來驅動揚聲器。電流感測電路可耦接於D類放大器電路,並且可用以感測揚聲器的一驅動電流以產生一電流感測訊號。取樣與保持電路可耦接於週期訊號產生電路以及電流感測電路,並且可用以根據控制訊號來取樣與保持電流感測訊號,以產生揚聲器的一電流取樣訊號。According to an embodiment of the present invention, a driving circuit applied to a speaker is provided. The driving circuit may include a period signal generating circuit, a signal processing circuit, a class D amplifier circuit, a current sensing circuit and a sample and hold circuit. The periodic signal generating circuit can be used to generate a periodic signal and a control signal, wherein the control signal is used to indicate the occurrence timing of a specific extreme value of the periodic signal. The signal processing circuit can be coupled to the periodic signal generating circuit, and can be used to receive a first audio input signal, a second audio input signal and the periodic signal, and to process according to the first audio input signal, the second audio input signal and the periodic signal A pre-drive signal is generated, wherein the second audio input signal is an inverse signal of the first audio input signal. The class D amplifier circuit can be coupled to the signal processing circuit and can be used to drive the speaker according to the pre-drive signal. The current sensing circuit can be coupled to the class D amplifier circuit, and can be used to sense a driving current of the speaker to generate a current sensing signal. The sample and hold circuit can be coupled to the period signal generating circuit and the current sensing circuit, and can be used to sample and hold the current sensing signal according to the control signal, so as to generate a current sampling signal of the speaker.

根據本發明一實施例,提供了一種用以產生揚聲器之電流取樣訊號的方法。該方法可包含有:產生一週期訊號以及一控制訊號,其中控制訊號係用以指示週期訊號的一特定極端值的發生時序;根據一第一音頻輸入訊號、一第二音頻輸入訊號以及週期訊號來產生一預驅動訊號,其中第二音頻輸入訊號係第一音頻輸入訊號的一反向訊號;藉由一D類放大器電路來根據預驅動訊號驅動揚聲器;感測揚聲器的一驅動電流以產生一電流感測訊號;以及根據控制訊號來取樣與保持電流感測訊號,以產生電流取樣訊號。According to an embodiment of the present invention, a method for generating a current sampling signal of a speaker is provided. The method may include: generating a periodic signal and a control signal, wherein the control signal is used to indicate the occurrence timing of a specific extreme value of the periodic signal; according to a first audio input signal, a second audio input signal and the periodic signal to generate a pre-drive signal, wherein the second audio input signal is an inverse signal of the first audio input signal; a class D amplifier circuit is used to drive the speaker according to the pre-drive signal; a drive current of the speaker is sensed to generate a a current sensing signal; and sampling and holding the current sensing signal according to the control signal to generate a current sampling signal.

根據本發明另一實施例,提供了一種應用於揚聲器的驅動電路。該驅動電路可包含有一週期訊號產生電路、一訊號處理電路、一D類放大器電路、一電流感測電路、一邏輯控制電路以及一取樣與保持電路。週期訊號產生電路可用以產生一週期訊號。訊號處理電路可耦接於週期訊號產生電路,並且可用以接收一第一音頻訊號、一第二音頻輸入訊號以及週期訊號,以及根據第一音頻訊號、第二音頻輸入訊號以及週期訊號來產生一預驅動訊號,其中第二音頻輸入訊號係第一音頻輸入訊號的一反向訊號。D類放大器電路可耦接於訊號處理電路,並且可用以根據預驅動訊號來驅動揚聲器。電流感測電路可耦接於D類放大器電路,並且可用以感測揚聲器的一驅動電流,以產生一電流感測訊號。邏輯控制電路可耦接於訊號處理電路,並且可用以根據預驅動訊號來產生一控制訊號。取樣與保持電路可耦接於電流感測電路以及邏輯控制電路,並且可用以根據控制訊號來取樣與保持電流感測訊號,以產生一第一電流取樣訊號。According to another embodiment of the present invention, a driving circuit applied to a speaker is provided. The driving circuit may include a period signal generating circuit, a signal processing circuit, a class D amplifier circuit, a current sensing circuit, a logic control circuit and a sample and hold circuit. The periodic signal generating circuit can be used to generate a periodic signal. The signal processing circuit can be coupled to the period signal generating circuit, and can be used to receive a first audio signal, a second audio input signal and the period signal, and generate a signal according to the first audio signal, the second audio input signal and the period signal The pre-drive signal, wherein the second audio input signal is an inverse signal of the first audio input signal. The class D amplifier circuit can be coupled to the signal processing circuit and can be used to drive the speaker according to the pre-drive signal. The current sensing circuit can be coupled to the class D amplifier circuit, and can be used to sense a driving current of the speaker to generate a current sensing signal. The logic control circuit can be coupled to the signal processing circuit, and can be used to generate a control signal according to the pre-drive signal. The sample and hold circuit can be coupled to the current sensing circuit and the logic control circuit, and can be used to sample and hold the current sensing signal according to the control signal to generate a first current sampling signal.

根據本發明另一實施例,提供了一種用以產生揚聲器之第一電流取樣訊號的方法。該方法可包含有:產生一週期訊號;根據一第一音頻訊號、一第二音頻輸入訊號以及週期訊號來產生一預驅動訊號,其中第二音頻輸入訊號係第一音頻輸入訊號的一反向訊號;藉由一D類放大器電路來根據預驅動訊號驅動揚聲器;感測揚聲器的一驅動電流以產生一電流感測訊號;根據預驅動訊號來產生一控制訊號;以及根據控制訊號來取樣與保持電流感測訊號,以產生一第二電流取樣訊號。此外,該方法可另包含有:對第二電流許樣訊號進行計算,以產生第一電流取樣訊號。According to another embodiment of the present invention, a method for generating a first current sampling signal of a speaker is provided. The method may include: generating a periodic signal; generating a pre-drive signal according to a first audio signal, a second audio input signal and the periodic signal, wherein the second audio input signal is an inversion of the first audio input signal signal; drive the speaker according to the pre-drive signal by a class D amplifier circuit; sense a driving current of the speaker to generate a current sensing signal; generate a control signal according to the pre-drive signal; and sample and hold according to the control signal The current sensing signal is used to generate a second current sampling signal. In addition, the method may further include: calculating the second current sampling signal to generate the first current sampling signal.

本發明的好處之一在於,藉由根據控制訊號來在三角波訊號具有峰值的時間點取樣與保持電流感測訊號,可以改善二階諧波失真並且可以避免直流偏置的問題,其中三角波訊號的峰值對應於一時段,並且在該時段時,電流同時流經揚聲器以及所有電流感測電阻。此外,可以根據控制訊號來僅於電流同時流經揚聲器以及所有電流感測電阻的時段中取樣與保持電流感測訊號,以產生一第一電流取樣訊號,接著,可以對第一電流取樣訊號進行平均值計算,以產生揚聲器的一第二電流取樣訊號,如此一來,二階諧波失真也可以被改善並且直流偏置的問題也可以被避免。One of the advantages of the present invention is that by sampling and holding the current sensing signal at the time point when the triangular wave signal has a peak value according to the control signal, the second-order harmonic distortion can be improved and the problem of DC bias can be avoided, wherein the peak value of the triangular wave signal is corresponds to a time period, and during this time period, current flows through the speaker and all current sense resistors at the same time. In addition, according to the control signal, the current sensing signal can be sampled and held only during the period when the current flows through the speaker and all the current sensing resistors at the same time, so as to generate a first current sampling signal, and then, the first current sampling signal can be performed The average value is calculated to generate a second current sampling signal of the loudspeaker, so that the second order harmonic distortion can also be improved and the DC bias problem can also be avoided.

第1圖為依據本發明一實施例之應用於揚聲器11的驅動電路10的示意圖。驅動電路10可包含有週期訊號產生電路(例如三角波(triangle wave)產生電路100)、訊號處理電路102、D類放大器(class-D amplifier)電路104、電流感測電路105以及取樣與保持(sample and hold)電路106,應注意的是,三角波產生電路100僅用以說明之用,並且本發明不以此為限,實際上,任一其它類型的週期訊號(例如鋸齒波(sawtooth wave)訊號)皆會落入本發明的範疇。三角波產生電路100可用以產生三角波訊號TRI以及控制訊號CS,其中控制訊號CS可用以指示三角波訊號TRI之一特定極端值(例如一峰值(peak value))的發生時序。FIG. 1 is a schematic diagram of a driving circuit 10 applied to a speaker 11 according to an embodiment of the present invention. The driving circuit 10 may include a periodic signal generating circuit (such as a triangle wave (triangle wave) generating circuit 100), a signal processing circuit 102, a class-D amplifier (class-D amplifier) circuit 104, a current sensing circuit 105, and a sample and hold (sample and hold) circuit 106, it should be noted that the triangular wave generating circuit 100 is only used for illustration, and the present invention is not limited thereto, in fact, any other type of periodic signal (such as a sawtooth wave (sawtooth wave) signal ) will fall into the scope of the present invention. The triangular wave generating circuit 100 can be used to generate the triangular wave signal TRI and the control signal CS, wherein the control signal CS can be used to indicate the occurrence timing of a specific extreme value (eg a peak value) of the triangular wave signal TRI.

訊號處理電路102可耦接於三角波產生電路100,並且可用以接收兩個音頻輸入訊號A_IN與 以及三角波訊號TRI,以及根據兩個音頻輸入訊號A_IN與 以及三角波訊號TRI來產生預驅動訊號PDRV,其中預驅動訊號PDRV包含有第一開關預驅動訊號F_SW以及第二開關預驅動訊號S_SW,以及音頻輸入訊號 係音頻輸入訊號A_IN的一反向訊號(亦即音頻輸入訊號 與音頻輸入訊號A_IN之間的相位差係等於180度)。訊號處理電路102可包含有兩個比較器(comparator)電路108與110以及兩個預驅動器(pre-driver)電路112與114,比較器電路108可耦接於三角波產生電路100,並且可用以對音頻輸入訊號A_IN與三角波訊號TRI進行比較,以產生第一比較器結果訊號F_COM,比較器電路110可耦接於三角波產生電路100,並且可用以對音頻輸入訊號 與三角波訊號TRI進行比較,以產生第二比較器結果訊號S_COM,預驅動器電路112可耦接於比較器電路108,並且可用以根據第一比較器結果訊號F_COM來產生第一開關預驅動訊號F_SW,預驅動器電路114可耦接於比較器電路110,並且可用以根據第二比較器結果訊號S_COM來產生第二開關預驅動訊號S_SW。 The signal processing circuit 102 can be coupled to the triangular wave generating circuit 100, and can be used to receive two audio input signals A_IN and And the triangle wave signal TRI, and according to the two audio input signals A_IN and and the triangular wave signal TRI to generate the pre-drive signal PDRV, wherein the pre-drive signal PDRV includes the first switch pre-drive signal F_SW and the second switch pre-drive signal S_SW, and the audio input signal It is an inverse signal of the audio input signal A_IN (that is, the audio input signal The phase difference with the audio input signal A_IN is equal to 180 degrees). The signal processing circuit 102 can include two comparator circuits 108 and 110 and two pre-driver circuits 112 and 114. The comparator circuit 108 can be coupled to the triangular wave generating circuit 100 and can be used for The audio input signal A_IN is compared with the triangular wave signal TRI to generate a first comparator result signal F_COM. The comparator circuit 110 can be coupled to the triangular wave generating circuit 100 and can be used to compare the audio input signal Comparing with the triangular wave signal TRI to generate the second comparator result signal S_COM, the pre-driver circuit 112 can be coupled to the comparator circuit 108, and can be used to generate the first switch pre-drive signal F_SW according to the first comparator result signal F_COM The pre-driver circuit 114 can be coupled to the comparator circuit 110 and can be used to generate the second switch pre-drive signal S_SW according to the second comparator result signal S_COM.

揚聲器11係作為D類放大器電路104的一負載(load),D類放大器電路104可耦接於訊號處理電路102,並且可用以根據預驅動訊號PDRV(亦即第一開關預驅動訊號F_SW以及第二開關預驅動訊號S_SW)來驅動揚聲器11,D類放大器電路104可包含有四個開關電路116、118、120以及122,開關電路116具有耦接於一第一參考電壓(例如電源電壓VDD)的一第一端,開關電路118具有耦接於該第一參考電壓(例如電源電壓VDD)的一第一端,其中揚聲器11係耦接在開關電路116的一第二端以及開關電路118的一第二端之間。開關電路120具有耦接於開關電路116之第二端的一第一端,並且開關電路122具有耦接於開關電路118之第二端的一第一端,此外,第一開關預驅動訊號F_SW可用以導通(conduct)開關電路116以及開關電路120的其一,以及第二開關預驅動訊號S_SW可用以導通開關電路118以及開關電路122的其一。The loudspeaker 11 is used as a load of the class D amplifier circuit 104. The class D amplifier circuit 104 can be coupled to the signal processing circuit 102 and can be used to switch according to the pre-drive signal PDRV (that is, the first switch pre-drive signal F_SW and the first switch pre-drive signal F_SW and the second Two switch pre-drive signals S_SW) to drive the speaker 11, the class D amplifier circuit 104 may include four switch circuits 116, 118, 120 and 122, the switch circuit 116 has a power coupled to a first reference voltage (such as the power supply voltage VDD) A first end of the switch circuit 118 has a first end coupled to the first reference voltage (such as a power supply voltage VDD), wherein the speaker 11 is coupled to a second end of the switch circuit 116 and a second end of the switch circuit 118 between a second end. The switch circuit 120 has a first end coupled to the second end of the switch circuit 116, and the switch circuit 122 has a first end coupled to the second end of the switch circuit 118. In addition, the first switch pre-drive signal F_SW can be used to One of the switch circuit 116 and the switch circuit 120 is conducted, and the second switch pre-driving signal S_SW can be used to conduct one of the switch circuit 118 and the switch circuit 122 .

應注意的是,D類放大器電路104的調變(modulation)方法係BD調變,也就是說,在D類放大器電路104中流經揚聲器11的電流方向有4種,根據第一開關預驅動訊號F_SW以及第二開關預驅動訊號S_SW,可以取得4個開關電路116、118、120以及122的4個開關時序a、b、c以及d,假設在開關電路116以及開關電路120之間的一節點的電壓為VOUTA,以及在開關電路118以及開關電路122之間的一節點的電壓為VOUTB。It should be noted that the modulation (modulation) method of the class D amplifier circuit 104 is BD modulation, that is to say, there are four directions of current flowing through the speaker 11 in the class D amplifier circuit 104, according to the first switch pre-drive signal F_SW and the second switch pre-drive signal S_SW can obtain the four switch timings a, b, c and d of the four switch circuits 116, 118, 120 and 122, assuming a node between the switch circuit 116 and the switch circuit 120 The voltage of VOUTA is VOUTA, and the voltage of a node between the switch circuit 118 and the switch circuit 122 is VOUTB.

對於音頻輸入訊號A_IN的正半週期(positive half cycle)來說,在開關時序a中,第一開關預驅動訊號F_SW可用以導通開關電路116,並且第二開關預驅動訊號S_SW可用以導通開關電路122(亦即電壓VOUTA係高位準,以及電壓VOUTB係低位準);在開關時序b中,第一開關預驅動訊號F_SW可用以導通開關電路116,以及第二開關預驅動訊號S_SW可用以導通開關電路118(亦即電壓VOUTA以及電壓VOUTB皆為高位準);在開關時序c中,第一開關預驅動訊號F_SW可用以導通開關電路116,以及第二開關預驅動訊號S_SW可用以導通開關電路122(亦即電壓VOUTA係高位準,以及電壓VOUTB係低位準);以及在開關時序d中,第一開關預驅動訊號F_SW可用以導通開關電路120,以及第二開關預驅動訊號S_SW可用以導通開關電路122(亦即電壓VOUTA以及電壓VOUTB皆為低位準)。For the positive half cycle of the audio input signal A_IN, in the switching sequence a, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 116, and the second switch pre-drive signal S_SW can be used to turn on the switch circuit. 122 (that is, the voltage VOUTA is a high level, and the voltage VOUTB is a low level); in the switching sequence b, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 116, and the second switch pre-drive signal S_SW can be used to turn on the switch The circuit 118 (that is, the voltage VOUTA and the voltage VOUTB are both at a high level); in the switching sequence c, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 116 , and the second switch pre-drive signal S_SW can be used to turn on the switch circuit 122 (that is, the voltage VOUTA is at a high level, and the voltage VOUTB is at a low level); and in the switching sequence d, the first switch pre-driving signal F_SW can be used to turn on the switch circuit 120, and the second switch pre-driving signal S_SW can be used to turn on the switch The circuit 122 (that is, the voltage VOUTA and the voltage VOUTB are both low).

對於音頻輸入訊號A_IN的負半週期(negative half cycle)來說,在開關時序a中,第一開關預驅動訊號F_SW可用以導通開關電路120,以及第二開關預驅動訊號S_SW可用以導通開關電路118(亦即電壓VOUTA係低位準,以及電壓VOUTB係高位準);在開關時序b中,第一開關預驅動訊號F_SW可用以導通開關電路116,以及第二開關預驅動訊號S_SW可用以導通開關電路118(亦即電壓VOUTA以及電壓VOUTB皆為高位準);在開關時序c中,第一開關預驅動訊號F_SW可用以導通開關電路120,以及第二開關預驅動訊號S_SW可用以導通開關電路118(亦即電壓VOUTA係低位準,以及電壓VOUTB係高位準);以及在開關時序d中,第一開關預驅動訊號F_SW可用以導通開關電路120,以及第二開關預驅動訊號S_SW可用以導通開關電路122(亦即電壓VOUTA以及電壓VOUTB皆為低位準)。For the negative half cycle of the audio input signal A_IN, in the switching sequence a, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 120, and the second switch pre-drive signal S_SW can be used to turn on the switch circuit. 118 (that is, the voltage VOUTA is a low level, and the voltage VOUTB is a high level); in the switching sequence b, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 116, and the second switch pre-drive signal S_SW can be used to turn on the switch The circuit 118 (that is, the voltage VOUTA and the voltage VOUTB are both at a high level); in the switching sequence c, the first switch pre-drive signal F_SW can be used to turn on the switch circuit 120 , and the second switch pre-drive signal S_SW can be used to turn on the switch circuit 118 (that is, the voltage VOUTA is at a low level, and the voltage VOUTB is at a high level); and in the switching sequence d, the first switch pre-driving signal F_SW can be used to turn on the switch circuit 120, and the second switch pre-driving signal S_SW can be used to turn on the switch The circuit 122 (that is, the voltage VOUTA and the voltage VOUTB are both low).

電流感測電路105可耦接於D類放大器電路104,並且可用以感測揚聲器11的驅動電流來產生電流感測訊號Isen,電流感測電路105可包含有兩個電流感測電阻124與126,其中電流感測電阻124可耦接在開關電路120的一第二端以及一第二參考電壓(例如接地電壓GND)之間,以及電流感測電阻126可耦接在開關電路122的一第二端以及該第二參考電壓(例如接地電壓GND)之間。The current sensing circuit 105 can be coupled to the class D amplifier circuit 104 and can be used to sense the driving current of the speaker 11 to generate a current sensing signal Isen. The current sensing circuit 105 can include two current sensing resistors 124 and 126 , wherein the current sensing resistor 124 can be coupled between a second terminal of the switch circuit 120 and a second reference voltage (such as ground voltage GND), and the current sensing resistor 126 can be coupled to a first terminal of the switch circuit 122 between the two terminals and the second reference voltage (such as ground voltage GND).

鑑於以上所述,在開關時序a中,對於音頻輸入訊號A_IN的正半週期來說,電流會依序地流經開關電路116、揚聲器11、開關電路122以及電流感測電阻126,因此,電流感測訊號Isen係根據電流感測電阻124來產生,對於音頻輸入訊號A_IN的負半週期來說,電流會依序地流經開關電路118、揚聲器11、開關電路120以及電流感測電阻124,因此,電流感測訊號Isen係根據電流感測電阻124來產生,然而,倘若電流感測電阻124以及電流感測電阻126不是匹配(matching)的話(例如電流感測電阻124之電阻值與電流感測電阻126之電阻值不同),則藉由電流感測電路105所產生的電流感測訊號Isen可能會不相同。在開關時序b中,對於音頻輸入訊號A_IN的正半週期或負半週期來說,電流會依序地流經開關電路116、揚聲器11、開關電路118(亦即不會流經電流感測電阻124或電流感測電阻126),因此,在開關時序b中,電流感測訊號Isen係等於0。在開關時序c中的電流方向與在開關時序a中的電流方向相同,為了簡潔起見,在此不再重複詳細描述類似內容。In view of the above, in the switching sequence a, for the positive half cycle of the audio input signal A_IN, the current will sequentially flow through the switch circuit 116, the speaker 11, the switch circuit 122 and the current sensing resistor 126, therefore, the current The sensing signal Isen is generated according to the current sensing resistor 124. For the negative half cycle of the audio input signal A_IN, the current flows through the switch circuit 118, the speaker 11, the switch circuit 120 and the current sensing resistor 124 in sequence, Therefore, the current sensing signal Isen is generated according to the current sensing resistor 124, however, if the current sensing resistor 124 and the current sensing resistor 126 are not matching (matching) (for example, the resistance value of the current sensing resistor 124 and the current sensing If the resistance value of the measuring resistor 126 is different), the current sensing signal Isen generated by the current sensing circuit 105 may be different. In the switching sequence b, for the positive half cycle or the negative half cycle of the audio input signal A_IN, the current will sequentially flow through the switch circuit 116, the speaker 11, and the switch circuit 118 (that is, the current will not flow through the current sensing resistor 124 or the current sensing resistor 126 ), therefore, in the switching sequence b, the current sensing signal Isen is equal to 0. The current direction in the switching sequence c is the same as the current direction in the switching sequence a, and for the sake of brevity, similar content will not be described in detail here.

另一方面,在開關時序d中,對於音頻輸入訊號A_IN的正半週期或負半週期來說,電流會依序地流經電流感測電阻124、開關電路120、揚聲器11、開關電路122以及電流感測電阻126(在第1圖中,電流方向以虛線來標示),並且電流感測訊號Isen係根據電流感測電阻124以及電流感測電阻126來產生,無論電流感測電阻124與電流感測電阻126是否匹配(亦即無論電流感測電阻124之電阻值以及電流感測電阻126之電阻值是否相同),藉由電流感測電路105所產生的電流感測訊號Isen皆會相同。此外,要注意的是,在三角波訊號TRI之峰值的發生時序時,4個開關電路116、118、120以及122具有開關時序d,因此,取樣與保持電路106可耦接於三角波產生電路100以及電流感測電路105,並且可用以根據控制訊號CS在三角波訊號TRI具有峰值的時間點取樣與保持電流感測訊號Isen,以產生揚聲器11的電流取樣訊號Isam,如此一來,可以改善電流感測電阻124以及電流感測電阻126的不匹配而造成的二階諧波失真(second-order harmonic distortion)以及直流偏置(DC offset)。On the other hand, in the switching sequence d, for the positive half cycle or the negative half cycle of the audio input signal A_IN, the current will sequentially flow through the current sensing resistor 124, the switch circuit 120, the speaker 11, the switch circuit 122 and The current sensing resistor 126 (in Figure 1, the current direction is marked with a dotted line), and the current sensing signal Isen is generated according to the current sensing resistor 124 and the current sensing resistor 126, regardless of the current sensing resistor 124 and the current Whether the sensing resistors 126 match (that is, whether the resistance values of the current sensing resistor 124 and the current sensing resistor 126 are the same), the current sensing signal Isen generated by the current sensing circuit 105 will be the same. In addition, it should be noted that the four switch circuits 116, 118, 120, and 122 have a switching timing d at the timing of the peak value of the triangular wave signal TRI. Therefore, the sampling and holding circuit 106 can be coupled to the triangular wave generating circuit 100 and The current sensing circuit 105 can be used to sample and hold the current sensing signal Isen at the time point when the triangular wave signal TRI has a peak value according to the control signal CS, so as to generate the current sampling signal Isam of the speaker 11. In this way, the current sensing can be improved Second-order harmonic distortion (second-order harmonic distortion) and DC offset (DC offset) caused by the mismatch between the resistor 124 and the current sensing resistor 126 .

第2圖為依據本發明一實施例之第1圖所示之驅動電路10的相關訊號的示意圖。在本實施例中,三角波訊號TRI可以與音頻輸入訊號A_IN以及相對應的音頻輸入訊號 的正半週期進行比較,以產生4個開關時序a、b、c以及d,其中4個開關時序a、b、c以及d分別對應於4個時段A、B、c以及D。此外,如第2圖所示,三角波訊號TRI的峰值對應於時段D(在時段D中,電壓VOUTA以及電壓VOUTB皆為低位準),並且可以根據控制訊號CS在三角波訊號TRI具有峰值的時間點取樣與保持電流感測訊號Isen,以產生電流取樣訊號Isam,為簡潔起見,於本實施例中類似的內容在此不再重複詳細描述。 FIG. 2 is a schematic diagram of related signals of the driving circuit 10 shown in FIG. 1 according to an embodiment of the present invention. In this embodiment, the triangular wave signal TRI can be combined with the audio input signal A_IN and the corresponding audio input signal The positive half-periods are compared to generate four switching sequences a, b, c, and d, wherein the four switching sequences a, b, c, and d correspond to the four periods A, B, c, and D, respectively. In addition, as shown in FIG. 2, the peak value of the triangular wave signal TRI corresponds to the period D (in the period D, the voltage VOUTA and the voltage VOUTB are both at low levels), and the time point when the triangular wave signal TRI has a peak value can be determined according to the control signal CS. The current sensing signal Isen is sampled and held to generate the current sampling signal Isam. For the sake of brevity, similar content in this embodiment will not be described in detail here.

第3圖為依據本發明一實施例之一種用以產生揚聲器之電流取樣訊號的方法流程圖。假若可以得到相同的結果,則步驟不一定要完全遵照第3圖所示的流程來依序執行,舉例來說,於第3圖所示之方法可由第1圖所示之驅動電路10來加以實現。FIG. 3 is a flowchart of a method for generating a current sampling signal of a loudspeaker according to an embodiment of the present invention. If the same result can be obtained, the steps do not have to be executed sequentially according to the flow shown in FIG. 3. For example, the method shown in FIG. 3 can be implemented by the driving circuit 10 shown in FIG. 1 accomplish.

在步驟S300中,產生三角波訊號TRI以及控制訊號CS,其中控制訊號CS係用以指示三角波訊號TRI之峰值的發生時序。In step S300 , the triangular wave signal TRI and the control signal CS are generated, wherein the control signal CS is used to indicate the occurrence timing of the peak value of the triangular wave signal TRI.

在步驟S302中,根據音頻輸入訊號A_IN、音頻輸入訊號 以及三角波訊號TRI來產生預驅動訊號PDRV,其中音頻輸入訊號 係音頻輸入訊號A_IN的一反向訊號。 In step S302, according to the audio input signal A_IN, the audio input signal And the triangular wave signal TRI to generate the pre-drive signal PDRV, where the audio input signal It is an inverse signal of the audio input signal A_IN.

在步驟S304中,根據預驅動訊號PDRV來藉由D類放大器電路104驅動揚聲器11。In step S304 , the speaker 11 is driven by the class D amplifier circuit 104 according to the pre-driving signal PDRV.

在步驟S306中,感測揚聲器11的驅動電流來產生電流感測訊號Isen。In step S306 , the driving current of the speaker 11 is sensed to generate a current sensing signal Isen.

在步驟S308中,根據控制訊號CS來取樣與保持電流感測訊號Isen,以產生揚聲器11的電流取樣訊號Isam。In step S308 , the current sensing signal Isen is sampled and held according to the control signal CS to generate the current sampling signal Isam of the speaker 11 .

由於熟習技藝者可透過上述說明書中有關第1圖所示之驅動電路10的內容而輕易瞭解第3圖所示各步驟的操作,為了簡潔起見,於本實施例中類似的內容在此不重複贅述。Since those skilled in the art can easily understand the operation of each step shown in FIG. 3 through the content of the driving circuit 10 shown in FIG. 1 in the above specification, for the sake of brevity, similar content in this embodiment is not omitted here. Repeat.

第4圖為依據本發明另一實施例之應用於揚聲器41的驅動電路40的示意圖。驅動電路40可包含有一週期訊號產生電路(例如三角波產生電路400)、訊號處理電路402、D類放大器電路404、邏輯控制電路406、取樣與保持電路408以及一計算電路(例如平均電路410),應注意的是,三角波產生電路400以及平均電路410僅作為說明之用,並且本發明不以此為限,實際上,任何其它類型的週期訊號(例如鋸齒波訊號)以及任何其它類型的計算電路均會落入本發明的範疇。FIG. 4 is a schematic diagram of a driving circuit 40 applied to a speaker 41 according to another embodiment of the present invention. The drive circuit 40 may include a periodic signal generation circuit (such as a triangular wave generation circuit 400), a signal processing circuit 402, a class D amplifier circuit 404, a logic control circuit 406, a sample and hold circuit 408, and a calculation circuit (such as an average circuit 410), It should be noted that the triangular wave generating circuit 400 and the averaging circuit 410 are only used for illustration, and the present invention is not limited thereto. In fact, any other type of periodic signal (such as a sawtooth wave signal) and any other type of calculation circuit All will fall into the category of the present invention.

第1圖所示之驅動電路10以及第4圖所示之驅動電路40的差別在於驅動電路40另包含有邏輯控制電路406以及平均電路410,並且三角波產生電路402係用以產生三角波訊號TRI,而沒有產生用來指示一週期訊號之一特定極端值(例如三角波訊號TRI的峰值)之發生時序的伴隨訊號。邏輯控制電路406可耦接於訊號處理電路402,並且可用以根據預驅動訊號PDRV(亦即第一開關預驅動訊號F_SW以及第二開關預驅動訊號S_SW)來產生控制訊號CS’。取樣與保持電路408可耦接於電流感測電路405以及邏輯控制電路406,並且可用以根據控制訊號CS’來取樣與保持電流感測訊號Isen,以產生第一電流取樣訊號F_Isam。在本實施例中,第一電流取樣訊號F_Isam係電流感測訊號Isen之連續取樣值的匯集,平均電路410可耦接於取樣與保持電路408,並且可用以對第一電流取樣訊號F_Isam進行平均值計算,以產生揚聲器41的第二電流取樣訊號S_Isam,為簡潔起見,於本實施例中類似的內容在此不重複贅述。The difference between the driving circuit 10 shown in FIG. 1 and the driving circuit 40 shown in FIG. 4 is that the driving circuit 40 further includes a logic control circuit 406 and an averaging circuit 410, and the triangular wave generating circuit 402 is used to generate the triangular wave signal TRI, There is no accompanying signal used to indicate the occurrence timing of a specific extreme value of a periodic signal (such as the peak value of the triangular wave signal TRI). The logic control circuit 406 can be coupled to the signal processing circuit 402, and can be used to generate the control signal CS' according to the pre-drive signal PDRV (ie, the first switch pre-drive signal F_SW and the second switch pre-drive signal S_SW). The sample and hold circuit 408 can be coupled to the current sensing circuit 405 and the logic control circuit 406, and can be used to sample and hold the current sensing signal Isen according to the control signal CS' to generate the first current sampling signal F_Isam. In this embodiment, the first current sampling signal F_Isam is a collection of continuous sampling values of the current sensing signal Isen. The averaging circuit 410 can be coupled to the sample and hold circuit 408 and can be used to average the first current sampling signal F_Isam. The values are calculated to generate the second current sampling signal S_Isam of the speaker 41. For the sake of brevity, the similar content in this embodiment will not be repeated here.

應注意的是,邏輯控制電路406可用以根據第一邏輯值L1以及第二邏輯值L2來產生控制訊號CS’,其中可以根據第一開關預驅動訊號F_SW來產生第一邏輯值L1,以及可以根據第二開關預驅動訊號S_SW來產生第二邏輯值L2。舉例來說,邏輯控制電路406可以是一非或閘(NOR gate)電路,其中該非或閘電路具有耦接於預驅動器電路416的一第一輸入端、耦接於預驅動器電路418的一第二輸入端以及耦接於取樣與保持電路408的一輸出端,並且可用以接收第一邏輯值L1以及第二邏輯值L2,以產生控制訊號CS’,但是本發明不以此為限。It should be noted that the logic control circuit 406 can be used to generate the control signal CS′ according to the first logic value L1 and the second logic value L2, wherein the first logic value L1 can be generated according to the first switch pre-driving signal F_SW, and can be The second logic value L2 is generated according to the second switch pre-driving signal S_SW. For example, the logic control circuit 406 can be a NOR gate circuit, wherein the NOR gate circuit has a first input terminal coupled to the pre-driver circuit 416 and a first input terminal coupled to the pre-driver circuit 418. Two input terminals and an output terminal coupled to the sample-and-hold circuit 408 are used to receive the first logic value L1 and the second logic value L2 to generate the control signal CS′, but the invention is not limited thereto.

當根據第一開關預驅動訊號F_SW而開啟開關電路420(亦即電壓VOUTA係高位準)時,第一邏輯值L1係等於1;以及當根據第一開關預驅動訊號F_SW而開啟開關電路424(亦即電壓VOUTA係低位準)時,第一邏輯值L1係等於0。另一方面,當根據第二開關預驅動訊號S_SW而開啟開關電路422(亦即電壓VOUTB係高位準)時,第二邏輯值L2係等於1;以及當根據第二開關預驅動訊號S_SW而開啟開關電路426(亦即電壓VOUTB係低位準)時,第二邏輯值L2係等於0。控制訊號CS’可用以控制取樣與保持電路408以僅於分別藉由第一開關預驅動訊號F_SW以及第二開關預驅動訊號S_SW來開啟開關電路424以及開關電路426(亦即電壓VOUTA與電壓VOUTB皆為低位準,以及第一邏輯值L1與第二邏輯值L2皆為0)的時段中取樣與保持電流感測訊號Isen,也就是說,僅當控制訊號CS’係等於1(亦即對第一邏輯值L1(L1=0)以及第二邏輯值L2(L2=0)進行非或(NOR)操作的一結果係等於1)時,藉由取樣與保持電路408來取樣與保持電流感測訊號Isen,以產生第一電流取樣訊號F_Isam。When the switch circuit 420 is turned on according to the first switch pre-drive signal F_SW (that is, the voltage VOUTA is at a high level), the first logic value L1 is equal to 1; and when the switch circuit 424 is turned on according to the first switch pre-drive signal F_SW ( That is, when the voltage VOUTA is at a low level), the first logic value L1 is equal to 0. On the other hand, when the switch circuit 422 is turned on according to the second switch pre-drive signal S_SW (that is, the voltage VOUTB is at a high level), the second logic value L2 is equal to 1; and when the switch circuit 422 is turned on according to the second switch pre-drive signal S_SW When the switch circuit 426 (that is, the voltage VOUTB is at a low level), the second logic value L2 is equal to 0. The control signal CS' can be used to control the sample and hold circuit 408 to turn on the switch circuit 424 and the switch circuit 426 (that is, the voltage VOUTA and the voltage VOUTB) only when the first switch pre-drive signal F_SW and the second switch pre-drive signal S_SW are used to turn on the switch circuit 424 and the switch circuit 426 respectively. Both are low level, and the first logic value L1 and the second logic value L2 are both 0) to sample and hold the current sensing signal Isen, that is to say, only when the control signal CS' is equal to 1 (that is, for When the first logical value L1 (L1=0) and the second logical value L2 (L2=0) perform a NOT-OR (NOR) operation and a result is equal to 1), the current sense is sampled and held by the sample and hold circuit 408 The signal Isen is measured to generate a first current sampling signal F_Isam.

第5圖為依據本發明一實施例之第4圖所示之驅動電路40的相關訊號的示意圖。三角波訊號TRI可以與音頻輸入訊號A_IN以及相對應的音頻輸入訊號 的正半週期進行比較,以及第一邏輯值L1以及第二邏輯值L2的邏輯組合(亦即10、11、10以及00)分別對應於4個時段A、B、C以及D。在時段A中,電壓VOUTA係高位準並且電壓VOUTB係低位準(亦即第一邏輯值L1以及第二邏輯值L2的邏輯組合係10);在時段B中,電壓VOUTA與電壓VOUTB皆為高位準(亦即第一邏輯值L1以及第二邏輯值L2的邏輯組合係11);在時段C中,電壓VOUTA係高位準並且電壓VOUTB係低位準(亦即第一邏輯值L1以及第二邏輯值L2的邏輯組合係10);以及在時段D中,電壓VOUTA與電壓VOUTB皆為低位準(亦即第一邏輯值L1以及第二邏輯值L2的邏輯組合係00)。此外,如第5圖所示,根據控制訊號CS’來僅於時段D中取樣與保持電流感測訊號Isen,為了簡潔起見,於本實施例中類似的內容在此不重複贅述。 FIG. 5 is a schematic diagram of related signals of the driving circuit 40 shown in FIG. 4 according to an embodiment of the present invention. The triangular wave signal TRI can be connected with the audio input signal A_IN and the corresponding audio input signal The positive half cycle of the first logic value L1 and the second logic value L2 are compared, and the logic combination of the first logic value L1 and the second logic value L2 (ie 10, 11, 10, and 00) corresponds to the four periods A, B, C, and D, respectively. In the period A, the voltage VOUTA is at a high level and the voltage VOUTB is at a low level (that is, the logical combination of the first logic value L1 and the second logic value L2 is 10); in the period B, both the voltage VOUTA and the voltage VOUTB are at a high level level (that is, the logic combination of the first logic value L1 and the second logic value L2 is 11); in period C, the voltage VOUTA is high and the voltage VOUTB is low (that is, the first logic value L1 and the second logic The logic combination of the value L2 is 10); and in the period D, both the voltage VOUTA and the voltage VOUTB are at a low level (that is, the logic combination of the first logic value L1 and the second logic value L2 is 00). In addition, as shown in FIG. 5 , the current sensing signal Isen is only sampled and held in the period D according to the control signal CS′. For the sake of brevity, the similar content in this embodiment will not be repeated here.

第6圖為依據本發明另一實施例之一種用以產生揚聲器之電流取樣訊號的方法流程圖。假若可以得到相同的結果,則步驟不一定要完全遵照第6圖所示的流程來依序執行,舉例來說,於第6圖所示之方法可由第4圖所示之驅動電路40來加以實現。FIG. 6 is a flowchart of a method for generating a current sampling signal of a speaker according to another embodiment of the present invention. If the same result can be obtained, the steps do not have to be executed sequentially according to the flow shown in FIG. 6. For example, the method shown in FIG. 6 can be implemented by the driving circuit 40 shown in FIG. 4 accomplish.

在步驟S600中,產生三角波訊號TRI。In step S600, a triangular wave signal TRI is generated.

在步驟S602中,根據音頻輸入訊號A_IN、音頻輸入訊號 以及三角波訊號TRI來產生預驅動訊號PDRV,其中音頻輸入訊號 係音頻輸入訊號A_IN的一反向訊號。 In step S602, according to the audio input signal A_IN, the audio input signal And the triangular wave signal TRI to generate the pre-drive signal PDRV, where the audio input signal It is an inverse signal of the audio input signal A_IN.

在步驟S604中,根據預驅動訊號PDRV來藉由D類放大器電路404驅動揚聲器41。In step S604 , the speaker 41 is driven by the class D amplifier circuit 404 according to the pre-drive signal PDRV.

在步驟S606中,感測揚聲器41的驅動電流來產生電流感測訊號Isen。In step S606 , the driving current of the speaker 41 is sensed to generate a current sensing signal Isen.

在步驟S608中,根據預驅動訊號PDRV來產生控制訊號CS’。In step S608, the control signal CS' is generated according to the pre-drive signal PDRV.

在步驟S610中,根據控制訊號CS’來取樣與保持電流感測訊號Isen,以產生第一電流取樣訊號F_Isam。In step S610, the current sensing signal Isen is sampled and held according to the control signal CS' to generate a first current sampling signal F_Isam.

在步驟S612中,藉由對第一電流取樣訊號F_Isam進行平均值計算,以產生揚聲器41的第二電流取樣訊號S_Isam。In step S612 , the second current sampling signal S_Isam of the speaker 41 is generated by performing average calculation on the first current sampling signal F_Isam.

由於熟習技藝者可透過上述說明書中有關第4圖所示之驅動電路40的內容而輕易瞭解第6圖所示各步驟的操作,為了簡潔起見,於本實施例中類似的內容在此不重複贅述。Since those skilled in the art can easily understand the operation of each step shown in FIG. 6 through the contents of the driving circuit 40 shown in FIG. Repeat.

第7圖為一感測電壓訊號V_AB、第1圖所示之驅動電路10所產生的取樣電壓訊號V_ABS以及一低通濾波器所產生的電壓訊號VAB_LP的頻域(frequency-domain)分析。假設在開關電路120以及電流感測電阻124之間的一節點的電壓為感測電壓VSENSEA,以及在開關電路122以及電流感測電阻126之間的一節點的電壓為感測電壓VSENSEB。感測電壓訊號V_AB係感測電壓VSENSEA以及感測電壓VSENSEB之間的一電壓差,此外,感測電壓訊號V_AB係在電流感測電阻124以及電流感測電阻126匹配(亦即電流感測電阻124之電阻值與電流感測電阻126之電阻值相同)的情況下而產生的。FIG. 7 is a frequency-domain analysis of a sensing voltage signal V_AB, a sampling voltage signal V_ABS generated by the driving circuit 10 shown in FIG. 1 , and a voltage signal VAB_LP generated by a low-pass filter. Assume that the voltage at a node between the switch circuit 120 and the current sensing resistor 124 is the sensing voltage VSENSEA, and the voltage at a node between the switching circuit 122 and the current sensing resistor 126 is the sensing voltage VSENSEB. The sensing voltage signal V_AB is a voltage difference between the sensing voltage VSENSEA and the sensing voltage VSENSEB. In addition, the sensing voltage signal V_AB is matched between the current sensing resistor 124 and the current sensing resistor 126 (ie, the current sensing resistor 124 has the same resistance value as the current sensing resistor 126).

取樣電壓訊號V_ABS可藉由第1圖所示之驅動電路10而產生,並且可對應於電流取樣訊號Isam。第1圖所示之電流感測電路105可以被修改以耦接於一低通濾波器,而不是耦接於取樣與保持電路106,如此一來,可以藉由直接地低通濾波電流感測訊號Isen來產生電壓訊號VAB_LP。應注意的是,取樣電壓訊號V_ABS以及電壓訊號VAB_LP係在電流感測電阻124以及電流感測電阻126不匹配(亦即電流感測電阻124之電阻值以及電流感測電阻126之電阻值不相同;舉例來說,電流感測電阻124之電阻值係0.1歐姆(ohm),以及電流感測電阻126之電阻值係0.2歐姆)的情況下而產生的。如第7圖所示,由於電流感測電阻124以及電流感測電阻126匹配,因此感測電壓訊號V_AB在2000赫茲(Hz)時具有較好的二階諧波失真,另一方面,由於電阻的不匹配,電壓訊號VAB_LP在2000赫茲時具有較差的二階諧波失真,然而,儘管在電阻不匹配的情況下,取樣電壓訊號V_ABS在2000赫茲時仍具有較好的二階諧波失真,因此,本發明所提供的驅動電路10可以改善二階諧波失真的問題。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The sampling voltage signal V_ABS can be generated by the driving circuit 10 shown in FIG. 1 and can correspond to the current sampling signal Isam. The current sensing circuit 105 shown in FIG. 1 can be modified to be coupled to a low-pass filter instead of the sample and hold circuit 106, so that the current sensing circuit can be sensed by directly low-pass filtering The signal Isen is used to generate the voltage signal VAB_LP. It should be noted that the sampling voltage signal V_ABS and the voltage signal VAB_LP are mismatched between the current sensing resistor 124 and the current sensing resistor 126 (that is, the resistance value of the current sensing resistor 124 and the resistance value of the current sensing resistor 126 are different. ; For example, the resistance value of the current sensing resistor 124 is 0.1 ohm (ohm), and the resistance value of the current sensing resistor 126 is 0.2 ohm). As shown in FIG. 7, since the current sensing resistor 124 and the current sensing resistor 126 are matched, the sensing voltage signal V_AB has better second-order harmonic distortion at 2000 hertz (Hz). On the other hand, due to the resistance mismatch, the voltage signal VAB_LP has poor second-order harmonic distortion at 2000 Hz, however, despite the resistor mismatch, the sampled voltage signal V_ABS still has good second-order harmonic distortion at 2000 Hz, therefore, this The drive circuit 10 provided by the invention can improve the problem of second-order harmonic distortion. The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

10,40:驅動電路 11,41:揚聲器 100,400:三角波產生電路 102,402:訊號處理電路 104,404:D類放大器電路 105,405:電流感測電路 106,408:取樣與保持電路 108,110,412,414:比較器電路 112,114,416,418:預驅動器電路 116,118,120,122,420,422,424,426:開關電路 124,126,428,430:電流感測電阻 CS,CS’:控制訊號 A_IN, :音頻輸入訊號 F_COM:第一比較器結果訊號 S_COM:第二比較器結果訊號 F_SW:第一開關預驅動訊號 S_SW:第二開關預驅動訊號 PDRV:預驅動訊號 VDD:電源電壓 VOUTA,VOUTB:電壓 GND:接地電壓 Isen:電流感測訊號 Isam:電流取樣訊號 A,B,C,D:時段 S300~S308,S600~S612 406:邏輯控制電路 410:平均電路 L1:第一邏輯值 L2:第二邏輯值 F_Isam:第一電流取樣訊號 S_Isam:第二電流取樣訊號 V_AB:感測電壓訊號 VAB_LP:電壓訊號 V_ABS:取樣電壓訊號10, 40: Drive circuit 11, 41: Speaker 100, 400: Triangular wave generation circuit 102, 402: Signal processing circuit 104, 404: Class D amplifier circuit 105, 405: Current sensing circuit 106, 408: Sample and hold circuit 108, 110, 412, 414: Comparator circuit 112, 114, 416, 418: Pre-driver circuit 116, 11 8,120,122,420,422,424,426 : switch circuit 124, 126, 428, 430: current sense resistor CS, CS': control signal A_IN, : Audio input signal F_COM: First comparator result signal S_COM: Second comparator result signal F_SW: First switch pre-drive signal S_SW: Second switch pre-drive signal PDRV: Pre-drive signal VDD: Power supply voltage VOUTA, VOUTB: Voltage GND: ground voltage Isen: current sensing signal Isam: current sampling signal A, B, C, D: period S300~S308, S600~S612 406: logic control circuit 410: average circuit L1: first logic value L2: second Logical value F_Isam: first current sampling signal S_Isam: second current sampling signal V_AB: sensing voltage signal VAB_LP: voltage signal V_ABS: sampling voltage signal

第1圖為依據本發明一實施例之應用於揚聲器的驅動電路的示意圖。 第2圖為依據本發明一實施例之第1圖所示之驅動電路的相關訊號的示意圖。 第3圖為依據本發明一實施例之一種用以產生揚聲器之電流取樣訊號的方法流程圖。 第4圖為依據本發明另一實施例之應用於揚聲器的驅動電路的示意圖。 第5圖為依據本發明一實施例之第4圖所示之驅動電路的相關訊號的示意圖。 第6圖為依據本發明另一實施例之一種用以產生揚聲器之電流取樣訊號的方法流程圖。 第7圖為一感測電壓訊號、第1圖所示之驅動電路所產生的取樣電壓訊號以及一低通濾波器所產生的電壓訊號的頻域分析。 FIG. 1 is a schematic diagram of a driving circuit applied to a speaker according to an embodiment of the present invention. FIG. 2 is a schematic diagram of related signals of the driving circuit shown in FIG. 1 according to an embodiment of the present invention. FIG. 3 is a flowchart of a method for generating a current sampling signal of a loudspeaker according to an embodiment of the present invention. FIG. 4 is a schematic diagram of a driving circuit applied to a speaker according to another embodiment of the present invention. FIG. 5 is a schematic diagram of related signals of the driving circuit shown in FIG. 4 according to an embodiment of the present invention. FIG. 6 is a flowchart of a method for generating a current sampling signal of a speaker according to another embodiment of the present invention. FIG. 7 is a frequency domain analysis of a sensing voltage signal, a sampling voltage signal generated by the driving circuit shown in FIG. 1 , and a voltage signal generated by a low-pass filter.

10:驅動電路 10: Drive circuit

11:揚聲器 11:Speaker

100:三角波產生電路 100: Triangular wave generation circuit

102:訊號處理電路 102: Signal processing circuit

104:D類放大器電路 104: Class D amplifier circuit

105:電流感測電路 105: Current sensing circuit

106:取樣與保持電路 106: Sample and hold circuit

108,110:比較器電路 108,110: Comparator circuit

112,114:預驅動器電路 112,114: Pre-driver circuit

116,118,120,122:開關電路 116,118,120,122: switch circuit

124,126:電流感測電阻 124,126: current sense resistor

CS:控制訊號 CS: control signal

A_IN,

Figure 111105201-A0305-02-0003-11
:音頻輸入訊號 A_IN,
Figure 111105201-A0305-02-0003-11
: Audio input signal

F_COM:第一比較器結果訊號 F_COM: first comparator result signal

S_COM:第二比較器結果訊號 S_COM: second comparator result signal

F_SW:第一開關預驅動訊號 F_SW: The first switch pre-drive signal

S_SW:第二開關預驅動訊號 S_SW: Second switch pre-drive signal

PDRV:預驅動訊號 PDRV: Pre-drive signal

VDD:電源電壓 VDD: power supply voltage

VOUTA,VOUTB:電壓 VOUTA, VOUTB: voltage

GND:接地電壓 GND: ground voltage

Isen:電流感測訊號 Isen: current sense signal

Isam:電流取樣訊號 Isam: current sampling signal

Claims (20)

一種應用於一揚聲器的驅動電路,包含有: 一週期訊號產生電路,用以產生一週期訊號以及一控制訊號,其中該控制訊號係用以指示該週期訊號之一特定極端值的發生時序; 一訊號處理電路,耦接於該週期訊號產生電路,並且用以接收一第一音頻輸入訊號、一第二音頻輸入訊號以及該週期訊號,以及根據該第一音頻輸入訊號、該第二音頻輸入訊號以及該週期訊號來產生一預驅動訊號,其中該第二音頻輸入訊號係該第一音頻輸入訊號的一反向訊號; 一D類放大器電路,耦接於該訊號處理電路,並且用以根據該預驅動訊號來驅動該揚聲器; 一電流感測電路,耦接於該D類放大器電路,並且用以感測該揚聲器的一驅動電流以產生一電流感測訊號;以及 一取樣與保持電路,耦接於該週期訊號產生電路以及該電流感測電路,並且用以根據該控制訊號來取樣與保持該電流感測訊號,以產生該揚聲器的一電流取樣訊號。 A driving circuit applied to a loudspeaker, comprising: A periodic signal generating circuit for generating a periodic signal and a control signal, wherein the control signal is used to indicate the occurrence timing of a specific extreme value of the periodic signal; A signal processing circuit, coupled to the periodic signal generating circuit, and used to receive a first audio input signal, a second audio input signal and the periodic signal, and according to the first audio input signal, the second audio input signal and the periodic signal to generate a pre-drive signal, wherein the second audio input signal is an inverse signal of the first audio input signal; a class D amplifier circuit, coupled to the signal processing circuit, and used to drive the speaker according to the pre-drive signal; a current sensing circuit, coupled to the class D amplifier circuit, and used for sensing a driving current of the speaker to generate a current sensing signal; and A sample and hold circuit is coupled to the periodic signal generating circuit and the current sensing circuit, and is used to sample and hold the current sensing signal according to the control signal, so as to generate a current sampling signal of the loudspeaker. 如申請專利範圍第1項所述之驅動電路,其中該週期訊號產生電路係一三角波產生電路,該週期訊號係一三角波訊號,並且該特定極端值係該三角波訊號的一峰值。The driving circuit described in item 1 of the scope of the patent application, wherein the periodic signal generating circuit is a triangular wave generating circuit, the periodic signal is a triangular wave signal, and the specific extreme value is a peak value of the triangular wave signal. 如申請專利範圍第2項所述之驅動電路,其中該取樣與保持電路係用以在該三角波訊號具有該峰值的時間點取樣與保持該電流感測訊號。The driving circuit as described in item 2 of the scope of the patent application, wherein the sample and hold circuit is used to sample and hold the current sensing signal at the time point when the triangular wave signal has the peak value. 如申請專利範圍第1項所述之驅動電路,其中該預驅動訊號包含有一第一開關預驅動訊號以及一第二開關預驅動訊號;該D類放大器電路包含有: 一第一開關電路,具有耦接於一第一參考電壓的一第一端; 一第二開關電路,具有耦接於該第一參考電壓的一第一端,其中該揚聲器係耦接在該第一開關電路的一第二端以及該第二開關電路的一第二端之間; 一第三開關電路,具有耦接於該第一開關電路之該第二端的一第一端;以及 一第四開關電路,具有耦接於該第二開關電路之該第二端的一第一端; 以及該電流感測電路包含有: 一第一電阻,耦接在該第三開關電路的一第二端以及一第二參考電壓之間;以及 一第二電阻,耦接在該第四開關電路的一第二端以及該第二參考電壓之間; 其中該第一開關預驅動訊號係用以導通該第一開關電路以及該第三開關電路的其一;以及該第二開關預驅動訊號係用以導通該第二開關電路以及該第四開關電路的其一。 The driving circuit described in item 1 of the scope of the patent application, wherein the pre-driving signal includes a first switch pre-driving signal and a second switch pre-driving signal; the class D amplifier circuit includes: a first switch circuit having a first end coupled to a first reference voltage; A second switch circuit having a first terminal coupled to the first reference voltage, wherein the speaker is coupled between a second terminal of the first switch circuit and a second terminal of the second switch circuit between; a third switch circuit having a first terminal coupled to the second terminal of the first switch circuit; and a fourth switch circuit having a first terminal coupled to the second terminal of the second switch circuit; And the current sensing circuit includes: a first resistor coupled between a second end of the third switch circuit and a second reference voltage; and a second resistor coupled between a second end of the fourth switch circuit and the second reference voltage; Wherein the first switch pre-drive signal is used to turn on one of the first switch circuit and the third switch circuit; and the second switch pre-drive signal is used to turn on the second switch circuit and the fourth switch circuit one of. 如申請專利範圍第4項所述之驅動電路,其中在該週期訊號具有該特定極端值的時間點,分別藉由該第一開關預驅動訊號以及該第二開關預驅動訊號來開啟該第三開關電路以及該第四開關電路。The driving circuit described in item 4 of the scope of the patent application, wherein at the time point when the periodic signal has the specific extreme value, the third switch is turned on by the first switch pre-drive signal and the second switch pre-drive signal respectively. A switch circuit and the fourth switch circuit. 一種用以產生一揚聲器之一電流取樣訊號的方法,包含有: 產生一週期訊號以及一控制訊號,其中該控制訊號係用以指示該週期訊號的一特定極端值的發生時序; 根據一第一音頻輸入訊號、一第二音頻輸入訊號以及該週期訊號來產生一預驅動訊號,其中該第二音頻輸入訊號係該第一音頻輸入訊號的一反向訊號; 藉由一D類放大器電路來根據該預驅動訊號驅動該揚聲器; 感測該揚聲器的一驅動電流以產生一電流感測訊號;以及 根據該控制訊號來取樣與保持該電流感測訊號,以產生該電流取樣訊號。 A method for generating a current sampling signal of a loudspeaker, comprising: generating a periodic signal and a control signal, wherein the control signal is used to indicate the occurrence timing of a specific extreme value of the periodic signal; generating a pre-drive signal according to a first audio input signal, a second audio input signal and the periodic signal, wherein the second audio input signal is an inverse signal of the first audio input signal; driving the speaker according to the pre-drive signal by a class D amplifier circuit; sensing a driving current of the speaker to generate a current sensing signal; and Sampling and holding the current sensing signal according to the control signal to generate the current sampling signal. 如申請專利範圍第6項所述之方法,其中該週期訊號係一三角波訊號,並且該特定極端值係該三角波訊號的一峰值。The method described in item 6 of the scope of patent application, wherein the periodic signal is a triangular wave signal, and the specific extreme value is a peak value of the triangular wave signal. 如申請專利範圍第7項所述之方法,其中根據該控制訊號來取樣與保持該電流感測訊號的步驟包含有: 在該三角波訊號具有該峰值的時間點取樣與保持該電流感測訊號。 The method described in claim 7 of the scope of the patent application, wherein the steps of sampling and holding the current sensing signal according to the control signal include: The current sensing signal is sampled and held at the time point when the triangular wave signal has the peak value. 如申請專利範圍第1項所述之方法,其中該預驅動訊號包含有一第一開關預驅動訊號以及一第二開關預驅動訊號;該D類放大器電路包含有具有耦接於一第一參考電壓之一第一端的一第一開關電路、具有耦接於該第一參考電壓之一第一端的一第二開關電路、具有耦接於該第一開關電路之一第二端的一第一端的一第三開關電路以及具有耦接於該第二開關電路之一第二端的一第一端的一第四開關電路;該揚聲器係耦接在該第一開關電路的該第二端以及該第二開關電路的該第二端之間;一第一電阻係耦接在該第三開關電路的一第二端以及一第二參考電壓之間,以及一第二電阻係耦接在該第四開關電路的一第二端以及該第二參考電壓之間;並且根據該預驅動訊號來驅動該揚聲器的步驟包含有: 根據該第一開關預驅動訊號來導通該第一開關電路以及該第三開關電路的其一;以及 根據該第二開關預驅動訊號來導通該第一開關電路以及該第四開關電路的其一。 The method described in item 1 of the scope of the patent application, wherein the pre-drive signal includes a first switch pre-drive signal and a second switch pre-drive signal; A first switch circuit with a first terminal, a second switch circuit coupled with a first terminal of the first reference voltage, a first switch circuit coupled with a second terminal of the first switch circuit A third switch circuit at one end and a fourth switch circuit having a first end coupled to a second end of the second switch circuit; the loudspeaker is coupled to the second end of the first switch circuit and between the second terminals of the second switch circuit; a first resistor is coupled between a second terminal of the third switch circuit and a second reference voltage, and a second resistor is coupled between the Between a second terminal of the fourth switch circuit and the second reference voltage; and the step of driving the speaker according to the pre-drive signal includes: turning on one of the first switch circuit and the third switch circuit according to the first switch pre-drive signal; and One of the first switch circuit and the fourth switch circuit is turned on according to the second switch pre-driving signal. 如申請專利範圍第9項所述之方法,其中在該週期訊號具有該特定極端值的時間點,分別藉由該第一開關預驅動訊號以及該第二開關預驅動訊號來開啟該第三開關電路以及該第四開關電路。The method described in claim 9, wherein the third switch is turned on by the first switch pre-drive signal and the second switch pre-drive signal respectively at the time point when the periodic signal has the specific extreme value circuit and the fourth switch circuit. 一種應用於一揚聲器的驅動電路,包含有: 一週期訊號產生電路,用以產生一週期訊號; 一訊號處理電路,耦接於該週期訊號產生電路,並且用以接收一第一音頻訊號、一第二音頻輸入訊號以及該週期訊號,以及根據該第一音頻訊號、該第二音頻輸入訊號以及該週期訊號來產生一預驅動訊號,其中該第二音頻輸入訊號係該第一音頻輸入訊號的一反向訊號; 一D類放大器電路,耦接於該訊號處理電路,並且用以根據該預驅動訊號來驅動該揚聲器; 一電流感測電路,耦接於該D類放大器電路,並且用以感測該揚聲器的一驅動電流,以產生一電流感測訊號; 一邏輯控制電路,耦接於該訊號處理電路,並且用以根據該預驅動訊號來產生一控制訊號;以及 一取樣與保持電路,耦接於該電流感測電路以及該邏輯控制電路,並且用以根據該控制訊號來取樣與保持該電流感測訊號,以產生一第一電流取樣訊號。 A driving circuit applied to a loudspeaker, comprising: A periodic signal generating circuit for generating a periodic signal; A signal processing circuit, coupled to the periodic signal generating circuit, and used to receive a first audio signal, a second audio input signal and the periodic signal, and according to the first audio signal, the second audio input signal and the periodic signal to generate a pre-drive signal, wherein the second audio input signal is an inverse signal of the first audio input signal; a class D amplifier circuit, coupled to the signal processing circuit, and used to drive the speaker according to the pre-drive signal; a current sensing circuit, coupled to the class D amplifier circuit, and used for sensing a driving current of the speaker to generate a current sensing signal; a logic control circuit, coupled to the signal processing circuit, and used to generate a control signal according to the pre-drive signal; and A sample and hold circuit, coupled to the current sensing circuit and the logic control circuit, is used to sample and hold the current sensing signal according to the control signal to generate a first current sampling signal. 如申請專利範圍第11項所述之驅動電路,另包含有: 一計算電路,耦接於該取樣與保持電路,並且用以對該第一電流取樣訊號進行計算,以產生該揚聲器的一第二電流取樣訊號。 The drive circuit described in item 11 of the scope of the patent application also includes: A calculating circuit is coupled to the sampling and holding circuit and is used for calculating the first current sampling signal to generate a second current sampling signal of the loudspeaker. 如申請專利範圍第12項所述之驅動電路,其中該計算電路係一平均電路,並且該計算係平均值計算。The driving circuit as described in claim 12 of the patent application, wherein the calculation circuit is an average circuit, and the calculation is an average value calculation. 如申請專利範圍第11項所述之驅動電路,其中該預驅動訊號包含有一第一開關預驅動訊號以及一第二開關預驅動訊號;該D類放大器電路包含有: 一第一開關電路,具有耦接於一第一參考電壓的一第一端; 一第二開關電路,具有耦接於該第一參考電壓的一第一端,其中該揚聲器係耦接在該第一開關電路的一第二端以及該第二開關電路的一第二端之間; 一第三開關電路,具有耦接於該第一開關電路之該第二端的一第一端;以及 一第四開關電路,具有耦接於該第二開關電路之該第二端的一第一端; 以及該電流感測電路包含有: 一第一電阻,耦接在該第三開關電路的一第二端以及一第二參考電壓之間;以及 一第二電阻,耦接在該第四開關電路的一第二端以及該第二參考電壓之間; 其中該第一開關預驅動訊號係用以導通該第一開關電路以及該第三開關電路的其一;以及該第二開關預驅動訊號係用以導通該第二開關電路以及該第四開關電路的其一。 The drive circuit described in item 11 of the scope of the patent application, wherein the pre-drive signal includes a first switch pre-drive signal and a second switch pre-drive signal; the class D amplifier circuit includes: a first switch circuit having a first end coupled to a first reference voltage; A second switch circuit having a first terminal coupled to the first reference voltage, wherein the speaker is coupled between a second terminal of the first switch circuit and a second terminal of the second switch circuit between; a third switch circuit having a first terminal coupled to the second terminal of the first switch circuit; and a fourth switch circuit having a first terminal coupled to the second terminal of the second switch circuit; And the current sensing circuit includes: a first resistor coupled between a second end of the third switch circuit and a second reference voltage; and a second resistor coupled between a second end of the fourth switch circuit and the second reference voltage; Wherein the first switch pre-drive signal is used to turn on one of the first switch circuit and the third switch circuit; and the second switch pre-drive signal is used to turn on the second switch circuit and the fourth switch circuit one of. 如申請專利範圍第14項所述之驅動電路,其中該控制訊號係用以控制該取樣與保持電路,以使該取樣與保持電路僅於該第三開關電路以及該第四開關電路分別藉由該第一開關預驅動訊號以及該第二開關預驅動訊號而被開啟的一時段中取樣與保持該電流感測訊號。The drive circuit as described in item 14 of the scope of patent application, wherein the control signal is used to control the sample and hold circuit, so that the sample and hold circuit is only operated by the third switch circuit and the fourth switch circuit respectively The current sensing signal is sampled and held during a period when the first switch pre-drive signal and the second switch pre-drive signal are turned on. 一種用以產生一揚聲器的一第一電流取樣訊號的方法,包含有: 產生一週期訊號; 根據一第一音頻訊號、一第二音頻輸入訊號以及該週期訊號來產生一預驅動訊號,其中該第二音頻輸入訊號係該第一音頻輸入訊號的一反向訊號; 藉由一D類放大器電路來根據該預驅動訊號驅動該揚聲器; 感測該揚聲器的一驅動電流以產生一電流感測訊號; 根據該預驅動訊號來產生一控制訊號;以及 根據該控制訊號來取樣與保持該電流感測訊號,以產生一第二電流取樣訊號。 A method for generating a first current sampling signal of a loudspeaker, comprising: Generate a periodic signal; generating a pre-drive signal according to a first audio signal, a second audio input signal and the periodic signal, wherein the second audio input signal is an inverse signal of the first audio input signal; driving the speaker according to the pre-drive signal by a class D amplifier circuit; sensing a driving current of the speaker to generate a current sensing signal; generating a control signal according to the pre-drive signal; and Sampling and holding the current sensing signal according to the control signal to generate a second current sampling signal. 如申請專利範圍第16項所述之方法,另包含有: 對該第二電流取樣訊號進行計算,以產生該第一電流取樣訊號。 The method described in item 16 of the scope of the patent application also includes: Calculate the second current sampling signal to generate the first current sampling signal. 如申請專利範圍第17項所述之方法,其中該計算係平均值計算。The method described in item 17 of the scope of the patent application, wherein the calculation is an average value calculation. 如申請專利範圍第16項所述之方法,其中該預驅動訊號包含有一第一開關預驅動訊號以及一第二開關預驅動訊號;該D類放大器電路包含有具有耦接於一第一參考電壓之一第一端的一第一開關電路、具有耦接於該第一參考電壓之第一端的一第二開關電路、具有耦接於該第一開關電路之一第二端的一第一端的一第三開關電路以及具有耦接於該第二開關電路之一第二端的一第一端的一第四開關電路;該揚聲器係耦接在該第一開關電路的該第二端以及該第二開關電路的該第二端之間;一第一電阻係耦接在該第三開關電路的一第二端以及一第二參考電壓之間,以及一第二電阻係耦接在該第四開關電路的一第二端以及該第二參考電壓之間;並且根據該預驅動訊號來驅動該揚聲器的步驟包含有: 根據該第一開關預驅動訊號來導通該第一開關電路以及該第三開關電路的其一;以及 根據該第二開關預驅動訊號來導通該第二開關電路以及該第四開關電路的其一。 The method as described in claim 16 of the scope of the patent application, wherein the pre-drive signal includes a first switch pre-drive signal and a second switch pre-drive signal; the class D amplifier circuit includes a device coupled to a first reference voltage A first switch circuit with a first end, a second switch circuit with a first end coupled to the first reference voltage, a first end coupled with a second end of the first switch circuit a third switch circuit and a fourth switch circuit having a first end coupled to a second end of the second switch circuit; the loudspeaker is coupled to the second end of the first switch circuit and the second end of the second switch circuit between the second terminals of the second switch circuit; a first resistor is coupled between a second terminal of the third switch circuit and a second reference voltage, and a second resistor is coupled between the first terminal Between a second terminal of the four-switch circuit and the second reference voltage; and the step of driving the speaker according to the pre-drive signal includes: turning on one of the first switch circuit and the third switch circuit according to the first switch pre-drive signal; and One of the second switch circuit and the fourth switch circuit is turned on according to the second switch pre-driving signal. 如申請專利範圍第19項所述之方法,其中根據該控制訊號來取樣與保持該電流感測訊號的步驟包含有: 僅於該第三開關電路以及該第四開關電路分別藉由該第一開關預驅動訊號以及該第二開關預驅動訊號而被開啟的一時段中,取樣與保持該電流感測訊號。 The method described in claim 19 of the scope of the patent application, wherein the steps of sampling and holding the current sensing signal according to the control signal include: The current sensing signal is sampled and held only during a period when the third switch circuit and the fourth switch circuit are turned on by the first switch pre-drive signal and the second switch pre-drive signal respectively.
TW111105201A 2022-02-14 2022-02-14 Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker TWI809710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111105201A TWI809710B (en) 2022-02-14 2022-02-14 Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111105201A TWI809710B (en) 2022-02-14 2022-02-14 Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker

Publications (2)

Publication Number Publication Date
TWI809710B true TWI809710B (en) 2023-07-21
TW202333508A TW202333508A (en) 2023-08-16

Family

ID=88149566

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111105201A TWI809710B (en) 2022-02-14 2022-02-14 Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker

Country Status (1)

Country Link
TW (1) TWI809710B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201528676A (en) * 2013-10-11 2015-07-16 Univ Nanyang Tech A method of generating a pulse width modulation (PWM) signal for an analog amplifier, and a related pulse width modulator
CN108989951A (en) * 2017-05-31 2018-12-11 德克萨斯仪器股份有限公司 Ground switch for speaker current sensing
CN111328452A (en) * 2017-11-17 2020-06-23 辛纳普蒂克斯公司 Load current sensing circuit for class D amplifier
CN112042117A (en) * 2017-11-10 2020-12-04 思睿逻辑国际半导体有限公司 Class D amplifier with multiple independent output stages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201528676A (en) * 2013-10-11 2015-07-16 Univ Nanyang Tech A method of generating a pulse width modulation (PWM) signal for an analog amplifier, and a related pulse width modulator
CN108989951A (en) * 2017-05-31 2018-12-11 德克萨斯仪器股份有限公司 Ground switch for speaker current sensing
CN112042117A (en) * 2017-11-10 2020-12-04 思睿逻辑国际半导体有限公司 Class D amplifier with multiple independent output stages
CN111328452A (en) * 2017-11-17 2020-06-23 辛纳普蒂克斯公司 Load current sensing circuit for class D amplifier

Also Published As

Publication number Publication date
TW202333508A (en) 2023-08-16

Similar Documents

Publication Publication Date Title
US8378745B2 (en) Current sensing
US8143944B2 (en) Method and apparatus for sensing a current for varying impedance loads
US11290071B2 (en) Common-mode insensitive current-sensing topology in full-bridge driver
CN106851474A (en) D audio frequency amplifier and corresponding read method including the circuit for reading the electric current supplied to load from amplifier
JP5314686B2 (en) Test equipment and driver circuit
JP2002197602A (en) Device and method for correcting magneto-resistance asymmetry
JP3497495B2 (en) Sample hold circuit
TWI809710B (en) Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker
US11750992B2 (en) Integrated circuit with switching amplifier output fault detection
CN210442479U (en) Operational amplifier test circuit
US20230216458A1 (en) Driving circuit of loudspeaker and method for generating current sampling signal of loudspeaker
CN116782083A (en) Driving circuit applied to loudspeaker and method for generating current sampling signal of loudspeaker
TWI487271B (en) Amplifier,audio system and the metohd for amplifying input signal
US10944366B2 (en) Advanced load current monitoring circuit and method for a class-AB amplifier
JP4674005B2 (en) Power supply device and test device
JP5053932B2 (en) Buffer circuit, amplifier circuit, and test apparatus
US7109797B1 (en) Method and apparatus for measuring the common-mode component of a differential signal
JP3882690B2 (en) Electronic volume and electronic volume testing method
US8896331B2 (en) Impedance measuring instrument
JP3649082B2 (en) Operational amplifier measuring circuit and measuring method thereof
CN215866982U (en) Class D power amplifier output open short circuit detection circuit
JP3161665B2 (en) Excitation circuit of electromagnetic flow meter
JP4839572B2 (en) Input circuit
US11296663B2 (en) Common-mode insensitive current-sensing topology in full-bridge driver with high-side and low-side energy matching calibration
JP4859353B2 (en) Amplification circuit and test apparatus