Strange IT behaviour


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Strange IT behaviour

    Mike,

    Like I suggested to someone else, maybe if you made a small test version of your program and keep only the absolute minimum code to run the loop above.

    You can populate the table with test data and go on from there.

    It would make posting the code so much easier to you, as well as for others to spot potential problems in your logic.

    Basic and very simple, but it does not work !
    That's the sort of stuff we see in signatures here.

    Robert

    Not as dumb as yesterday!

  2. #2
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default Re: Strange IT behaviour

    Demon,

    Thank you for your advice.

    Of course I did what you suggest : write a very small program and test it and that's how I found that the problem was coming from ReadCode and its execution time.
    After 40 years spent in the lab I know the methodology, thanks !

    I am just asking for a precise advice/recommandation to the issue I raised. In relation with ReadCode and the interrupts. Nothing else

    MikeBZH

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: Strange IT behaviour

    May I suggest that you take a look at this link:
    http://www.picbasic.co.uk/forum/showthread.php?t=3891
    Last edited by sayzer; - 9th February 2012 at 07:44.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default Re: Strange IT behaviour

    I asked directly Darrel Taylor (Technical Support) and he gave be the good answer :

    I simply need to clear the interrupt flag (TMR2IF) in PIR1 before leaving the Interrupt Service Routine


    Otherwise, the ISR is called again and again. No relation with ReadCode execution time.

    Many thanks to you, Darrel.

Members who have read this thread : 0

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