I agree with Olin. I need help understanding difference between MPLAB and the c compiler (in this case c18) and you have helped. I have had good success using the IDE for assembler with all my own code but this is my first project with c and its modifying the Microchip stack. . I could start with a simpler project perhaps but I am certain if I just get over a few hurdles I should be ok. I find these processor directives difficult because I cant tell what the processor thinks their values are. I managed to work out how to pass a structure by reference because the debugger gives me feedback. Is there a directive that I can use to echo the value of the various defines or better yet is there documentation that describes these directive. What confuses me even more is that some people put these in a section of their code called Macros. >From what Olin has said these must be c18 directives so I will go thru all the c18 help files and c what I can find. Cheers Justin Step back and understand the distinction between MPLAB, your C compiler, and > its preprocessor. Until then things won't make any sense and you will > continue to ask questions that don't make sense. > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. Gold level PIC consultants since 2000. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist