> This must have been done a thousand times by PIC experts. Can anyone point > me to or send me any of their favorite macros? Call accross page boundary > macros etc. I have not had much luck Googling for PIC macros. As well as the site pointed to by Dr. Imre, check out the development environment that Olin Lathrop has at http://www.embedinc.com/pic/ and download the files there. The development environment has a large macro file, which includes useful items like a FIFO macro set, and multiple word macros for doing 16, 24 and 32 bit arithmetic, as well as some macros that make thinking about the way the bits work a bit easier. There are conditional assembly macros that make dealing with bank and page handling a lot easier. If you always include the "dbankif" macro then the code only gets inserted if the bank needs changing, so you do not end up with unnecessary code bloat. This development environment is designed to be used as linkable modules, and once you have modules for specific things, then it is easy to include them in a new project. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads