A method which regulates a power supply is disclosed. In one aspect of the
invention, the method includes sensing an excess control current through
a control terminal with a control current sensor circuit. A transistor is
switched with a control circuit in response to the control current sensor
circuit and an oscillator that is coupled to a trim circuit, which is
trimmed during manufacture of a circuit, to regulate the output of a
power supply. A current through the transistor is limited with a current
limit circuit that is coupled to the trim circuit, which is trimmed
during manufacture of the circuit. A maximum deliverable power value of
the power supply is determined by said trimming of the trim circuit
during manufacture of the circuit.