A mixed-signal pulse width modulator for portable SMPS applications