Four quadrant operation of chopper