Page 1 of 1

nasty problem with rs232

Posted: Thu Mar 13, 2008 5:24 pm
by Andi
I have a special problem:

in my first programm, i try the following:

i try to send one characters (a) via rs232 (i use the rs232 marco)
now i try to receive this characters, and if it has been received correctly, i want to flash a led

this programm works fine

now to my 2nd programm:

when i try to send 'a' and 'b' and also to do the same on my receiver-pic ( flash a led when both characters have been received correctly)
it doesnt work

how can i manage it to get this programm working?
can you maybe give some examples plz?
What does the nTimeout(BYTE) exactly do?

i added both c-codes as attachement
1st:receiving-programm
2nd: sending-programm

Re: nasty problem with rs232

Posted: Fri Mar 14, 2008 12:02 pm
by Steve
Your receiving program is not checking for the first "a" character.