On Thu, 16 Feb 2006, i2c@btinternet.com wrote: >> No, declarations appear in the include file, not definitions. The >> definitions are in p18F4550.asm in the src/.../proc directory. >> >> (I am assuming we're talking about C18, and that the OP meant >> p18f4550.h, not p18f4550.f). > > Sorry, it was .h not .f, but you guessed correctly. I do know > that the definitions are found in the .asm file, but .asm is for > assembler programmers, in C with have to have it as well, so > unless it is hiding in some library, it is missing.. The asm files included with the C compiler are not for assembler programmers. C18 doesn't have a convenient syntax for aliasing the SFR names to absolute addresses, so this is done in assembly language. You will find p18f4550.o in p18f4550.lib, which is what your C program will link against when you build it. This is all transparent; you don't need to do anything. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist