What do you have your OSCCON set at?
The main output is an 8MHZ clock which can be varied from 125kHz to 4MHz via the postscaler.
Have you defined the clock speed in your program to match that set by OSCCON?
Example: if you have the INTOSC set at 8MHZ then you should include the define
DEFINE OSC 8
at the beginning of your program.
To help more we would need to see your actual code to help debug the problem.
Cheers
Barry
VK2XBP




Bookmarks