RedstoneChips

pulse

A pulse generator. When one of the inputs changes from off to on, its corresponding output changes to on, waits a certain duration and then goes back to off. The pulse duration is set with a sign argument. Possible values are any duration in the same format as clock: 120bpm, 10hz, 1sec, 2years are all possible.

It’s possible to set the 2nd, optional, edge-trigger argument to change the triggering behavior:

When the chip has a single input pin and multiple outputs, triggering the input will cause all outputs to trigger sequentially, starting from the 1st output to the last. An output will only send a pulse once the output before it has finished pulsing and turned off. In this way it’s possible to trigger a number of chips in a specific order of execution using only one pulse.

For maximum performance a pulse of 0ms duration should be used. This will make the circuit output to go from off to on and then immediately back, creating an invisible pulse. Though it’s not possible to see the state change, the pulse is there and can be used to control any chip’s clock input.

source code


I/O setup

Sign text

  1. pulse
  2. [duration] (default value is 1sec)
  3. [edge-trigger] (default value is positive)

Version history: Added to BasicCircuits 0.6

Fork me on GitHub