It still doesn't take much to stump me I'm afraid........
Code:
MATCH = MATCH + 1 ' We have a match so increment match count
IF MATCH = 2 THEN DECODE ' Everything matched twice, we're good
GOTO Main ' Else do it all over
When the Timer was set up for a 65ms reset we had:
Code:
MATCH = 0 ' Clear match count
Then the SYNCH_BYTE & DATA etc arrived and everything was good giving:
Code:
MATCH = MATCH + 1 ' We have a match so increment match count
So to my mind that makes MATCH = 0 +1 ie 1.
But then we have:
Code:
IF MATCH = 2 THEN DECODE ' Everything matched twice, we're good
So either the data arrives twice within the 65ms time period to move onto DECODE or my understanding of MATCH = MATCH + 1 is wrong.
Help!
Dave
Bookmarks