Quote Originally Posted by crhomberg View Post
Thanks for correcting my code but at 9600 baud (BRGH=31 for 20MHz)
If you're using SEROUT2 to send characters back to the PC, you need to go back and read the PBP manual on how to use it. And, you have to set up a few more registers to get the UART receive port working correctly. Read the UART section in the datasheet for a bit and come back with your results...

And which version of PBP are you using?