CN101527547B - Method and related device for controlling power output stage of power amplifier - Google Patents
Method and related device for controlling power output stage of power amplifier Download PDFInfo
- Publication number
- CN101527547B CN101527547B CN200810083154.6A CN200810083154A CN101527547B CN 101527547 B CN101527547 B CN 101527547B CN 200810083154 A CN200810083154 A CN 200810083154A CN 101527547 B CN101527547 B CN 101527547B
- Authority
- CN
- China
- Prior art keywords
- signal
- control signal
- control
- generate
- modulation
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 18
- 238000005070 sampling Methods 0.000 claims abstract description 11
- 230000003111 delayed effect Effects 0.000 claims description 18
- 238000001914 filtration Methods 0.000 claims description 2
- 101100494773 Caenorhabditis elegans ctl-2 gene Proteins 0.000 description 45
- 101100326920 Caenorhabditis elegans ctl-1 gene Proteins 0.000 description 19
- 238000010586 diagram Methods 0.000 description 12
- 101100113692 Caenorhabditis elegans clk-2 gene Proteins 0.000 description 4
- 101100328957 Caenorhabditis elegans clk-1 gene Proteins 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000010752 BS 2869 Class D Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
Landscapes
- Amplifiers (AREA)
Abstract
Description
技术领域technical field
本发明有关于音频处理的技术,尤指用来控制功率放大器的功率输出级的方法及相关装置。The present invention relates to the technology of audio processing, especially the method and related device for controlling the power output stage of the power amplifier.
背景技术Background technique
数字功率放大器,或称为D类功率放大器(class-D power amplifier),因具有高效率的优点而被广泛地应用在许多音频处理设备中。数字音频功率放大器利用一脉宽调变电路(PWM circuit)依据数字输入信号产生一脉宽调变信号,以控制功率输出级(power stage)的运作。Digital power amplifiers, or class-D power amplifiers, are widely used in many audio processing devices due to their high efficiency. The digital audio power amplifier uses a pulse width modulation circuit (PWM circuit) to generate a pulse width modulation signal according to the digital input signal to control the operation of the power output stage (power stage).
数字音频功率放大器的效能与脉宽调变电路(PWM circuit)的解析度(亦即位元数)有关。一般而言,脉宽调变电路的解析度愈高,数字音频功率放大器的效能愈好。然而,公知的脉宽调变电路必须操作在更高的频率下才能达成提升解析度的目的。以过程的角度而言,提升元件的操作频率会增加制造的困难度与制造成本。在考虑成本的情况下,数字音频功率放大器的效能将受到过程的限制而难以有效提升。The performance of a digital audio power amplifier is related to the resolution (that is, the number of bits) of the pulse width modulation circuit (PWM circuit). Generally speaking, the higher the resolution of the PWM circuit, the better the performance of the digital audio power amplifier. However, the known PWM circuit must operate at a higher frequency to achieve the purpose of improving the resolution. From a process point of view, increasing the operating frequency of components will increase the difficulty and cost of manufacturing. Considering the cost, the efficiency of the digital audio power amplifier will be limited by the process and it is difficult to effectively improve it.
发明内容Contents of the invention
有鉴于此,本发明的目的之一在于提供控制音频功率放大器的功率输出级的方法及相关装置,以解决上述问题。In view of this, one of the objectives of the present invention is to provide a method for controlling a power output stage of an audio power amplifier and a related device, so as to solve the above-mentioned problems.
本说明书提供了一种功率放大器的控制电路的实施例,其包含有:一超取样单元,用来对一数字输入信号进行超取样,以产生一超取样信号;一控制模块,用来依据该超取样信号产生一第一控制信号与一第二控制信号;一脉宽调变电路,用来依据该第一控制信号产生一第一脉宽调变信号;以及一脉宽调整单元,用来依据该第二控制信号调整该第一脉宽调变信号的脉宽,以产生一第二脉宽调变信号来控制该功率放大器的一功率输出级。This specification provides an embodiment of a control circuit of a power amplifier, which includes: an oversampling unit, used to oversample a digital input signal to generate an oversampled signal; a control module, used to The oversampling signal generates a first control signal and a second control signal; a pulse width modulation circuit is used to generate a first pulse width modulation signal according to the first control signal; and a pulse width adjustment unit is used for The pulse width of the first PWM signal is adjusted according to the second control signal to generate a second PWM signal to control a power output stage of the power amplifier.
本说明书提供一种控制功率放大器的功率输出级的方法,其包含有:对一数字输入信号进行超取样,以产生一超取样信号;依据该超取样信号产生一第一控制信号与一第二控制信号;依据该第一控制信号产生一第一脉宽调变信号;以及依据该第二控制信号调整该第一脉宽调变信号的脉宽,以产生一第二脉宽调变信号来控制该功率输出级。This specification provides a method for controlling the power output stage of a power amplifier, which includes: oversampling a digital input signal to generate an oversampling signal; generating a first control signal and a second control signal according to the oversampling signal control signal; generate a first pulse width modulation signal according to the first control signal; and adjust the pulse width of the first pulse width modulation signal according to the second control signal to generate a second pulse width modulation signal controls the power output stage.
附图说明Description of drawings
图1为本发明的音频功率放大器的一较佳实施例简化后的方块图。FIG. 1 is a simplified block diagram of a preferred embodiment of the audio power amplifier of the present invention.
图2为本发明用来控制图1中的功率输出级的方法的一实施例流程图。FIG. 2 is a flowchart of an embodiment of the method for controlling the power output stage shown in FIG. 1 according to the present invention.
图3为图1中的控制模块的第一实施例简化后的方块图。FIG. 3 is a simplified block diagram of a first embodiment of the control module in FIG. 1 .
图4为图1中的脉宽调整单元的第一实施例简化后的方块图。FIG. 4 is a simplified block diagram of the first embodiment of the pulse width adjustment unit in FIG. 1 .
图5为图1中的控制模块的第二实施例简化后的方块图。FIG. 5 is a simplified block diagram of a second embodiment of the control module in FIG. 1 .
图6为图1中的脉宽调整单元的第二实施例简化后的方块图。FIG. 6 is a simplified block diagram of a second embodiment of the pulse width adjustment unit in FIG. 1 .
图7为图1中的脉宽调整单元的第三实施例简化后的方块图。FIG. 7 is a simplified block diagram of a third embodiment of the pulse width adjustment unit in FIG. 1 .
图8为图1中的控制模块的第三实施例简化后的方块图。FIG. 8 is a simplified block diagram of a third embodiment of the control module in FIG. 1 .
【主要元件符号说明】[Description of main component symbols]
100 音频功率放大器100 audio power amplifier
102 控制电路102 control circuit
110 超取样单元110 oversampling units
120 控制模块120 control module
130 脉宽调变电路130 pulse width modulation circuit
140 脉宽调整单元140 pulse width adjustment unit
150 时钟产生模块150 clock generation modules
160 功率输出级160 power output stage
200 流程图200 flow chart
210、220、230、240、250步骤210, 220, 230, 240, 250 steps
310、510、520、810、820三角积分调制器310, 510, 520, 810, 820 delta-sigma modulator
320、830决定单元320, 830 decision units
410、610、710移相器410, 610, 710 phase shifter
420、620、720、736多工器420, 620, 720, 736 multiplexers
430、732或门430, 732 or gate
630、734与门630, 734 AND gates
730组合逻辑730 combinatorial logic
具体实施方式Detailed ways
请参考图1,其依据本发明一实施例所绘示的一音频功率放大器100的方块图。如图所示,音频功率放大器100包含一控制电路(controller)102以及一功率输出级(power stage)160,其中功率输出级160通常为一开关式功率输出级。在本实施例中,控制电路102包含有一超取样单元(oversampler)110、一控制模块120、一脉宽调变电路(PWM circuit)130、一脉宽调整单元(pulse width adjuster)140以及一时钟产生模块150。时钟产生模块150用来产生超取样单元110与控制模块120所需的一第一工作时钟CLK_1,以及脉宽调变电路130所需的一第二工作时钟CLK_2,其中该第一工作时钟CLK_1的频率为F1,而该第二工作时钟CLK_2的频率为F2,且F2大于F1。实作上,时钟产生模块150可利用一锁相回路来产生该第二工作时钟CLK_2,并利用一除频装置对该第二工作时钟CLK_2进行除频,以产生频率较低的该第一工作时钟CLK_1。以下,将搭配图2来进一步说明控制电路102的运作与实施方式。Please refer to FIG. 1 , which is a block diagram of an audio power amplifier 100 according to an embodiment of the present invention. As shown in the figure, the audio power amplifier 100 includes a control circuit (controller) 102 and a power output stage (power stage) 160, wherein the power output stage 160 is usually a switch mode power output stage. In this embodiment, the control circuit 102 includes an oversampling unit (oversampler) 110, a control module 120, a pulse width modulation circuit (PWM circuit) 130, a pulse width adjustment unit (pulse width adjuster) 140 and a clock A module 150 is generated. The clock generation module 150 is used to generate a first working clock CLK_1 required by the oversampling unit 110 and the control module 120, and a second working clock CLK_2 required by the pulse width modulation circuit 130, wherein the first working clock CLK_1 The frequency is F1, and the frequency of the second working clock CLK_2 is F2, and F2 is greater than F1. In practice, the clock generation module 150 can use a phase-locked loop to generate the second working clock CLK_2, and use a frequency dividing device to divide the second working clock CLK_2 to generate the first working clock with a lower frequency. Clock CLK_1. In the following, the operation and implementation of the control circuit 102 will be further described with reference to FIG. 2 .
图2为本发明用来控制功率输出级160的方法的一实施例流程图200,其所包含的各步骤分述如下:FIG. 2 is a flow chart 200 of an embodiment of the method for controlling the power output stage 160 of the present invention, and the steps included in it are described as follows:
在步骤210中,超取样单元110会接收频率为F0的一N1位元的数字音频信号Di,并依据该第一工作时钟CLK_1对该数字音频信号Di进行超取样(oversampling),以产生频率为F1的一N1位元的超取样信号(oversampledsignal)Ds,其中F1大于F0。In step 210, the oversampling unit 110 receives an N1-bit digital audio signal Di with a frequency of F0, and performs oversampling on the digital audio signal Di according to the first working clock CLK_1 to generate a frequency of An N1-bit oversampled signal Ds of F1, wherein F1 is greater than F0.
在步骤220中,控制模块120会依据该超取样信号Ds产生频率为F1的一N2位元的第一控制信号Ctl_1,以及频率为F1的一N3位元的第二控制信号Ctl_2,其中N1>N2≥N3≥1。In step 220, the control module 120 generates an N2-bit first control signal Ctl_1 with a frequency of F1 and an N3-bit second control signal Ctl_2 with a frequency of F1 according to the oversampled signal Ds, wherein N1> N2≥N3≥1.
请参考图3,其所绘示为本发明的控制模块120的第一实施例简化后的方块图。如图3所示,本实施例的控制模块120包含一N4位元的三角积分调制器(sigma delta modulator)310以及一决定单元320,其中N4=N2+N3且N4<N1。三角积分调制器310用来对该超取样信号Ds进行一三角积分调变,以产生一N4位元的调变信号M0。在运作上,三角积分调制器310除了降低数字音频信号的位元数之外,还兼有噪声重整(noise shaping)的功能。Please refer to FIG. 3 , which is a simplified block diagram of the first embodiment of the control module 120 of the present invention. As shown in FIG. 3 , the control module 120 of this embodiment includes an N4-bit sigma delta modulator (sigma delta modulator) 310 and a decision unit 320 , where N4=N2+N3 and N4<N1. The delta-sigma modulator 310 is used for performing a delta-sigma modulation on the oversampled signal Ds to generate an N4-bit modulation signal M0. In operation, the delta-sigma modulator 310 not only reduces the number of bits of the digital audio signal, but also has the function of noise shaping.
接着,决定单元320会依据三角积分调制器310所输出的该调变信号M0,产生该第一控制信号Ctl_1与该第二控制信号Ctl_2。实作上,决定单元320可依据该调变信号M0的多个高位元(most significant bits)来产生该第一控制信号Ctl_1,并依据该调变信号M0的至少一低位元(1east significant bit)来产生该第二控制信号Ctl_2。例如,在一实施例中,决定单元320会输出该调变信号M0的N2个高位元来作为该第一控制信号Ctl_1,并输出该调变信号M0的N3个低位元来作为该第二控制信号Ctl_2。在此例中,决定单元320可用一解多工器来实现。Next, the decision unit 320 generates the first control signal Ctl_1 and the second control signal Ctl_2 according to the modulation signal M0 output by the delta-sigma modulator 310 . In practice, the decision unit 320 can generate the first control signal Ctl_1 according to a plurality of most significant bits of the modulation signal M0, and generate the first control signal Ctl_1 according to at least one low bit (least significant bit) of the modulation signal M0 to generate the second control signal Ctl_2. For example, in one embodiment, the decision unit 320 outputs the N2 high bits of the modulation signal M0 as the first control signal Ctl_1, and outputs the N3 low bits of the modulation signal M0 as the second control Signal Ctl_2. In this example, the decision unit 320 can be realized by a demultiplexer.
接着,在步骤230中,脉宽调变电路130会依据该第一控制信号Ctl_1产生频率为F2的1位元的第一脉宽调变信号PWM1,其中F2=2N2×F1。Next, in step 230, the pulse width modulation circuit 130 generates a 1-bit first pulse width modulation signal PWM1 with a frequency of F2 according to the first control signal Ctl_1, wherein F2=2 N2 ×F1.
在步骤240中,脉宽调整单元140会依据控制模块120所产生的该第二控制信号Ctl_2的指示,调整该第一脉宽调变信号PWM1的脉宽,以产生一第二脉宽调变信号PWM2。以下,将利用图4来进一步说明脉宽调整单元140的实施与运作方式。In step 240, the pulse width adjustment unit 140 adjusts the pulse width of the first pulse width modulation signal PWM1 according to the instruction of the second control signal Ctl_2 generated by the control module 120 to generate a second pulse width modulation. Signal PWM2. Hereinafter, the implementation and operation of the pulse width adjustment unit 140 will be further described with reference to FIG. 4 .
图4所绘示为本发明的脉宽调整单元140的第一实施例简化后的方块图。本实施例的脉宽调整单元140包含有一移相器(phase shifter)410、一多工器420以及一或门(OR gate)430。移相器410用来依据该第一脉宽调变信号PWM1产生多个延迟信号。在本例中,移相器410利用由n个延迟级(delaystage)所组成的一延迟链(delay chain)来延迟该第一脉宽调变信号PWM1,以产生n个延迟信号P1~Pn,其中n=2N3-1。在一实施例中,移相器410的各延迟级的延迟量皆为1/(F2×2N3),故该多个延迟信号P1~Pn中相邻两延迟信号间的相位差皆为1/(F2×2N3)。请注意,此仅为一实施例,而非局限移相器410中各延迟级的延迟量的实际设定方式。FIG. 4 is a simplified block diagram of the first embodiment of the pulse width adjustment unit 140 of the present invention. The pulse width adjusting unit 140 of this embodiment includes a phase shifter (phase shifter) 410 , a multiplexer 420 and an OR gate (OR gate) 430 . The phase shifter 410 is used to generate a plurality of delay signals according to the first pulse width modulation signal PWM1. In this example, the phase shifter 410 uses a delay chain composed of n delay stages to delay the first PWM signal PWM1 to generate n delayed signals P1˜Pn, where n= 2N3-1 . In one embodiment, the delay amount of each delay stage of the phase shifter 410 is 1/(F2×2 N3 ), so the phase difference between two adjacent delayed signals among the plurality of delayed signals P1˜Pn is 1 /(F2× 2N3 ). Please note that this is only an embodiment, and does not limit the actual setting method of the delay amount of each delay stage in the phase shifter 410 .
多工器420会依据该第二控制信号Ctl_2的值,选择该多个延迟信号P1~Pn的其中之一作为输出。例如,在一实施例中,当该第二控制信号Ctl_2的值为0时,多工器420会输出一逻辑”0”信号;当该第二控制信号Ctl_2的值为1时,多工器420会选择延迟信号P1作为输出;当该第二控制信号Ctl_2的值为2时,多工器420会选择延迟信号P2作为输出;而当该第二控制信号Ctl_2的值为2N3-1时,多工器420则会选择延迟信号Pn作为输出,依此类推。接着,脉宽调整单元140中的或门430会将该第一脉宽调变信号PWM1与多工器420的输出进行一逻辑或运算,以产生该第二脉宽调变信号PWM2。The multiplexer 420 selects one of the plurality of delayed signals P1-Pn as an output according to the value of the second control signal Ctl_2. For example, in one embodiment, when the value of the second control signal Ctl_2 is 0, the multiplexer 420 will output a logic "0"signal; when the value of the second control signal Ctl_2 is 1, the multiplexer 420 420 will select the delay signal P1 as output; when the value of the second control signal Ctl_2 is 2, the multiplexer 420 will select the delay signal P2 as output; and when the value of the second control signal Ctl_2 is 2 N3 -1 , the multiplexer 420 will select the delayed signal Pn as the output, and so on. Next, the OR gate 430 in the pulse width adjustment unit 140 performs a logical OR operation on the first pulse width modulation signal PWM1 and the output of the multiplexer 420 to generate the second pulse width modulation signal PWM2 .
由前述可知,当该第二控制信号Ctl_2的值为0时,或门430所输出的该第二脉宽调变信号PWM2会与该第一脉宽调变信号PWM1实质上相同。但当该第二控制信号Ctl_2的值不为0时,由于该第一脉宽调变信号PWM1与多工器420所选定的一延迟信号Pi(i=1~n)两者的高逻辑准位期间并不会完全重迭,故或门430所输出的该第二脉宽调变信号PWM2的脉宽会大于该第一脉宽调变信号PWM1的脉宽。换言之,本实施例的脉宽调整单元140依据控制模块120所输出的该第二控制信号Ctl_2,来决定是否增加脉宽调变电路130的输出脉宽,以形成该第二脉宽调变信号PWM2。It can be seen from the foregoing that when the value of the second control signal Ctl_2 is 0, the second pulse width modulation signal PWM2 output by the OR gate 430 is substantially the same as the first pulse width modulation signal PWM1. But when the value of the second control signal Ctl_2 is not 0, due to the high logic of the first pulse width modulation signal PWM1 and a delay signal Pi (i=1~n) selected by the multiplexer 420 The level periods do not completely overlap, so the pulse width of the second pulse width modulation signal PWM2 output by the OR gate 430 is greater than the pulse width of the first pulse width modulation signal PWM1. In other words, the pulse width adjustment unit 140 of this embodiment determines whether to increase the output pulse width of the pulse width modulation circuit 130 according to the second control signal Ctl_2 output by the control module 120 to form the second pulse width modulation signal. PWM2.
接下来在步骤250中,音频功率放大器100会利用控制电路102所产生的该第二脉宽调变信号PWM2来驱动功率输出级160。利用一脉宽调变信号来控制一功率输出级的运作方式为公知技术,在此不多加说明。Next in step 250 , the audio power amplifier 100 uses the second pulse width modulation signal PWM2 generated by the control circuit 102 to drive the power output stage 160 . The operation of using a pulse width modulation signal to control a power output stage is a well-known technology, and no further description is given here.
在音频功率放大器100的控制电路102中,倘若直接以控制模块120的三角积分调制器310所产生的N4位元的调变信号M0来作为脉宽调变电路130的输入信号,则脉宽调变电路130的操作频率必须提升至2N4×F1才行。这将大幅增加脉宽调变电路130在制造上的困难度及成本。由此可知,控制模块120利用决定单元320将三角积分调制器310输出的调变信号M0分解成位元数较低的第一控制信号Ctl_1与第二控制信号Ctl_2的方式,可有效降低脉宽调变电路130的工作频率,进而降低制造的困难度与成本。另一方面,由于控制电路102的脉宽调整单元140会依据该第二控制信号Ctl_2来微调脉宽调变电路130的输出脉宽,故所输出的第二脉宽调变信号PWM2的解析度,会非常接近于脉宽调变电路130在2N4×F1的工作频率下依据N4位元的调变信号M0所产生的一脉宽调变信号的解析度。换言之,前述控制电路102的架构可在不影响音频功率放大器100整体效能的情况下,大幅降低脉宽调变电路130的操作频率。从另一角度而言,与同样使用脉宽调变电路130的公知控制电路相较,前述的控制电路102具有较佳的输出脉宽解析度,故能有效提升音频功率放大器的效能。In the control circuit 102 of the audio power amplifier 100, if the modulation signal M0 of N4 bits generated by the delta-sigma modulator 310 of the control module 120 is directly used as the input signal of the pulse width modulation circuit 130, the pulse width modulation The operating frequency of the inverter circuit 130 must be increased to 2 N4 ×F1. This will greatly increase the manufacturing difficulty and cost of the pulse width modulation circuit 130 . It can be seen that the control module 120 uses the decision unit 320 to decompose the modulation signal M0 output by the delta-sigma modulator 310 into the first control signal Ctl_1 and the second control signal Ctl_2 with relatively low bit numbers, which can effectively reduce the pulse width. The operating frequency of the circuit 130 is modulated, thereby reducing manufacturing difficulty and cost. On the other hand, since the pulse width adjustment unit 140 of the control circuit 102 will fine-tune the output pulse width of the pulse width modulation circuit 130 according to the second control signal Ctl_2, the resolution of the output second pulse width modulation signal PWM2 , will be very close to the resolution of a PWM signal generated by the PWM circuit 130 according to the N4-bit modulation signal M0 at an operating frequency of 2N4 ×F1. In other words, the structure of the aforementioned control circuit 102 can greatly reduce the operating frequency of the PWM circuit 130 without affecting the overall performance of the audio power amplifier 100 . From another point of view, compared with the conventional control circuit that also uses the pulse width modulation circuit 130, the aforementioned control circuit 102 has better output pulse width resolution, so it can effectively improve the performance of the audio power amplifier.
请参考图5,其所绘示为本发明的控制模块120的第二实施例简化后的方块图。在本实施例中,控制模块120包含一N2位元的第一三角积分调制器510以及一N4位元的第二三角积分调制器520,其中N4=N2+N3。第一三角积分调制器510用来对该超取样信号Ds进行一第一三角积分调变,以产生N2位元的第一控制信号Ctl_1。第二三角积分调制器520则用来对该超取样信号Ds进行一第二三角积分调变,以产生N4位元的一调变信号,并利用该调变信号的N3个低位元来作为第二控制信号Ctl_2。由于第一三角积分调制器510所产生的N2位元的第一控制信号Ctl_1,与第二三角积分调制器520所产生的该调变信号的N2个高位元实质上相同,故图5所示的控制模块120实质上等效于前述图3的实施例。在此情况下,脉宽调整单元140同样可用图4的实施例来实现。Please refer to FIG. 5 , which is a simplified block diagram of the second embodiment of the control module 120 of the present invention. In this embodiment, the control module 120 includes an N2-bit first delta-sigma modulator 510 and a N4-bit second delta-sigma modulator 520 , where N4=N2+N3. The first delta-sigma modulator 510 is used for performing a first delta-sigma modulation on the oversampled signal Ds to generate an N2-bit first control signal Ctl_1. The second delta-sigma modulator 520 is used to perform a second delta-sigma modulation on the oversampled signal Ds to generate a modulated signal of N4 bits, and use the N3 lower bits of the modulated signal as the first Two control signals Ctl_2. Since the N2-bit first control signal Ctl_1 generated by the first delta-sigma modulator 510 is substantially the same as the N2 high-order bits of the modulation signal generated by the second delta-sigma modulator 520, as shown in FIG. 5 The control module 120 is substantially equivalent to the aforementioned embodiment of FIG. 3 . In this case, the pulse width adjustment unit 140 can also be implemented by the embodiment of FIG. 4 .
在前述的实施例中,脉宽调整单元140依据控制模块120所输出的该第二控制信号Ctl_2,来决定是否增加脉宽调变电路130的输出脉宽,以产生该第二脉宽调变信号PWM2。但此仅为一实施例,而非局限本发明的实际实施方式。以图3所示的控制模块120为例,当决定单元320接收到三角积分调制器310所输出的N4(=N2+N3)位元的调变信号M0时,决定单元320可将该调变信号M0中的N2个高位元所代表的值加上1,以作为该第一控制信号Ctl_1的值,并将2N3减去该N3个低位元所代表的值,以作为该第二控制信号Ctl_2的值。相较于前述的实施例,本实施例中的第一控制信号Ctl_1的值较大,故脉宽调变电路130会输出脉宽较宽的一第一脉宽调变信号PWM1’。在此情况下,脉宽调整单元140可用图6所绘示的实施例来实现。In the foregoing embodiments, the pulse width adjustment unit 140 determines whether to increase the output pulse width of the pulse width modulation circuit 130 according to the second control signal Ctl_2 output by the control module 120 to generate the second pulse width modulation. Signal PWM2. However, this is only an example, rather than limiting the actual implementation of the present invention. Taking the control module 120 shown in FIG. 3 as an example, when the decision unit 320 receives the modulation signal M0 of N4 (=N2+N3) bits output by the delta-sigma modulator 310, the decision unit 320 can modulate the Adding 1 to the value represented by the N2 high-order bits in the signal M0 as the value of the first control signal Ctl_1, and subtracting 2 N3 from the value represented by the N3 low-order bits to obtain the second control signal The value of Ctl_2. Compared with the previous embodiments, the value of the first control signal Ctl_1 in this embodiment is larger, so the pulse width modulation circuit 130 will output a first pulse width modulation signal PWM1 ′ with a wider pulse width. In this case, the pulse width adjustment unit 140 can be realized by the embodiment shown in FIG. 6 .
如图6所示,本实施例的脉宽调整单元140包含有一移相器610、一多工器620以及一与门(AND gate)630。移相器610的运作方式与前述图4中的移相器410实质上相同,为简洁起见,在此不再重复说明。在此实施例中,当该第二控制信号Ctl_2的值为0时,多工器620会输出一逻辑”1”信号;当该第二控制信号Ctl_2的值为1时,多工器620会选择延迟信号P1作为输出;当该第二控制信号Ctl_2的值为2时,多工器620会选择延迟信号P2作为输出;而当该第二控制信号Ctl_2的值为2N3-1时,多工器620则会选择延迟信号Pn作为输出,依此类推。As shown in FIG. 6 , the pulse width adjustment unit 140 of this embodiment includes a phase shifter 610 , a multiplexer 620 and an AND gate (AND gate) 630 . The operation of the phase shifter 610 is substantially the same as that of the phase shifter 410 in FIG. 4 , and for the sake of brevity, the description will not be repeated here. In this embodiment, when the value of the second control signal Ctl_2 is 0, the multiplexer 620 will output a logic "1"signal; when the value of the second control signal Ctl_2 is 1, the multiplexer 620 will output Select the delayed signal P1 as the output; when the value of the second control signal Ctl_2 is 2, the multiplexer 620 will select the delayed signal P2 as the output; and when the value of the second control signal Ctl_2 is 2 N3 -1, the multiplexer 620 The processor 620 will select the delayed signal Pn as the output, and so on.
与门630用来将该第一脉宽调变信号PWM1’与多工器620的输出进行一逻辑与运算,以产生该第二脉宽调变信号PWM2。具体而言,当该第二控制信号Ctl_2的值为0时,与门630所输出的该第二脉宽调变信号PWM2会与该第一脉宽调变信号PWM1’实质上相同。但当该第二控制信号Ctl_2的值不为0时,与门630所输出的该第二脉宽调变信号PWM2的脉宽会小于该第一脉宽调变信号PWM1’的脉宽。换言之,本实施例的脉宽调整单元140依据控制模块120所输出的该第二控制信号Ctl_2,来决定是否减少脉宽调变电路130的输出脉宽,以形成该第二脉宽调变信号PWM2。The AND gate 630 is used to perform a logical AND operation on the first PWM signal PWM1' and the output of the multiplexer 620 to generate the second PWM signal PWM2. Specifically, when the value of the second control signal Ctl_2 is 0, the second pulse width modulation signal PWM2 output by the AND gate 630 is substantially the same as the first pulse width modulation signal PWM1'. But when the value of the second control signal Ctl_2 is not 0, the pulse width of the second pulse width modulation signal PWM2 output by the AND gate 630 will be smaller than the pulse width of the first pulse width modulation signal PWM1'. In other words, the pulse width adjustment unit 140 of this embodiment determines whether to reduce the output pulse width of the pulse width modulation circuit 130 according to the second control signal Ctl_2 output by the control module 120 to form the second pulse width modulation signal. PWM2.
请再参考图3,在另一实施例中,当控制模块120的决定单元320接收到三角积分调制器310所输出的N4(=N2+N3)位元的调变信号M0时,决定单元320会依据该调变信号M0的N2个高位元来产生一N2+1位元的第一控制信号Ctl_1,其中该第一控制信号Ctl_1的N2个高位元即为该调变信号M0的N2个高位元,而该第一控制信号Ctl_1的最低有效位元(LSB)固定为1。在本例中,决定单元320会将该调变信号M0的N3个低位元所代表的值减去2N3-1,以产生一N3位元的第二控制信号Ctl_2,其中该第二控制信号Ctl_2的最高有效位元(MSB)为一符号位元(sign bit)。举例而言,假设N3等于3,若该调变信号M0的N3个低位元所代表的值为7,则决定单元320所输出的该第二控制信号Ctl_2的值为3,意即位元序列为「011」;若该调变信号M0的N3个低位元所代表的值为4,则该第二控制信号Ctl_2的位元序列为「000」;若该调变信号M0的N3个低位元所代表的值为1,则决定单元320所输出的该第二控制信号Ctl_2的位元序列为「101」;而若该调变信号M0的N3个低位元所代表的值为0,则决定单元320所输出的该第二控制信号Ctl_2的位元序列为「100」。Please refer to FIG. 3 again. In another embodiment, when the decision unit 320 of the control module 120 receives the modulation signal M0 of N4 (=N2+N3) bits output by the delta-sigma modulator 310, the decision unit 320 An N2+1-bit first control signal Ctl_1 is generated according to the N2 high-order bits of the modulation signal M0, wherein the N2 high-order bits of the first control signal Ctl_1 are the N2 high-order bits of the modulation signal M0 , and the least significant bit (LSB) of the first control signal Ctl_1 is fixed at 1. In this example, the decision unit 320 will subtract 2 N3-1 from the value represented by the N3 lower bits of the modulation signal M0 to generate an N3-bit second control signal Ctl_2, wherein the second control signal The most significant bit (MSB) of Ctl_2 is a sign bit. For example, assuming that N3 is equal to 3, if the value represented by the N3 lower bits of the modulation signal M0 is 7, the value of the second control signal Ctl_2 output by the determining unit 320 is 3, which means the bit sequence is "011"; if the value represented by the N3 low bits of the modulation signal M0 is 4, the bit sequence of the second control signal Ctl_2 is "000"; if the N3 low bits of the modulation signal M0 represent If the representative value is 1, the bit sequence of the second control signal Ctl_2 output by the determination unit 320 is “101”; and if the value represented by the N3 lower bits of the modulation signal M0 is 0, the determination unit The bit sequence of the second control signal Ctl_2 output by 320 is "100".
在本实施例中,脉宽调变电路130会输出脉宽介于前述的脉宽调变信号PWM1与PWM1’两者间的一第一脉宽调变信号PWM1”。在此情况下,脉宽调整单元140可用图7所绘示的实施例来实现。In this embodiment, the pulse width modulation circuit 130 outputs a first pulse width modulation signal PWM1 ″ whose pulse width is between the aforementioned pulse width modulation signals PWM1 and PWM1 ′. In this case, the pulse The width adjustment unit 140 can be realized by the embodiment shown in FIG. 7 .
如图7所示,本实施例的脉宽调整单元140包含有一移相器710、一多工器720以及一组合逻辑730。移相器710由m个延迟级所组成,用来延迟该第一脉宽调变信号PWM1”,以产生m个延迟信号P1~Pm,其中m=2N3-1。多工器720会依据该第二控制信号Ctl_2的值,选择该多个延迟信号P1~Pm的其中之一作为输出。为方便说明起见,以下用前述N3等于3的例子来说明。在此实施例中,m等于4,当该第二控制信号Ctl_2的位元序列为「000」时,多工器720会输出一逻辑”0”信号;当该第二控制信号Ctl_2的位元序列为「001」或「101」时,多工器720会选择延迟信号P1作为输出;当该第二控制信号Ctl_2的位元序列为「010」或「110」时,多工器720会选择延迟信号P2作为输出;而当该第二控制信号Ctl_2的位元序列为「100」时,多工器720则会选择延迟信号Pm作为输出,依此类推。接着,组合逻辑730会依据该第二控制信号Ctl_2的符号位元,将该第一脉宽调变信号PWM1”与多工器720的输出进行一逻辑与运算或一逻辑或运算,以产生一第二脉宽调变信号PWM2。As shown in FIG. 7 , the pulse width adjustment unit 140 of this embodiment includes a phase shifter 710 , a multiplexer 720 and a combinational logic 730 . The phase shifter 710 is composed of m delay stages, and is used to delay the first pulse width modulation signal PWM1 ″ to generate m delayed signals P1˜Pm, where m=2 N3-1 . The multiplexer 720 will be based on The value of the second control signal Ctl_2 selects one of the plurality of delay signals P1~Pm as an output. For convenience of description, the example that the aforementioned N3 equals 3 is used to illustrate below. In this embodiment, m equals 4 , when the bit sequence of the second control signal Ctl_2 is "000", the multiplexer 720 will output a logic "0"signal; when the bit sequence of the second control signal Ctl_2 is "001" or "101" , the multiplexer 720 will select the delayed signal P1 as the output; when the bit sequence of the second control signal Ctl_2 is "010" or "110", the multiplexer 720 will select the delayed signal P2 as the output; When the bit sequence of the second control signal Ctl_2 is “100”, the multiplexer 720 will select the delayed signal Pm as the output, and so on. Next, the combinational logic 730 performs a logical AND operation or a logical OR operation on the first pulse width modulation signal PWM1 ″ and the output of the multiplexer 720 according to the sign bit of the second control signal Ctl_2 to generate a The second pulse width modulation signal PWM2.
如图7所示,本实施例的组合逻辑730包含有一或门732,用来将该第一脉宽调变信号PWM1”与多工器720的输出进行一逻辑或(OR)运算,以产生一第一信号S1;一与门734,用来将该第一脉宽调变信号PWM1”与多工器720的输出进行一逻辑与(AND)运算,以产生一第二信号S2;以及一多工器736,用来依据该第二控制信号Ctl_2中的符号位元选择该第一信号S1与该第二信号S2的其中之一来作为该第二脉宽调变信号PWM2。在本实例中,若该第二控制信号Ctl_2的符号位元为「0」,多工器736会输出该第一信号S1来作为该第二脉宽调变信号PWM2,而若该第二控制信号Ctl_2的符号位元为「1」,则多工器736会输出该第二信号S2来作为该第二脉宽调变信号PWM2。由上述可知,本实施例的脉宽调整单元140依据控制模块120所输出的该第二控制信号Ctl_2,来增加或减少脉宽调变电路130的输出脉宽,以形成该第二脉宽调变信号PWM2。As shown in FIG. 7, the combinational logic 730 of this embodiment includes an OR gate 732, which is used to perform a logic OR (OR) operation on the first pulse width modulation signal PWM1 "and the output of the multiplexer 720 to generate A first signal S1; an AND gate 734, which is used to perform a logical AND (AND) operation on the first pulse width modulation signal PWM1" and the output of the multiplexer 720 to generate a second signal S2; and a The multiplexer 736 is used to select one of the first signal S1 and the second signal S2 as the second pulse width modulation signal PWM2 according to the sign bit in the second control signal Ctl_2. In this example, if the sign bit of the second control signal Ctl_2 is “0”, the multiplexer 736 will output the first signal S1 as the second pulse width modulation signal PWM2, and if the second control If the sign bit of the signal Ctl_2 is “1”, the multiplexer 736 will output the second signal S2 as the second pulse width modulation signal PWM2. As can be seen from the above, the pulse width adjustment unit 140 of this embodiment increases or decreases the output pulse width of the pulse width modulation circuit 130 according to the second control signal Ctl_2 output by the control module 120, so as to form the second pulse width modulation Change signal PWM2.
请参考图8,其所绘示为本发明的控制模块120的第三实施例简化后的方块图。在本实施例中,控制模块120包含一N2位元的第一三角积分调制器810、一N4位元的第二三角积分调制器820、以及一决定单元830,其中N4=N2+N3。第一三角积分调制器810用来对该超取样信号Ds进行一第一三角积分调变,以产生N2位元的一第一调变信号M1。第二三角积分调制器820则用来对该超取样信号Ds进行一第二三角积分调变,以产生N4位元的一第二调变信号M2。接着,决定单元830会依据该第一调变信号M1产生第一控制信号Ctl_1,并依据该第二调变信号M2的至少一低位元来产生第二控制信号Ctl_2。Please refer to FIG. 8 , which is a simplified block diagram of a third embodiment of the control module 120 of the present invention. In this embodiment, the control module 120 includes an N2-bit first delta-sigma modulator 810, an N4-bit second delta-sigma modulator 820, and a decision unit 830, wherein N4=N2+N3. The first delta-sigma modulator 810 is used for performing a first delta-sigma modulation on the oversampled signal Ds to generate a first modulated signal M1 of N2 bits. The second delta-sigma modulator 820 is used for performing a second delta-sigma modulation on the oversampled signal Ds to generate a second modulated signal M2 of N4 bits. Next, the decision unit 830 generates a first control signal Ctl_1 according to the first modulation signal M1, and generates a second control signal Ctl_2 according to at least one lower bit of the second modulation signal M2.
在一实施例中,决定单元830会依据该第一调变信号M1产生一N2+1位元的第一控制信号Ctl_1,其中该第一控制信号Ctl_1的N2个高位元即为该第一调变信号M1的N2个位元,而该第一控制信号Ctl_1的最低有效位元(LSB)固定为1。另外,决定单元830还会将该第二调变信号M2的N3个低位元所代表的值减去2N3-1,以产生一N3位元的第二控制信号Ctl_2,其中该第二控制信号Ctl_2的最高有效位元(MSB)为一符号位元。由于决定单元830产生该第一控制信号Ctl_1与该第二控制信号Ctl_2的方式,实质上等效于前述的实施例,因此,与图8的控制模块120搭配运作的脉宽调整单元140可用图7的实施例来实现。In one embodiment, the decision unit 830 generates an N2+1-bit first control signal Ctl_1 according to the first modulation signal M1, wherein the N2 high-order bits of the first control signal Ctl_1 are the first modulation N2 bits of the variable signal M1, and the least significant bit (LSB) of the first control signal Ctl_1 is fixed at 1. In addition, the decision unit 830 will also subtract 2 N3-1 from the value represented by the N3 lower bits of the second modulation signal M2 to generate an N3-bit second control signal Ctl_2, wherein the second control signal The most significant bit (MSB) of Ctl_2 is a sign bit. Since the manner in which the determining unit 830 generates the first control signal Ctl_1 and the second control signal Ctl_2 is substantially equivalent to the foregoing embodiment, the pulse width adjustment unit 140 that works in conjunction with the control module 120 in FIG. 8 can be used as shown in FIG. 7 to achieve.
实作上,亦可于前述控制电路102的超取样单元110与控制模块120之间设置一低通滤波器(例如一数字低通滤波器,图未示),用来对超取样单元110所输出的超取样信号Ds进行一低通滤波运算,以增加超取样信号Ds中的取样点。例如,该低通滤波器可用内插方式来增加超取样信号Ds中的取样点数目。从一角度而言,该低通滤波器的运作可以让超取样后的输出信号波形更加平顺。如此一来,将可进一步提升控制电路102的整体效能。请注意,该低通滤波器实际上亦可与前述的超取样单元110或控制模块120整合在同一硬件单元中。In practice, a low-pass filter (such as a digital low-pass filter, not shown in the figure) can also be set between the super-sampling unit 110 and the control module 120 of the aforementioned control circuit 102, for the over-sampling unit 110 The output super-sampled signal Ds is subjected to a low-pass filtering operation to increase sampling points in the super-sampled signal Ds. For example, the low-pass filter can use interpolation to increase the number of sampling points in the super-sampled signal Ds. From one point of view, the operation of the low-pass filter can make the waveform of the over-sampled output signal smoother. In this way, the overall performance of the control circuit 102 can be further improved. Please note that the low-pass filter can actually be integrated into the same hardware unit as the above-mentioned super-sampling unit 110 or the control module 120 .
以上所述仅为本发明的较佳实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810083154.6A CN101527547B (en) | 2008-03-07 | 2008-03-07 | Method and related device for controlling power output stage of power amplifier |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810083154.6A CN101527547B (en) | 2008-03-07 | 2008-03-07 | Method and related device for controlling power output stage of power amplifier |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101527547A CN101527547A (en) | 2009-09-09 |
CN101527547B true CN101527547B (en) | 2015-03-04 |
Family
ID=41095274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810083154.6A Active CN101527547B (en) | 2008-03-07 | 2008-03-07 | Method and related device for controlling power output stage of power amplifier |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101527547B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102012219244A1 (en) * | 2012-10-22 | 2014-04-24 | Robert Bosch Gmbh | Method of power controller of electrical consumer with power output stage, involves changing duty ratio of pulse width modulation (PWM) so that actual output power correspond to target power |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777022A (en) * | 2004-11-08 | 2006-05-24 | 三星电子株式会社 | Digital audio amplifier, an audio system including the same, and a method of amplifying an audio signal |
US7209002B2 (en) * | 2002-12-20 | 2007-04-24 | Sony Corporation | Audio amplifier |
CN1992532A (en) * | 2005-12-30 | 2007-07-04 | 联发科技股份有限公司 | Sigma-to-Digital Converter |
US7292171B2 (en) * | 2004-02-06 | 2007-11-06 | Anagram Technologies Sa | Method and device for the version of digital signals with heterogeneous formats and application thereof to the digital amplification of audio signals |
-
2008
- 2008-03-07 CN CN200810083154.6A patent/CN101527547B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7209002B2 (en) * | 2002-12-20 | 2007-04-24 | Sony Corporation | Audio amplifier |
US7292171B2 (en) * | 2004-02-06 | 2007-11-06 | Anagram Technologies Sa | Method and device for the version of digital signals with heterogeneous formats and application thereof to the digital amplification of audio signals |
CN1777022A (en) * | 2004-11-08 | 2006-05-24 | 三星电子株式会社 | Digital audio amplifier, an audio system including the same, and a method of amplifying an audio signal |
CN1992532A (en) * | 2005-12-30 | 2007-07-04 | 联发科技股份有限公司 | Sigma-to-Digital Converter |
Also Published As
Publication number | Publication date |
---|---|
CN101527547A (en) | 2009-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8847682B2 (en) | Attenuating noise and cross-talk in an audio system by offsetting outputs in phase | |
US8306106B2 (en) | Multi-edge pulse width modulator with non-stationary residue assignment | |
JP5674387B2 (en) | 3-level pulse width modulation amplifier and audio processing apparatus including the same | |
US7429940B2 (en) | Delta-sigma modulator circuit with limiter and method therefor | |
CN110957983B (en) | Three-frequency pseudo-random variable spread spectrum modulation method and filter-free pulse width modulator constructed by same | |
US7492220B2 (en) | Methods for controlling power stage of power amplifier and related apparatuses | |
CN1622460A (en) | High-resolution digital pulse width modulator and method for generating a high-resolution pulse width modulated signal | |
JP4513832B2 (en) | Class D amplifier circuit | |
Hühn et al. | A new modulator for digital RF power amplifiers utilizing a wavetable approach | |
CN1914951A (en) | Output stage for a hearing aid and method of driving output stage | |
US7782238B2 (en) | Asymmetric PWM signal generator, method thereof, and data processing apparatus including the same | |
CN101527547B (en) | Method and related device for controlling power output stage of power amplifier | |
US7061293B2 (en) | Spread spectrum clock generating circuit | |
CN101465633A (en) | Signal generating device | |
TWI404345B (en) | Sigma-delta modulator capable of controlling output rate and method thereof | |
US6784710B2 (en) | Multistage pulse width modulator | |
WO2000070752A1 (en) | Digital amplifier | |
US8280074B2 (en) | Audio signal processing apparatus | |
JP6164208B2 (en) | Transmitter and transmission method | |
US9084061B2 (en) | Method and system for improving quality of audio sound | |
CN101610086B (en) | Sigma-delta modulator with controllable output rate and related method | |
JP2001345705A (en) | Multi-bit pdm signal gain regulator | |
CN103457581B (en) | The edge alignment methods of clock pulse signal and data signal and relevant apparatus | |
JP7433758B2 (en) | digital power amplifier circuit | |
JP4466695B2 (en) | Class D amplifier circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |