hi all again,
i try to see what the problem is.
I think there might be a problem on storing data to EEPROM of the pic16f628a...
and there also be a problem somewhere on the code...
when i try to pass the card from the reader it light the led of the reader but nothing happens to my LCD.Code:Main: high portb.3 low portb.1 ' activate the reader SERIN2 portb.1, 84, [WAIT($0A)] ' STR buf\12] ' wait for hdr + ID high portb.1 ' deactivate reader pause 500 Check_List: FOR tagNum = 1 to 2 ' scan through known tags FOR idx = 0 TO 11 ' scan bytes in tag READ (((tagNum-1) * 12) + idx), char ' get tag data from table IF (char <> buf(idx)) THEN Bad_Char ' compare tag to table NEXT GOTO Tag_Found ' all bytes match!
then i pass second time the card from the reader the led on the porta.3 light up and i get on my lcd the Error tag.
I dont understand what is happening on the first time that i pass the card. It doesnt do anything.
Why when i pass it two times i have bad tag on the display.
On other thing is that i cannot make it work to show me the name on the display on the right cards.
If you have any solutions please help me.
regards




Bookmarks