Quote Originally Posted by The Master View Post
I know last time i was using a 4MHz one instead. Whats bad about using that code with a 20MHz?
The test code i wrote myself has "DEFINE OSC 20" at the top so that should have worked
Edit: The PIC didnt get noticably warmer at all
Check the datasheet, Oscillator section in particular...
Have to change the oscillator configuration from XT to HS when using a higher frequency crystal/resonator/etc.