5 Integrated PFC and Sensorless FOC Implementation On a PIC32MK Device