I do not know if your Configs are correct but you have additional problems ...

On the 877A

High 0

sets PortB Pin 0 high, not PortC, Pin 0. See manual section 4.11 and then implement Melanie's suggested fix above for this.

Good Luck