← All exercises

Pulse

medium

Produces a 1-second output pulse on each rising edge of the trigger input.

What it teaches

Combines edge detection, output latching, and a timer that gates the pulse duration. Demonstrates that pulse width is decoupled from input duration — the trigger only starts the pulse, the timer ends it. Foundation for one-shot generators.

Inputs and outputs

TagTypeDefaultDescription
In_TriggerBOOLTrigger input; rising edge starts the pulse
Out_PulseBOOL1-second output pulse

Required behavior