← All exercises

Falling Edge

easy

Produce a single-scan pulse on every 1-to-0 transition of a BOOL input.

What it teaches

Mirror of rising-edge detection — fire when the signal turns off instead of on. The key insight: a falling edge is just the rising edge of the inverted signal, so whatever you built for rising-edge works here flipped.

Inputs and outputs

TagTypeDefaultDescription
In_SignalBOOLInput signal to monitor
Out_PulseBOOLPulses high for one scan on falling edge

Required behavior

  • Out_Pulse is 1 for exactly one scan when In_Signal transitions from 1 to 0.
  • Out_Pulse is 0 at all other times.