Any CLEAR command associated w/ DT_INTS?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156

    Default Any CLEAR command associated w/ DT_INTS?

    I'm trying to troubleshoot some code w/ a rotary encoder. If I spin the encoder too fast, something is causing the CPU to reset. So I disabled the interrupt at the beginning of the routine, and re-enabled it at the end of the routine, but then it resets AFTER the routine. Is there any 'clear' or 'overrun' buffer that needs to be cleared besides disabling the interrupt itself? Thought I remembered reading about something like that, but can't find it now.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    My magic crystal ball is in-for-repairs, so it would be helpful if you could post all of your code + your config settings..;o)

    And a hint about the PIC type would also be fairly helpful..;o)
    Last edited by Bruce; - 30th April 2010 at 03:20.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    Sorry about that! I guess I was pretty darn vague. I bulldozed the code and just started again, and ... miraculiously... no more problem. Thanks, Bruce, and I hope your crystal ball works better next time.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I pretty vaque at times myself...

    What turned out to be the problem?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    That poor piece of code was in a terrible mess I'm not even sure what it was. I should have just started over yesterday. Some days are just like that, ya know. Thanks for the reply though. I think it was a timeout I had on a HSERIN command.

Members who have read this thread : 1

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