SOLVED: Post #11 - IOC on negative edge sometimes triggers twice on single press


Results 1 to 13 of 13

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: IOC on negative edge sometimes triggers twice on single press

    Look what I just found on p. 208:

    The INLVLB register (Register 12-8) controls the input
    voltage threshold for each of the available PORTB input
    pins. A selection between the Schmitt Trigger CMOS or
    the TTL Compatible thresholds is available. The input
    threshold is important in determining the value of a read
    of the PORTB register and also the level at which an
    interrupt-on-change occurs, if that feature is enabled.
    EDIT: Hmmm, p.212 has 1 as default on port B (ST input).

    Ill try with INLVLB = %00000100, but I doubt it'll make a difference.


    EDIT SOME MORE: Nope, still random double-processing.
    Last edited by Demon; - 6th September 2024 at 10:47.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Replies: 8
    Last Post: - 30th August 2024, 20:45
  2. calling subroutine triggers interrupt
    By Alexey in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 20th May 2011, 04:50
  3. Replies: 5
    Last Post: - 26th February 2011, 06:51
  4. Button press and press & hold how to ?
    By GrandPa in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd August 2007, 04:37
  5. Best way to find a rising edge?
    By jcsquire in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st May 2006, 16:11

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