What does this error message mean?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: What does this error message mean?

    Thank you very much for that lesson, Richard. I really need to work on learning ASM.

    I checked the amount of flash used on the previous version. It's at exactly 2k words with the inefficient PBP look up tables. The 16F684 has 2048 words, so I'm assuming the new modification added 135 words based on the error msg. Is switching the look up tables to ASM going to free up enough space?

    Switching to a 16F1xxx chip would obviously solve the problem, as they have more flash and they are actually cheaper! The 16F1613 for example is almost $1.25ea. less. I have to upgrade my version of PBP, but it will pay for itself pretty quickly. So I think I'm going to do that regardless of whether or not I can cram it all into a 16F684. The most practical solution to my real problem is to make R44 an internal trimpot, but that will have to wait till the next production run of PCBs.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: What does this error message mean?

    Is switching the look up tables to ASM going to free up enough space?
    easily , the one i completed saved 15 words at least all four would get another 30 or 40 i expect

    replacing your readpot routine with this gets another 40 by eliminating that costly divide
    Code:
    readpot:
          adcin 1,x
        x=x*/151     '***************
    return
    Last edited by richard; - 10th December 2021 at 22:54. Reason: chopped a chunk of code out messed up figures
    Warning I'm not a teacher

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: What does this error message mean?

    One other thing I notice is that the tables mostly have 152 members , x is always between 0 and 150 as far as i can see

    the second table had 153 members , typo ?
    Warning I'm not a teacher

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: What does this error message mean?

    Quote Originally Posted by richard View Post
    One other thing I notice is that the tables mostly have 152 members , x is always between 0 and 150 as far as i can see

    the second table had 153 members , typo ?
    Yep. That was a typo. Thanks for catching that.

    Thanks so much for helping me with this. Sorry for not getting back sooner. I was out for two weeks with Covid and then I got sidetracked by a bunch of year-end stuff. Anyhow...The program doesn't work because of some mistake I made in the new calibration routine. But I did swap out the look up tables with your new ASM tables in the original "verified" program and they work perfectly. And saved 25 words!

    So now I've got to work on the calibration routine. I should be able to make it work in 47 words. After setting it aside for a while, I think I'm going to start over and come at it from a different angle.

Similar Threads

  1. error message
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st October 2015, 11:12
  2. Error Message
    By mel4853 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th March 2009, 20:15
  3. Error message???
    By dangill in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th February 2009, 12:53
  4. error message
    By chip_select in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st March 2008, 08:14
  5. error message
    By jcleaver in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd March 2007, 00:54

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