ty for reply still the problem it toggle the rely even i change the data in ext epprom or in pic eeprom it still doing error im sure there other way to compare variables .plz need more help how to compare variables i want to do this project for doorlock so i will have 24c02 in my keys ty aratti
Code:
SCAN:
FOR ADR = 0 TO 7
NEXT ADR
I2CREAD SDAT,SCLK,$A0,ADR,[KEY] 'same data as data eeprom
PAUSE 10
READ ADR,KEY1 ' same data as external eeprom 24c02
PAUSE 100
IF (KEY = KEY1) THEN , here is the problem it does hight rely even i put diffirent data in key and key1
HIGH RELY
PAUSE 1000
LOW RELY
ENDIF
Bookmarks