hi C,
I was using a USB/UART converter which I recently bought from China, I could get data from the PIC 18F2431 to PC OK, but not from PC to PIC.
The data to the PIC input from the converter appeared corrupted in some way.
So I reverted back to my MAX232 for the UART comms, it works as before without any problems, see attached print out.
Attached is known working copy of the Test program for the 18F2431 comms, use it to test your prommer and PIC's.
Let me know your results.
Eric
NOTE:
I have used a different bin to ascii conversion subr in place of the '#' prefix, it makes the print out easier to read.
You can change the poscnt=0 in program listing, if you wish to test for different start up headings.
There is NO PWM drive output, its internally counting