On the microchop site is there an application note to control a 3-phase AC motor by a PIC18F4431:

http://www.microchip.com/stellent/id...pnote=en020394

It is good explained, and coul be a right starting point for your application.