The code as you wrote it will respond only to characters "A" to "F" and only if you have caps lock!
1, 2, 3 etc are coded as binary in your program, not ASCII. You have to use even for them the " ", e.g. "1", "2" etc.
Also as I have told you on the previous post, at least the first delay should go away.
A very good example can be found here:
http://www.picbasic.co.uk/forum/show...hlight=parsing
and a bit confusing here:
http://www.picbasic.co.uk/forum/show...ghlight=Serial
Ioannis




Bookmarks