DATA and EEPROM Commands


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Cape Town SA
    Posts
    23

    Default DATA and EEPROM Commands

    Hi
    On reading the manual I cannot for the life of me see the difference between DATA and EEPROM Commands, other than DATA seems to need an "@" Is there a difference?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I think some commands are there to maintain a degree of backward compatability with Basic Stamp, but not having arrived here from that direction I'm sure others with more extensive Stamp experience may confirm or deny my accusation.

  3. #3
    Join Date
    Nov 2006
    Posts
    33


    Did you find this post helpful? Yes | No

    Post EEPROM command

    Hi All

    ***a var word
    ***c var byte
    ***EEPROM 0,[$0a07,$0b09,$0c0a]
    ***Read 0, a.highbyte
    ***Read 1, a.lowbyte
    ***c= a.highbyte + a.highbyte

    Above code wil return
    a.highbyte=&0a
    a.lowbyte=$07
    c=17 (decimal)

    Am I right????

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    See answer on your other thread...

    But Also NO!

    If a.highbyte contains $0A (eg 10 Decimal) then...

    c=a.HIGHbyte+a.HIGHbyte will contain $14 (eg 20 Decimal)

    that because you're adding 10 + 10 = 20

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  3. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42
  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 : 1

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