The present disclosure relates to a digital low dropout regulator (LDO). In particular, the present disclosure relates to a digital LDO that is operable during a panic condition.
The LDO 100 comprises a main comparator 102; shift-registers 104, 106; a counter 108; a buffer 110; transistors 112, 114, 116, 118; panic circuitry 120 comprising comparators 122, 124 and a logic block 126; clock circuitry 128 comprising a multiplexer 130 and a frequency scaler 132; and a capacitor Co having equivalent series resistance (ESR) Ro.
The LDO 100 uses a coarse digital to analog converter (DAC) 134 and a fine DAC 136, each driven from an up-down counter 104, 106 and a clock control scheme 128 that times a response to a ‘panic’ detected by the window comparator provided by the panic circuitry 120.
The main control loop is the single comparator 102 (or 1-bit ADC) that compares a feedback voltage VFB, that is derived from an output voltage VLDO, with a target voltage VREF.
The operation of the up-down counters 104, 106 acts as an integration function to an error signal CMP, so that the stability of the loop depends on the zero of the external decoupling capacitor Co, which has an ESR denoted by Ro.
When a “panic” is detected, i.e. the output voltage VLDO has exceeded the range as defined by the window comparator 120, the coarse and fine up-down counters 104, 106 are clocked at the full clock speed CLK, and the output current is ramped towards the new target value (either up or down) under control of the main comparator output CMP.
As the output of the DACs 134, 136 are essentially current sources provided by the transistors 112, 114, 116, 118, the output voltage VLDO is the integral of this current, so there is a 90° phase shift of the control to the output voltage VLDO. Typically, this results is a limit cycle of the DAC codes. As the capacitor Co has some ESR (denoted by Ro) the amplitude of the limit cycling reduces to a steady state. However, the “panic” mode fast clocking is a timed period, which in this example is 32 clock cycles. When the “panic” fast clocking timeout ends, the fine loop 136 is left to operate at 1/32nd of the clock speed.
The coarse and fine DAC outputs are controlled using a current mirror scheme. This has two benefits:
The current mirror scheme 138 comprises transistors 140, current sources 142, a capacitor 144, an amplifier 146 and a sink buffer 148.
It is desirable to provide a digital LDO that has reduced limit cycling at the end of the fast clocking period, when compared to known systems.
According to a first aspect of the disclosure there is provided a digital low dropout regulator (LDO) for receiving a reference voltage and generating an output voltage comprising a comparison circuit configured to receive the reference voltage, receive a feedback voltage, the feedback voltage being dependent on the output voltage, compare the reference voltage and the feedback voltage, and generate an error signal that is dependent on the comparison between the reference voltage and the feedback voltage, a first digital to analog converter configured to be operable in a panic mode in which the first digital to analog converter is configured to receive the error signal, generate a first DAC code signal based on the error signal for a first time period, the output voltage being dependent on the first DAC code signal, and calculate a mean value of the generated first DAC code signal during at least a portion of the first time period, and set the first DAC code signal to the mean value as calculated, a panic circuit configured to detect when the feedback voltage exceeds a first threshold value or falls below a second threshold value, and control the first digital to analog converter to operate in the panic mode when the feedback voltage exceeds the first threshold value or falls below the second threshold value.
Optionally, the comparison circuit comprises a main comparator or a 1-bit analog to digital converter.
Optionally, the first digital to analog converter comprises a first shift register configured to generate the first DAC code signal.
Optionally, the first shift register comprises an up-down counter.
Optionally, the first digital to analog converter comprises a plurality of first current sources, wherein each of the first current sources functions as a bit of the first DAC code signal.
Optionally, each of first current sources comprises a first transistor.
Optionally, the first shift register comprises a plurality of outputs, each output being associated with a single bit of the first DAC code signal and coupled to a gate of one of the plurality of first transistors.
Optionally, the first digital to analog converter comprises a plurality of first buffer circuits, each output being coupled to the gate of one of the plurality of first transistors via a buffer circuit.
Optionally, each of the first buffer circuits comprises a first inverter.
Optionally, the digital LDO comprises an output capacitor having an equivalent series resistance, the first DAC signal being provided to the output capacitor to generate the output voltage.
Optionally, the first time period is a duration of time that the first digital to analog converter operates in the panic mode.
Optionally, the first digital to analog converter is configured to calculate the mean value of the generated first DAC code signal by measuring a peak value of the generated first DAC code signal, measuring a valley value of the generated first DAC code signal, and summing together the peak and valley values and dividing the sum of the peak and valley values by two.
Optionally, the peak value of the generated first DAC code signal is measured during a falling edge of the error signal and/or the valley value of the generated first DAC code signal is measured during a rising edge of the error signal.
Optionally, the peak value is measured during the last falling edge of the error signal before the end of the first time period and/or the valley value is measured during the last rising edge of the error signal before the end of the first time period.
Optionally, the panic circuit is configured to output a panic signal in response to the detection of the feedback voltage exceed the first threshold value or falling below the second threshold value, the panic signal being used to switch the first digital to analog converter to the panic mode.
Optionally, the panic circuit comprises a first comparator configured to compare the feedback voltage with the first threshold value and a second comparator configured to compare the feedback voltage with the second threshold value.
Optionally, the panic circuit comprises a logic circuit configured to receive outputs of the first and second comparators and to provide the panic signal in response to the first and second comparator outputs indicating that the feedback voltage has exceeded the first threshold value or has fallen below the second threshold value.
Optionally, the digital LDO comprises a counter circuit configured to receive the panic signal and the error signal, wherein the first digital to analog converter comprises a first shift register configured to generate the first DAC code signal, and the counter circuit is further configured to increment the first shift register during the first time period.
Optionally, the first time period is a duration of time that the first digital to analog converter operates in the panic mode.
Optionally, the digital LDO comprises a clock circuit configured to provide a clock signal to the comparison circuit.
Optionally, the first time period is a duration of time that the first digital to analog converter operates in the panic mode, the clock circuit is configured to operate in a fast mode during the panic mode by providing the clock signal at a first frequency, and operate in a slow mode, when not in the panic mode, by providing the clock signal at a second frequency, the second frequency being smaller than the first frequency.
Optionally, the clock circuit comprises a multiplexer for receiving an input clock signal and a frequency scaling unit, the clock circuit is configured to provide the input clock signal as the clock signal during the fast mode, and the frequency scaling unit is configured to reduce the frequency of the input clock signal in the generation of the clock signal during the slow mode.
Optionally, the digital LDO comprises a second digital to analog converter configured to receive the error signal, and generate a second DAC code signal based on the error signal, the output voltage being dependent on the second DAC code signal.
Optionally, the first digital to analog converter provides course control of the output voltage and the second digital to analog converter provides fine control of the output voltage.
Optionally, the second digital to analog converter comprises a second shift register configured to generate the second DAC code signal.
Optionally, the second shift register comprises an up-down counter.
Optionally, the second digital to analog converter comprises a plurality of second current sources, wherein each of the second current sources functions as a bit of the second DAC code signal.
Optionally, each of the second current sources comprises a second transistor.
Optionally, the second shift register comprises a plurality of outputs, each output being associated with a single bit of the second DAC code signal and coupled to a gate of one of the plurality of second current sources.
Optionally, the second digital to analog converter comprises a plurality of second buffer circuits, each output being coupled to the gate of one of the plurality of second current sources via a buffer circuit.
Optionally, each of the second buffer circuits comprises a second inverter.
Optionally, the digital LDO comprises an output capacitor having an equivalent series resistance, the first and second DAC signals being provided to the output capacitor to generate the output voltage.
Optionally, the panic circuit is configured to output a panic signal in response to the detection of the feedback voltage exceed the first threshold value or falling below the second threshold value, the panic signal being used to switch the first digital to analog converter to the panic mode.
Optionally, the panic circuit comprises a first comparator configured to compare the feedback voltage with the first threshold value and a second comparator configured to compare the feedback voltage with the second threshold value.
Optionally, the panic circuit comprises a logic circuit configured to receive outputs of the first and second comparators and to provide the panic signal in response to the first and second comparator outputs indicating that the feedback voltage has exceeded the first threshold value or has fallen below the second threshold value.
Optionally, the digital LDO comprises a counter circuit configured to receive the panic signal and the error signal, wherein the first digital to analog converter comprises a first shift register configured to generate the first DAC code signal, the second digital to analog converter comprises a second shift register configured to generate the second DAC code signal, and the counter circuit is further configured to increment the first and second shift registers.
Optionally, the digital LDO comprises a clock circuit configured to provide a clock signal to the comparison circuit.
Optionally, the first time period is a duration of time that the first digital to analog converter operates in the panic mode, the clock circuit is configured to operate in a fast mode during the panic mode by providing the clock signal at a first frequency, and operate in a slow mode, when not in the panic mode, by providing the clock signal at a second frequency, the second frequency being smaller than the first frequency.
Optionally, the clock circuit comprises a multiplexer for receiving an input clock signal and a frequency scaling unit, the clock circuit is configured to provide the input clock signal as the clock signal during the fast mode, and the frequency scaling unit is configured to reduce the frequency of the input clock signal in the generation of the clock signal during the slow mode.
Optionally, the second digital to analog converter is configured to generate the second DAC code signal using the clock signal as provided during the slow mode of operation of the clock circuit.
According to a second aspect of the disclosure there is provided a method of receiving a reference voltage and generating an output voltage using a digital low dropout regulator comprising a comparison circuit, a first digital to analog converter and a panic circuit, the method comprising receiving the reference voltage at the comparison circuit, receiving a feedback voltage at the comparison circuit, the feedback voltage being dependent on the output voltage, comparing the reference voltage and the feedback voltage using the comparison circuit, generating an error signal that is dependent on the comparison between the reference voltage and the feedback voltage using the comparison circuit, receiving the error signal at the first digital to analog converter operating in a panic mode, generating a first DAC code signal based on the error signal for a first time period, the output voltage being dependent on the first DAC code signal, using the first digital to analog converter operating in the panic mode, calculating a mean value of the generated first DAC code signal during at least a portion of the first time period using the first digital to analog converter operating in the panic mode, setting the first DAC code signal to the mean value as calculated, using the first digital to analog converter operating in the panic mode, detecting when the feedback voltage exceeds a first threshold value or falls below a second threshold value, using the panic circuit, and controlling the first digital to analog converter to operate in the panic mode when the feedback voltage exceeds the first threshold value or falls below the second threshold value, using the panic circuit.
It will be appreciated that the method of the second aspect may include features set out in the first aspect and can incorporate other features as described herein.
The disclosure is described in further detail below by way of example and with reference to the accompanying drawings, in which:
During operation of the LDO 200, the comparison circuit 202 receives the reference voltage Vref and a feedback voltage Vfb. The feedback voltage Vfb is dependent on the output voltage Vout.
In a specific embodiment the feedback voltage Vfb may be the output voltage Vout, with the output voltage Vout being coupled to an input terminal of the comparison circuit 202.
In a further specific embodiment the feedback voltage Vfb may be generated from the output voltage Vout such that the feedback voltage Vfb is responsive to changes in the output voltage Vout. For example, the feedback voltage Vfb may be generated by providing the output voltage Vout to a potential divider, with an output of the potential divider being coupled to the input terminal of the comparison circuit 202. In such an example, the feedback voltage Vfb is then a fraction of the output voltage Vout, which may be necessary to reduce the voltage provided to the comparison circuit 202 to a suitable level for operation.
In operation, the comparison circuit 202 compares the voltages Vfb, Vref, and generates an error signal 208 that is dependent on the outcome of the comparison. In a specific embodiment, the comparison, for example, may be a subtraction of the reference voltage Vref from the Vfb such that the error signal 208 is equal to the feedback voltage Vfb minus the reference voltage Vref.
In a specific embodiment, the comparison circuit 202 may comprise a main comparator or a 1-bit analog to digital converter (ADC).
The DAC 204 is configured to be operable in a panic mode. Whilst operating in the panic mode, the DAC 204 receives the error signal 208 and generates a DAC code signal 210 for a time period. The output voltage Vout is dependent on the DAC code signal 210.
The time period may be a duration of time over which the DAC 204 operates in the panic mode. After the time period has elapsed, the DAC 204 may stop operating in the panic mode, and may, for example, switch to a normal mode of operation. Prior to entering the panic mode, the DAC 204 may operate in the normal mode of operation.
The DAC 204 is configured to calculate a mean voltage of the DAC code signal 210 during at least a portion of the time period. The DAC 204 is further configured to set the DAC code signal 210 to the mean value, as calculated.
For example, the DAC code signal 210 may vary periodically whilst the DAC 204 is operating in the panic mode. This may be indicative of limit cycling as discussed previously. To overcome this issue, the DAC 204 determines a mean value of the DAC code signal 210 over at least a portion of the time period that the DAC 204 is operating in the panic mode, and then sets the DAC code signal 210 to the mean value, thereby stopping the oscillation.
The DAC 204 may be configured to calculate the mean value of the DAC code signal 210 by measuring a peak and valley value of the DAC code signal 204, summing together the peak and valley values, and then dividing the sum by two.
The peak value may be measured by the DAC 204 during a falling edge of the error signal 208 as this is indicative of the DAC code signal 210 switching from a rising signal to a falling signal. The valley value may be measured by the DAC 204 during a rising edge of the error signal 208 as this is indicative of the DAC code signal 210 switching from a falling signal to a rising signal.
The peak value may be measured during the last falling edge of the error signal 208 before the end of the time period. The valley value may be measured during the last rising edge of the error signal 208 before the end of the time period.
During operation the panic circuit 206 controls the DAC 204 to operate in the panic mode when the DAC 204 detects that the feedback voltage Vfb either exceeds a first threshold value or falls below a second threshold value. Therefore, the panic circuit 206 effectively “switches” the DAC 204 to the panic mode when it detects the feedback voltage Vfb having a value outside of the range enclosed by the first and second threshold values.
The panic circuit 206 may output a panic signal 212 in response to the feedback voltage Vfb moving outside of the range enclosed by the threshold values, with the panic signal 212 being used to switch the DAC 204 to the panic mode.
A shift register is a digital circuit that incrementally shifts data from one storage location to another. The shift register may comprise an up-down counter that may, for example, be used to incrementally count up or down, with the output of the shift register being indicative of the presently stored value that increases or decreases incrementally during operation.
In the present embodiment, the shift register 301 provides a plurality of outputs 303, with each output having a binary value during operation and collectively forming the DAC code signal 210.
Each of the outputs 303 is associated with a single bit of the DAC code signal 210 and is coupled to a gate of one of the transistors 305, 307.
The DAC 204 comprises buffer circuits 310, 312, with each of the outputs 303 being coupled to a gate via one of the buffer circuits 310, 312. The buffer circuits 310, 312 may each comprise an inverter. In the present embodiment, the buffer circuit 310 comprises an inverter 311 and the buffer circuit 312 comprises an inverter 313.
The LDO 302 may comprise an output capacitor Co having an equivalent series resistance (ESR) Ro, with the DAC signal 210 being provided to the output capacitor Co to generate the output voltage Vout. It should be noted that the resistor symbol denoted by Ro is an ESR of the capacitor Co and is therefore not a physical component that is separately implemented within the circuit.
In the present embodiment, the panic circuit 206 comprises two comparators 402, 404. The comparator 402 receives the feedback voltage Vfb and compares the feedback voltage Vfb to a first threshold value (as provided by the reference voltage Vref1). The comparator 404 receives the feedback voltage Vfb and compares the feedback voltage Vfb to a second threshold value (as provided by the reference voltage Vref2).
The panic circuit 206 may further comprises a logic circuit 405 that is configured to receive outputs of the comparators 402, 404 and to provide the panic signal 212 in response to the comparator outputs indicating that the feedback voltage Vfb has moved outside the voltage range enclosed by the threshold values provided by Vref1 and Vref2.
The LDO 400 may further comprise a counter circuit 406 that is configured to receive the panic signal 212. The counter circuit 406 may also receive the error signal 208. During operation, the counter circuit 406 is configured to increment the shift register 301 during the time period. As discussed previously, the time period may be a duration of time over which the DAC 204 operates in the panic mode.
For example, when the comparators 402, 404 detect that the feedback voltage Vfb is outside the operating window defined by the threshold values provided by Vref1, Vref2, the logic circuit 405 responds by providing the panic signal 212 the counter circuit 406. The feedback voltage Vfb may move outside the operating window, for example, when a load transient occurs that results in an unwanted variation in the output voltage Vout. The counter circuit 406 then increments the shift register 301 to increment the DAC code signal 210 to restore the output voltage Vout to its intended value as defined by the reference voltage Vref.
In the present embodiment, the LDO 500 comprises a clock circuit 502 configured to provide a clock signal 504 to the comparison circuit 202. The clock circuit 502 may be configured to operate in a fast mode during the panic mode by providing the clock signal 502 at a first frequency and operate in a slow mode, when not in the panic mode, by providing the clock signal 504 at a second frequency. The second frequency is smaller than the first frequency.
The shift register 602 may comprise a plurality of outputs 603, each output being associated with a single bit of the DAC code signal 604 and coupled to a gate of one of the plurality of current sources 606, 608.
The DAC 216 may comprise a plurality of buffer circuits 610, 612 with each output 603 being coupled to the gate of one of the second current sources 606, 608 via one of the buffer circuits 610, 612. Each of the buffer circuits 610, 612 may comprise an inverter 614, 616.
In the present embodiment, the DAC code signals 210, 604 are both provided to the output capacitor Co to generate the output voltage Vout.
It will be appreciated that in a specific embodiment, the panic circuit 206 may be implemented, as described in
It will be appreciated that when the “fast” signal is in a high state, the DAC 204 is operating in the panic mode. When the system detects a ‘panic’, the ‘fast’ signal indicates that the CLK is operating at full speed and the up-down counter 301 is controlled by the comparator 202. This allows the output current to adjust to a transient load change, but in the prior art systems (for example, as is shown in
In the present embodiment, and with reference to
Whilst the ‘fast’ signal is indicated, the maximum and minimum of each up-down counter 301 value is captured. This is achieved by capturing the value on the rising (minimum) and falling (maximum) edge of the comparator ‘comp’ signal (being the error signal 208 as previously discussed).
At the end of the ‘fast’ period, the mean value is set as a “best guess” of the required DAC code signal 210. As given by:
where QQ is the DAC code signal 210, max denotes the peak of the DAC code signal 210 prior to the end of the panic mode (at point P1 on
The advantage of the technique describe herein is that it enables the reduction and/or elimination of the the coarse DAC limit cycling, which settles the output to a steady state faster, for what is inherently an unstable loop-stability criterion.
The simulation results presented in
For the last limit cycle before the ‘fast’ signal goes low, the values are max=7 (at point P1) and min=3 (at point P2). This results in the value DAC signal 210 being set 5 to after P2 and in accordance with equation (1).
The following is example C-code for the coarse DAC up-down counter in accordance with embodiments of the present disclosure.
The following portion of the above C-code may be used to find gg min/max values on comparator edges:
The following portion of the above C-code may be used to apply mid-value current at falling edge of “fast”:
It will be appreciated that common reference numerals and common variables between Figures represent common features.
Various improvements and modifications can be made to the above without departing from the scope of the disclosure.