Quote Originally Posted by mister_e
NOPE, DEFINE is a compiler directive and MUST be added at the top of the code. OSCCON is a PIC register that must be set like all the otheres. Let's Say TXSTA, RCSTA, SPBRG.

Do a simple Test, with your current OSCCON setting do a simple LED blink. use DEFINE OSC 4.. then use DEFINE OSC 8

what happen?

That is what I thought so.
Daniel, could you pls test it and post the result?


-----------------