Quote Originally Posted by andybarrett1 View Post
Hi Steve

Have puzzled over this for a whilst…..I have to say I haven't a clue… What have I missed or nearly found !!!

BR
Andy

Code:
' -----[ EEPROM Data ]-----------------------------------------------------

Tag1	DATA	"1400434B9C"
Tag2	DATA	"1500649EC3"
Tag3	DATA	"150063C82C"
Tag4	DATA	"X50064A4CA"


' -----[ Program Code ]----------------------------------------------------

Main:
 
    SERIN2 portb.1,84, [WAIT($02), STR buf\10]	' Read RFID
When you read the code buf(0) will be "C" for Tag1
When you read the Data the first char will be "1"

So

READ (((tagNum-1) * 10) + idx), char
IF (char = buf(idx)) THEN loc1

When idx is 0 what are the values of char and buf(0)?