Thanks for replying!

The PIC is a 16F877