A power supply controller having final test and trim circuitry. In one embodiment,
a power supply controller for switched mode power supply includes a selector circuit,
a trim circuit, a shutdown circuit and a disable circuit. The trim circuit includes
a programmable circuit connection that can be selected by the selector circuit
by toggling a voltage on an external terminal such as for example a power supply
terminal, a control terminal or a function terminal of the power supply controller.
The programmable circuit connection in the trim circuit can be programmed by applying
a programming voltage to the external terminal. The shutdown circuit shuts down
the power supply controller if the temperature rises above an over temperature
threshold voltage. The shutdown circuit includes adjustment circuitry that can
be used to test the shutdown circuit. The adjustment circuitry can adjust and reduce
the over temperature threshold of the power supply controller. Thus, the power
supply controller can be tested without having to actually heat the part. The disable
circuit includes a programmable circuit connection, which when programmed prevents
further trimming of power supply controller and prevents adjustment of the shutdown
circuit over temperature threshold.