The input parameters of the application are as follows:
Vin: 20-40V (it usually won't vary more than +/- a volt within each individual application, but it has to work across this range)
Vout: 5V
Vripple: +/-5%
Iout: 30mA - 400mA
The only constraints I have are cost, keeping audible noise to a minimum and keeping temperature rise minimized. Efficiency is not critical as this is essentially this is the logical progression from just using a linear regulator, which will generate a lot of heat.
My original efforts went into using the MC34063 (MC33063), but I had issues with audible noise at the low end of the output current since the switch was actually only turning on at about 14kHz. Ultimately, I'd like a faster MC34063 with feed-forward control based on Vin to keep a constant frequency over the input range.