Thanks for correcting my code but at 9600 baud (BRGH=31 for 20MHz)
When I send decimal 1 I receive 103
2 = 51
3 = 102
4 = 25
5 = 101
6 = 50 etc
I am using the code just as your wrote it?
What have I set up wrong, I checked the baud rates on the terminal program.
Regards
Chris
Bookmarks