how to compare data


Results 1 to 20 of 20

Threaded View

  1. #9
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    IT DOES COMPARE 33 AND 33 BUT NOT OTHER 7 BYTE WHY ?
    Simply because you have still left out of the FOR/NEXT loop the compare instruction!

    Code:
    SCAN:
    FOR ADR = 0 TO 7
    
    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
    NEXT ADR
    See my correction to your last code posted or just copy and paste the code in post #5 (the one with my correction in read) and try it.

    Al.
    Last edited by aratti; - 29th October 2009 at 08:05.
    All progress began with an idea

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