Problem with Data Statement


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    40

    Default Problem with Data Statement

    I am trying to initalise the eeprom data to a fixed value eg. Data @0,0(200) When I try to compile Pic Basic pro 2.5 crashes. If I change the statement to Data @0,0(127) everything is ok. Looks like it crashes if eprom address exceeds 127. Pic used is a 16f886. It has 256 bytes of eeprom. Can anyone help?

    Graham

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Ooooo, nasty crash indeed!
    That's good for a report to [email protected]

    It seems to have a problem if the number of bytes used is all in the same DATA statement.

    Even with it like this ... it still crashes
    Code:
    DATA @0,0(100),0(100)
    But breaking them into 2 lines works fine
    Code:
    DATA @0,0(100)
    DATA    0(100)
    DT

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Also, a single line without the address modifier will fill the entire EEPROM area without error.
    Code:
    DATA 0(256)
    It must be the address causing the crash.
    <br>
    DT

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  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