pic16f877A timer not working
I'm not going to spend much time looking at higher level code with some compiler getting between me and the system.  However, you're not ever clearing the timer 1 interrupt condition.