hey colin, thank for gettin back to me. i have finally had a chance to have a good look at the program and the flow charts in the datasheet. From my understanding the SET_ADC_GO sets up the frequency measurements and to also set up samples from the DC BUS. What i have done is turn off th DC BUS measurement, when it is called in the AD_CONV_COMPLETE function i removed this section as well as it says in the datasheet it is used to detect just safe voltage operation n shutdown the motor when it is out of range. I could be wrong but that is just how i read it. The section CHECK_FAULT seems to just check safe current opertion as well and was easy to removie. And like i said my assemlber is not that great haha the program compiles fine if u use mplab 6.5, newer versions seems to compile differently i had troubles as well thanks for your time regards Brendan -- View this message in context: http://www.nabble.com/3-Phase-PWM-using-16f777-please-help-tp19118657p19268214.html Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist