Theory & Matlab simulation of Totempole based Power factor correction in an On board charger of an Electric vehicle