If I remember correctly the 16F877A only has one hardware serial port (one each TX-RX). There are some others with two.