A low power digital controller for DC-DC converter applications with integrated PFM mode detector