Is there some trick for achieving an adjustable output regulator without needing this expensive component?
Summary:
Instead of Vout being divided and used to drive a feedback input pin Vfb,
an external comparator is used to compare the divided Vout voltage with a user generated analog signal. The comparator output then drives Vfb
While there may be some applications where this approach is inappropriate,
in practice the method usually works well when applied intelligently.
Basic principle - outline only:
'SMPS' is existing power supply control IC.
'FB' is feedback voltage input.
Originally: R1, R2 divide Vout so voltage at pin FB = Vref_internal when Vout is desired voltage.
IC1 (opamp or comparator) is added in the feedback path so that now Vout divided is compared with the supplied control voltage. When Vout rises above desired level Vfb is driven high, exceeding internal Vref. When Vout is below desired level Vfb is low.
Bonus: I've shown a capacitor, Ctrans, in parallel with R1. This is often not included in designs but is often useful or very useful. Functionality can be analysed formally, but can be thought of as adding a high-pass boost to the feedback signal or as coupling Vout transients to the feedback pin with decreasing loss as transient rate of change increases. This has the effect of causing the system to respond more rapidly to transient changes, such as load increase/decrease or noise on the supply rail from other sources (which can be considered to be load changes). Too large a value of Ctrans is an invitation to disaster but somewhere in the 10pF-1nF range will often be appropriate.
simulate this circuit – Schematic created using CircuitLab
__________________________________________
Detail:
When a variable pot is used the system compares the divided output (input on pin "Vfb") with a reference voltage Vref, often supplied from inside the control IC, and makes suitable decisions (usually on/off switching transitions).
The same conceptual result can be achieved by comparing the divided output voltage with a user variable voltage derived by other means (usually with an external comparator or opamp). The result of the comparison is then used to "inform" the control IC in place of the usual divided Vout input (typically called something like Vfb = Vfeedback). While the expectation is that the system will be maintained with Vfb adjusted by the controller to remain at Vref_internal, feeding an on/off signal from an external comparator usually achieves much the same result.<2> Most smps IC's deal with the fb pin being above or below Vref_internal either on a cycle by cycle basis or terminate the current cycle if Vfb rises above Vref during a cycle.
One way to provide the external user adjustable analog signal is to generate a PWM signal and filter it to provide an analog voltage that varies in proportion to the PWM mark-space ratio and the PWM maximum and minimum voltage levels.
ie Vanalog ~~= V_PWM_min + V_PWM_max-VPWM_min) x dc
where dc is the fractional on duty cycle. Usually Vmin is ground and Vmax is the maximum output level of a processor pin or gate - typically ~= Vdd.
Now, the desired voltage can be set using PWM at the cost of one processor or other pin and some analog filtering. If available an analog DAC output could be used. If response time is not crucial then a single pole RC filter (Rout-series followed by a capacitor to ground)will often provide enough filtering to prevent the output following the PWM related analog ripple. If faster response is wanted then a simple multipole analog filter can be used. A 3 pole low pass filter can be achieved with a single low co opamp section (1/4 quad package) and typically 3 resistors and 3 capacitors. This is still significantly lower cost than a digital pot in most cases.
__________________________________
Digipot pricing:
A check on Digikey showed that their lowest cost digipot the MCP41\01x was $US0.39 in 3000+ quantity - right on the price point suggested. I'd expect the cost in volume production in China to be significantly lower than that. I've never priced digipots in China but I'd expect something in the $US0.10-0.15 range.
__________________________________
Low pass filter design
"Bearably good" low pass filters can be achieved using emitter followers as unity gain stages. Thus, a 3 pole low pass can be achieved with a "jellybean" transistor<1>. The main disadvantage is the Vbe offset voltage which makes Vout_DC less determinate. With the stated 20% requisite precision the Vbe drop can probably be adequately allowed for by suitable design assumptions. If an ADC input is available to measure Vref_DC OR the final output voltage then the offset is not a problem.
Many design aids for low pass (and other) filters are available.
These are just a small sample.
Possibly the most usefil topology - many implementations achieve two low pass poles per gain or buffer stage but it is possible to achieve 3 poles on the first stage using a Sallen & Key design with unity gain buffer.
This site 3rd order Sallen-Key Low-pass Filter Design Tool
provides a calculator to implement this circuit with a useful range of output analyses provided.
EDN doing similar with theory added.
Design second- and third-order Sallen-Key filters with one op amp
Active Filter Design Techniques 66 pages
Useful?:
http://www.electronics-tutorials.ws/filter/filter_8.html
https://en.wikipedia.org/wiki/Low-pass_filter
Here is the usual large range of potential webpages via image serach using key: 3rd order active low pass filter
TI 2002 SLOA0409B 24 pages. Only uses 2 poles per opamp section.
Active Low-Pass Filter Design
_______________________
Response to an objection to this proposal:
This is added as part of the answer as it serves to 'explain' various aspects of the method.
I've added notes <1> etc to my answerabove to allow ease of reference.
IMO, the suggested "solution" makes no sense.
The solution can be (and almost invariably will be) far less complex than you suggest.
It is one standard way of achieving the aim and it can often be made to work entirely well in practice.
All potential 'solutions' to any problem need to be evaluated for 'goodness' using whatever parameters are relevant in each case.
A continuously-running PWM
Yes, or other analog source. Often easily enough provided as a processor funtion or in software
OPAmp to filter the PWM to DC
Yes, or as above a jellybean bipolar emitter follower - see <1> above.
Cost of bipolar ~= 1 cent US in Chinese modest production, + 3R +3C .
Then I guessyou will need another OPAmp to provide the level shift of new biased signal into feedback pin of PMIC ...
No. Not usually. See <2>
Opamp rail-rail signal can usually be used.
This can be limited or clamped or shaped but often used as is.
... plus a dozen of passive components, likely two power rails (+V, -V).
No. the components mentioned are often enough as is. Power rails are liable to be just Vdd and ground and already used to supply an opamp which a 1/4 or 1/2 of is available in. If a bipolar transistor is used no explicit power supply is needed other than what is already in use.
Plus all corresponding PCB space.
PCB real estate is always required for hardware. Here a 1/4 pkg op amp may be available. 3 Rs and 3 Cs at smallest acceptable pkg size are liable to suffice. An external digipot would probably require similar PCB area (say 6 lead pkg) or maybe slightly less depending on whether and existing 1/4 pkg opamp is free and whether the digipot neded any support components. It also may need routing of 2 or 3 signal leads depending on protocol and power routing. Overall it's reasonable to assume they are about the same area wise without specific information.
you have any BOM estimation in mind,
Comparing apples with apples and using digikey 3000 pricing, an LM324 costs $0.09 in an SO pkg or $0.099 in a TSSOP or QFN16 . So if you have to but the whole quad, 10 cents for the pkg of 4 or 2.5c per opamp, or free if it's spare. Single opamps can be had in pkgs small enough to risk being a breathing hazard [ :-) ] but cost is no better or worse.
not speaking that extra OPA will change transfer function of PMIC feedback loop and potentially cause instability or alter dynamic properties of the voltage regulator?
Potentially, yes. As above - "All potential 'solutions' to any problem need to be evaluated for 'goodness' using whatever parameters are relevant in each case.". Changing circuitry in a feedback loop matters. In SOME cases the above solution may cause more problems than it solves, However, the good news is that in many cases it works well. An error amplifier / comparator exists inside the smps IC - we are effectively extending it externally. If the internal amplifier acted on the difference between reference and feedback signal then replacing the signal with a high/low signal may well affect operation. But the very large majority of smps ICs use the feedback input to trip a go/no-go internal operation - usually latched on a cycle by cycle basis. "It usually works well when applied intelligently" is a good starting point.