XMOS S/W for Field-Oriented-Control of Motors