drbitboy
Lifetime Supporting Member
And for the OP, use a FIFO. The OP requirement is you can press the button multiple times and repeat the pattern. Lare had it right, after only 28minutes. I am sure the homework assignment is complete by now.
Interesting. With a FIFO, the output would repeat every input rising or falling edge that gets stored in the FIFO, just N seconds later, right?
When I read the OP, I interpreted the goal such that, once the input rising edge was found, the program would ignore all other input activity until the output went off at the end of the 1s output hold.
Or maybe for the FIFO you meant to stop storing input changes until the end of the output response to the first input change?
Anyway, I have it working with two TONs, one rung to implement the delay, and one to implement the 1s output pulse. I have several more lines for debugging and viewing, and one other line to change the duration of the delay. Cf. here
Last edited: