Since this is in the brushless thread, my guess is you want to build a brushless ESC? If you want to get deep down into this, make sure you have some quality reading time. This is by far the best DIY BLDC thread out there:
http://www.rcgroups.com/forums/showthread.php?t=200567.