← All exercises

On Delay

easy

Drive the output high once the input has stayed high continuously for 1 second.

What it teaches

Wait a set time before turning the output on, but only after the input has stayed steady. If the input drops mid-wait, the timer resets — partial progress doesn't carry over. Common for ignoring quick blips and reacting only to long, deliberate signals.

Inputs and outputs

TagTypeDefaultDescription
In_EnableBOOLInput signal to monitor
Out_DoneBOOLDelayed output

Required behavior

  • Output goes high after In_Enable stays high continuously for 1 second.
  • Output goes low immediately when In_Enable goes low.
  • The 1-second wait restarts whenever In_Enable goes low — partial progress is not retained.