You have DEFINCE OSC 8 in your code with HS option in fuse.
This way, chip knows the clk source.Code:OSCCON.0 = 0 ' Clock source defined by FOSC<2:0> of the Configuration Word register
Default OSC value is for Internal 4Mhz clock.
Hope this will solve your issue.
Bookmarks