Debbie wrote: > I guess in future it might be a better idea to keep the port configs > in-line with the main code, so they're easily visible. Even better would be to use something like my preprocessor. This has /INBIT and /OUTBIT commands for defining each of the port pins. The standard PORT module then initializes all the ports, including the passive pullups, according to the assembly time state left by /INBIT and /OUTBIT. For details see the PREPIC documentation file at http://www.embedinc.com/pic. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist