nasty problem with rs232

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Andi
Posts: 19
Joined: Thu Nov 29, 2007 12:08 pm
Contact:

nasty problem with rs232

Post 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
Attachments
PICtoPIC mit 16F873.c
(6.96 KiB) Downloaded 304 times
Test.c
(6.91 KiB) Downloaded 263 times

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: nasty problem with rs232

Post by Steve »

Your receiving program is not checking for the first "a" character.

Post Reply