I've been trying for a day and a half now to get my PIC to do something I finally have it running but it is running slow. If I put pause 1000 in the code it basically stops. When I do pause 1 it runs at about 4Hz but speeds up if I put my finger near the pic. Whatever changes I make to Internal oscillator speeds it stays at the same speed. It even runs if I set it for external oscillator. I don't understand. Here's the code I have.


@ Device PWRT_OFF
@ Device MCLR_OFF
@ Device INTRC_OSC
@ Device BOR = 0
@ Device Debug_Off

OSCCON = %01110000
OPTION_REG = %11111111
TRISB = %00101010



Any help would be appreciated.

Thanks,