31
NXPTM M522XX, KINETIS and i.MX RT / Interrupt Control
« on: September 18, 2018, 06:12:01 PM »
Mark, et al,
I am trying to read an incoming IR stream from a remote control. From the IR receiver, I have an active-low GPIO inbound signal. All pretty straight-forward.
I was planning to create an initial interrupt upon the first active low pulse. After that, I create a periodic 1 ms timer interrupt to sample the inbound stream 68 times (68 ms total).
In this plan, I need to temporarily disable the initial interrupt so it doesn't keep triggering while I am reading the 1 ms pulses.
Just prior to restarting the initial interrupt, I need to clear the interrupt queue, if any.
It would be nice if I could SINGLE_SHOT a standard interrupt. Is that possible?
What do you recommend?
Thank you in advance.
Phil
I am trying to read an incoming IR stream from a remote control. From the IR receiver, I have an active-low GPIO inbound signal. All pretty straight-forward.
I was planning to create an initial interrupt upon the first active low pulse. After that, I create a periodic 1 ms timer interrupt to sample the inbound stream 68 times (68 ms total).
In this plan, I need to temporarily disable the initial interrupt so it doesn't keep triggering while I am reading the 1 ms pulses.
Just prior to restarting the initial interrupt, I need to clear the interrupt queue, if any.
It would be nice if I could SINGLE_SHOT a standard interrupt. Is that possible?
What do you recommend?
Thank you in advance.
Phil