Boost converter with frequency scaling

By using a peak current mode boost converter and envelope tracker in the audio system to dynamically adjust the switching frequency and voltage output, the problem of insufficient power in the audio system under low power supply conditions is solved, and the audio quality and efficiency are improved.

CN118585022APending Publication Date: 2024-09-03TEXAS INSTRUMENTS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410201655.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-11-30
Filing Date
2024-02-23
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

It is difficult for existing audio systems to effectively provide sufficient power to Class D amplifiers under low power supply conditions, especially when power consumption changes, resulting in unstable speaker audio quality.

Method used

An audio system is designed that uses a peak current mode boost converter and an envelope tracker to dynamically adjust the operation of the power stage according to the envelope changes of the audio signal by adjusting the switching frequency and voltage output to ensure that the amplifier operates under different volume conditions. Provide appropriate voltage and current.

Benefits of technology

It achieves the stable provision of efficient voltage and current under low power supply conditions, improves the audio quality and power efficiency of the speaker, reduces switching losses, and avoids the generation of audio artifacts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585022A_ABST
    Figure CN118585022A_ABST
Patent Text Reader

Abstract

The invention relates to a boost converter with frequency scaling, and discloses a circuit comprising a digital-to-analog converter (DAC) (705) having a first terminal and a second terminal. The circuit also includes a first diode (D1) having a first terminal coupled with the second terminal of the DAC (705) and having a second terminal coupled with the first terminal of the DAC (705). The comparator (720) has a first terminal and a second terminal. A second diode (D1) has a first terminal coupled to a second terminal of the DAC (705) and has a second terminal coupled to a second terminal of the comparator (720). The voltage-to-current converter (V2I) (250) has a terminal. A resistor (R1) has a first terminal coupled to the second terminal of the second diode (D2) and has a second terminal coupled to the terminal of the V2I converter (250).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of Indian Provisional Application No. 202341014032, filed on March 2, 2023, entitled “Analog Based Boost Output Power Detection for Dynamic Frequency Scaling,” which is hereby incorporated herein by reference. Background Art

[0003] Some audio systems include a Class D amplifier that receives a control signal from an audio controller and converts the control signal into an audio signal to drive a speaker. Some audio systems have a relatively low voltage power supply. For example, a mobile device (such as a mobile phone) may be powered by a battery, such as 3.6V. In order to provide enough power to the Class D amplifier to generate higher-amplitude audio through a speaker, some audio systems may also include a boost converter to boost a relatively low power supply voltage (e.g., a battery voltage in a mobile device) to a higher voltage to power the Class D amplifier. Summary of the invention

[0004] In one example, a circuit includes a digital-to-analog converter (DAC) having a first terminal and a second terminal. The circuit also includes a first diode having a first terminal coupled to the second terminal of the DAC and having a second terminal coupled to the first terminal of the DAC. A comparator has a first terminal and a second terminal. A second diode has a first terminal coupled to the second terminal of the DAC and has a second terminal coupled to the second terminal of the comparator. A voltage-to-current converter (V2I) has a terminal. A resistor has a first terminal coupled to the second terminal of the second diode and has a second terminal coupled to a terminal of the V2I converter.

[0005] In another example, a boost converter includes a power stage and a pulse width modulation (PWM) generator, the power stage having a power stage input, the PWM generator having a PWM input, a PWM clock input, and a PWM output. The PWM output is coupled to the power stage input. A comparator has a first input, a second input, and an output. The output of the comparator is coupled to the PWM input. A current threshold generator has a current threshold output coupled to the first input of the comparator. A clock boost circuit has a clock output coupled to the PWM clock input. The clock boost circuit is configured to cause a frequency of a clock signal at the clock output to increase in response to determining that the magnitude of power delivered by the boost converter has exceeded a threshold.

[0006] In yet another example, an audio system includes an audio amplifier having a first terminal and a second terminal and a peak current mode boost converter. The peak current mode boost converter has a first terminal coupled to the first terminal of the audio amplifier. The peak current mode boost converter is configured to: generate a clock at a first frequency, determine that power consumption of the audio amplifier is above a threshold, and in response to determining that the power consumption is above the threshold, increase the frequency of the clock from the first frequency to a second frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 is a schematic diagram of an audio system including a boost converter in an example.

[0008] Figure 2 In the example Figure 1 Block diagram of a boost converter.

[0009] Figure 3 In the example Figure 1 Schematic diagram of the boost converter power stage.

[0010] Figure 4 In the example Figure 1 Schematic diagram of the clock generator for the boost converter.

[0011] Figure 5 The example shown is Figure 1 Diagram of the operation of the boost converter envelope tracker.

[0012] Figure 6 It is shown Figure 1 A graph showing the relationship between the peak reference current of a boost converter and its output voltage.

[0013] Figure 7 In the example Figure 1 A schematic diagram of at least a portion of a boost converter.

[0014] Figure 8 In the example Figure 1 A graph of the relationship between the peak reference current of a boost converter and its output voltage illustrates the operation of the ripple compensation circuit.

[0015] Fig. 9 In another example Figure 1 A schematic diagram of at least a portion of a boost converter.

[0016] Fig.10 In the example shown Figure 1 Flowchart of the operation of the boost converter. DETAILED DESCRIPTION

[0017] The same reference numerals or other reference designators are used in the drawings to indicate the same or similar (in function and / or structure) features.

[0018] Figure 1 1 is a schematic diagram of an audio system 100 in an example. The audio system 100 includes a boost converter 110, an amplifier 120, a controller 130, and a speaker 140. Although the amplifier 120 can be any suitable type of audio amplifier, in this example, the amplifier 120 is a class D amplifier. The amplifier 120 includes transistors M1, M2, M3, and M4. The transistors M1-M4 are n-channel field effect transistors (NFETs) in this example, but can be other types of transistors in other examples. The inputs of the amplifier 120 are the gates of the transistors M1-M4, which are coupled to corresponding output terminals 131, 132, 133, and 134 of the controller 130. The output terminal 131 is coupled to the gate of the transistor M1. The output terminal 132 is coupled to the gate of the transistor M2. The output terminal 133 is coupled to the gate of the transistor M3. The output terminal 134 is coupled to the gate of the transistor M4. The source of the transistor M1 is coupled to the drain of the transistor M4 and provides the output terminal 121 of the amplifier 120. Similarly, the source of transistor M2 is coupled to the drain of transistor M3 and provides another output terminal 122 of amplifier 120. Speaker 140 has terminals 141 and 142 which are coupled to respective output terminals 121 and 122 of amplifier 120.

[0019] The boost converter 110 has an input voltage terminal 111, an output voltage terminal 112, and an audio input terminal 113. An input voltage Vin is supplied to the input voltage terminal 111. The output voltage terminal 112 of the boost converter 110 is coupled to an input power supply voltage terminal 125 of the amplifier 120. The boost converter 110 converts the input voltage Vin into an output voltage PVDD at its output voltage terminal 112. Thus, the voltage PVDD is supplied to the amplifier 120 to power the amplifier.

[0020] The controller 130 also has an audio input terminal 135. An audio input signal AUDIO IN is provided to the audio input terminal 135 of the controller 130 and the audio input terminal 113 of the boost converter 110. The controller 130 generates control signals M1_CTL, M2_CTL, M3_CTL, and M4_CTL at its corresponding output terminals 131-134 based on AUDIO IN. The controller 130 may include a digital-to-analog converter (DAC) whose output is coupled to the input of the pulse width modulator to convert the analog output into pulses as signals M1_CTRL, M2_CTRL, M3_CTRL, and M4_CTRL.

[0021] Based on the logic levels of the control signals M1_CTL, M2_CTL, M3_CTL, and M4_CTL, the amplifier 120 has three operation phases. In the first phase, when the control signals M1_CTL and M3_CTL are logic high and the control signals M2_CTL and M4_CTL are logic low, the transistors M1 and M3 are turned on and the transistors M2 and M4 are turned off. In the second phase, when the control signals M2_CTL and M4 are logic high and the control signals M1_CTL and M3_CTL are logic low, the transistors M2 and M4 are turned on and the transistors M1 and M3 are turned off. In the third phase, when the control signals M3_CTL and M4_CTL are logic high and the control signals M1_CTL and M2_CTL are logic low, the transistors M3 and M4 are turned on and the transistors M1 and M2 are turned off. In another example, in the third phase, the transistors M1 and M2 may be turned on and the transistors M3 and M4 may be turned off.

[0022] When the transistors M1 and M3 are turned on, the voltage at the output terminal 121 is PVDD with respect to the ground, and the voltage at the output terminal 122 is ground (0V). Therefore, the voltage of the speaker terminal 141 with respect to the speaker terminal 142 is PVDD. When the transistors M2 and M4 are turned on, the voltage at the output terminal 121 is 0V, and the voltage at the output terminal 122 is PVDD. Therefore, the voltage of the speaker terminal 141 with respect to the speaker terminal 142 is -PVDD. When the transistors M3 and M4 are turned on or the transistors M1 and M2 are turned on, the voltage difference between the output terminals 121 and 122 is 0V.

[0023] As will be further described below, the boost converter 110 includes a power stage that includes components such as an inductor and a transistor. When the transistor is turned on, energy is stored in the inductor, and the inductor current (which is also the input current (Iin) of the boost converter) increases linearly. When the transistor is turned off, the current of the inductor decreases linearly. In the example described herein, the boost converter 110 is a peak current mode control boost converter, in which the current of its inductor is compared with a peak reference current (I_LIM_REF). When the inductor current reaches the peak current threshold, the converter turns off the transistor. Therefore, the current of the inductor ramps up and down between the peak reference current I_LIM_REF and a lower current level. The peak-to-peak current difference of the inductor current is Iripple. The average inductor current Iin_ave is:

[0024]

[0025] In the example of a mobile device, such as a cellular phone, a tablet computer device, etc., the input voltage Vin can be supplied by the battery of the device. The voltage of the battery of the mobile device may be relatively small, such as 3.6V. The power delivered by the boost converter 110 is a function of its input power. The input power Pin to the boost converter 110 is the product of its input voltage Vin and the average input current Iin_ave. The output power Pout from the boost converter is Pin*Keff, where Keff represents the efficiency factor of the boost converter. For example, if Keff is 0.9 (90% effective), Pout = Pin*0.9. Based on Formula 1, the output power Pout from the boost converter 110 is:

[0026]

[0027] The switching frequency of the boost converter 110 is Fsw. At a higher switching frequency, the ripple current Iripple is lower, and at a lower switching frequency, Iripple is higher. Based on Formula 2, a lower level of Iripple results in a higher level of output power Pout. However, a higher switching frequency also means an increase in switching losses within the boost converter. The examples described herein advantageously operate the boost converter 110 to implement a lower switching frequency when the power consumption of the amplifier 120 needs to be consistent with a lower volume of audio, and to increase the switching frequency when the power consumption of the amplifier 120 needs to be consistent with a higher volume of audio, thereby supplying the power demand of the amplifier 120 in a power-efficient manner.

[0028] Figure 2 is a block diagram of a boost converter 110. In this example, the boost converter 110 includes a current threshold generator 210, a comparator 220, a pulse width modulator (PWM) 230, a power stage 240, a voltage-to-current (V2I) converter 250, a summer 260, a ripple compensation circuit 270, a clock boost circuit 280, and an envelope tracker 290. The power stage 240 has an input 240a, an input 240b coupled to an input voltage terminal 111, an output 240c coupled to an output voltage terminal 112, and an inductor current sensing output 240d. At low amplitude levels of the audio signal, the boost converter 110 may not be required to provide the boost voltage PVDD to the amplifier 120. A bypass switch SW1 may be included to provide Vin as PVDD directly to the amplifier 120. The switch SW1 is controlled by a control signal 293 from the envelope tracker 290, which determines the envelope of the audio input signal AUDIO IN. When the switch SW1 is in Figure 2In the state shown, VIN is provided to the power stage 240, and the power stage provides a boosted voltage PVDD greater than VIN to the amplifier 120. In another switching state, VIN is directly coupled to PVDD. When the envelope tracker 290 determines that the envelope of AUDIO IN is below the threshold, the envelope tracker asserts the control signal 294 to a logic state to change the state of the switch SW1 to couple VIN to the output voltage terminal 112. The output 240c of the power stage is coupled to the input 250a of the V2I converter 250. The V2I converter 250 has an output 250b coupled to the input (+) of the summer 260. The ripple compensation circuit 270 has an output 272 coupled to the input (-) of the summer 260. The output 261 of the summer 260 is coupled to the input 210a of the current threshold generator 210. An input 210b of the current threshold generator is configured to receive a value indicative of a maximum current (I_MAX) 211 that the boost converter will allow through the inductor of its power stage 240. An output 210c of the current threshold generator 210 is coupled to a negative (-) input of a comparator 220. An inductor current sense output 240d of the power stage 240 (which provides a signal I_IND indicative of the current through the inductor of the power stage) is coupled to a positive (+) input of the comparator 220. An output of the comparator 220 is coupled to an input 230a of a PWM generator 230. An output 230b of the PWM generator 230 is coupled to an input 240a of the power stage 240.

[0029] The envelope tracker 290 has an input 290a and an output 290b. The input 290a is coupled to the audio input terminal 113. The clock boost circuit 280 has inputs 280a, 280b and 280c and outputs 280d and 280e. The output 290b of the envelope tracker 290 is coupled to the input 280a. The input 280b is configured to receive a value indicating the maximum current I_MAX 211. The output 210c of the current threshold generator 210 is coupled to the input 280c. The output 280d is coupled to the input 270a of the ripple compensation circuit 270, and the output 280e is coupled to the input 230c of the PWM generator 230.

[0030] In one example, the envelope tracker 290 is implemented in machine code executed on a processor, and the current threshold generator 210, the comparator 220, the PWM generator 230, the power stage 250, the V2I converter 250, the summer 260, the ripple compensation circuit 270, and the clock boost circuit 280 are implemented as analog circuits. As described below, the envelope tracker 290 determines the envelope of the audio input signal AUDIO IN. The envelope tracker 290 may have a lookup table (LUT) 292 that maps various ranges of the audio input signal amplitude to corresponding switching frequencies. The envelope tracker 290 uses the magnitude of the envelope of the audio input signal as an index into the LUT 292 to generate an output clock selection signal CLOCK1_SEL corresponding to the frequency of the clock signal CLOCK1. CLOCK1_SEL is provided to the input 286a of the clock generator 286 (described below), which causes the clock generator to output CLOCK1 at a frequency corresponding to CLOCK1_SEL. In one example, the envelope tracker 290 generates CLOCK1_SEL to cause the clock generator 286 to generate a higher frequency clock signal CLOCK1 for higher levels of the envelope of the audio input signal AUDIO IN.

[0031] The clock select signal CLOCK1_SEL is provided to an input 280a of a clock boost circuit 280. The clock boost circuit 280 includes a high power detection circuit 284 coupled to a clock generator 286. The high power detection circuit 284 includes inputs 284a and 284b coupled to respective inputs 280b and 280c. The high power detection circuit 284 includes an output 284c coupled to an input 286b of the clock generator 286 and an input 270a of the ripple compensation circuit 270. The high power detection circuit 284 generates an output signal HP ENABLE 295 at its output 284c, as described below. The clock generator 286 has an input 286a coupled to the input 280a, and has an output 286c coupled to an output 280e.

[0032] The clock boost circuit 280 generates its output clock signal CLOCK2 to the PWM generator 230 at its input 286c to have a frequency corresponding to the clock selection signal CLOCK1_SEL, or to generate the output clock CLOCK2 at a higher frequency than otherwise indicated by CLOCK1_SEL. As described below, the high power detection circuit 284 determines whether the power demand for the boost converter 110 is within the threshold of its maximum output power capability. If the power detection circuit 284 determines that the power demand for the boost converter 110 is not within the threshold of its maximum output power capability, the clock boost circuit 280 causes its output clock CLOCK2 to have a frequency corresponding to CLOCK1_SEL. However, if the power detection circuit 284 determines that the power demand for the boost converter 110 is within the threshold of its maximum output power capability, the clock boost circuit 280 generates CLOCK2 at a higher frequency than otherwise corresponding to CLOCK1_SEL. In one example, if high power detection circuit 284 determines that boost converter 110 is providing power to amplifier 120 within a threshold of its maximum output power capability, clock generator 286 generates CLOCK2 at twice the highest clock frequency that clock generator 286 would otherwise generate based on CLOCK1_SEL.

[0033] The clock signal CLOCK2 from the clock boost circuit 280 is provided to the PWM generator to generate the PWM IN signal to the power stage 250. As described above, the boost converter 110 is a peak mode controlled boost converter. The comparator 220 compares the inductor current sensing signal I_IND from the power stage 240 with the peak reference current I_LIM_REF generated by the current threshold generator 210. When the transistor ( Figure 3 21 , as described below) is turned on, the current in the inductor increases (e.g., ramps up). When the signal I_IND reaches the peak reference current I_LIM_REF, the output signal COMP_OUT from the comparator 220 changes the logic state from low to high. The logic high assertion of COMP_OUT causes the PWM generator 230 to force its output signal PWM_IN into a logic state that turns off the transistor M33 within the power stage 240 (described below). The transistor M33 is turned on again based on the edge (e.g., rising edge) of the clock CLOCK2. The output voltage PVDD of the boost converter is provided to the input 250a of the V2I converter, which converts the voltage PVDD into a current V2I_OUT. The output current V2I_OUT is proportional to the output voltage PVDD. Based on the ripple compensation current COMP from the ripple compensation circuit 270, the summer 260 generates an output current I_FB, which is also proportional to the output voltage PVDD.

[0034] In some examples, the maximum current value I_MAX 211 is programmed into the boost converter 110, for example, into a register via a serial interface. In some examples, the maximum current value I_MAX 211 protects the inductor within the power stage 240 from receiving a current exceeding its rated value. As described below, the current threshold generator 210 generates the peak reference current I_LIM_REF to be equal to or less than the maximum current value I_MAX 211. For a given switching frequency of CLOCK2, the magnitude of the output voltage PVDD varies inversely with the output power—as the output power from the boost converter 110 increases, PVDD decreases, and as the output power decreases, PVDD decreases. The control loop includes a V2I converter 250, a summer 260, and a current threshold generator 210. The control loop adjusts the magnitude of the peak reference current I_LIM_REF based on the magnitude of PVDD. As PVDD decreases, the magnitude of the current I_FB decreases, and the magnitude of the peak reference current I_LIM_REF increases. As PVDD increases, the magnitude of current I_FB increases, and the magnitude of peak reference current I_LIM_REF decreases. Therefore, in some examples, I_LIM_REF approaching I_MAX 211 means that boost converter 110 is supplying power close to its maximum power capability. High power detection circuit 284 can compare I_LIM_REF to I_MAX 211 to determine whether boost converter 110 is supplying power close to its maximum power capability.

[0035] Figure 3 240b。Power stage 240 includes an inductor L31, a diode D32, a transistor M33, a capacitor C34 and a current sensing circuit 312. Inductor L31 is coupled between input 240b and the anode of diode D32. Capacitor C34 and the cathode of diode D32 are coupled to output 240c. Transistor M33 is an n-channel field effect transistor (NFET) in this example, but can be implemented as another type of transistor in another example. The drain of transistor M33 is coupled to the anode of inductor L31 and diode D32. The source of transistor M33 and capacitor C34 are coupled together and coupled to input 240b. In one example, current sensing circuit 312 is a sensing resistor (e.g., 100 milliohms). The sensing resistor can be coupled in series with inductor L31. The voltage across the sensing resistor is proportional to the current Iin. An amplifier may be included to amplify the voltage across the sense resistor to produce a signal I_IND at the inductor current sense output 240d.

[0036] Figure 44 is a block diagram of the clock generator 286 in the example. The clock generator 286 includes a clock tree circuit 402 and a multiplexer 404. The clock tree circuit 402 has a selection input 402a and clock outputs 402b and 404c. The clock tree circuit 402 generates multiple clock signals at various frequencies, and one of the clock signals is selected as the output CLOCK1 at the clock output 402b based on CLOCK1_SEL. The clock tree circuit 402 produces its highest frequency output clock CLOCK_MAX at its output 402c, regardless of the value of CLOCK1_SEL. The multiplexer 404 has inputs 404a and 404b, a selection input 404d, and an output 404c. HP_EN from the high power detection circuit 284 is provided to the selection input 404d of the multiplexer. When HP_EN is logic low, the multiplexer 404 selects CLOCK1 from the clock tree circuit 402 as the output clock CLOCK2. When HP_EN is logic high, multiplexer 404 selects CLOCK_MAX as output clock CLOCK2 from clock tree circuit 402. In one example, the frequency of CLOCK_MAX is twice the highest frequency of CLOCK1 that clock tree circuit 402 will output based on CLOCK1_SEL.

[0037] Figure 5 is a diagram illustrating the operation of the envelope tracker 290 . Figure 5 An example input audio signal AUDIO IN 510 is included. In general, audio can be characterized as having a relatively high crest factor. The crest factor is the ratio of the peak magnitude of the audio to its average value. A high crest factor audio signal means that the audio signal has an extended period of relatively low amplitude audio 511 and a high amplitude peak 512 of short duration. At the audio level 511 of lower amplitude, the amplifier 120 provides a relatively low power (e.g., 1 watt) to the speaker 140, but at the peak 512 of higher amplitude, the amplifier 120 provides a higher power level (e.g., 7 watts) to the speaker 140. Therefore, the boost converter 110 responds to the changing power demand of the amplifier 120 by supplying the amplifier 120 with a changing power level corresponding to the audio signal played through the speaker 140. The envelope tracker 290 implements envelope tracking 520 to generate an envelope 530 of the audio signal 510. The envelope 530 is provided to the LUT 292 as an index. The LUT 292 maps the envelope value to the switching frequency Fsw. In one example, LUT 292 includes multiple envelope value ranges and different switching frequencies mapped to each envelope value range. In one example, boost converter 110 is a synchronous boost converter, where the switching frequency in LUT 292 is an integer multiple of the base switching frequency. Figure 5In the example of , the basic switching frequency is 384 KHz, and the other switching frequencies are integer multiples of 384 KHz. Figure 5 The waveform 540 in FIG. 2 shows an example mapping between the audio envelope 530 and the switching frequency. The envelope tracker 290 applies a base switching frequency Fsw1 of 384 KHz to the first audio envelope range, a second switching frequency Fsw2 of 768 KHz to the next higher envelope range, and a third switching frequency Fsw3 of 3.84 KHz to the next higher envelope range. In this example, the envelope of the audio signal 510 is divided into three intervals, and a different switching frequency is mapped to each of the three intervals. Other examples may have fewer or more than three intervals, and therefore, fewer or more than three switching frequencies. The frequency of CLOCK1 from the envelope tracker 290 is one of the frequencies from the LUT 292 and is based on the interval corresponding to the audio envelope 530. The envelope tracker 290 may also generate a signal 293 to a logic state for an audio envelope below a relatively low threshold to cause the switch SW1 to couple VIN directly to the output 112 of the power stage 240, thereby bypassing the power stage of the boost converter 110.

[0038] Figure 6 is a graph 610 of peak reference current I_LIM_REF versus voltage PVDD from boost converter 110. As described above, for a given switching frequency, PVDD varies inversely with output power. Figure 6 It is shown that as power consumption from the boost converter 110 increases, the voltage PVDD decreases, and as power consumption decreases, the voltage PVDD increases. In addition, as described above, the boost converter increases the level of the peak reference current I_LIM_REF as PVDD decreases / power consumption increases. The high power detection circuit 284 determines when the peak reference current I_LIM_REF reaches or exceeds the threshold 620, which is close to the maximum current I_MAX 211. In response to determining that the peak reference current I_LIM_REF reaches or exceeds the threshold 620 (within the above threshold of I_MAX 211), the high power detection circuit 284 asserts the output signal HP ENABLE 295 to, for example, a logic high state. The clock generator 286 responds to the logic high assertion of the output signal HP ENABLE 295 by increasing (e.g., doubling) the switching frequency of CLOCK2 to the PWM generator 230 from the highest switching frequency that would otherwise be provided based on CLOCK1_SEL. The high power detection circuit 284 asserts the output signal HP ENABLE 295 in response to an audio signal 510 being at or near a high amplitude peak 512 ( Figure 5) is a logic high state commensurate with the input 404b. The clock generator 286 responds by changing the state of the multiplexer 404 to select CLOCK_MAXC at the input 404b as its CLOCK2 for high amplitude audio peaks, thereby providing increased power to the amplifier 120. As the power consumption on the boost converter 110 decreases, the peak reference current I_LIM_REF also decreases below the threshold 620, and the high power detection circuit 284 forces its output signal HP ENABLE 295 to, for example, a logic low state. The output signal HP ENABLE 295 in the logic low state causes the clock generator 286 to change the state of the multiplexer 404 to select CLOCK1 from the clock tree circuit 402 as its output clock CLOCK2, thereby providing CLOCK2 to the PWM generator 230 at a frequency based on the LUT 292. The graph 610 includes a flat region 610a at an I_LIM_REF current level equal to IMIN 608. Figure 6 Also shown is the difference between I_MAX 211 and IMIN as current IRANGE 609. Figure 7 The currents IMIN and IRANGE are further explained.

[0039] Figure 7 2 is a circuit schematic diagram showing an example implementation of a V2I converter 250, a high power detection circuit 284, and a current threshold generator 210. The V2I converter 250 includes an amplifier 251, transistors M71 and M72, resistors R3 and R4, and current sources 253 and 254. Resistors R3 and R4 are coupled in series between input 250a and ground to form a voltage divider for voltage PVDD. The connection between resistors R3 and R4 is coupled to the positive input of amplifier 251, and the negative input of amplifier 251 receives a reference voltage V_MIN. The output of amplifier M71 is coupled to the gates of transistors M71 and M72. The sources of transistors M71 and M72 are coupled to ground. Current source 253 is coupled to the drain of transistor M71 and the positive input of amplifier 251, and current source 254 is coupled to the drain of transistor M72 and output 250b at node 259. Current sources 253 and 254 provide current for biasing the V2I converter 250 .

[0040] High power detection circuit 284 includes reference voltage generator 712, resistor R1, and comparator 720. Reference voltage generator 712 includes current source 725 coupled to resistor R2 and the positive input of comparator 720. Resistor R1 is coupled between output 250b and the negative input of comparator 720. Comparator 720 generates output signal HP ENABLE 295 at its output.

[0041] The current threshold generator 210 includes a digital-to-analog converter (DAC) 705, diodes D1 and D2, and a resistor R5. The input of the DAC 705 is the input 210b mentioned above, and receives a digital value representing the maximum current I_MAX 211. The DAC 705 has outputs 705b and 705c, each providing a current. The output 705b provides a current IMIN 608, and the output 705c provides a current IRANGE 609. The anodes of the diodes D1 and D2 are coupled to the output 705c of the DAC 705. The cathode of the diode D1 is coupled to the output 705b and the output 210c.

[0042] Resistor R5 is coupled between output 210c and ground. Figure 2 The block diagram of FIG. 2 shows the peak reference current I_LIM_REF flowing into the negative input of the comparator 220. Figure 7 In an example implementation of , the peak reference current I_LIM_REF flows through the resistor R5, thereby generating a voltage V_ILIM_REF proportional to the peak reference current I_LIM_REF. In one example, the comparator 220 is a voltage comparator, and its input signal is a voltage. Therefore, the peak reference current I_LIM_REF is converted into a voltage through the resistor R5. Similarly, the signal I_IND indicating the current through the inductor L31 of the power stage 240 is also a voltage indicating the current through the inductor L3.

[0043] The current through resistor R5 is equal to or greater than current IMIN 608, thereby setting a minimum current level IMIN for peak reference current I_LIM_REF. Current IRANGE 609 may flow through diode D1, through diode D2, or be split between diodes D1 and D2. The current through diode D1 is current I_D1, and the current through diode D2 is current I_FB. Therefore, the sum of currents I_FB and I_D1 is current IRANGE 609. The larger the current I_FB, the smaller the current I_D1, and the smaller the current I_FB, the larger the current I_D1. The sum of currents I_D1 and IMIN 609 is peak reference current I_LIM_REF. Therefore, an increase in current I_FB causes a decrease in peak reference current I_LIM_REF, and a decrease in current I_FB causes a decrease in peak reference current I_LIM_REF.

[0044] V2I converter 250 sets the magnitude of current I_FB. The current from current source 254 and current I_FB flow into node 259, and current I_M72 flows from node 259 and flows through transistor M72. Therefore, the sum of the current from current source 254 and current I_FB is equal to current I_M72. The current from current source 254 is a fixed current. Current I_M72 is set by the gate-source voltage (Vgs) of transistor M72. Vgs of transistor M72 is the voltage at the output of amplifier 251, and amplifier 251 amplifies the difference between voltage VFB and V_MIN. Because voltage VFB is proportional to voltage PVDD, Vgs of transistor M72 is proportional to voltage PVDD. Therefore, current I_M72 is proportional to voltage PVDD. Because the current at node 259 must be balanced, as voltage PVDD decreases, current I_M72 also decreases and current I_FB decreases. Similarly, as voltage PVDD increases, current I_M72 increases and current I_FB increases. Therefore, current I_FB is proportional to voltage PVDD. As voltage PVDD decreases, current I_FB decreases and current I_D1 increases, causing peak reference current I_LIM_REF to increase. When voltage PVDD decreases to a point equal to or less than voltage VMIN, transistor M72 turns off, current I_FB is 0 amperes, and peak reference current I_LIM_REF is equal to the sum of currents IRANGE 608 and IMIN 608, which is maximum current I_MAX. As voltage PVDD increases, current I_FB increases and current I_D1 decreases, causing peak reference current I_LIM_REF to decrease.

[0045] Relative to the voltage at output 250b, comparator 720 compares the voltage across resistor R2 to the voltage across resistor R1. The voltage across resistor R2 is a fixed reference voltage set by the current from current source 725. The voltage across resistor R1 is set by the current I_FB flowing through resistor R1. As described above, current I_FB is negatively correlated to the peak reference current I_LIM_REF. When the peak reference current I_LIM_REF is less than threshold 620 ( Figure 6 ), the current I_FB is large enough so that the voltage on the negative input of the comparator 720 is greater than the fixed reference voltage across the resistor R2, and the output signal HP ENABLE 295 is logic low. However, when the peak reference current I_LIM_REF reaches the threshold 620, the current I_FB is small enough so that the voltage on the negative input of the comparator 720 is less than the fixed reference voltage across the resistor R2, so that the comparator 720 forces the output signal HP ENABLE 295 to enter a logic high state.

[0046] When the high power detection circuit 284 determines that the peak reference current I_LIM_REF is at or above the threshold 620 ( Figure 6 ), high power detection circuit 284 asserts its output signal HP ENABLE 295 to a logic high state, causing clock generator 286 to increase the switching frequency of boost converter 110. When this occurs, the magnitude of the ripple current decreases, and for the same level of peak reference current I_LIM_REF, the average inductor current increases. The sudden increase in average inductor current causes a sudden jump in voltage PVDD, which can cause audio artifacts in the audio produced by speaker 140. Ripple compensation circuit 270 solves this problem.

[0047] Figure 8 8 is a graph 810 of the peak reference current I_LIM_REF versus the voltage PVDD when the ripple compensation circuit 270 is used. As the level of the peak reference current I_LIM_REF reaches the upper threshold value Ipeak_2 at point 812, the ripple compensation circuit 270, which also receives the signal HP ENABLE 295, responds to the positive assertion of the signal HP ENABLE 295 by causing the peak reference current I_LIM_REF to suddenly drop from Ipeak_2 to Ipeak_1. Although the switching frequency of the boost converter 110 suddenly increases, because its peak reference current I_LIM_REF suddenly decreases to the threshold value Ipeak_1, the average inductor current before and after the sudden change in switching frequency remains approximately the same. If the load on the boost converter 110 continues to increase, the peak reference current I_LIM_REF may continue to increase along segment 816. As the load on the boost converter 110 decreases, the peak reference current I_LIM_REF eventually drops to point 814. At this point, the high power detection circuit 284 forces the signal HPENABLE 195 back to a logic 0 state, which causes the clock generator 286 to reduce the switching frequency of CLOCK2, for example, to one-half of the original, and causes the ripple compensation circuit 270 to increase the peak reference current I_LIM_REF back to the threshold value Ipeak_2, thereby causing a negligible abrupt step in the average inductor current.

[0048] Fig. 9 is with Figure 7270 . The ripple compensation circuit 270 is a circuit diagram of the same embodiment as in , but includes an example circuit implementation of the ripple compensation circuit 270. The ripple compensation circuit 270 includes a current source circuit 912, a current mirror 930, and a transistor M91. The current source circuit 912 includes a resistor R91. The current mirror 930 includes transistors M92 and M93. The current mirror ratio of the current mirror 930 is 1:m, where m is an integer equal to or greater than 1. Transistors M91-N93 are NFETs in this example. The gates of transistors M92 and M93 are coupled together and coupled to the drain of transistor M92. The sources of transistors M92 and M93 are coupled together at ground. The current source circuit 912 is coupled between the input voltage terminal 11 and the drain of transistor M92. The source of transistor M91 is coupled to the drain of transistor M93, and the drain of transistor M91 is coupled to the output 272. The gate of transistor M91 is coupled to the output of the comparator 720 and therefore receives the signal HP ENABLE 295. Signal HP ENABLE 295 turns on transistor M91 when it is logic high, and turns off transistor M91 when it is logic low.

[0049] The current I91 through resistor R91 (also flowing through transistor M92) is based on the magnitude of the input voltage Vin and the resistance of resistor R91. When signal HP ENABLE 295 is logic high, current I91 is mirrored as current I93 through transistor M93, which also causes an increase in current I_FB. The increase in current I_FB caused by transistor M91 turning on causes a decrease in peak reference current I_LIM_REF by the same amount, which corresponds to a decrease in peak reference current I_LIM_REF from threshold value Ipeak_2 to I_peak1 ( Figure 8 If the load on boost converter 110 decreases and high power detection circuit 284 deasserts signal HPENABLE 295 from logic 1 to logic 0, transistor M91 turns off, causing a decrease in current I_FB and an increase in peak reference current I_LIM_REF by the same amount, which corresponds to an increase in peak reference current I_LIM_REF from threshold value I_peak1 to I_peak2.

[0050] Fig.101000 is a flowchart illustrating the operation of the boost converter 110 in the example. At operation 1002, the boost converter 1002 generates a clock at a first frequency. The clock in operation 1002 can be generated by the clock generator 286 based on the magnitude of the envelope of AUDIO IN and provided to the PWM generator 230. At decision operation 1004, the boost converter 110 determines whether its power consumption is above a threshold. For example, the high power detection circuit 284 can determine whether the peak reference current I_LIM_REF is within the threshold of the maximum current I_MAX allowed by the boost converter. If the power consumption is above the threshold (the "yes" branch from decision operation 1004), operation 1006 is performed, at which the frequency of the clock signal is increased from the first frequency to the second frequency. In one example, the second frequency can be twice the first frequency. Otherwise, if the power consumption is not above the threshold (the "no" branch), the control loop returns to operation 1002.

[0051] In this description, the term "coupled" may encompass connections, communications, or signal paths that achieve a functional relationship consistent with this description. For example, if device A generates a signal to control device B to perform an action: (a) in the first example, device A is coupled to device B through a direct connection; or (b) in the second example, if the intervening component C does not change the functional relationship between device A and device B, device A is coupled to device B through an intervening component C, so that device B is controlled by device A via the control signal generated by device A.

[0052] Additionally, in this description, the recitation “based on” means “based at least in part on.” Thus, if X is based on Y, then X may be a function of Y and any number of other factors.

[0053] A device that is "configured to" perform a task or function may be configured (e.g., programmed and / or hardwired) by the manufacturer at the time of manufacture to perform that function, and / or may be configurable (or reconfigurable) by a user after manufacture to perform that function and / or other additional or alternative functions. Configuration may be performed through firmware and / or software programming of the device, through the construction and / or layout of the device's hardware components and interconnections, or a combination thereof.

[0054] As used herein, the terms "terminal", "node", "interconnection", "pin" and "lead" are used interchangeably. Unless specifically stated otherwise, these terms are generally used to refer to the interconnections between device elements, circuit elements, integrated circuits, devices or other electronic devices or semiconductor components or their terminals.

[0055] Circuits or devices described herein as including certain components may instead be adapted to be coupled to those components to form the described circuit system or device. For example, a structure described as including one or more semiconductor elements (such as transistors), one or more passive elements (such as resistors, capacitors and / or inductors), and / or one or more sources (such as voltage and / or current sources) may instead include only semiconductor elements within a single physical device (e.g., a semiconductor die and / or integrated circuit (IC) package), and may be adapted to be coupled to at least some of the passive elements and / or sources at the time of manufacture or after manufacture (e.g., by an end user and / or a third party) to form the described structure.

[0056] Although the use of specific transistors is described herein, other transistors (or equivalent devices) may be used instead with little or no change to the remaining circuitry. For example, field effect transistors ("FETs") (such as n-channel FETs (NFETs) or p-channel FETs (PFETs)), bipolar junction transistors (BJTs, such as NPN transistors or PNP transistors), insulated gate bipolar transistors (IGBTs), and / or junction field effect transistors (JFETs) may be used in place of or in combination with the devices described herein. The transistor may be a depletion-type device, a drain-extended device, an enhancement-type device, a natural transistor, or other type of device structure transistor. In addition, the device may be implemented in / on a silicon substrate (Si), a silicon carbide substrate (SiC), a gallium nitride substrate (GaN), or a gallium arsenide substrate (GaAs).

[0057] The control input of a transistor and its current terminals may be mentioned in the claims. In the context of a FET, the control input is the gate, and the current terminals are the drain and source. In the context of a BJT, the control input is the base, and the current terminals are the collector and emitter.

[0058] When a FET is "turned on" or "enabled" as described herein, it is meant that the conduction channel of the FET exists and drain current can flow through the FET. When a FET is "turned off" or "disabled" as described herein, it is meant that the conduction channel does not exist and therefore drain current cannot flow through the FET. However, an "off" FET can have current flowing through the body diode of the transistor.

[0059] The circuits described herein may be reconfigured to include additional or different components to provide functionality that is at least partially similar to functionality available prior to component replacement. Unless otherwise specified, components shown as resistors generally represent any one or more elements coupled in series and / or in parallel to provide the amount of impedance represented by the resistor shown. For example, a resistor or capacitor shown and described herein as a single component may instead be a plurality of resistors or capacitors coupled in parallel between the same nodes, respectively. For example, a resistor or capacitor shown and described herein as a single component may instead be a plurality of resistors or capacitors coupled in series between the same two nodes as a single resistor or capacitor, respectively.

[0060] Although certain elements of the described examples are included in the integrated circuit and other elements are external to the integrated circuit, in other example embodiments, additional or fewer features may be incorporated into the integrated circuit. Furthermore, some or all of the features shown as external to the integrated circuit may be included in the integrated circuit, and / or some features shown as internal to the integrated circuit may be incorporated external to the integrated circuit. As used herein, the term "integrated circuit" refers to one or more circuits that: (i) are incorporated in / on a semiconductor substrate; (ii) are incorporated in a single semiconductor package; (iii) are incorporated into the same module; and / or (iv) are incorporated in / on the same printed circuit board.

[0061] The use of the phrase "ground" in the above description includes chassis ground, earth ground, floating ground, virtual ground, digital ground, common ground and / or any other form of ground connection that is applicable or suitable for the teachings of the present description. In the present description, unless otherwise stated, "about", "approximately" or "substantially" preceding a parameter means within + / -10% of the parameter, or, if the parameter is zero, within a reasonable range of values ​​around zero.

[0062] Modifications in the described embodiments are possible, and other examples are possible, within the scope of the claims.

Claims

1. A circuit comprising: A digital-to-analog converter, or DAC, has a first terminal and a second terminal; a first diode having a first terminal coupled to the second terminal of the DAC and having a second terminal coupled to the first terminal of the DAC; a comparator having a first terminal and a second terminal; a second diode having a first terminal coupled to the second terminal of the DAC and having a second terminal coupled to the second terminal of the comparator; A voltage-to-current converter, i.e., a V2I converter, has terminals; as well as a resistor having a first terminal coupled to the second terminal of the second diode and having a second terminal coupled to the terminal of the V2I converter.

2. The circuit of claim 1 , wherein the first terminal of the first diode is an anode of the first diode, the second terminal of the first diode is a cathode of the first diode, the first terminal of the second diode is an anode of the second diode, and the second terminal of the second diode is a cathode of the second diode.

3. The circuit of claim 1, wherein: The DAC has a third terminal configured to receive a digital value; as well as The DAC generates a first current at the first terminal of the DAC and a second current at the second terminal of the DAC, and a sum of the first current and the second current is based on the digital value. 4 . The circuit of claim 1 , further comprising a reference voltage generator coupled to the first terminal of the comparator.

5. The circuit of claim 4, wherein the resistor is a first resistor and the reference voltage generator comprises a current source circuit coupled in series with a second resistor.

6. The circuit of claim 1, further comprising a ripple compensation circuit having a terminal coupled to the second terminal of the second diode.

7. The circuit of claim 6, wherein the comparator has a third terminal, and the ripple compensation circuit comprises: a first transistor having a first terminal, a second terminal and a third terminal, the first terminal being coupled to the third terminal of the comparator, the second terminal of the transistor being coupled to the terminal of the ripple compensation circuit; a current mirror having a first terminal and a second terminal, the second terminal of the current mirror being coupled to the third terminal of the first transistor; as well as A current source circuit is coupled to the first terminal of the current mirror.

8. A boost converter, comprising: a power stage having a power stage input; a pulse width modulation generator, i.e., a PWM generator, having a PWM input, a PWM clock input, and a PWM output, wherein the PWM output is coupled to the power stage input; a comparator having a first input, a second input and an output, the output of the comparator being coupled to the PWM input; a current threshold generator having a current threshold output coupled to the first input of the comparator; as well as A clock boost circuit has a clock output coupled to the PWM clock input, the clock boost circuit being configured to cause an increase in the frequency of a clock signal at the clock output in response to determining that the amount of power delivered by the boost converter has exceeded a threshold.

9. The boost converter according to claim 8, wherein the clock boost circuit comprises: a comparator configured to compare a reference signal to a second signal based on an output voltage of the boost converter, the comparator having an output; as well as A clock generator has a control input coupled to the output of the comparator.

10. The boost converter of claim 9, wherein the clock generator has a second input, and the boost converter further comprises an envelope tracker having an output and configured to generate a clock selection signal at the output of the envelope tracker based on the amplitude of the audio signal, the output of the envelope tracker being coupled to the second input of the clock generator.

11. The boost converter of claim 8, wherein the current threshold generator is configured to generate a peak current threshold signal, the comparator is a first comparator, and the clock boost circuit comprises: A second comparator is configured to compare a reference voltage with a second voltage based on the peak current threshold signal.

12. The boost converter according to claim 11, wherein: The current threshold generator includes a digital-to-analog converter, i.e., a DAC, a first diode, and a second diode, the DAC having a first terminal and a second terminal, the first diode having a first terminal coupled to the second terminal of the DAC and having a second terminal coupled to the first terminal of the DAC, the second diode having a first terminal coupled to the second terminal of the DAC and having a second terminal coupled to a terminal of the second comparator; and The clock boost circuit comprises: A voltage-to-current converter, or V2I converter, having terminals; and a resistor having a first terminal coupled to the second terminal of the second diode and having a second terminal coupled to the terminal of the V2I converter.

13. The boost converter of claim 12, wherein the terminal of the V2I converter is a first terminal and the V2I converter has a second terminal coupled to an output of the boost converter, and the V2 converter is configured to generate a current based on a voltage at the output of the boost converter.

14. The boost converter of claim 12, wherein the first terminal of the first diode is an anode of the first diode, the second terminal of the first diode is a cathode of the first diode, the first terminal of the second diode is an anode of the second diode, and the second terminal of the second diode is a cathode of the second diode.

15. The boost converter of claim 12, wherein the second comparator has a first input and a second input, and the clock boost circuit comprises a reference voltage generator coupled to the first input of the second comparator.

16. The boost converter of claim 11, wherein the second comparator has an output, and the boost converter further comprises a ripple compensation circuit having a control input coupled to the output of the second comparator.

17. The boost converter of claim 16, wherein the second comparator has an input and the ripple compensation circuit comprises: a first transistor having a first terminal, a second terminal and a third terminal, the first terminal of the first transistor being the control input of the ripple compensation circuit, the second terminal of the first transistor being coupled to the input of the second comparator; a current mirror having a first terminal and a second terminal, the second terminal of the current mirror being coupled to the third terminal of the first transistor; as well as A current source circuit is coupled to the first terminal of the current mirror.

18. An audio system comprising: an audio amplifier having a first terminal and a second terminal; as well as a peak current mode boost converter having a first terminal coupled to the first terminal of the audio amplifier, the peak current mode boost converter being configured to: generating a clock at a first frequency; determining that a power consumption of the audio amplifier is above a threshold; as well as In response to determining that the power consumption is above the threshold, the frequency of the clock is increased from the first frequency to a second frequency.

19. The audio system of claim 18, wherein the peak current mode boost converter is configured to determine that the power consumption of the audio amplifier is above the threshold by comparing a reference signal to a second signal, the second signal being based on an output voltage of the boost converter.

20. The audio system of claim 18, wherein the second frequency is twice the first frequency.

21. The audio system of claim 18, further comprising a speaker coupled to the second terminal of the audio amplifier.