Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Like I said... XC8 and MikroC allow automatic processor selection... I can't assume you are using a specific compiler / IDE.. MPIDE will pass the processor type to the compiler.. If you just include XC.H then it will auto detect. However! You can just specify the header by name.. ie.. #include <p24Hxxxx.h> and it will be found.. This is to simplify the coding process to the masses..