A single input pin (48) provides multi-functional features for programming
a power supply (10). By connecting the appropriate interface circuit (92,
100, or 112) to the single input pin (48), the power supply (10) is
programmed for specific behaviors during power up and toggling of an
on/off switch (96, 108). In one mode of operation a light emitting diode
(106) in the interface circuit (100) is optically coupled to a
microprocessor for signaling the closure of the on/off switch (108),
allowing the microprocessor to control the power supply (10) through an
opto-coupler (102). In another mode of operation, the single on/off
switch (96) controls the power supply (10). In yet another mode of
operation, Zener diode (118) in the interface circuit (112) controls the
power supply (10) during brown-out and black-out conditions.