Need help with lookup table or direct calculation


Closed Thread
Results 1 to 25 of 25

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Uhhh, "Much Cleaner"??

    You're kidding right??

    I have to wonder if you've actually read my previous posts.
    DT

  2. #2
    Join Date
    Oct 2006
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Hey Darrel,

    Well I have a huge table with all my values. Great!....but i'm noticing that for some values I store in my table, the program deosn't work. Its really weird....do you think that there might be some memory addressing problems/overwriting program code with the Datatable approach?

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


    Did you find this post helpful? Yes | No

    Default

    Well, I wouldn't think so, but can't really say for sure.

    Can you post it, or send it to darrel at pbpgroup.com. I'm sure I can get to the bottom of it.
    <br>
    DT

  4. #4
    Join Date
    Oct 2006
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    I have sent you 2 versions of the code. The e-mail explains the prob.

    Nikhil

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


    Did you find this post helpful? Yes | No

    Wink other solution ...

    Big Tables ???

    No pwôblem, missiou !!! Use an excel sheet creating a text file ( Retlw xx ...) and some asm ( RETLW ...) lines.

    Here are ( simple !!! ) examples

    Alain
    Attached Files Attached Files
    ************************************************** ***********************
    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Since the RETLW method stores 1 byte per instruction which takes 2 bytes.
    A table of 1024 words would use 4096 bytes, instead of the 2048 bytes used by the method shown here ...

    Using EXT with Labels
    http://www.picbasic.co.uk/forum/show...php?t=3891#LAB

    If you are using a 16F as the .zip example shows, then RETLW would be better because it can only store 14-bit words, but not for an 18F.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Talking a thought for the programmer

    Hi,Darrel

    I think we also must consider the table loading work ... ( humour !!! )


    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 " !!!
    *****************************************

Similar Threads

  1. Lookup table syntax.....
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th May 2009, 05:45
  2. Lookup table or Math?
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 2nd May 2008, 18:55
  3. Lookup Table
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th March 2008, 11:38
  4. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 18:56
  5. Real Time Clock & Eeprom
    By smart_storm in forum General
    Replies: 8
    Last Post: - 17th February 2006, 20:03

Members who have read this thread : 2

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