Hi Tazntex,
I really do not get what you are trying to do here with this:
Code:
IF mydata1=%01011001 THEN PAUSE 10
IF mydata1=%01011001 THEN
Here is my thinking, you have received the data, done deal, stored it in a variable named mydata, and now you expect it to somehow bounce? Bounce delays are for mechanical switches. I do not see it hurts nor do I see any benefit to including it. It just slows down and bloats your code. Since this is another new thread, refresh us on what this code does not do and what it does do. As written it asks a true / false question, does mydata = 01011001, if yes it pauses 10 and asks again, if true then it procedes to turn 1 high if false it turns 1 low. If mydata is not 01011001 it will always execute the else. If you have a pin to spare why not send a debug or serout with the contents of mydata to a terminal or serial lcd and be sure of the contents?