An Introduction to Digital control of switching power converters