peterdeco1,
if you have this error message it indeed mean that your particular PIC doesn't have the OSCCAL register.
12F683 have an OSCCON register indeed, and it's directly accessible through your code. Some also have OSCTUNE register, this one is to tweak the internal oscillator in case you need to do so. But still, this one is also directly accessible in code and no need for DEFINEs.
DEFINE can be everything, if it's not built-in in the compiler instruction set or the spelling (Case) is wrong, it will just do nothing, hence why we already discussed about their spelling.
DEFINE MarryHadAlittleBoy_HisNameIsJerry 1
will not return any error, and obviously it will not do anything unless you use it in ASM. This is handy when you want to customized your INCLUDE/Library or feature of your program. Check my Keypad routine for example.
Last edited by mister_e; - 10th February 2009 at 20:02.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks