Not sure if PBP/HSERIN/HSEROUT calculate baud rate or use a lookup table, but I'm sure that 31250 isn't a 'standard' baud rate. You may have to set the baud rate (SPBRG) manually, by hand, by doing a few calculations, looking it up in the 16F877 datasheet, etc.
What's up with the POKEs and PEEKs when you can just access the registers directly like:POKE TRISA, %11011111
RCSTA = $90
Bookmarks