Hello,
I am using an interrupt op pin 17 of a Teensy 4.0. However, the interrupts() and the noInterrupts() commands can disable the interrupt of a serial-connection.
Paul suggests a mask to switch the particular pin (17) on or off:
"You can also disable the individual mask bit for your interrupt, rather than using cli(). This has the advantage of not blocking other unrelated interrupts from running."
https://www.pjrc.com/teensy/interrupts.html
The way to do this: "Mask: (byte,bit#) Bit that enables this interrupt. See accessing a single bit for C syntax to write byte,bit# pairs."
I really have no idea how to implement this. Anyone having suggestions?
Osiris
I am using an interrupt op pin 17 of a Teensy 4.0. However, the interrupts() and the noInterrupts() commands can disable the interrupt of a serial-connection.
Paul suggests a mask to switch the particular pin (17) on or off:
"You can also disable the individual mask bit for your interrupt, rather than using cli(). This has the advantage of not blocking other unrelated interrupts from running."
https://www.pjrc.com/teensy/interrupts.html
The way to do this: "Mask: (byte,bit#) Bit that enables this interrupt. See accessing a single bit for C syntax to write byte,bit# pairs."
I really have no idea how to implement this. Anyone having suggestions?
Osiris