Digital Implementation Of Current-Mode Control For Power Factor Correction