The Define OSC 8 does not change the oscillator speed. I only tell the compiler the speed so that internal delays are calculated correctly. To change the internal oscillator speed the osccon register should be modified in you code. The define OSC x should then be set to match your selection as defined in the osccon register.




Bookmarks