faster LookUpL


+ Reply to Thread
Results 1 to 8 of 8

Thread: faster LookUpL3633 days old

  1. #1
    buddhafragt
    Guest buddhafragt's Avatar

    0 Not allowed!

    Default faster LookUpL

    Hello,
    I am going crazy with a lookup problem:

    I need a lookup table that points to varibles and try out LookUpL.
    The problem I have: it is too slow.
    I use a 16F4520 device running at 40Mhz and debug the program with MPLAB... over 6ys for the look up. Anybody knows a way to reduce this time?

    regards
    Michael

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    When you say its to slow, how long is it taking now and how many us are to looking to shave off?
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    buddhafragt
    Guest buddhafragt's Avatar

    0 Not allowed!

    Default

    Hi Tim,

    I wrote it takes around 6 yS now.
    The maximum time consumption should be around 3 yS.

    thanks!
    Michael

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    Post an example of the code you are using, we should be able to help

    Using a 16 series pic doe's not make for speed, far better you use an 18 series. No page tests required.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Fanatical Contributor fanie's Avatar
    Join Date
    Oct 2005
    Posts
    7,964
    Thumbs Up
    Received: 29
    Given: 13
    Total Downloaded
    280.03 MB

    0 Not allowed!

    Default

    If the lookup is very big then you can split the table into smaller ones. The code does a camparason routine ie size or some cryteria that directs it to a smaller routine to get the correct value.

    I haven't used this before but see no reason why it won't work.

    That lookup must be really very large to take that long.
    Fanie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    LookupL takes the same time for every lookup irrespective of the number of elements

    Lookup is shorter and quicker but not by much

    3 us is a short time I would think that other elements coding has a bigger effect on the speed.

    Really you should move up to the 18 series
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    wastrix
    Guest wastrix's Avatar

    0 Not allowed!

    Default

    I think he is using a 18 series device - ever heard of a 16F4520?

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Prolific Poster RGV250's Avatar
    Join Date
    Aug 2005
    Posts
    2,338
    Thumbs Up
    Received: 29
    Given: 7
    Total Downloaded
    1.01 GB

    0 Not allowed!

    Default

    Hi,
    At 40mhz you are looking for it to happen in 30 cycles for 3uS, I normally use this routine http://wiki.picbasic.org/index.php?n...ofCycles.Other (from the WIKI) to determine how many cycles a routine is taking.

    Regards,
    Bob

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. LookupL / lookup problem
      By kuhrig in forum Proton 24
      Replies: 3
      Last Post: 5th April 2019, 12:19
    2. LookupL Command and LCD
      By tmurph62 in forum Proton Plus Compiler v3
      Replies: 8
      Last Post: 11th March 2012, 04:50
    3. Anomaly with LookUpL
      By Goesgi in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 13th March 2006, 17:21
    4. LookupL and Array
      By eyal_B in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 7th December 2005, 17:44

    Members who have read this thread since 15th November 2019, 07:48 : 0

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts