>What about the other question? I tried yesterday, looks like >#DEFINE is limited to the file where it is given. How to define >some pin names (or other substitutes) in main file, which will >be used in some subroutines in separate section? I would not >like to #define those things in every file separately. >How do people do this? Download Olins development environment, and see how he has defined everything. http://www.embedinc.com/pic/ You also get a set of pre-defined modules, and a number of modules already set up for doing fairly standard things, that need minimal (if any) tweaks to be useful. And there is a bonus, you get an include file that has all sorts of macros that make the bank and page selections easier, along with a heap of other useful functions pre-defined as macros. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist