Can a Flowcode DELAY be terminated via a hardware interrupt?
Posted: Sun Sep 06, 2015 1:07 pm
Can a Flowcode DELAY be terminated via a hardware interrupt?
I want to be able to bail out of a long delay via a hardware interrupt (using the INT0 pin on a PIC16F88).
The application is a fairly trivial timer, so the simple DELAY function is quite suitable rather than having to use a timer macro based on one of the chip's internal timers.
However, I gather that DELAY is implemented in code via a loop of NOOP instructions, so I guess the return from interrupt will continue execution from where it broke off within that loop, rather than after the delay loop itself -- is that true?
I want to be able to bail out of a long delay via a hardware interrupt (using the INT0 pin on a PIC16F88).
The application is a fairly trivial timer, so the simple DELAY function is quite suitable rather than having to use a timer macro based on one of the chip's internal timers.
However, I gather that DELAY is implemented in code via a loop of NOOP instructions, so I guess the return from interrupt will continue execution from where it broke off within that loop, rather than after the delay loop itself -- is that true?