A power supply trim control signal is produced by integrating differences
between monitored and target values of the output voltage of a power
supply. Register storage requirements are reduced by producing the target
value from a nominal voltage value and one of a plurality of margin
offsets selected in accordance with control data. The control data also
selects between open and closed loop trim control. Stability is enhanced
by changing the target value slowly in response to any change in the
control data.