Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Teensy 4 GPIO flag reset

  1. #1

    Teensy 4 GPIO flag reset

    Hello, hopefully just a quick one

    My understanding of interrupts is that most have their flags reset when the interrupt is started. Am I correct in thinking that this means the interrupt won't repeat until the trigger is seen again?

    What about GPIO6 on the Teensy 4? Does this use flags? Or does it just keep repeating interrupts as fast as it can after the first trigger is seen?

    Cheers

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,874
    It uses a flag.Best is, to read them rference manual, and the sourcecode from attachInterrupt in interrup.c.
    Unfortunately, GPIO6-GPIO9 use the same interrupt which makes things a bit complicated. Maybe it's possible to use the lower GPIOs which have more differentiated interrupts, but I have not tested this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •