NAH certainely not Proton (PDS) they use DEVICE = 16F876.
I think this line have been taken somewhere on the forum. No real use in PBP unless you use it on ASM level.
If you use MPASM it already do that. Start a blank project and compile it, open the .LST file and you'll discover...
Ok then what to do with it? Use MPASM AND paste the following line at the top of your code and try to compile for another pic than 16F877
Code:
asm
IFNDEF __16F877
ERROR "OPEN YOUR EYES.. YOU MUST SELECT 16F877 IN THE DROP MENU..."
ENDIF
ENDASM

Still useful for conditional code compile.. ex if the PIC=16F877 do this, if it 18F452 do that etc etc etc.
You can define everything you want the way you want (almost)
DEFINE TGIF MISTER_E
DEFINE DOODAH_DOODAH 2
and use it later in asm level.
Last edited by mister_e; - 14th April 2008 at 09:59.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks