Maarten Hofman wrote: > Nice idea! Don't forget to add one for CMCON0 too! I just checked, and my standard init code does not address CMCON0. I don't have a manual for a PIC with comparator where I am right now, but I don't remember CMCON0. What PIC has that, and what does it do? By the way, all the initialization stuff I've been talking about is in my standard PORT module at http://www.embedinc.com/pic. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist