Hi,
Actually, you can change the way MCSP formats the code by going to View -> Editor Options -> Highlighter but that can be a bit misleading because it's actually only how MCSP displays the code on the screen IN MSCP, if you open the code in Notepad or whatever it'll be exactly as you typed it - something to watch out for in other words.
If you look at section 2.3.3 in the PBP3 manual you'll findThis has been covered multiple times in the forum but again, the word define is a PBP command/keyword and PBP is not case sensitive so it can be either case DEFine, defINe, DEFINE, define, doesn't matter. What comes AFTER DeFiNe is passed directly the assembler and the assembler (MPASM) IS case sensitive. PBP's library routines are written in assembly and uses the OSC setting/value/variable/definition/whatever to calculate software delays, baudrates etc etc etc. So when you need to tell the compiler that you're using another oscillator frequency you need to define OSC not osc or Osc, they are three different things and the library routines only know about OSC - not osc or Osc.For the user familiar with Assembly Language, the major clue to understanding is that DEFINEs in PBP are converted literally to Assembly Language #DEFINE directives.
For the practical PBP user, there are a couple of fundamental points to consider:
1) DEFINEs are CASE SENSITIVE!
2) Specific DEFINEs are generally associated with PBP commands. The command pages will describe how the relevant DEFINEs affect the operation of each command.
/Henrik.
Bookmarks