Post the complete code for the 16F628 and when I've a free moment I'll look into it.