Hi,
You set the PIC oscillator configuration when you program the chip. If you're using anything other than 4Mhz, make sure you 'DEFINE OSC' to whatever frequency you are using otherwise your delay routines (and some other fuctions) will not work as expected.
I can't give you anything more specific because I don't know what software you are you using to program your PIC.
Bookmarks