Take help using different free ebooks related to PIC from internet. i am also using PIC16F877 in my final year project.it's not so hard. ask me if any problem.
I strongly recommend you search the Microchip website for appnotes that are close in scope to your project. Many of them use the PIC16F877. Even if they don't, the instructions are the same. You will learn a lot from those appnotes about programming PICs.