Author Topic: Buck converter switchable output voltage  (Read 2919 times)

0 Members and 1 Guest are viewing this topic.

Online HwAoRrDkTopic starter

  • Super Contributor
  • ***
  • Posts: 1931
  • Country: gb
Buck converter switchable output voltage
« on: February 09, 2023, 04:26:05 pm »
I'm contemplating what it will take to create a circuit with a DC-DC switching buck converter that has a switchable output voltage. My basic idea is that per output voltage required there will be a separate pair of feedback voltage divider resistors (or maybe only one per on one side of the divider), and that there will be some means to switch in the differing feedback divider according to the desired output voltage - maybe a physical switch, an analogue multiplexer IC, not sure yet.

One thing that occurred to me is that it's probably not a good idea to have the feedback network switched 'live', right? That is, while the buck converter is online and switching. Given the nature of a selection switch (whether physical or electronic) is typically break-before-make, I would imagine that interruption will momentarily cause havoc with the converter's regulation, which may cause unregulated voltage levels on the output, which is a Bad Thing™.

Any suggestions on how to mitigate this?

I thought perhaps there may be some way to momentarily disable the switching regulator (using its enable pin) during switching. In terms of end usage, turning off the output during a change of output voltage is entirely acceptable. I just can't think of a way to do it right now.
 

Online HwAoRrDkTopic starter

  • Super Contributor
  • ***
  • Posts: 1931
  • Country: gb
Re: Buck converter switchable output voltage
« Reply #1 on: February 09, 2023, 06:18:07 pm »
I've just had a thought after looking at some buck converter datasheets.

Buck converters typically have some kind of output short-circuit or under-voltage protection, where if the feedback pin goes below a certain threshold, the converter is shut off. During a break-before-make switching of the top half of the feedback voltage divider, the bottom resistor will still be in-circuit, which will pull the feedback pin to ground, making it 0V and thus below the protection threshold, causing a shut-down.

Does that sound sensible? Should I take advantage of that?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22459
  • Country: gb
  • 0999
Re: Buck converter switchable output voltage
« Reply #2 on: February 09, 2023, 07:12:16 pm »
It should work. You need to provide more information.

Input and output voltage range? Current?
 

Online dobsonr741

  • Frequent Contributor
  • **
  • Posts: 978
  • Country: us
Re: Buck converter switchable output voltage
« Reply #3 on: February 09, 2023, 07:46:52 pm »
Assuming 3 output voltages supported, you can have a fix divider for the lowest voltage and parallel the GND connected resistor with one of the two resistors for the higher voltages. Simple BJT or FET can be used to switch the resistor to GND. You’ll have a transient regardless, hopefully better than breaking the feedback loop completely.

If the transient is a concern you need to power down. Then the remaining concern is to discharge to output capacitor. In any case, you’d want a regulator that has specific on/off transient response specified on the data sheet.
 
The following users thanked this post: Someone

Online HwAoRrDkTopic starter

  • Super Contributor
  • ***
  • Posts: 1931
  • Country: gb
Re: Buck converter switchable output voltage
« Reply #4 on: February 09, 2023, 09:13:12 pm »
Input and output voltage range? Current?

Input voltage will be 12V. I'm aiming for 3, maybe 4, output voltages - 5V, 7.5V, 9V, maybe 3.3V. Maximum output load should be no more than 3A.

If the transient is a concern you need to power down. Then the remaining concern is to discharge to output capacitor. In any case, you’d want a regulator that has specific on/off transient response specified on the data sheet.

Oh, yes, the output caps. Hmm, I hadn't thought about that. Would be a problem especially if the output voltage is switched while there is no load connected. I guess I could somehow have a discharge MOSFET switching the output to ground through a low-value current-limiting resistor during the 'off' period while switching voltages. Or maybe just have a load resistor permanently in-circuit on the output - but it would have to be of low enough value to discharge quickly, but not too low to waste too much power.
 

Online dobsonr741

  • Frequent Contributor
  • **
  • Posts: 978
  • Country: us
Re: Buck converter switchable output voltage
« Reply #5 on: February 09, 2023, 10:15:16 pm »
The output concerns would go away if you have an LDO post-regulator. Analog has a very nice ref design - I would have built one if the parts are not unobtainium at the moment: https://www.analog.com/en/technical-articles/high-performance-portable-dc-bench-power-supply.html
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 5817
  • Country: dk
Re: Buck converter switchable output voltage
« Reply #6 on: February 09, 2023, 10:34:49 pm »
The output concerns would go away if you have an LDO post-regulator. Analog has a very nice ref design - I would have built one if the parts are not unobtainium at the moment: https://www.analog.com/en/technical-articles/high-performance-portable-dc-bench-power-supply.html

how would an LDO fix the output when switching to a lower voltage? and LDO can't sink current, a sync buck can though most controllers won't
 

Online dobsonr741

  • Frequent Contributor
  • **
  • Posts: 978
  • Country: us
Re: Buck converter switchable output voltage
« Reply #7 on: February 09, 2023, 11:11:42 pm »
The LDO stage has a very low output buffer cap - 1uF. The 10K load resistor discharges it in 10ms. The LDO obviously handles positive transitions. The ref design meant to be adjusted by a pot - it’s a bench supply. Other benefit is the low ripple, while efficient and no humongous heat sinks.
« Last Edit: February 09, 2023, 11:56:45 pm by dobsonr741 »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Buck converter switchable output voltage
« Reply #8 on: February 09, 2023, 11:16:58 pm »
Switched from what, a switch switch? Analog switch(es)?

If digital, just use a DAC -- bias the FB node with a resistor from a DAC, or any other current.  Notice this does not appreciably change the gain from output to FB, so the loop stability and everything is unchanged.  It's just offset by a fixed voltage depending on the resistor values and DAC setting, so settles to a different setpoint.

Note if using a PWMDAC, use two series resistors with the filter cap inbetween.  Or more RCs or an active filter or whatever but anyway with the resistor to FB because it's the current you're after, ultimately.

For switching in general, it's just changing between setpoints.  Things to watch out for include loop gain / compensation (depends on reg type, some have internal R+C compensation back to the FB pin so the impedance matters), transient / settling (if there's any RCs in the feedback network), CM noise or other interference (if the switch has long leads or external connection, since FB is a sensitive control node), uhh chatter/bounce, etc.  Bounce of course just manifests as multiple switch closures in rapid fire, so isn't any different from one edge, but I suppose if you had something rate sensitive that shouldn't be switched too often, that could become a concern.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Online HwAoRrDkTopic starter

  • Super Contributor
  • ***
  • Posts: 1931
  • Country: gb
Re: Buck converter switchable output voltage
« Reply #9 on: February 10, 2023, 06:05:47 pm »
Switched from what, a switch switch? Analog switch(es)?

My initial idea was to use a dual-/single-throw multi-pole (e.g. 4P) rotary switch, or if the concept requires electronic control, something like a 4051/4052 analogue mux.

Basically, what I want is something where the user can select an output voltage (to power an external load, connected via barrel jack or something similar) and for that selected voltage to persist across power cycles. Ideally I'd also want an 'off' setting as well, and maybe a pass-through 12V setting too. For the latter I was thinking perhaps one switch selection would have some circuitry that disables the buck regulator and turns on a P-MOSFET that sends the 12V straight through.

The idea of a physical switch stays in my mind because once you get into electronic/digital control, the need for persistence of setting means you need some way to retain the choice, which probably means MCUs, EEPROMs, etc, etc. and this is something I want to keep as simple as possible.

Bounce of course just manifests as multiple switch closures in rapid fire, so isn't any different from one edge, but I suppose if you had something rate sensitive that shouldn't be switched too often, that could become a concern.

Ah, yes, I had forgotten about switch bounce too. I am beginning to think just straight-up physically switching the feedback network really isn't going to work well. Or maybe one of those things that "works", but does not produce pleasant conditions for the connected load nor the buck converter itself.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->