Author Topic: Digitally controlled power supply response time  (Read 11824 times)

0 Members and 1 Guest are viewing this topic.

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3439
  • Country: us
Digitally controlled power supply response time
« on: August 23, 2014, 05:21:53 am »
Just for learning, I use an MCU to create a CC/CV output to charge a LiIon - that worked.  As a learning project should be, it brings question(s) to mind…

Digitally controlled power supply must also have an MCU running a control loop.  This loop takes time.  It will likely be in milliseconds or tens of milliseconds before it drives the current/voltage up or down.

Is there a typical rule/expectation on how fast a digitally controlled power supply should respond?  What would you consider too slow to be practical?

In trying to research for an answer myself, I looked at typical specs (from web sellers) “Digital Control Lab Power Supply”, none of them has any response time on it at all – such as:
- time it takes for the system to drive current down when output are shorted, or
- when load suddenly changed (say via relay which would be sharp change), how long it takes to take voltage up/down.

Thanks for sharing your experience…

Rick
 

Offline cyr

  • Frequent Contributor
  • **
  • Posts: 252
  • Country: se
Re: Digitally controlled power supply response time
« Reply #1 on: August 23, 2014, 05:53:32 am »
You wouldn't typically put a microcontroller inside the control loop, you simply generate control voltages for an analog regulator circuit.

 

Offline owiecc

  • Frequent Contributor
  • **
  • Posts: 315
  • Country: dk
    • Google scholar profile
Re: Digitally controlled power supply response time
« Reply #2 on: August 23, 2014, 07:29:46 am »
Just for learning, I use an MCU to create a CC/CV output to charge a LiIon - that worked.  As a learning project should be, it brings question(s) to mind…

Digitally controlled power supply must also have an MCU running a control loop.  This loop takes time.  It will likely be in milliseconds or tens of milliseconds before it drives the current/voltage up or down.

Is there a typical rule/expectation on how fast a digitally controlled power supply should respond?  What would you consider too slow to be practical?

In trying to research for an answer myself, I looked at typical specs (from web sellers) “Digital Control Lab Power Supply”, none of them has any response time on it at all – such as:
- time it takes for the system to drive current down when output are shorted, or
- when load suddenly changed (say via relay which would be sharp change), how long it takes to take voltage up/down.

Thanks for sharing your experience…

Rick

It al depends on the bandwidth that you need. For some applications you don't care for others you need to guarantee response time of X. You can implement all sorts of controllers in digital form, putting your micro in the loop, giving you different response times. I made a small interleaved buck, with 200kHz switching frequency and step response in 50?s. This was fine because I didn't need super fast response.

Response/recovery time depends on switching frequency and bandwidth of the controller. Switching frequency depends on the power level. All good SMPS will (e.g. Kepco, Magna, Agilent or Delta) will all have these informations available.
 

Offline Yago

  • Frequent Contributor
  • **
  • Posts: 651
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #3 on: August 23, 2014, 07:34:42 am »
I did see this when reading the Agillent 6632b manual:
Transient Response Time

Normal mode: <100?s (microsec)(forum ate the symbol!)
Fast mode: <50?s (microsec)


(for the output voltage to recover to its previous level within 0.1% of the voltage rating of the unit or 20 mV following a change in load current of up to 50% of the output current rating)


Page 49:
http://cp.literature.agilent.com/litweb/pdf/5962-8196.pdf

There are some other numbers there, output rise, settle times.
« Last Edit: August 23, 2014, 07:38:07 am by Yago »
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16847
  • Country: lv
Re: Digitally controlled power supply response time
« Reply #4 on: August 23, 2014, 09:02:09 am »
Putting MCU in control loop generally is a very stupid thing to do. Not only you will get a huge delay but also very bad (unexpected) regulation.
 

Offline owiecc

  • Frequent Contributor
  • **
  • Posts: 315
  • Country: dk
    • Google scholar profile
Re: Digitally controlled power supply response time
« Reply #5 on: August 23, 2014, 06:20:08 pm »
Putting MCU in control loop generally is a very stupid thing to do. Not only you will get a huge delay but also very bad (unexpected) regulation.
If you can't design a digital controller then you will get bad regulation. Good designs will have good performance. All wind farm controllers are digital. But I agree that when we are talking about small converters with very high switching frequency analog is the way to go due to the delays in ADC and calculation time.

There are few cases where digital control is faster than analog. If you know your load you can design the controller that will calculate the necessary state-space trajectory to reach the desired operating point. This way you will reach the operating point in the shortest physically possible time. It is not possible in analogue control.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16847
  • Country: lv
Re: Digitally controlled power supply response time
« Reply #6 on: August 23, 2014, 06:57:39 pm »
If you can't design a digital controller then you will get bad regulation. Good designs will have good performance.
It will be very hard to design fast and precise digital controller that reacts adequately to the rapidly changing load which you cannot predict. For example while it will react to the voltage drop, there might be already no load => huge overshoot. Digital usually is good for things where response have a big delay or for specific needs. Also it will be not trivial to get clean output with like 3mV p-p ripple.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Digitally controlled power supply response time
« Reply #7 on: August 23, 2014, 06:59:03 pm »
Putting MCU in control loop generally is a very stupid thing to do. Not only you will get a huge delay but also very bad (unexpected) regulation.

If you can't design a digital controller then you will get bad regulation. Good designs will have good performance. All wind farm controllers are digital. But I agree that when we are talking about small converters with very high switching frequency analog is the way to go due to the delays in ADC and calculation time.

Grid interfacing is a good example where the needed control loops are so slow that timing may be relaxed.

The opposite example I like is cycle by cycle current limiting.  Response time in an analog design is in the 10s to 100s of nanoseconds and is only limited by noise considerations.  Handing that with complex digital logic would be a waste of resources.

Quote
There are few cases where digital control is faster than analog. If you know your load you can design the controller that will calculate the necessary state-space trajectory to reach the desired operating point. This way you will reach the operating point in the shortest physically possible time. It is not possible in analogue control.

This is not impossible in the analog domain as shown by translinear designs which use frequency compensation that changes with operating point but it is only worth doing in specialized applications.  Some regulators do this to prevent poor regulation at light loads or during startup.  I have also seen it done so response is tailored to handle both continuous and discontinuous operation.
 

Offline mazurov

  • Frequent Contributor
  • **
  • Posts: 524
  • Country: us
Re: Digitally controlled power supply response time
« Reply #8 on: August 23, 2014, 07:04:35 pm »
Speed will also depend on how you detect your changes and what they are. Often times the regular day-to-day load changes are slow enough, but you still want to manage output short/open circuit events swiftly. Large abrupt load changes can easily be sensed with a comparator connected to the same ADC input that senses load current - very fast and also asynchronously (means you can shut down the supply if the load shorted during ADC conversion interval). If you have an interrupt tied to this comparator your response time is essentially the interrupt latency of your MCU, or in the case of Microchip's "motor control" peripherals even faster since you can wire the comparator output to PWM "fault" input and turn off your power stage in < 10ns if the need arises.

That being said, designing fast MCU-controlled supplies is quite difficult. On the other hand, MCU-controlled battery chargers, LED drivers, PV MPP trackers all work very well.
« Last Edit: August 23, 2014, 07:06:52 pm by mazurov »
With sufficient thrust, pigs fly just fine - RFC1925
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11859
  • Country: us
Re: Digitally controlled power supply response time
« Reply #9 on: August 23, 2014, 07:27:37 pm »
It will be very hard to design fast and precise digital controller that reacts adequately to the rapidly changing load which you cannot predict. For example while it will react to the voltage drop, there might be already no load => huge overshoot. Digital usually is good for things where response have a big delay or for specific needs. Also it will be not trivial to get clean output with like 3mV p-p ripple.

It's all about context. In the specific context of a regulated DC power supply then analog may certainly be more appropriate.

But in the wider context of industrial automation then controllers have been almost universally digital for a very long time. Digitally implemented systems give you far more flexibility over the control algorithm and required transfer functions, and far more control over the discontinuous behavior required for initialization, mode switching and handling of control limits.
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11859
  • Country: us
Re: Digitally controlled power supply response time
« Reply #10 on: August 23, 2014, 07:33:13 pm »
Normal mode: <100?s (microsec)(forum ate the symbol!)

For anyone else bumping into this, here is a version of the micro symbol the forum doesn't eat: µ

Unfortunately there is no similar such symbol for ohms  :(
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16847
  • Country: lv
Re: Digitally controlled power supply response time
« Reply #11 on: August 23, 2014, 07:43:35 pm »
It will be very hard to design fast and precise digital controller that reacts adequately to the rapidly changing load which you cannot predict. For example while it will react to the voltage drop, there might be already no load => huge overshoot. Digital usually is good for things where response have a big delay or for specific needs. Also it will be not trivial to get clean output with like 3mV p-p ripple.

It's all about context. In the specific context of a regulated DC power supply then analog may certainly be more appropriate.

But in the wider context of industrial automation then controllers have been almost universally digital for a very long time. Digitally implemented systems give you far more flexibility over the control algorithm and required transfer functions, and far more control over the discontinuous behavior required for initialization, mode switching and handling of control limits.
Talking about this particular use. Of course digital is much better for some process control. But not for some fast but simple regulation with almost no delay in the loop.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Digitally controlled power supply response time
« Reply #12 on: August 23, 2014, 08:17:13 pm »
Quote
Digitally controlled power supply must also have an MCU running a control loop. 

Not necessarily true. It depends on how you want to the mcu to be involved.

For the kind of mcu-controlled power supply, Freescale is a leader there and you can check them out.
================================
https://dannyelectronics.wordpress.com/
 

Offline Neilm

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #13 on: August 23, 2014, 09:44:16 pm »
TI keep sending me stuff on the C2000 micro and how it can be used in digital power supplies. Unfortunately, I just had my request to go on a training course for it turned down so I can't anything about how easy it is to do.
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein
Tesla referral code https://ts.la/neil53539
 

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3439
  • Country: us
Re: Digitally controlled power supply response time
« Reply #14 on: August 24, 2014, 02:27:00 am »
Thanks for all the interesting insights!  Always something interesting to learn.
 

Offline akis

  • Frequent Contributor
  • **
  • Posts: 981
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #15 on: August 24, 2014, 08:41:34 am »
In my small experience on the analogue side, it is a compromise between reaction times and unwanted oscillations. The point at which oscillations will occur depends on the whole topology and even the parts used from beginning to end, anything inside and outside of the control loop can and will affect the circuit, and there will be weird situations that you cannot possibly predict or test.

For example I thought I had a fairly stable two channel PSU, with both channels the same identical PCB and parts (well within reason), and when powering a remote device pulling around 2A on each channel at 12V and 200KHz, thereby having 25+ volts dropped on the pass transistors, one of the two channels started oscillating in unison with the current drawn while its identical sibling did not. The oscillations occurred because I had removed 1000uF bypass caps on the target device, and went away when I put them back in, but of course you could try to power a device that has absolutely no bypass caps, no low pass filters (chokes and caps) at the power inputs and will leak all sorts of noise around everything else. So I do not think there is a universal solution.
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8637
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #16 on: August 28, 2014, 09:23:50 am »
Just for learning, I use an MCU to create a CC/CV output to charge a LiIon - that worked.  As a learning project should be, it brings question(s) to mind…

Digitally controlled power supply must also have an MCU running a control loop.  This loop takes time.  It will likely be in milliseconds or tens of milliseconds before it drives the current/voltage up or down.

Is there a typical rule/expectation on how fast a digitally controlled power supply should respond?  What would you consider too slow to be practical?

In trying to research for an answer myself, I looked at typical specs (from web sellers) “Digital Control Lab Power Supply”, none of them has any response time on it at all – such as:
- time it takes for the system to drive current down when output are shorted, or
- when load suddenly changed (say via relay which would be sharp change), how long it takes to take voltage up/down.

Thanks for sharing your experience…

Rick
If you use an MCU designed for control loops, like the TI C2000 range, you can control the loop as fast as the PWM will allow updates. A PWM loop is a sampled system, and has to obey the Shannon/Nyquist criterion like any other sampled system. It just has a funky frequency response, as the varying pulse width takes you from something close to a Dirac sampler, to something close to zero order hold.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Digitally controlled power supply response time
« Reply #17 on: August 28, 2014, 10:06:57 am »
Cmiiw, also I'm not an expert on this, its just I study few of TI mcus lately.

Regarding TI's C2000 mentioned above, an example illustration below explains how the digital part reacts in TI C2000 mcu when it comes power regulation loop, fyi, it has "dedicated" peripherals like 1 MSPS ADC and PWM modules designed for motor control, which is also capable of doing power supply regulation, again, cmiiw.

Assuming the mcu is running at full speed at 80Mhz = 12.5 nS at each cycle, from rough ball park I think its safe that it can regulates safely a power switching circuit running at few hundreds of Khz switching frequency. Also of course assuming its also programmed by a qualified programmer that has efficient ISR that can fully handle cycle by cycle regulation properly.   ::)

Quoting C2000 datasheet :

« Last Edit: August 28, 2014, 10:09:11 am by BravoV »
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8637
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #18 on: August 28, 2014, 03:26:37 pm »
Assuming the mcu is running at full speed at 80Mhz = 12.5 nS at each cycle, from rough ball park I think its safe that it can regulates safely a power switching circuit running at few hundreds of Khz switching frequency. Also of course assuming its also programmed by a qualified programmer that has efficient ISR that can fully handle cycle by cycle regulation properly.   ::)
For a control loop you need to do the bulk of the computation inside the ADC's ISR. That's how you keep the control loop latency to a minimum, and maximise phase margin. In fact, your main loop might be a null loop, and 100% of everything that happens after initialisation might be in the ISRs.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Digitally controlled power supply response time
« Reply #19 on: August 28, 2014, 04:13:16 pm »
Assuming the mcu is running at full speed at 80Mhz = 12.5 nS at each cycle, from rough ball park I think its safe that it can regulates safely a power switching circuit running at few hundreds of Khz switching frequency. Also of course assuming its also programmed by a qualified programmer that has efficient ISR that can fully handle cycle by cycle regulation properly.   ::)

Those cycles get eaten up fast and many (most? all?) microcontrollers with high frequency cores have a significant number of wait states when accessing I/O or even memory.  The older ARM microcontrollers were especially bad about I/O access.

And it is not the best or average number of instruction cycles available per interrupt.  It is the worse number given any irregularities like non-uniform memory accesses and cache misses.

The "digital" feedback loops I have seen used in high performance regulators looked more like they used dedicated state machines which would have none of these issues.

I would also consider reliability a problem with such a complex device like a microcontroller within the feedback loop.  Smash the stack and the ISR fails causing regulation to fail.  Is it economical to dedicate a whole high performance microcontroller to such a simple task?
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8637
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #20 on: August 28, 2014, 05:05:29 pm »
Assuming the mcu is running at full speed at 80Mhz = 12.5 nS at each cycle, from rough ball park I think its safe that it can regulates safely a power switching circuit running at few hundreds of Khz switching frequency. Also of course assuming its also programmed by a qualified programmer that has efficient ISR that can fully handle cycle by cycle regulation properly.   ::)

Those cycles get eaten up fast and many (most? all?) microcontrollers with high frequency cores have a significant number of wait states when accessing I/O or even memory.  The older ARM microcontrollers were especially bad about I/O access.

And it is not the best or average number of instruction cycles available per interrupt.  It is the worse number given any irregularities like non-uniform memory accesses and cache misses.

The "digital" feedback loops I have seen used in high performance regulators looked more like they used dedicated state machines which would have none of these issues.

I would also consider reliability a problem with such a complex device like a microcontroller within the feedback loop.  Smash the stack and the ISR fails causing regulation to fail.  Is it economical to dedicate a whole high performance microcontroller to such a simple task?
Pretty much all the digital power supplies in production now use something like a C2000. Microchip and others have similar specialist devices targeting control loops, and more specifically power supplies. A C2000 can run numerous concurrent control loops without any performance problems. The highest performance ones have control loop accelerator hardware, freeing the main CPU for other jobs. These are not general purpose devices.

If you think you have seen a software free implementation of a power supply control loop look closer. Chances are that under the skin its some form of processor.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Digitally controlled power supply response time
« Reply #21 on: August 28, 2014, 05:36:18 pm »
If you think you have seen a software free implementation of a power supply control loop look closer. Chances are that under the skin its some form of processor.

Did you have a specific application in mind where they are ubiquitous because I run across non-digital but not necessarily non-sampled control loops all the time.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3237
  • Country: gb
Re: Digitally controlled power supply response time
« Reply #22 on: August 28, 2014, 07:28:31 pm »
If you think you have seen a software free implementation of a power supply control loop look closer. Chances are that under the skin its some form of processor.

Did you have a specific application in mind where they are ubiquitous because I run across non-digital but not necessarily non-sampled control loops all the time.

Agreed, I suspect software controlled power supplies are very much the exception rather than the rule.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Digitally controlled power supply response time
« Reply #23 on: August 28, 2014, 08:41:57 pm »
Agreed, I suspect software controlled power supplies are very much the exception rather than the rule.

There has been a lot of marketing noise about "smart" or "digital" power in connection with point of load regulators but it is just the kind of thing I would expect from companies making up a problem that can only be solved with their solution.

I have seen more "managed" point of load power solutions but not many.  If I was designing a digitally programmed and monitored power supply, that is how I would go about it.

If I was designing a maximum power point controller, I would seriously consider a sampled analog design instead of a digital design.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Digitally controlled power supply response time
« Reply #24 on: August 28, 2014, 08:46:01 pm »
Quote
Chances are that under the skin its some form of processor.

Yes.

Quote
I suspect software controlled power supplies are very much the exception rather than the rule.

Probably not.
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf