Abstract: A controller configured for use in a power converter. The controller includes a control circuit coupled to receive an input line voltage sense signal representative of an input voltage of the power converter. The control circuit is configured to generate a control signal in response to a request signal representative of an output of the power converter. The control signal represents a delay time to turn on a power switch after a turn on of a clamp switch in response to the input line voltage sense signal. The control circuit can further generate a clamp drive signal to control a clamp driver and a drive circuit configured to generate a drive signal to control the power switch to transfer energy from an input of the power converter to the output of the power converter.