A method for controlling a power supply, the method comprising: forming a front-end
to the power supply, the front-end comprising a plurality of digital-to-analog
circuits under control of a controller; and programming the controller to control
the digital-to-analog circuits to send a user-defined output reference voltage
and a user-defined over voltage protection reference voltage to the power supply.