> Is it not important to follow the datasheet sequence for CWG setup? Generally modules or functions don't work if the d/s example isn't followed. I'm sure the C compiler knows what it's doing. I've tried to figure out C-produced hex files and rarely do they resemble how it would have been written in assembly > Also, should my NCO code come before or after the CWG code I think either way should do. Depends. If you did CWG first then the CWGA/B pins can be set to some "harmless" state in CWGCON until NCO is running. As CWG does control the pins it might be the one to set up first Joe ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7688 / Virus Database: 4627/12656 - Release Date: 07/21/16 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .