how to compare data


Results 1 to 20 of 20

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    66

    Default how to compare data

    hello everyones i need help plz . im readin i2c eeprom and i wrote the same data in my code so im trying to write a code to compare the data of the ext eeeprom and the code data ex:

    Code:
    Include "modedefs.bas"
    define osc 4
    
    
    PORTA = 1
    PORTB = 0
    KEY VAR BYTE
    KEY1 VAR BYTE
    ADR VAR BYTE
    
    SCAN:
    FOR ADR = 0 TO 7
    I2CREAD SDAT,SCLK,$A0,ADR,[KEY]
    PAUSE 10
    READ ADR,KEY1
    
    PAUSE 10
    
    
    IF (KEY = KEY1) THEN
     HIGH RELY 
    PAUSE 1000
    LOW RELY
    
     ENDIF
    RETURN
    
    END 
    DATA @0,14,21,47,56,02,11,22,33
    SO ID DID THIS CODE BUT IT WONT COMPARE ME THE SAME DATA FROM THE EXT EEPROM WITH THIS DATA IN THE CODE AND I WANT IT NOT TO TOGGLE LED1 WHEN ITS NOT THE SAME DATA FROM EXTERNAL EPPROM
    Last edited by Mus.me; - 27th October 2009 at 01:50.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts