Hi JDM160,
Couple of things.
1. Your DEFINE is 4 MHz but you set your PIC to 2 MHz. You are telling Complier that you are going to use 4Mhz operation, but the PIC will be running at 2 Mhz.
2. Separately from Item 1 above, check your OSCCON.0 (bit0).
OSCCON.0=1, Internal oscillator is used for system clock.
OSCCON.0=0, Clock source defined by FOSC<2:0> of the CONFIG register.
--------------------------
Bookmarks