array in constant?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    Those are PbP limits !!! ... for LOOKUP ...

    you can also use an external pre-programmed EEPROM or use some READCODE ( see manual for the limits )... if your code space allows it ....

    note ... DATAs for READCODE can be loaded as an "include" file ... generated by your computer ! ( with "word", or much better "Excel" ...)

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Aug 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    thanks Acetronics, i can deal with the more then 255 problem.

    now another problem is that

    how can i write

    lookup a,[1,2,3,4,5,6,...........,255],b

    in multiple line? and adding comment in the end of each line?

    eg:
    lookup a,[1,2,3,4,5,6,7,8,9,10, ; line 1
    11,12,13,14,15, ; line 2
    .................... ],b

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Code:
    lookup a,[1,2,3,4,5,6,_       'never tried comments on each line
              7,8,9,10,....,255],b ' but the normal way should work
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    just add _ behind each line. got it... thanks

  5. #5
    Join Date
    Aug 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    thanks guys, not that the compiling part is finish, it's time to put it in the 16f877a and test it.
    the coding alone is around 6kb already. haha...

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 05:46
  3. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 08:57
  4. RS232 receive an array (packet)
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2008, 06:02
  5. Reading Array values into variables
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 21st March 2005, 11:30

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