John J. McDonough wrote: > With the exception of the weird analog > rule, it is pretty simple business to read the datasheet to figure > out what you need. The analog thing is sort of a gotcha since it > refers to a peripheral you don't intend to use. I suppose if > everyone memorized the datasheets it wouldn't be an issue, but we're > not all Wouter. Those who aren't Wouter should then consider my standard initialization module QQQ_PORT.ASPIC at http://www.embedinc.com/pic. It initializes any analog peripherals to off, then sets up the digital I/O lines according to the /INBIT and /OUTBIT preprocessor directives in the project include file. If you follow the discipline, it is very easy to move code between different chips of the same core, and not too hard to move between the 16F and 18F cores either. ***************************************************************** 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