A method for designing a digital compensator for a switching mode power
supply is provided such that the digital compensator has complex
conjugated zero pair or a right hand pole to eliminate the complex
conjugated pole pair or right hand zero in the transfer function of the
control-to-output voltage of the switching mode power supply.