User:Munin295/Pulse circuit

A pulse circuit is a redstone circuit which manages pulses.

Pulse basics
…


 * Oscilloscope


 * 1&times;N&times;2, flat, silent
 * An oscilloscope is used to analyze and diagnose pulses. It generally isn't built as part of a redstone mechanism, but is used in circuit invention, design and diagnosis to observe the length and spacing of pulses being generated by part of a circuit.
 * An oscilloscope simply consists of a line of 1-tick repeaters. An oscilloscope should be constructed to be at least as long as the expected pulse, plus a few extra repeaters (the more repeaters, the easier it will be to time capturing a pulse). For periodic pulses (as from clock circuits), an oscilloscope should be at least as long as the pulse period (both the on and off parts of the pulse).
 * You can freeze an oscilloscope by running additional repeaters into the sides of the oscilloscope and powering them simultaneously to lock the repeaters of the oscilloscope. Alternatively, the state of an oscilloscope can be captured with a screenshot, or the oscilloscope can be positioned on-screen so that it is visible when the player escapes to the game menu (by default with ).

Monostable circuit
A monostable circuit is a circuit with only one stable output state (either on or off). While in its stable output state, it will not change its state unless triggered by its input, but in its unstable state it will revert to its stable state (either after a time specifically designed for, or after a random time).

There are three kinds of monostable circuits:


 * Edge Detector
 * Outputs a pulse when it detects the input turning on (a rising edge detector), turning off (a falling edge detector), or both (a dual edge detector).


 * Pulse Generator
 * Outputs a specific pulse when activated.


 * Pulse Limiter
 * Allows short pulses through unchanged, but caps the output pulse at a certain length.

Edge Detector
An edge detector emits a pulse when it detects the edge of its input pulse: either the rising edge of the pulse (when it turns on), the falling edge of the pulse (when it turns off), or both.

There are some design strategies which can be adapted to kinds edge detectors:
 * A NOR-gate edge detector uses a NOR gate to compare the input's current state to the inverse of its state a few ticks ago (or vice versa).
 * A dust-cut edge detector uses the time difference between when a piston is activated and when its block stops moving to suppress the output signal on the correct edge of the input.

Rising edge detector
A rising edge detector emits a pulse when its input turns on (the rising edge of the pulse).


 * Circuit Breaker


 * 1&times;3&times;3 (9 block volume), 1-wide
 * circuit delay: 1 to 4 ticks, output pulse: 1 to 4 ticks
 * The circuit breaker is the most commonly used rising edge detector due to its small size and adjustable output.
 * Variations: The output repeater may be set to any delay, which will also lengthen the output pulse to equal the delay. When oriented north-south, the output repeater may be replaced by any mechanism component, causing the mechanism component to receive a 1-tick activation pulse.


 * Dust-Cut Rising Edge Detector
 * 1&times;5&times;3 (15 block volume), 1-wide
 * circuit delay: 1 tick, output pulse: 1 tick
 * A dust-cut rising edge detector works by moving a block so that it cuts off the output pulse after only one tick.


 * Subtraction Rising Edge Detector
 * A subtraction rising edge detector works by using the subtraction mode of a redstone comparator to shut off the output pulse.
 * Earliest Known Publication: May 3, 2013


 * Locked-Repeater Rising Edge Detector


 * 2&times;4&times;2 (16 block volume), flat, silent
 * circuit delay: 3 ticks, output pulse: 1 tick


 * Removed-Block Rising Edge Detector
 * Uses the same principle as the circuit breaker -- power the output through a block, then remove the block to keep the output pulse short.
 * Earliest Known Publication: March 14, 2013 and March 29, 2013


 * NOR-Gate Rising Edge Detector
 * A NOR-gate rising edge detector compares the current power to the power from 2 ticks ago -- if the current power is on and the previous power was off, the output torch flashes on briefly.


 * Dropper Rising Edge Detector


 * 3&times;3&times;2 (18 block volume), flat
 * circuit delay: 1 tick?, output pulse: 2 ticks?
 * Earliest Known Publication: March 15, 2013

Falling edge detector
A falling edge detector emits a pulse when its input turns off (the falling edge of the pulse).


 * Dust-cut falling edge detector


 * 1&times;4&times;3 (12 block volume), 1-wide
 * circuit delay: 0 ticks, output pulse: 2 ticks


 * Locked-Repeater Falling Edge Detector


 * 2&times;3&times;2 (12 block volume), flat, silent
 * circuit delay: 2 ticks, output pulse: 1 tick


 * NOR-Gate Falling Edge Detector
 * A NOR-gate falling edge detector compares the current power to the power from 2 ticks ago -- if the current power is off and the previous power was on, the output torch flashes on briefly.

Dual edge detector
A dual edge detector emits a pulse when its input changes (at either the rising edge or the falling edge of the pulse).


 * Moving-Block Dual Edge Detector


 * 1&times;4&times;3 (12 block volume), 1-wide
 * circuit delay: 1 tick, output pulse: 2 ticks
 * Variations: You can place a torch on the other side of the bottom blocks to get an output on the same side as the input.
 * Earliest Known Publication: January 28, 2013


 * Dust-Cut Dual Edge Detector


 * 1&times;4&times;3 (12 block volume), 1-wide
 * circuit delay: 1 tick (rising edge) or 0 ticks (falling edge), output pulse: 1 tick


 * NOR-Gate Dual Edge Detector


 * 3&times;5&times;3 (45 block volume), silent
 * circuit delay: 3 ticks (rising edge) or 1 tick (falling edge), output pulse: 2 ticks
 * A NOR-gate dual edge detector compares the current power to the power from 2 ticks ago -- if the current power is different than the previous power, an output torch flashes on briefly.
 * Earliest Known Publication: July 2, 2012


 * Locked-Repeater Dual Edge Detector
 * Earliest Known Publication: April 16, 2013 and May 1, 2013

Pulse generator
A pulse generator is a circuit which generates a pulse in response to player activation.

Common choices for building pulse generators include a button or pressure plate controlling a rising edge detector, or a lever controlling a dual edge detector.

Pulse limiter
A pulse limiter is a circuit which shortens the length of a pulse.

Any rising edge detector can be used as a pulse limiter.