I have a problem with read from internal eprom


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by don_mathew
    led var byte [15]
    That's your problem, you defined a 15 byte array and are trying to address the 16th element.

    led var byte [15] ' defines a 15 byte array addressed 0 to 14

    Change the 15 to a 16 and all should work.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    If you define a 16 byte variable, is it the same thing as defining a word variable?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    NOPE
    16 BITS will be a WORD.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 08:14
  2. write -read problem?
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th August 2009, 14:06
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 12:20
  4. Problem to read a PCF 8574
    By Darklakebridge7 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th February 2007, 22:56
  5. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 07:34

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