> Thank you for your quick response! The code you wrote can be compiled under > MPLAB IDE, right? (I will try it tonight) Yes, I use the official Microchip tools exclusively. > Let say I cut and paste your code into my project, will the code section > that I don't use get compiled into the program as well? Depends on what it is. Macro definitions don't create any code. Note that many of my macros are nested, so you may have to grab a lot of them. Notice also the various assembly symbols assumed, and that some of the code assumes the linker is used. I always include STD_DEF.INS.PAS and STD.INS.PAS in my projects so I don't worry about what parts might or might not be needed by what other parts. You can see the HAL project as an example of how I use these files and some of the macros. > Do you have the code for the 16-Family only? No, see STD_DEF.INS.ASPIC. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu