hello
go to microchipC.com,Download the Zip file containing Shanes bootloader.It containes compiled hex files for 877 with different clock frequencies . Use your appropriate frequency hex file or use an appropriate crystal in your project.Burn the Hex file into a 877.You are ready to go!!!.Wire a MAx 232 interface for serial port.