Fredrick
I include this
@ DEVICE pic16F628, HS_OSC in my program. Now it run smoothly.