Help Needed with Darrel's Interrupt on Change Routine


Results 1 to 6 of 6

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Help Needed with Darrel's Interrupt on Change Routine

    In the case of IOCIF, the hardware does not allowing clearing that bit.
    As long as any of the IOCAF or IOCBF are set, the IOCIF bit will remain set too.

    DT_INTS does not clear the IOCAF or IOCBF flags, since there's no way to know which of the 16 flags should be cleared for your application.
    It is up to you to clear those flags.

    This particular chip doesn't have an IOCAF register, so ...
    In your case, ... IOCBF = 0 will fix your problem.
    Last edited by Darrel Taylor; - 3rd January 2013 at 17:36.
    DT

Similar Threads

  1. incPID Routine - Help Needed
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 63
    Last Post: - 26th September 2013, 12:31
  2. Help needed with ADCIN Averaging Routine
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th December 2012, 16:05
  3. A Simple IOC Routine (Interrupt On Change)
    By lugo.p in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th March 2010, 19:53
  4. Darrel's latest 16 bit averaging routine?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 17th October 2009, 01:57
  5. Darrel's Averaging Routine
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th June 2008, 23:24

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