ReEnterPBP.bas question


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91

    Default ReEnterPBP.bas question

    While making some changes to an existing program by adding a bunch of if/or comparison statements I received the warning (temp variables exceed T8). I needed to increase to T16 to get the program to compile without error. I know in time I should rewrite the program using Select Case but for now what pitfalls should I expect if any, by using it this way? Is there a reasonable limit to the number of Temp Variables I should use in a program? Calculating the time to save at 4 mhz I get 116 us.

    At this point I'm only using TMR1_INT but will add at least INT_INT in time.

    Thanks for any responses.



    16f876, PBP2.50, MCSP, MPASM,MCloader
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

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


    Did you find this post helpful? Yes | No

    Default

    It's really just a warning.

    There's no way for it to know how many (T)emp variables you are using in your interrupt routines, or how many are used in the main progam. And it's only set up to handle 7 Temp variables (18F's), so it throws a warning if there's more.

    Usually, interrupt handlers are fairly simple, and don't use many (if any) (T)emp variables.

    But you should check to make sure there aren't any "Really Complex" formula's inside the interrupt handler.

    If you are sure that no more than T7 is used in the handlers, use ...
    Code:
    DEFINE  NO_T7_WARNING 1
    HTH,
    DT

Similar Threads

  1. Timer0 Instant Interrupts Question
    By wmarchewka in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2009, 05:29
  2. Eeprom question
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th April 2008, 20:21
  3. Remote PIC input question
    By Adrian in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st September 2007, 15:44
  4. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  5. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49

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